/* 404 Error Page Specific Styles */

.error-hero {
    padding: 6rem 0 4rem;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--secondary-color) 100%);
    text-align: center;
    margin-top: 80px;
    min-height: 60vh;
    display: flex;
    align-items: center;
}

.error-content {
    max-width: 600px;
    margin: 0 auto;
}

.error-icon {
    font-size: 5rem;
    margin-bottom: 1rem;
    animation: bounce 2s infinite;
}

.error-content h1 {
    font-size: 8rem;
    color: var(--gold-color);
    margin: 0;
    line-height: 1;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: pulse 2s infinite;
}

.error-content h2 {
    font-size: 2.5rem;
    color: var(--text-light);
    margin: 0 0 1.5rem;
    font-weight: 600;
}

.error-content p {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 2.5rem;
    color: var(--text-light);
    opacity: 0.9;
}

.error-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Helpful Links Section */
.helpful-links {
    padding: 4rem 0;
    background: var(--primary-color);
    text-align: center;
}

.helpful-links h3 {
    color: var(--gold-color);
    margin-bottom: 1rem;
    font-size: 2rem;
}

.helpful-links p {
    font-size: 1.1rem;
    margin-bottom: 3rem;
    color: var(--text-light);
    opacity: 0.8;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.link-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 215, 0, 0.2);
    text-align: center;
    transition: var(--transition);
}

.link-card:hover {
    border-color: var(--gold-color);
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.link-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.link-card h4 {
    color: var(--gold-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.link-card p {
    margin-bottom: 1.5rem;
    line-height: 1.6;
    font-size: 0.95rem;
    opacity: 0.9;
}

.link-button {
    color: var(--gold-color);
    text-decoration: none;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--gold-color);
    border-radius: var(--border-radius);
    transition: var(--transition);
    display: inline-block;
}

.link-button:hover {
    background: var(--gold-color);
    color: var(--text-dark);
    transform: translateY(-2px);
}

/* CTA Section */
.cta-section {
    padding: 4rem 0;
    background: var(--secondary-color);
    text-align: center;
}

.cta-section h3 {
    color: var(--gold-color);
    margin-bottom: 1rem;
    font-size: 2rem;
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--text-light);
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Animations */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-20px);
    }
    60% {
        transform: translateY(-10px);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* Animation for link cards */
.link-card {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
    transform: translateY(30px);
}

.link-card:nth-child(1) { animation-delay: 0.1s; }
.link-card:nth-child(2) { animation-delay: 0.2s; }
.link-card:nth-child(3) { animation-delay: 0.3s; }
.link-card:nth-child(4) { animation-delay: 0.4s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design for 404 */
@media (max-width: 768px) {
    .error-hero {
        padding: 4rem 0 2rem;
        min-height: 50vh;
    }

    .error-content h1 {
        font-size: 6rem;
    }

    .error-content h2 {
        font-size: 2rem;
    }

    .error-content p {
        font-size: 1.1rem;
    }

    .error-actions {
        flex-direction: column;
        align-items: center;
    }

    .helpful-links,
    .cta-section {
        padding: 2rem 0;
    }

    .helpful-links h3,
    .cta-section h3 {
        font-size: 1.6rem;
    }

    .links-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .error-content h1 {
        font-size: 4rem;
    }

    .error-content h2 {
        font-size: 1.6rem;
    }

    .error-content p {
        font-size: 1rem;
    }

    .error-icon {
        font-size: 3rem;
    }

    .link-card {
        padding: 1.5rem;
    }

    .link-icon {
        font-size: 2.5rem;
    }
}

/* Accessibility Improvements */
.error-content:focus-within {
    outline: 2px solid var(--gold-color);
    outline-offset: 2px;
}

.link-card:focus-within {
    outline: 2px solid var(--gold-color);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .error-content h1 {
        color: #ffffff;
        text-shadow: 2px 2px 4px #000000;
    }

    .link-card {
        background: rgba(0, 0, 0, 0.9);
        border-color: var(--gold-color);
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .error-icon {
        animation: none;
    }

    .error-content h1 {
        animation: none;
    }

    .link-card {
        animation: none;
        opacity: 1;
        transform: none;
    }
}

/* Print styles for 404 */
@media print {
    .error-hero {
        background: white;
        color: black;
        margin-top: 0;
    }

    .error-content h1 {
        color: black;
        text-shadow: none;
    }

    .helpful-links,
    .cta-section {
        background: white;
        color: black;
    }

    .link-card {
        background: white;
        border: 1px solid #ccc;
        color: black;
    }

    .link-button {
        color: black;
        border-color: black;
    }
}
