/* SkillXen Bangladesh - Custom styles: glassmorphism, light effects, shadcn-style */

/* Base */
html { scroll-behavior: smooth; }

/* Enhanced Glassmorphism */
.nav-glass {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    box-shadow: 
        0 8px 32px 0 rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset;
}

.card-glass {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.card-glass-strong {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(28px) saturate(180%);
    -webkit-backdrop-filter: blur(28px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* Enhanced Light effects & glows */
.glow-primary {
    box-shadow: 
        0 0 50px -10px rgba(99, 102, 241, 0.5),
        0 0 100px -20px rgba(168, 85, 247, 0.4),
        0 0 150px -30px rgba(99, 102, 241, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.glow-soft {
    box-shadow: 
        0 0 60px -15px rgba(99, 102, 241, 0.3),
        0 0 120px -25px rgba(168, 85, 247, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.text-glow {
    text-shadow: 
        0 0 40px rgba(129, 140, 248, 0.5),
        0 0 80px rgba(168, 85, 247, 0.3),
        0 0 120px rgba(99, 102, 241, 0.2);
}

/* Simple Navigation links - no Tailwind */
.nav-link {
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #cbd5f5;
    position: relative;
    transition: all 200ms ease;
}

.nav-link:hover {
    color: #ffffff;
    background: rgba(148, 163, 253, 0.18);
    box-shadow: 0 4px 12px rgba(129, 140, 248, 0.35);
}

.nav-link-active {
    color: #ffffff;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.9), rgba(168, 85, 247, 0.9));
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.55);
}

/* Highlighted nav button (e.g. Bootcamp) */
.nav-link-highlight {
    color: #ffffff !important;
    background-image: linear-gradient(135deg, #3b82f6, #6366f1, #8b5cf6, #ec4899);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.55);
    border-radius: 0.75rem;
    padding: 0.5rem 1.25rem;
    font-weight: 700;
    animation: navPulse 2.5s ease-in-out infinite;
}

.nav-link-highlight:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(99, 102, 241, 0.75);
}

@keyframes navPulse {
    0%, 100% { box-shadow: 0 6px 20px rgba(99, 102, 241, 0.55); }
    50% { box-shadow: 0 6px 28px rgba(139, 92, 246, 0.75), 0 0 12px rgba(236, 72, 153, 0.3); }
}

/* Simple colorful buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: #ffffff;
    background-image: linear-gradient(135deg, #3b82f6, #6366f1, #8b5cf6, #ec4899);
    box-shadow: 0 10px 30px rgba(79, 70, 229, 0.55);
    transition: all 200ms ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 36px rgba(79, 70, 229, 0.75);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: #e5e7eb;
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid rgba(148, 163, 253, 0.6);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.7);
    transition: all 200ms ease;
}

.btn-secondary:hover {
    color: #ffffff;
    background: rgba(30, 64, 175, 0.6);
    box-shadow: 0 12px 30px rgba(30, 64, 175, 0.8);
}

/* Enhanced Cards hover */
.card-hover {
    transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

.card-hover:hover {
    box-shadow: 
        0 20px 60px -15px rgba(99, 102, 241, 0.3),
        0 0 40px -10px rgba(168, 85, 247, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transform: translateY(-8px) scale(1.01);
    border-color: rgba(99, 102, 241, 0.4);
}

/* Form inputs - shadcn-style */
.input-field {
    width: 100%;
    border-radius: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.06);
    padding: 0.75rem 1rem;
    color: #f1f5f9;
    outline: none;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: background 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}

.input-field::placeholder {
    color: rgba(148, 163, 184, 0.9);
}

.input-field:focus {
    border-color: rgba(99, 102, 241, 0.9);
    background: rgba(255, 255, 255, 0.09);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.18);
}

/* Footer */
.footer-social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    color: rgba(148, 163, 184, 1);
    transition: transform 200ms ease, box-shadow 200ms ease, background 200ms ease, border-color 200ms ease, color 200ms ease;
}

.footer-social:hover {
    transform: translateY(-2px);
    border-color: rgba(99, 102, 241, 0.45);
    background: rgba(99, 102, 241, 0.12);
    color: rgba(165, 180, 252, 1);
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.18);
}

.footer-link {
    color: rgba(148, 163, 184, 1);
    font-size: 0.875rem;
    transition: color 200ms ease;
}

.footer-link:hover {
    color: rgba(165, 180, 252, 1);
}

/* Animations */
.animate-fade-in { animation: fadeIn 0.6s ease-out forwards; }
.animate-fade-in-up { animation: fadeInUp 0.6s ease-out forwards; }

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Stagger delays */
.delay-100 { animation-delay: 100ms; }
.delay-200 { animation-delay: 200ms; }
.delay-300 { animation-delay: 300ms; }
.delay-400 { animation-delay: 400ms; }

/* Gradient mesh background */
.bg-mesh {
    background-image: 
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(99, 102, 241, 0.15), transparent),
        radial-gradient(ellipse 60% 40% at 100% 0%, rgba(168, 85, 247, 0.1), transparent),
        radial-gradient(ellipse 50% 30% at 0% 50%, rgba(99, 102, 241, 0.08), transparent);
}

/* Admin detail modal - uses display:none/flex for reliable fixed positioning */
.admin-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.admin-modal-overlay.active {
    display: flex;
}

.admin-modal {
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 1rem;
    padding: 1.5rem 2rem 2rem;
    max-width: 32rem;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    animation: modalSlideIn 200ms ease-out;
}

@keyframes modalSlideIn {
    from { opacity: 0; transform: scale(0.95) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.admin-modal dt {
    font-size: 0.7rem;
    font-weight: 700;
    color: rgba(148, 163, 184, 1);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.admin-modal dt:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.admin-modal dd {
    font-size: 0.95rem;
    color: #f1f5f9;
    margin-top: 0.25rem;
    word-break: break-word;
    line-height: 1.6;
    white-space: pre-wrap;
}

/* Mobile nav - ensure touch targets and better spacing */
@media (max-width: 768px) {
    .nav-link { padding: 0.75rem 1rem; font-size: 1rem; }
    
    .btn-primary, .btn-secondary {
        width: 100%;
        min-height: 48px; /* Better touch target */
    }
    
    .card-glass, .card-glass-strong {
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
    }
}

@media (max-width: 640px) {
    .nav-link { padding: 0.65rem 0.9rem; }
    
    /* Better mobile hero spacing */
    section.relative.min-h-\[90vh\] {
        min-height: 85vh;
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
}
