/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --background: #363138;
    --foreground: #f5edd3;
    --primary: #DFAF1E;
    --muted-foreground: rgba(245, 237, 211, 0.7);
    --border: rgba(223, 175, 30, 0.2);
    --glass-bg: rgba(223, 175, 30, 0.1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(180deg, #363138, #2d272f);
    color: var(--foreground);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Container */
.container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 1rem;
    position: relative;
    overflow: hidden;
}

.content {
    max-width: 64rem;
    width: 100%;
    text-align: center;
    position: relative;
    z-index: 10;
}

/* Decorative Shapes */
.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    pointer-events: none;
}

.shape-1 {
    top: 5rem;
    left: 2.5rem;
    width: 5rem;
    height: 5rem;
    background: rgba(223, 175, 30, 0.2);
    animation: float 6s ease-in-out infinite;
}

.shape-2 {
    bottom: 8rem;
    right: 4rem;
    width: 8rem;
    height: 8rem;
    background: rgba(223, 175, 30, 0.15);
    animation: float 6s ease-in-out infinite 2s;
}

.shape-3 {
    top: 33.333%;
    right: 25%;
    width: 4rem;
    height: 4rem;
    background: rgba(223, 175, 30, 0.1);
    animation: float 6s ease-in-out infinite;
}

/* Illustration */
.illustration {
    margin-bottom: 2rem;
}

.illustration img {
    width: 100%;
    max-width: 48rem;
    height: auto;
    opacity: 0.9;
    margin: 0 auto;
    display: block;
}

/* Error Code */
.error-code h1 {
    font-size: 6rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary), #f4d03f, var(--primary));
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    animation: gradient-shift 3s ease infinite;
}

@media (min-width: 768px) {
    .error-code h1 {
        font-size: 9rem;
    }
}

/* Error Message */
.error-message {
    margin-bottom: 2rem;
}

.error-message h2 {
    font-size: 2rem;
    font-weight: bold;
    color: var(--foreground);
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .error-message h2 {
        font-size: 2.5rem;
    }
}

.error-message p {
    font-size: 1.125rem;
    color: var(--muted-foreground);
    max-width: 48rem;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .error-message p {
        font-size: 1.25rem;
    }
}

/* Path Info */
.path-info {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    margin-bottom: 2rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

.path-info code {
    background: rgba(223, 175, 30, 0.15);
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-family: 'Courier New', monospace;
    color: var(--primary);
}

.glass-effect {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
}

/* Buttons */
.buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    margin-bottom: 3rem;
}

@media (min-width: 640px) {
    .buttons {
        flex-direction: row;
    }
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 0.5rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #f4d03f);
    color: var(--background);
    box-shadow: 0 0 30px rgba(223, 175, 30, 0);
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(223, 175, 30, 0.5);
}

.btn-outline {
    background: transparent;
    color: var(--foreground);
    border: 2px solid rgba(223, 175, 30, 0.5);
}

.btn-outline:hover {
    background: rgba(223, 175, 30, 0.1);
    border-color: var(--primary);
}

.icon {
    width: 1.25rem;
    height: 1.25rem;
}

/* Help Text */
.help-text {
    padding-top: 2rem;
}

.help-text p {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

/* Animations */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

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

@keyframes gradient-shift {
    0% {
        background-position: 0% center;
    }
    50% {
        background-position: 100% center;
    }
    100% {
        background-position: 0% center;
    }
}

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

.delay-1 {
    animation-delay: 0.1s;
    opacity: 0;
}

.delay-2 {
    animation-delay: 0.2s;
    opacity: 0;
}

.delay-3 {
    animation-delay: 0.3s;
    opacity: 0;
}

.delay-4 {
    animation-delay: 0.4s;
    opacity: 0;
}

.delay-5 {
    animation-delay: 0.5s;
    opacity: 0;
}
