@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
    /* Светлая тема по умолчанию */
    --bg-primary: #f8fafc;
    --bg-secondary: #f1f5f9;
    --bg-tertiary: #e2e8f0;
    --bg-card: #ffffff;
    --bg-hover: #f8fafc;
    
    /* Акцентные цвета */
    --accent-primary: #10b981;
    --accent-secondary: #059669;
    --accent-glow: rgba(16, 185, 129, 0.2);
    --accent-gradient: linear-gradient(135deg, #10b981 0%, #059669 100%);
    
    /* Текст */
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    
    /* Границы */
    --border-color: rgba(15, 23, 42, 0.1);
    --border-hover: rgba(16, 185, 129, 0.3);
    
    /* Тени */
    --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.08);
    --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.12);
    --shadow-lg: 0 16px 48px rgba(15, 23, 42, 0.16);
    --shadow-glow: 0 0 40px rgba(16, 185, 129, 0.15);
    
    /* Радиусы */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
}

/* Темная тема */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-primary: #0a0f0d;
        --bg-secondary: #111815;
        --bg-tertiary: #1a211d;
        --bg-card: #141b17;
        --bg-hover: #1e2621;
        
        /* Акцентные цвета остаются теми же */
        --accent-glow: rgba(16, 185, 129, 0.4);
        
        /* Текст */
        --text-primary: #f0fdf4;
        --text-secondary: #94a3b8;
        --text-muted: #64748b;
        
        /* Границы */
        --border-color: rgba(16, 185, 129, 0.15);
        
        /* Тени */
        --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
        --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
        --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.5);
        --shadow-glow: 0 0 40px rgba(16, 185, 129, 0.2);
    }
}

/* Класс для ручного переключения тем */
.theme-dark {
    --bg-primary: #0a0f0d;
    --bg-secondary: #111815;
    --bg-tertiary: #1a211d;
    --bg-card: #141b17;
    --bg-hover: #1e2621;
    
    --accent-glow: rgba(16, 185, 129, 0.4);
    
    --text-primary: #f0fdf4;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    --border-color: rgba(16, 185, 129, 0.15);
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 40px rgba(16, 185, 129, 0.2);
}

.theme-light {
    --bg-primary: #f8fafc;
    --bg-secondary: #f1f5f9;
    --bg-tertiary: #e2e8f0;
    --bg-card: #ffffff;
    --bg-hover: #f8fafc;
    
    --accent-glow: rgba(16, 185, 129, 0.2);
    
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    
    --border-color: rgba(15, 23, 42, 0.1);
    
    --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.08);
    --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.12);
    --shadow-lg: 0 16px 48px rgba(15, 23, 42, 0.16);
    --shadow-glow: 0 0 40px rgba(16, 185, 129, 0.15);
}

/* Переключатель темы */
.theme-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.theme-toggle:hover {
    background: var(--bg-hover);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.theme-toggle i {
    font-size: 16px;
    transition: transform 0.3s ease;
}

/* Для светлой темы показываем иконку луны */
.theme-light .theme-toggle .fa-sun,
.theme-dark .theme-toggle .fa-moon {
    display: none;
}

/* Для темной темы показываем иконку солнца */
.theme-light .theme-toggle .fa-moon,
.theme-dark .theme-toggle .fa-sun {
    display: inline-block;
}

.theme-toggle.active .fa-moon {
    transform: rotate(30deg);
}

.theme-toggle.active .fa-sun {
    transform: rotate(180deg);
}

/* Обновленные стили для светлой темы */
.theme-light .navbar {
    background: rgba(248, 250, 252, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(15, 23, 42, 0.1);
}

.theme-light .hero-badge {
    background: var(--bg-card);
    border: 1px solid rgba(15, 23, 42, 0.1);
    color: var(--accent-primary);
}

.theme-light .feature-card {
    background: var(--bg-card);
    border: 1px solid rgba(15, 23, 42, 0.1);
}

.theme-light .feature-card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.theme-light .forum-sidebar,
.theme-light .forum-filters,
.theme-light .post-card,
.theme-light .project-card,
.theme-light .stat-card,
.theme-light .create-form,
.theme-light .auth-card {
    background: var(--bg-card);
    border: 1px solid rgba(15, 23, 42, 0.1);
}

.theme-light .sidebar-section {
    background: var(--bg-card);
    border: 1px solid rgba(15, 23, 42, 0.1);
}

.theme-light .input-wrapper input,
.theme-light .search-box input,
.theme-light .form-input {
    background: var(--bg-secondary);
    border-color: rgba(15, 23, 42, 0.15);
    color: var(--text-primary);
}

.theme-light .social-btn,
.theme-light .access-label {
    background: var(--bg-secondary);
    border-color: rgba(15, 23, 42, 0.15);
}

.theme-light .auth-background {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05) 0%, rgba(6, 182, 212, 0.05) 100%);
}

