/* Стили для страницы "Ничего не найдено" */

:root {
    --primary-color: #4CAF50;
    --primary-hover: #45a049;
    --primary-dark: #2E7D32;
    --gradient-primary: linear-gradient(135deg, #4CAF50 0%, #45a049 50%, #2E7D32 100%);
    --gradient-success: linear-gradient(135deg, #4CAF50, #45a049);
    --text-primary: #2E7D32;
    --text-secondary: #555;
    --text-light: #4CAF50;
    --border-color: #4CAF50;
    --shadow-light: 0 4px 15px rgba(76, 175, 80, 0.3);
    --shadow-medium: 0 8px 25px rgba(76, 175, 80, 0.3);
    --shadow-heavy: 0 20px 40px rgba(76, 175, 80, 0.2);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --transition: all 0.3s ease;
}

.not-found-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    line-height: 1.6;
}

.not-found-content {
    max-width: 600px;
    width: 100%;
    text-align: center;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    padding: 3rem 2rem;
    box-shadow: var(--shadow-heavy);
    animation: slideUp 0.6s ease-out;
    position: relative;
    overflow: hidden;
    border: 2px solid rgba(76, 175, 80, 0.1);
}

.not-found-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-success);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Иконка */
.not-found-icon {
    margin-bottom: 2rem;
    position: relative;
}

.not-found-icon svg {
    width: 120px;
    height: 120px;
    margin: 0 auto;
    filter: drop-shadow(0 4px 8px rgba(76, 175, 80, 0.2));
}

.pulse-circle, .pulse-line {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { 
        opacity: 0.3; 
        transform: scale(1);
    }
    50% { 
        opacity: 1; 
        transform: scale(1.05);
    }
}

/* Заголовки */
.not-found-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 1rem 0;
    background: var(--gradient-success);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 4px rgba(76, 175, 80, 0.1);
}

.not-found-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin: 0 auto 2rem auto;
    line-height: 1.6;
    max-width: 500px;
    text-align: center;
}

/* Информационные элементы */
.not-found-info {
    display: flex;
    flex-direction: column;
    margin: 0 auto 2.5rem auto;
    width: fit-content;
}

.info-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: var(--text-light);
    font-size: 0.95rem;
    padding: 0.5rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    width: fit-content;
}

.info-item:hover {
    background: rgba(76, 175, 80, 0.05);
    transform: translateX(5px);
}

.info-icon {
    width: 20px;
    height: 20px;
    color: var(--primary-color);
    flex-shrink: 0;
    transition: var(--transition);
}

.info-item:hover .info-icon {
    transform: scale(1.1);
}

/* Кнопки действий */
.not-found-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
}

.action-btn::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;
}

.action-btn:hover::before {
    left: 100%;
}

.primary-btn {
    background: var(--gradient-success);
    color: white;
    box-shadow: var(--shadow-light);
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
    background: linear-gradient(135deg, #45a049, #2E7D32);
}

.secondary-btn {
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.secondary-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-light);
}

.btn-icon {
    width: 18px;
    height: 18px;
    transition: var(--transition);
}

.action-btn:hover .btn-icon {
    transform: scale(1.1);
}

/* Полезные ссылки */
.useful-links {
    margin-top: 2rem;
}

.links-title {
    font-size: 1.2rem;
    color: var(--text-primary);
    margin: 0 0 1.5rem 0;
    font-weight: 600;
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    max-width: 500px;
    margin: 0 auto;
}

.link-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.5rem 1rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
    border: 2px solid rgba(76, 175, 80, 0.2);
    position: relative;
    overflow: hidden;
}

.link-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-success);
    opacity: 0;
    transition: var(--transition);
    z-index: -1;
}

.link-card:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

.link-card:hover::before {
    opacity: 0.05;
}

.link-icon {
    width: 32px;
    height: 32px;
    color: var(--primary-color);
    transition: var(--transition);
}

.link-card:hover .link-icon {
    color: white;
    transform: scale(1.1) rotate(5deg);
}

.link-card span {
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition);
}

/* Адаптивность */
@media (max-width: 768px) {
    .not-found-container {
        padding: 1rem;
    }
    
    .not-found-content {
        padding: 2rem 1.5rem;
    }
    
    .not-found-title {
        font-size: 2rem;
    }
    
    .not-found-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .action-btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .links-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .not-found-title {
        font-size: 1.75rem;
    }
    
    .not-found-subtitle {
        font-size: 1rem;
    }
    
    .links-grid {
        grid-template-columns: 1fr;
    }
    
    .not-found-content {
        padding: 1.5rem 1rem;
    }
    
    .action-btn {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
}

/* Анимация для иконок в ссылках */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-5px);
    }
    60% {
        transform: translateY(-3px);
    }
}

.link-card:hover .link-icon {
    animation: bounce 0.6s ease-in-out;
}

/* Эффект печатания для заголовка */
@keyframes typewriter {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

.not-found-title {
    overflow: hidden;
    white-space: nowrap;
    animation: typewriter 2s steps(40, end);
}

/* Плавное появление элементов */
.not-found-info,
.not-found-actions,
.useful-links {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
}

.not-found-info {
    animation-delay: 0.2s;
}

.not-found-actions {
    animation-delay: 0.4s;
}

.useful-links {
    animation-delay: 0.8s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
} 