/**
 * Edufin - 404 Not Found Page Styles
 */

/* =================================
   SECTION
   ================================= */

.not-found {
    position: relative;
    min-height: calc(100vh - 5rem); /* account for navbar */
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-primary-green-dark);
    overflow: hidden;
    padding: var(--space-30) var(--space-8);
}

/* =================================
   DOT-GRID BACKGROUND
   ================================= */

.not-found-grid {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(
        circle,
        rgba(225, 238, 87, 0.18) 1px,
        transparent 1px
    );
    background-size: 2rem 2rem;
    mask-image: radial-gradient(
        ellipse 80% 80% at 50% 50%,
        black 40%,
        transparent 100%
    );
    pointer-events: none;
}

/* =================================
   BIG BACKGROUND "404" NUMBER
   ================================= */

.not-found-bg-number {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-display);
    font-weight: var(--font-bold);
    font-size: clamp(12rem, 30vw, 26rem);
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 1px rgba(225, 238, 87, 0.15);
    letter-spacing: -0.05em;
    user-select: none;
    pointer-events: none;
    white-space: nowrap;
    animation: not-found-pulse 6s ease-in-out infinite;
}

@keyframes not-found-pulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* =================================
   CONTENT
   ================================= */

.not-found-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--space-6);
    max-width: 40rem;
    animation: not-found-rise 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes not-found-rise {
    from {
        opacity: 0;
        transform: translateY(2rem);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Badge */
.not-found-badge {
    display: inline-flex;
    align-items: center;
    padding: var(--space-1) var(--space-4);
    background-color: rgba(225, 238, 87, 0.12);
    border: 1px solid rgba(225, 238, 87, 0.35);
    border-radius: var(--radius-full);
    font-family: var(--font-primary);
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-primary-green-light);
    animation: not-found-rise 0.8s 0.1s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* Heading */
.not-found-heading {
    font-family: var(--font-display);
    font-size: clamp(var(--text-3xl), 6vw, var(--text-4xl));
    font-weight: var(--font-bold);
    line-height: var(--leading-tight);
    color: var(--color-base-white);
    animation: not-found-rise 0.8s 0.2s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.not-found-heading-accent {
    color: var(--color-primary-green-light);
}

/* Description */
.not-found-description {
    font-family: var(--font-primary);
    font-size: var(--text-lg);
    font-weight: var(--font-regular);
    line-height: var(--leading-relaxed);
    color: rgba(255, 255, 255, 0.65);
    max-width: 32rem;
    animation: not-found-rise 0.8s 0.3s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* Actions */
.not-found-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-4);
    flex-wrap: wrap;
    margin-top: var(--space-2);
    animation: not-found-rise 0.8s 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* Ghost button variant for dark backgrounds */
.not-found .btn-ghost {
    background-color: transparent;
    color: var(--color-base-white);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: var(--space-3) var(--space-6);
    font-size: var(--text-lg);
    font-weight: var(--font-semibold);
    line-height: 1.67;
}

.not-found .btn-ghost:hover {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-1px);
}

.not-found .btn-ghost:active {
    transform: translateY(0);
}

/* =================================
   RESPONSIVE
   ================================= */

@media (max-width: 48rem) {
    .not-found {
        padding: var(--space-20) var(--space-6);
    }

    .not-found-heading {
        font-size: var(--text-3xl);
    }

    .not-found-description {
        font-size: var(--text-base);
    }

    .not-found-actions {
        flex-direction: column;
        width: 100%;
    }

    .not-found-actions .btn {
        width: 100%;
        justify-content: center;
    }
}