.theme-light .forum-header {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05) 0%, rgba(6, 182, 212, 0.05) 100%);
}

.theme-light .profile-header {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05) 0%, rgba(5, 150, 105, 0.05) 100%);
}

.theme-light .project-info {
    background: var(--bg-secondary);
}

.theme-light .category-item.active {
    background: rgba(16, 185, 129, 0.08);
    color: var(--accent-primary);
}

.theme-light .notification-item.unread {
    background: rgba(16, 185, 129, 0.05);
}

.theme-light .notification-item.unread:hover {
    background: rgba(16, 185, 129, 0.08);
}

.theme-light .access-option input[type="radio"]:checked + .access-label {
    background: rgba(16, 185, 129, 0.05);
}

/* Анимация переключения темы */
@keyframes themeSwitch {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        opacity: 1;
    }
}

body.theme-switching {
    animation: themeSwitch 0.3s ease;
}

/* Обновляем градиентные орбы для светлой темы */
.theme-light .gradient-orb {
    opacity: 0.2;
}

/* Обновляем скроллбар для светлой темы */
.theme-light ::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

.theme-light ::-webkit-scrollbar-thumb {
    background: var(--accent-primary);
}

.theme-light ::-webkit-scrollbar-thumb:hover {
    background: var(--accent-secondary);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-secondary);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(30px, -30px) scale(1.1);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 20px var(--accent-glow);
    }
    50% {
        box-shadow: 0 0 40px var(--accent-glow), 0 0 60px rgba(16, 185, 129, 0.2);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

@keyframes borderGlow {
    0%, 100% {
        border-color: rgba(16, 185, 129, 0.3);
    }
    50% {
        border-color: rgba(16, 185, 129, 0.8);
    }
}

/* ===== BUTTONS ===== */
.btn-primary {
    padding: 14px 28px;
    border-radius: var(--radius-md);
    text-decoration: none;
    color: #ffffff;
    font-weight: 600;
    font-size: 15px;
    background: var(--accent-gradient);
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: none;
    outline: none;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(16, 185, 129, 0.5);
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:active {
    transform: translateY(-1px);
}

.btn-secondary {
    padding: 14px 28px;
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 15px;
    background: var(--bg-tertiary);
    border: 1.5px solid var(--border-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    outline: none;
    cursor: pointer;
}

.btn-secondary:hover {
    border-color: var(--accent-primary);
    color: var(--accent-secondary);
    background: var(--bg-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.15);
}

.btn-ghost {
    padding: 12px 24px;
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 14px;
    background: transparent;
    border: 1.5px solid transparent;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    outline: none;
    cursor: pointer;
}

.btn-ghost:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border-color: var(--border-color);
}

.btn-danger {
    padding: 12px 24px;
    border-radius: var(--radius-md);
    text-decoration: none;
    color: white;
    font-weight: 600;
    font-size: 14px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.25);
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
    outline: none;
    cursor: pointer;
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.35);
}

.btn-warning {
    padding: 12px 24px;
    border-radius: var(--radius-md);
    text-decoration: none;
    color: white;
    font-weight: 600;
    font-size: 14px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.25);
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
    outline: none;
    cursor: pointer;
}

