/* Page Not Found Styles - Mobile First */
.notfound-page {
    width: 100%;
    height: 100vh;
    display: flex;
    overflow: hidden;
}

/* Hero Section */
.notfound-hero {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: var(--spacing-lg);
    text-align: center;
}

.notfound-content {
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
}

.notfound-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    flex-wrap: wrap;
}

.notfound-icon {
    flex-shrink: 0;
}

.notfound-icon i {
    font-size: 2.5rem;
    opacity: 0.9;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.notfound-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin: 0;
    background: linear-gradient(45deg, rgba(255,255,255,0.9), rgba(255,255,255,0.7));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.notfound-hero h2 {
    font-size: var(--font-size-lg);
    margin-bottom: var(--spacing-sm);
    font-weight: 600;
}

.notfound-hero p {
    font-size: var(--font-size-sm);
    opacity: 0.9;
    line-height: 1.4;
    margin-bottom: var(--spacing-lg);
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* Action Cards inside Hero */
.action-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-sm);
    max-width: 500px;
    margin: 0 auto;
    width: 100%;
}

.action-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    text-align: center;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
    color: white;
}

.action-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, rgba(255,255,255,0.8), rgba(255,255,255,0.4));
    transform: scaleX(0);
    transition: var(--transition-normal);
}

.action-card:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.action-card:hover::before {
    transform: scaleX(1);
}

.action-icon {
    margin-bottom: var(--spacing-sm);
}

.action-icon i {
    font-size: 1.5rem;
    color: white;
    background: rgba(255, 255, 255, 0.2);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.action-card h3 {
    font-size: var(--font-size-md);
    margin-bottom: var(--spacing-xs);
    color: white;
    font-weight: 600;
}

.action-card p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: var(--spacing-sm);
    line-height: 1.3;
    font-size: var(--font-size-xs);
    display: none; /* Hide descriptions on mobile by default */
}

.action-card .btn {
    min-width: 140px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary-color);
    border: none;
    padding: var(--spacing-sm) var(--spacing-md);
    font-size: var(--font-size-sm);
}

.action-card .btn:hover {
    background: white;
    transform: translateY(-1px);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* Responsive Design */
@media (min-width: 480px) {
    .action-card p {
        display: block; /* Show descriptions on larger mobile screens */
    }
    
    .action-cards {
        gap: var(--spacing-md);
    }
    
    .action-card {
        padding: var(--spacing-lg);
    }
}

@media (min-width: 768px) {
    .notfound-hero {
        padding: var(--spacing-xl);
    }
    
    .notfound-header {
        gap: var(--spacing-lg);
        margin-bottom: var(--spacing-lg);
    }
    
    .notfound-icon i {
        font-size: 3.5rem;
    }
    
    .notfound-hero h1 {
        font-size: 4rem;
    }
    
    .notfound-hero h2 {
        font-size: var(--font-size-xl);
        margin-bottom: var(--spacing-md);
    }
    
    .notfound-hero p {
        font-size: var(--font-size-md);
        margin-bottom: var(--spacing-xl);
    }
    
    .action-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-lg);
        max-width: 500px;
    }
    
    .action-card p {
        display: block;
        font-size: var(--font-size-sm);
        margin-bottom: var(--spacing-md);
    }
    
    .action-icon i {
        font-size: 1.8rem;
        width: 50px;
        height: 50px;
    }
    
    .action-card h3 {
        font-size: var(--font-size-lg);
        margin-bottom: var(--spacing-sm);
    }
    
    .action-card .btn {
        min-width: 160px;
        font-size: var(--font-size-md);
    }
}

@media (min-width: 1024px) {
    .notfound-icon i {
        font-size: 4rem;
    }
    
    .notfound-hero h1 {
        font-size: 5rem;
    }
    
    .action-cards {
        grid-template-columns: repeat(2, 1fr);
        max-width: 600px;
    }
    
    .action-icon i {
        font-size: 2rem;
        width: 55px;
        height: 55px;
    }
}

/* Mobile-specific adjustments */
@media (max-width: 479px) {
    .notfound-hero {
        padding: var(--spacing-md);
    }
    
    .notfound-header {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
    
    .action-cards {
        max-width: 100%;
    }
    
    .action-card {
        padding: var(--spacing-sm);
    }
    
    .notfound-hero h2 {
        font-size: var(--font-size-md);
    }
}

/* Animation for better UX */
.notfound-page {
    animation: fadeIn 0.5s ease-in-out;
}

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

/* High contrast mode support */
@media (prefers-contrast: high) {
    .action-card {
        border-width: 2px;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .notfound-icon i,
    .action-card,
    .notfound-page {
        animation: none;
        transition: none;
    }
}
