/* Base text colors for dark theme */
body {
    color: var(--text-primary);
}

/* Utility classes */
.hidden { display: none !important; }
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }

/* Section headers base */
.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
    padding: 0 1rem;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

/* Links */
a { color: inherit; text-decoration: none; }

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background: var(--gradient);
    color: var(--bg-primary);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3);
}

.btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-secondary:hover { background: var(--border); }

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-approve {
    background: var(--success);
    color: var(--bg-primary);
}

.btn-reject {
    background: var(--danger);
    color: white;
}

/* Cards */
.feature-card {
    background: var(--bg-tertiary);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--border);
    transition: all 0.3s;
    text-decoration: none;
    color: inherit;
    display: block;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
}

/* Неактивная плитка */
.feature-card.disabled {
    opacity: 0.5;
    pointer-events: none; /* Отключает клики */
    position: relative;
    cursor: not-allowed;
}

/* Разрешаем клики по ссылкам внутри неактивной плитки */
.feature-card.disabled a {
    pointer-events: auto;
    color: var(--accent);
    text-decoration: underline;
}

/* Бейдж "заблокировано" */
.coming-soon-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.25rem;
    opacity: 0.6;
}

/* Эффект при наведении на неактивную плитку */
.feature-card.disabled:hover {
    transform: none;
    border-color: var(--border);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Forms */
.search-bar {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.search-input {
    flex: 1;
    min-width: 250px;
    padding: 1rem 1.5rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 1rem;
    outline: none;
}

.search-input:focus { border-color: var(--accent); }

.filter-tabs {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.tab {
    padding: 0.75rem 1.5rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
}

.tab.active, .tab:hover {
    background: var(--accent);
    color: var(--bg-primary);
    border-color: var(--accent);
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-verified {
    background: var(--success);
    color: var(--bg-primary);
}

.dialect-badge {
    padding: 0.5rem 1rem;
    background: var(--warning);
    color: var(--bg-primary);
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

/* Toast notifications */
.toast-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 3000;
    pointer-events: none;
}

.toast {
    padding: 1rem 1.5rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    animation: slideIn 0.3s ease;
    pointer-events: all;
}

.toast.success { border-color: var(--success); }
.toast.error { border-color: var(--danger); }

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Empty state */
.empty-state {
    color: var(--text-muted);
    text-align: center;
    padding: 3rem;
}

/* Preview tags */
.preview-tag {
    padding: 0.25rem 0.75rem;
    background: var(--bg-tertiary);
    border-radius: 20px;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Section headers */
.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
    padding: 0 1rem;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

/* Responsive utilities */
@media (max-width: 768px) {
    .section-title { font-size: 1.75rem; }
    .search-bar { flex-direction: column; }
    .search-input { min-width: unset; width: 100%; }
    .filter-tabs { justify-content: center; }
    .tab { padding: 0.5rem 1rem; font-size: 0.875rem; }
}

@media (max-width: 480px) {
    .btn { width: 100%; justify-content: center; }
}