.btn-warning:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.35);
}

.btn-freeze {
    padding: 10px 24px;
    border-radius: 8px;
    text-decoration: none;
    color: #0ea5e9;
    font-weight: 600;
    font-size: 14px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 1.5px solid #bae6fd;
    box-shadow: 0 2px 8px rgba(14, 165, 233, 0.15);
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.btn-freeze::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s ease;
}

.btn-freeze:hover {
    border-color: #0ea5e9;
    color: #0284c7;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.25);
}

.btn-freeze:hover::before {
    left: 100%;
}

.btn-freeze:active {
    transform: translateY(0);
}

.btn-disabled {
    padding: 10px 24px;
    border-radius: 8px;
    text-decoration: none;
    color: #94a3b8;
    font-weight: 500;
    font-size: 14px;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: not-allowed;
    opacity: 0.7;
    position: relative;
}

.btn-disabled::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 10%;
    right: 10%;
    height: 1.5px;
    background: #94a3b8;
    opacity: 0;
    transform: scaleX(0);
    transition: all 0.3s ease;
}

.btn-disabled:hover {
    transform: none;
    box-shadow: none;
    border-color: #e2e8f0;
    color: #94a3b8;
}

.btn-disabled:hover::after {
    opacity: 0.5;
    transform: scaleX(1);
}

/* ===== NAVBAR ===== */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(var(--bg-primary-rgb), 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 16px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.nav-logo:hover {
    transform: scale(1.02);
}

.logo-icon {
    width: 44px;
    height: 44px;
    background: var(--accent-gradient);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.4);
    transition: all 0.3s ease;
}

.logo-icon i {
    color: #f7f7f7;
    font-size: 20px;
}

.nav-logo:hover .logo-icon {
    box-shadow: 0 6px 28px rgba(16, 185, 129, 0.5);
    transform: rotate(-5deg);
}

.logo-text {
    font-size: 26px;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    gap: 8px;
}

.nav-link {
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 15px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.nav-link:hover {
    color: var(--accent-secondary);
    background: var(--bg-tertiary);
}

.nav-link.active {
    color: var(--accent-primary);
    background: rgba(16, 185, 129, 0.1);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* ===== NOTIFICATIONS ===== */
.notifications-container {
    position: relative;
    display: inline-block;
}

.notifications-btn {
    background: transparent;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
    color: var(--text-secondary);
    text-decoration: none;
}

.notifications-btn:hover {
    background: var(--bg-tertiary);
    color: var(--accent-primary);
}

.notifications-btn i {
    font-size: 18px;
}

.notification-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    font-size: 10px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
    border: 2px solid var(--bg-primary);
}

.notifications-dropdown {
    position: absolute;
    top: 110%;
    right: 0;
    width: 400px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    overflow: hidden;
}

.notifications-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.notifications-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.notifications-title {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.notifications-count {
    background: var(--accent-primary);
    color: #ffffff;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 600;
}

.mark-all-read {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 13px;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
    text-decoration: none;
}

.mark-all-read:hover {
    background: var(--bg-tertiary);
    color: var(--accent-primary);
}

.notifications-list {
    max-height: 400px;
    overflow-y: auto;
}

.notification-item {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.2s ease;
    position: relative;
    text-decoration: none;
    color: inherit;
    display: block;
}

.notification-item:hover {
    background: var(--bg-hover);
    text-decoration: none;
}

.notification-item.unread {
    background: rgba(16, 185, 129, 0.08);
}

.notification-item.unread:hover {
    background: rgba(16, 185, 129, 0.12);
}

.notification-item.unread::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: var(--accent-primary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-glow);
}

.notification-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.notification-title {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14px;
}

.notification-time {
    font-size: 12px;
    color: var(--text-muted);
}

.notification-content {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.4;
}

.notifications-footer {
    padding: 16px 20px;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.view-all {
    color: var(--accent-primary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.view-all:hover {
    color: var(--accent-secondary);
}

/* ===== HERO SECTION ===== */
.hero {
    position: relative;
    padding: 120px 40px;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    overflow: hidden;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.4;
    animation: float 20s infinite ease-in-out;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
    top: -200px;
    left: -100px;
    animation-delay: 0s;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    bottom: -150px;
    right: -100px;
    animation-delay: 5s;
}

.orb-3 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #6ee7b7 0%, #10b981 100%);
    top: 50%;
    right: 20%;
    animation-delay: 10s;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    color: var(--accent-primary);
    margin-bottom: 32px;
    box-shadow: var(--shadow-sm);
    animation: slideDown 0.6s ease;
}

.hero-badge i {
    font-size: 16px;
    animation: pulse 2s infinite;
}

.hero-title {
    font-size: 72px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    color: var(--text-primary);
    letter-spacing: -0.03em;
    animation: fadeInUp 0.8s ease;
}

.gradient-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.gradient-text::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--accent-gradient);
    border-radius: 2px;
    opacity: 0.5;
}

.hero-description {
    font-size: 20px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 1s ease;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 60px;
    animation: fadeInUp 1.2s ease;
}

.hero-stats {
    display: flex;
    gap: 60px;
    justify-content: center;
    align-items: center;
    animation: fadeInUp 1.4s ease;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 42px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 8px;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-divider {
    width: 1px;
    height: 50px;
    background: linear-gradient(to bottom, transparent, var(--border-color), transparent);
}

/* ===== FEATURES SECTION ===== */
.features {
    padding: 120px 40px;
    background: var(--bg-secondary);
    position: relative;
}

.features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-color), transparent);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 20px;
}

