@import "_variables.css";
@import "_project_detail.css";
@import "_base.css";
@import "_header.css";
@import "_authentication.css";
@import "_modals.css";
@import "_forms.css";
@import "_responsive.css";
@import "_utilities.css";
@import "_layout.css";
@import "_articles.css";
@import "_footer.css";
@import "_article_detail.css";
@import "_edit_profile.css";
@import "_about_us.css";

.form-errors {
    margin: 1rem 0;
    padding: 1rem;
    background: var(--bg-error);
    border: 1px solid var(--border-error);
    border-radius: 8px;
    color: var(--text-error);
}

.error-message {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.error-message p {
    margin: 0;
    font-weight: 600;
}

/* Button styles */
.form-submit {
    width: 100%;
    padding: 1rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.form-submit:hover {
    background: var(--primary-dark);
}

.form-submit:disabled {
    background: var(--gray);
    cursor: not-allowed;
}

.password-toggle {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 1.2rem;
}

.password-toggle:hover {
    color: var(--primary-color);
}

/* Loading state */
.submit-loader {
    font-size: 1.2rem;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Form options */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 1rem 0;
    padding: 0 1rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.checkbox-custom {
    width: 1rem;
    height: 1rem;
    border: 2px solid var(--text-secondary);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.checkbox-custom::after {
    content: '';
    width: 0.5rem;
    height: 0.3rem;
    border: 2px solid var(--primary-color);
    border-top: none;
    border-right: none;
    transform: rotate(-45deg);
    display: none;
}

.checkbox-label input:checked + .checkbox-custom::after {
    display: block;
}

.forgot-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
}

.forgot-link:hover {
    text-decoration: underline;
}

.header {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-md);
}

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

.logo {
    font-size: 2rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover, .nav-link.active {
    color: var(--accent-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.theme-toggle {
    background: var(--bg-secondary);
    border: 2px solid var(--border);
    border-radius: 50px;
    padding: 0.6rem 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.theme-toggle:hover {
    border-color: var(--accent-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.theme-icon {
    width: 20px;
    height: 20px;
    transition: all 0.3s ease;
    fill: currentColor;
    color: var(--text-primary);
    display: block;
}

#theme-icon-sun {
    display: block; /* Показываем по умолчанию для светлой темы */
}

#theme-icon-moon {
    display: none; /* Скрываем по умолчанию */
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

/* ===== LANGUAGE SELECTOR ===== */
/* ===== LANGUAGE SELECTOR ===== */
.language-form {
    position: relative;
    display: flex; /* Используем flexbox для выравнивания */
    align-items: center;
}

.language-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    fill: currentColor;
    color: var(--text-secondary);
    pointer-events: none; /* Чтобы иконка не мешала клику */
    transition: color 0.3s ease;
}

.language-form:hover .language-icon {
    color: var(--text-primary);
}

.language-form select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-color: var(--bg-secondary, #f0f0f0);
    color: var(--text-primary, #333333);
    padding: 10px 15px 10px 40px; /* Отступ слева для иконки */
    border: 1px solid var(--border, #e0e0e0);
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
    padding-right: 30px; /* Место для стрелки */
}

.language-form select:hover {
    border-color: var(--accent-primary, #007bff);
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.1);
}

.language-form select:focus {
    border-color: var(--accent-primary, #007bff);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.2);
}


/* ===== БЛОК АВТОРИЗАЦИИ ===== */
.auth-section {
    display: flex;
    align-items: center;
}


.auth-guest {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.auth-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.auth-btn::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;
}

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

.login-btn {
    background: transparent;
    color: var(--text-secondary);
    border-color: var(--border);
    padding: 0.6rem 1.2rem; /* Уменьшаем отступы */
}

.login-btn:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border-color: var(--border);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.signup-btn {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-md);
}

.signup-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.auth-icon {
    width: 20px;
    height: 20px;
}

/* ===== ПРОФИЛЬ ПОЛЬЗОВАТЕЛЯ ===== */
.auth-user {
    position: relative;
    display: flex;
    align-items: center;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1.25rem;
    border-radius: 50px;
    background: var(--bg-secondary);
    border: 2px solid var(--border);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.user-profile:hover {
    border-color: var(--accent-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.user-avatar {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--accent-primary);
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-status {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 12px;
    height: 12px;
    background: #10b981;
    border: 2px solid var(--bg-card);
    border-radius: 50%;
}

.user-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.user-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.user-role {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.dropdown-arrow {
    font-size: 0.7rem;
    color: var(--text-secondary);
    transition: transform 0.3s ease;
}

.user-profile:hover .dropdown-arrow {
    transform: rotate(180deg);
}

/* ===== ВЫПАДАЮЩЕЕ МЕНЮ ПОЛЬЗОВАТЕЛЯ ===== */
.user-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    width: 320px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: var(--shadow-xl);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 1000;
    backdrop-filter: blur(20px);
}

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

.user-menu-header {
    padding: 2rem;
    background: var(--gradient-primary);
    border-radius: 20px 20px 0 0;
    color: white;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-avatar-large {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(255,255,255,0.3);
}

.user-avatar-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-details {
    flex: 1;
}

.user-name-large {
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
}

.user-email {
    opacity: 0.9;
    font-size: 0.9rem;
}

.user-menu-divider {
    height: 1px;
    background: var(--border);
    margin: 0.5rem 0;
}

.user-menu-items {
    padding: 1rem;
}

.user-menu-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s ease;
    margin-bottom: 0.5rem;
}

.user-menu-item:hover {
    background: var(--bg-secondary);
    transform: translateX(5px);
}

.user-menu-item:last-child {
    margin-bottom: 0;
}

.logout-item {
    color: #ef4444;
}

.logout-item:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}

.menu-icon {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

/* ===== МОДАЛЬНЫЕ ОКНА ===== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--bg-card);
    border-radius: 24px;
    width: 90%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    /* box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3); */ /* Temporarily remove box-shadow */
    border: 1px solid var(--border);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

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

.modal-title {
    font-size: 1.8rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.modal-close:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
    transform: rotate(90deg);
}

/* ===== ФОРМЫ АВТОРИЗАЦИИ ===== */
.auth-form {
    padding: 2rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.form-input {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid var(--border);
    border-radius: 12px;
    font-size: 1rem;
    background: var(--bg-secondary);
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--accent-primary);
    /* box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1); */ /* Temporarily remove box-shadow */
    background: var(--bg-card);
}

.form-input::placeholder {
    color: var(--text-secondary);
    opacity: 0.7;
}

.form-input:disabled {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    cursor: not-allowed;
}

/* ===== ПОЛЕ ПАРОЛЯ ===== */
.password-input {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    color: var(--text-secondary);
    transition: color 0.3s ease;
    border-radius: 6px;
}

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

/* ===== ИНДИКАТОР СИЛЫ ПАРОЛЯ ===== */
.password-strength {
    margin-top: 0.75rem;
}

.strength-indicator {
    width: 100%;
    height: 4px;
    background: var(--border);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.strength-bar {
    height: 100%;
    width: 0%;
    background: #ef4444;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.strength-text {
    font-size: 0.85rem;
    color: #ef4444;
    font-weight: 500;
    transition: color 0.3s ease;
}

/* ===== ОПЦИИ ФОРМЫ ===== */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkbox-custom {
    width: 18px;
    height: 18px;
    border: 2px solid var(--border);
    border-radius: 4px;
    margin-right: 0.5rem;
    position: relative;
    transition: all 0.3s ease;
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.forgot-link {
    color: var(--accent-primary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

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

/* ===== КНОПКА ОТПРАВКИ ФОРМЫ ===== */
.form-submit {
    width: 100%;
    padding: 1rem 2rem;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
}

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

.form-submit:hover::before {
    left: 100%;
}

.form-submit:hover {
    transform: translateY(-2px);
    /* box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4); */ /* Temporarily remove box-shadow */
}

.form-submit:disabled {
    cursor: not-allowed;
    opacity: 0.7;
    transform: none;
    /* box-shadow: none; */ /* Temporarily remove box-shadow */
}

.submit-loader {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ===== РАЗДЕЛИТЕЛЬ ===== */
.form-divider {
    text-align: center;
    margin: 1.5rem 0;
    position: relative;
}

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

.form-divider span {
    background: var(--bg-card);
    padding: 0 1rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    position: relative;
    z-index: 1;
}

/* ===== СОЦИАЛЬНЫЕ КНОПКИ ===== */
.social-login {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    border: 2px solid var(--border);
    border-radius: 12px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.social-btn:hover {
    transform: translateY(-2px);
    /* box-shadow: 0 4px 15px var(--shadow); */ /* Temporarily remove box-shadow */
}

.google-btn:hover {
    border-color: #4285f4;
    background: rgba(66, 133, 244, 0.1);
    color: #4285f4;
}

.github-btn:hover {
    border-color: #333;
    background: rgba(51, 51, 51, 0.1);
    color: #333;
}

[data-theme="dark"] .github-btn:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.social-icon {
    font-size: 1.2rem;
}

/* ===== ПЕРЕКЛЮЧЕНИЕ ФОРМ ===== */
.form-switch {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

.form-switch a {
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.form-switch a:hover {
    color: var(--accent-secondary);
    text-decoration: underline;
}

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 768px) {
    .nav-actions {
        gap: 1rem;
    }
    
    .auth-guest {
        gap: 0.5rem;
    }
    
    .auth-btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
    
    .signup-btn .auth-icon,
    .login-btn .auth-icon {
        display: none;
    }
    
    .user-profile {
        padding: 0.5rem 1rem;
    }
    
    .user-info {
        display: none;
    }
    
    .dropdown-arrow {
        display: none;
    }
    
    .user-menu {
        width: 280px;
        right: -20px;
    }
    
    .modal-content {
        width: 95%;
        margin: 1rem;
    }
    
    .modal-header {
        padding: 1.5rem 1.5rem 1rem;
    }
    
    .auth-form {
        padding: 1.5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .social-login {
        grid-template-columns: 1fr;
    }
    
    .theme-toggle {
        padding: 0.5rem;
    }
    
    .theme-toggle #theme-text {
        display: none;
    }
}

@media (max-width: 480px) {
    .nav-links {
        display: none;
    }
    
    .auth-guest {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .auth-btn {
        padding: 0.75rem 1.25rem;
        width: 100%;
        justify-content: center;
    }
    
    .user-menu {
        width: calc(100vw - 2rem);
        right: 1rem;
        left: 1rem;
    }
    
    .modal-content {
        width: calc(100vw - 2rem);
        margin: 1rem;
    }
    
    .modal-title {
        font-size: 1.5rem;
    }
}

/* ===== АНИМАЦИИ ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-content {
    animation: fadeInScale 0.3s ease-out;
}

.user-menu {
    animation: fadeInUp 0.3s ease-out;
}

/* ===== ДОПОЛНИТЕЛЬНЫЕ ЭФФЕКТЫ ===== */
.auth-btn,
.form-submit,
.social-btn {
    position: relative;
    overflow: hidden;
}

.auth-btn::after,
.form-submit::after,
.social-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease;
}

.auth-btn:active::after,
.form-submit:active::after,
.social-btn:active::after {
    width: 200px;
    height: 200px;
}

/* ===== СОСТОЯНИЯ ФОКУСА ===== */
*:focus {
    outline: none;
}



/* ===== СКРОЛЛБАР ===== */
.modal-content::-webkit-scrollbar {
    width: 6px;
}

.modal-content::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 3px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: var(--accent-primary);
}

/* ===== СОСТОЯНИЯ ЗАГРУЗКИ ===== */
.loading {
    pointer-events: none;
    opacity: 0.7;
    transition: opacity var(--transition-normal);
}

.loading .form-input {
    background: var(--bg-secondary);
    color: var(--text-secondary);
}

/* ===== УВЕДОМЛЕНИЯ (для будущего использования) ===== */
.notification {
    position: fixed;
    top: 2rem;
    right: 2rem;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    color: white;
    font-weight: 600;
    z-index: 3000;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
}

.notification.show {
    opacity: 1;
    transform: translateX(0);
}

.notification.success {
    background: linear-gradient(135deg, #10b981, #059669);
}

.notification.error {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.notification.warning {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.main-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 3rem;
    min-height: calc(100vh - 120px);
}

.sidebar {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 2rem;
    /* box-shadow: 0 10px 40px var(--shadow); */ /* Temporarily remove box-shadow */
    border: 1px solid var(--border);
    height: fit-content;
    position: sticky;
    top: 120px;
}

.search-container {
    margin-bottom: 2rem;
}

.search-label {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    display: block;
}

.search-box {
    width: 100%;
    padding: 1rem 1.5rem;
    border: 2px solid var(--border);
    border-radius: 15px;
    font-size: 1rem;
    background: var(--bg-secondary);
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.search-box:focus {
    outline: none;
    border-color: var(--accent-primary);
    /* box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1); */ /* Temporarily remove box-shadow */
    background: var(--bg-card);
}

.filter-section {
    margin-bottom: 2rem;
}

.filter-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-title::before {
    content: '';
    width: 4px;
    height: 20px;
    background: var(--gradient-secondary);
    border-radius: 2px;
}

.tag-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.tag-filter {
    background: var(--bg-secondary);
    border: 2px solid var(--border);
    color: var(--text-secondary);
    padding: 0.6rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
}

.tag-filter:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    transform: translateY(-2px);
}

.tag-filter.active {
    background: var(--gradient-primary);
    border-color: transparent;
    color: white;
    /* box-shadow: 0 6px 20px rgba(59, 130, 246, 0.3); */ /* Temporarily remove box-shadow */
}

.content-area {
    display: flex;
    flex-direction: column;
}

.articles-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sort-options {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.sort-select {
    padding: 0.8rem 1.2rem;
    border: 2px solid var(--border);
    border-radius: 10px;
    background: var(--bg-card);
    color: var(--text-primary);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sort-select:focus {
    outline: none;
    border-color: var(--accent-primary);
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.article-card {
    background: var(--bg-card);
    border-radius: 20px;
    overflow: hidden;
    /* box-shadow: 0 10px 40px var(--shadow); */ /* Temporarily remove box-shadow */
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid var(--border);
    position: relative;
    cursor: pointer;
    animation: fadeInUp var(--transition-normal);
    will-change: transform, opacity;
}

.article-card:hover {
    transform: translateY(-12px);
    /* box-shadow: 0 25px 60px var(--shadow-lg); */ /* Temporarily remove box-shadow */
}

.article-image {
    height: 220px;
    background: var(--gradient-primary);
    position: relative;
    overflow: hidden;
}

.article-card:nth-child(even) .article-image {
    background: var(--gradient-secondary);
}

.article-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="10" height="10" patternUnits="userSpaceOnUse"><circle cx="5" cy="5" r="1" fill="rgba(255,255,255,0.2)"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
}

.article-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(transparent, rgba(0,0,0,0.4));
}

.article-content {
    padding: 2rem;
}

.article-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.2rem;
    font-size: 0.9rem;
}

.article-tag {
    background: var(--gradient-primary);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.article-date {
    color: var(--text-secondary);
    font-weight: 500;
}

.article-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.3;
    color: var(--text-primary);
}

.article-excerpt {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

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

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.read-more:hover {
    color: var(--accent-hover);
    transform: translateX(5px);
}

.article-stats {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 3rem;
}

.pagination a, .pagination span {
    padding: 1rem 1.5rem;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid var(--border);
    color: var(--text-primary);
    font-weight: 500;
}

.pagination a:hover {
    background: var(--accent-primary);
    color: white;
    border-color: var(--accent-primary);
    transform: translateY(-3px);
    /* box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3); */ /* Temporarily remove box-shadow */
}

.pagination .current {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
    /* box-shadow: 0 6px 20px rgba(59, 130, 246, 0.3); */ /* Temporarily remove box-shadow */
}

.footer {
    background: var(--bg-secondary);
    padding: 3rem 2rem;
    text-align: center;
    border-top: 1px solid var(--border);
    margin-top: 4rem;
}

@media (max-width: 1024px) {
    .main-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .sidebar {
        position: static;
        margin-bottom: 2rem;
    }
    
    .articles-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    }
}

@media (max-width: 768px) {
    .nav {
        padding: 1rem;
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-links {
        order: -1;
    }
    
    .logo {
        font-size: 1.8rem;
    }
    
    .main-container {
        padding: 1rem;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .articles-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
}

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

.article-card {
    animation: fadeInUp var(--transition-normal);
    will-change: transform, opacity;
}

.article-card:nth-child(2) { animation-delay: 0.1s; }
.article-card:nth-child(3) { animation-delay: 0.2s; }
.article-card:nth-child(4) { animation-delay: 0.3s; }
.article-card:nth-child(5) { animation-delay: 0.4s; }
.article-card:nth-child(6) { animation-delay: 0.5s; }