/* 
 * Дополнительные стили для страницы 404 и других элементов
 * Файл: 404-styles.css
 */

/* === Страница 404 ===================================================== */
.error-404 {
    text-align: center;
    padding: 4rem 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.error-header {
    margin-bottom: 3rem;
}

.error-title {
    font-size: 8rem;
    font-weight: 900;
    color: var(--primary-color);
    margin: 0;
    line-height: 1;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.error-subtitle {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin: 1rem 0;
}

.error-description {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 2rem;
}

/* Поиск на странице 404 */
.error-search {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
}

.error-search h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

/* Популярные страницы */
.error-popular {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
}

.error-popular h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.popular-pages {
    list-style: none;
    padding: 0;
    margin: 0;
}

.popular-pages li {
    margin-bottom: 0.5rem;
}

.popular-pages a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.popular-pages a:hover {
    color: var(--secondary-color);
}

/* Категории на странице 404 */
.error-categories {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
}

.error-categories h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.category-list li {
    margin-bottom: 0.5rem;
}

.category-list a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
    padding: 0.5rem;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.05);
}

.category-list a:hover {
    color: var(--secondary-color);
    background: rgba(0, 0, 0, 0.1);
}

/* Кнопки действий */
.error-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--light-text);
}

.btn-primary:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background: var(--card-bg);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--light-text);
    transform: translateY(-2px);
}

/* === Форма поиска =================================================== */
.search-form {
    display: flex;
    gap: 0.5rem;
    max-width: 400px;
    margin: 0 auto;
}

.search-form input[type="search"] {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.search-form input[type="search"]:focus {
    outline: none;
    border-color: var(--primary-color);
}

.search-form button {
    padding: 0.75rem 1.5rem;
    background: var(--primary-color);
    color: var(--light-text);
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.search-form button:hover {
    background: var(--secondary-color);
}

/* === Уведомления =================================================== */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    color: var(--light-text);
    font-weight: 500;
    z-index: 10000;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    max-width: 300px;
}

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

.notification-info {
    background: var(--primary-color);
}

.notification-success {
    background: #28a745;
}

.notification-error {
    background: #dc3545;
}

.notification-warning {
    background: #ffc107;
    color: #333;
}

/* === Всплывающие подсказки ======================================== */
.tooltip {
    position: absolute;
    background: var(--dark-bg);
    color: var(--light-text);
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    font-size: 0.875rem;
    z-index: 1000;
    pointer-events: none;
    white-space: nowrap;
}

.tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: var(--dark-bg);
}

/* === Анимации ====================================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.8s ease forwards;
}

/* Анимация смены темы */
.theme-transitioning * {
    transition: all 0.3s ease !important;
}

/* === Медиа запросы для 404 ======================================== */
@media (max-width: 768px) {
    .error-title {
        font-size: 6rem;
    }
    
    .error-subtitle {
        font-size: 2rem;
    }
    
    .error-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .category-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .error-404 {
        padding: 2rem 1rem;
    }
    
    .error-title {
        font-size: 4rem;
    }
    
    .error-subtitle {
        font-size: 1.5rem;
    }
    
    .error-description {
        font-size: 1rem;
    }
    
    .search-form {
        flex-direction: column;
    }
    
    .search-form button {
        width: 100%;
    }
} 