.section-title {
    font-size: 52px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.features-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 32px;
}

.feature-card {
    padding: 40px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent-gradient);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 28px;
    font-size: 28px;
    color: #ffffff;
    transition: all 0.3s ease;
    position: relative;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(-5deg);
}

.feature-icon.green {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 8px 28px rgba(16, 185, 129, 0.4);
}

.feature-icon.blue {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    box-shadow: 0 8px 28px rgba(59, 130, 246, 0.4);
}

.feature-icon.orange {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    box-shadow: 0 8px 28px rgba(245, 158, 11, 0.4);
}

.feature-icon.purple {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    box-shadow: 0 8px 28px rgba(139, 92, 246, 0.4);
}

.feature-icon.pink {
    background: linear-gradient(135deg, #ec4899 0%, #db2777 100%);
    box-shadow: 0 8px 28px rgba(236, 72, 153, 0.4);
}

.feature-icon.cyan {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    box-shadow: 0 8px 28px rgba(6, 182, 212, 0.4);
}

.feature-card h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 14px;
}

.feature-card p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    padding: 80px 40px 40px;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 80px;
    margin-bottom: 60px;
}

.footer-brand {
    max-width: 300px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.footer-logo .logo-text {
    color: var(--text-primary);
    background: none;
    -webkit-text-fill-color: var(--text-primary);
}

.footer-description {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-muted);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-column h4 {
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.footer-column a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 14px;
    transition: all 0.2s ease;
}

.footer-column a:hover {
    color: var(--accent-primary);
    transform: translateX(4px);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
    text-align: center;
    font-size: 14px;
    color: var(--text-muted);
}

/* ===== AUTH PAGES ===== */
.auth-page {
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.auth-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.auth-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1200px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.auth-left {
    padding: 40px;
}

.auth-title {
    font-size: 56px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 20px;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.auth-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 40px;
}

.auth-features {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.auth-feature {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 16px;
    color: var(--text-secondary);
    font-weight: 500;
}

.auth-feature i {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 12px;
    flex-shrink: 0;
}

.auth-right {
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-card {
    width: 100%;
    max-width: 480px;
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: 48px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
}

.auth-card-header {
    margin-bottom: 32px;
}

.auth-card-header h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.auth-card-header p {
    font-size: 14px;
    color: var(--text-muted);
}

.auth-link {
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.auth-link:hover {
    color: var(--accent-secondary);
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper i {
    position: absolute;
    left: 16px;
    color: var(--text-muted);
    font-size: 16px;
    transition: color 0.2s ease;
}

.input-wrapper input {
    width: 100%;
    padding: 16px 16px 16px 52px;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.input-wrapper input::placeholder {
    color: var(--text-muted);
}

.input-wrapper input:focus {
    outline: none;
    border-color: var(--accent-primary);
    background: var(--bg-hover);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.input-wrapper input:focus + i,
.input-wrapper:focus-within i {
    color: var(--accent-primary);
}

.form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text-secondary);
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--accent-primary);
    cursor: pointer;
}

.forgot-link {
    font-size: 14px;
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 500;
}

.forgot-link:hover {
    color: var(--accent-secondary);
}

.auth-divider {
    position: relative;
    text-align: center;
    margin: 32px 0;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border-color);
}

.auth-divider span {
    position: relative;
    background: var(--bg-card);
    padding: 0 16px;
    color: var(--text-muted);
    font-size: 14px;
}

.social-auth {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.social-btn {
    padding: 14px;
    border: 1.5px solid var(--border-color);
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--text-primary);
}

.social-btn:hover {
    border-color: var(--accent-primary);
    background: var(--bg-hover);
    transform: translateY(-2px);
}

.social-btn i {
    font-size: 18px;
}

/* Error message */
.error-message {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
    padding: 14px 16px;
    border-radius: var(--radius-md);
    margin-bottom: 24px;
    font-size: 14px;
}

/*====== HEADER ======*/
.header {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(6, 182, 212, 0.1) 100%);
    padding: 60px 40px 40px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.header-content h1 {
    font-size: 42px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.header-content p {
    font-size: 16px;
    color: var(--text-secondary);
}

/* ===== FORUM PAGE ===== */
.forum-page {
    min-height: 100vh;
    background: var(--bg-primary);
}

.forum-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    align-items: start;
}

.forum-sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-section {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 24px;
}

.sidebar-section h3 {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.category-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.category-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: pointer;
}

.category-item:hover {
    background: var(--bg-tertiary);
    color: var(--accent-primary);
}

.category-item.active {
    background: rgba(16, 185, 129, 0.1);
    color: var(--accent-primary);
}

.category-item i {
    font-size: 16px;
}

.category-count {
    margin-left: auto;
    font-size: 12px;
    color: var(--text-muted);
}

.forum-main {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.forum-filters {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

.search-box {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
}

.search-box i {
    position: absolute;
    left: 16px;
    color: var(--text-muted);
    font-size: 16px;
}

.search-box input {
    width: 100%;
    padding: 14px 16px 14px 52px;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    transition: all 0.2s ease;
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.search-box input::placeholder {
    color: var(--text-muted);
}

.search-box input:focus {
    outline: none;
    border-color: var(--accent-primary);
    background: var(--bg-hover);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.filter-buttons {
    display: flex;
    gap: 8px;
}

.filter-btn {
    padding: 12px 24px;
    background: transparent;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.filter-btn:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    background: rgba(16, 185, 129, 0.05);
}

.filter-btn.active {
    border-color: var(--accent-primary);
    background: var(--accent-primary);
    color: #ffffff;
}

.posts-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.post-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 28px;
    display: flex;
    gap: 20px;
    transition: all 0.3s ease;
}

.post-card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.post-content {
    flex: 1;
    min-width: 0;
}

.post-header {
    margin-bottom: 12px;
}

.post-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    line-height: 1.4;
    cursor: pointer;
    transition: color 0.2s ease;
}

.post-title:hover {
    color: var(--accent-primary);
}

.post-title-link {
    text-decoration: none;
    color: inherit;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
}

.post-author {
    font-weight: 500;
    color: var(--text-secondary);
}

.link-name {
    text-decoration: none;
    color: inherit;
}

.link-name:hover {
    color: var(--accent-primary);
}

.post-dot {
    color: var(--border-color);
}

.post-tag {
    padding: 4px 12px;
    background: rgba(16, 185, 129, 0.1);
    color: var(--accent-primary);
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 500;
}

.post-excerpt {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
}

.post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.post-stats {
    display: flex;
    gap: 24px;
}

.post-stat {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-muted);
}

.post-stat i {
    font-size: 14px;
}

/* Pagination */
.pagination-wrapper {
    margin: 30px 0;
}

.pagination {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
}

.pagination-btn {
    min-width: 44px;
    height: 44px;
    border: 1.5px solid var(--border-color);
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
}

.pagination-btn:hover:not(.disabled) {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    background: rgba(16, 185, 129, 0.05);
    transform: translateY(-2px);
}

.pagination-btn.active {
    border-color: var(--accent-primary);
    background: var(--accent-primary);
    color: #ffffff;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3);
}

.pagination-btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: var(--bg-tertiary);
}

.pagination-dots {
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
    padding: 0 8px;
}

/* ===== PROFILE PAGE ===== */
.profile-header {
    position: relative;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(5, 150, 105, 0.1) 100%);
    border-radius: var(--radius-xl);
    padding: 60px 40px 40px;
    margin: 20px 0 40px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.profile-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.profile-info {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 32px;
    align-items: center;
}

.avatar-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.avatar-large {
    position: relative;
    width: 140px;
    height: 140px;
}

.avatar-large img {
    width: 100%;
    height: 100%;
    border-radius: var(--radius-lg);
    object-fit: cover;
    border: 4px solid var(--bg-card);
    box-shadow: var(--shadow-lg);
}

.author-avatar {
    width: 100%;
    height: 100%;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 48px;
    font-weight: 700;
    border: 4px solid var(--bg-card);
    box-shadow: var(--shadow-lg);
}

.avatar-status {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 4px solid var(--bg-card);
    background: var(--accent-primary);
    box-shadow: 0 0 10px var(--accent-glow);
}

.profile-details {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.profile-name {
    font-size: 40px;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0;
}

.profile-bio {
    font-size: 18px;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.6;
}

.profile-stats {
    display: flex;
    gap: 40px;
    align-items: center;
}

.info-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 14px;
    color: var(--text-secondary);
}

.info-item i {
    width: 20px;
    color: var(--text-muted);
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.social-link:hover {
    background: var(--accent-primary);
    color: #ffffff;
    border-color: var(--accent-primary);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
}

/* ===== PROJECTS PAGE ===== */
.main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.page-header {
    padding: 40px 0 30px;
    margin-bottom: 30px;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.header-title h1 {
    font-size: 36px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.header-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-3px);
}

.stat-card .stat-number {
    font-size: 36px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.stat-card .stat-label {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: all 0.3s ease;
}

.project-card:hover {
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-md), var(--shadow-glow);
    transform: translateY(-4px);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.project-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.project-badge {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.badge-active {
    background: rgba(16, 185, 129, 0.15);
    color: var(--accent-primary);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-paused {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-draft {
    background: rgba(100, 116, 139, 0.15);
    color: var(--text-muted);
    border: 1px solid rgba(100, 116, 139, 0.3);
}

.project-description {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    min-height: 42px;
    margin-bottom: 16px;
}

.project-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 20px;
    padding: 20px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
}

.project-info .info-item {
    text-align: center;
}

.project-info .info-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--accent-primary);
    display: block;
    margin-bottom: 4px;
}

.project-info .info-label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.project-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.project-date {
    font-size: 13px;
    color: var(--text-muted);
}

.project-actions {
    display: flex;
    gap: 10px;
}

/* Empty state */
.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.empty-illustration {
    margin-bottom: 32px;
    opacity: 0.8;
    animation: float 6s ease-in-out infinite;
}

.empty-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.empty-description {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-secondary);
    max-width: 400px;
    margin-bottom: 32px;
}

/* Create form */
.create-form {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px;
    margin-bottom: 40px;
    display: none;
    position: relative;
}

.create-form.show {
    display: block;
    animation: fadeIn 0.3s ease;
}

.form-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 24px;
}

.form-input {
    width: 100%;
    padding: 14px 18px;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 15px;
    font-family: inherit;
    background: var(--bg-tertiary);
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.form-input::placeholder {
    color: var(--text-muted);
}

.form-input:focus {
    outline: none;
    border-color: var(--accent-primary);
    background: var(--bg-hover);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.form-input.error {
    border-color: #ef4444 !important;
}

.form-label {
    display: block;
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.form-group {
    margin-bottom: 24px;
}

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 30px;
}

.access-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.access-option {
    position: relative;
}

.access-option input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.access-label {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--bg-tertiary);
}

.access-label:hover {
    border-color: var(--border-hover);
}

.access-option input[type="radio"]:checked + .access-label {
    border-color: var(--accent-primary);
    background: rgba(16, 185, 129, 0.08);
}

.access-label i {
    font-size: 24px;
    color: var(--text-muted);
    width: 40px;
    text-align: center;
}

.access-option input[type="radio"]:checked + .access-label i {
    color: var(--accent-primary);
}

.access-title {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.access-description {
    display: block;
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.4;
}

.success-message {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: var(--accent-primary);
    padding: 16px 20px;
    border-radius: var(--radius-md);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: fadeIn 0.3s ease;
}

.success-message i {
    font-size: 20px;
}

.error-message-general {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
    padding: 16px 20px;
    border-radius: var(--radius-md);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: fadeIn 0.3s ease;
}

.error-message-general i {
    font-size: 20px;
}

.character-count {
    font-size: 12px;
    color: var(--text-muted);
    text-align: right;
    margin-top: 6px;
}

.character-count.warning {
    color: #f59e0b;
}

.character-count.error {
    color: #ef4444;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 52px;
    }
    
    .auth-container {
        grid-template-columns: 1fr;
    }
    
    .auth-left {
        display: none;
    }
    
    .forum-container {
        grid-template-columns: 1fr;
    }
    
    .forum-sidebar {
        display: none;
    }
    
    .profile-info {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .profile-stats {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 80px 20px;
    }
    
    .hero-title {
        font-size: 40px;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 24px;
    }
    
    .stat-divider {
        width: 60px;
        height: 1px;
    }
    
    .features {
        padding: 80px 20px;
    }
    
    .section-title {
        font-size: 36px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .nav-links {
        display: none;
    }
    
    .nav-container {
        padding: 16px 20px;
    }
    
    .forum-header {
        flex-direction: column;
        gap: 20px;
        text-align: center;
        padding: 40px 20px;
    }
    
    .forum-filters {
        flex-direction: column;
    }
    
    .filter-buttons {
        width: 100%;
        justify-content: center;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .auth-card {
        padding: 32px 24px;
    }
    
    .social-auth {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 32px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .feature-card {
        padding: 28px;
    }
    
    .post-card {
        padding: 20px;
    }
    
    .project-card {
        padding: 20px;
    }
}

/* ===== КНОПКА ПЕРЕКЛЮЧЕНИЯ ТЕМЫ ===== */
.theme-switch-wrapper {
    position: relative;
    display: inline-block;
}

.theme-switch {
    display: none;
}

.theme-switch-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    width: 60px;
    height: 30px;
    background: var(--bg-tertiary);
    border-radius: 50px;
    position: relative;
    border: 1.5px solid var(--border-color);
    transition: background-color 0.3s;
}

.theme-switch-label:hover {
    border-color: var(--accent-primary);
}

.theme-switch-label .switch-toggle {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    transition: transform 0.3s ease;
    background: var(--accent-primary);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.4);
}

.theme-switch:checked + .theme-switch-label .switch-toggle {
    transform: translateX(30px);
}

.theme-switch-label i {
    font-size: 14px;
    z-index: 1;
    padding: 0 6px;
    transition: color 0.3s;
}

.theme-switch-label .fa-sun {
    color: var(--accent-primary);
}

.theme-switch-label .fa-moon {
    color: var(--text-muted);
}

.theme-switch:checked + .theme-switch-label .fa-sun {
    color: var(--text-muted);
}

.theme-switch:checked + .theme-switch-label .fa-moon {
    color: var(--accent-primary);
}