/* ================================================
   BeSmart — Custom Styles (layered on top of Tailwind CDN)
================================================ */

:root {
    --brand: #1e4ff5;
    --brand-600: #1a45dc;
    --brand-700: #1e4ff5;
    --accent: #f97316;
    --ink: #05070f;
}

html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', system-ui, sans-serif;
    background: #ffffff;
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
}

/* Typography */
.font-display { font-family: 'Poppins', system-ui, sans-serif; letter-spacing: -0.01em; }

/* Navbar links */
.nav-link {
    position: relative;
    padding: 0.5rem 0.85rem;
    border-radius: 0.5rem;
    color: #334155;
    transition: color 150ms ease;
}
.nav-link:hover { color: var(--brand); background: #f1f5f9; }
.nav-link.active { color: var(--brand); background: #eef2ff; }

/* Buttons */
.btn-primary {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.6rem 1.1rem;
    background: linear-gradient(135deg, #1e4ff5 0%, #4f46e5 100%);
    color: #fff; font-weight: 600;
    border-radius: 9999px;
    box-shadow: 0 10px 25px -8px rgba(30,79,245,0.45);
    transition: transform .15s ease, box-shadow .15s ease;
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 14px 30px -8px rgba(30,79,245,0.55); }

.btn-accent {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.6rem 1.1rem;
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    color: #fff; font-weight: 600;
    border-radius: 9999px;
    box-shadow: 0 10px 25px -8px rgba(249,115,22,0.45);
    transition: transform .15s ease;
}
.btn-accent:hover { transform: translateY(-1px); }

.btn-outline {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.55rem 1.05rem;
    background: #fff; color: var(--ink);
    border: 1.5px solid #e2e8f0; font-weight: 600;
    border-radius: 9999px;
    transition: border-color .15s ease, color .15s ease;
}
.btn-outline:hover { border-color: var(--brand); color: var(--brand); }

/* Cards */
.card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover {
    transform: translateY(-4px);
    border-color: #c7d2ff;
    box-shadow: 0 18px 40px -16px rgba(30,79,245,0.18);
}

/* Course card icon chip */
.icon-chip {
    width: 3rem; height: 3rem; border-radius: 0.9rem;
    display: inline-flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #eef2ff, #e0e7ff);
    color: var(--brand);
}
.icon-chip.accent {
    background: linear-gradient(135deg, #ffedd5, #fed7aa);
    color: var(--accent);
}

/* Heading underline */
.heading-dash {
    display: inline-flex; align-items: center; gap: 0.6rem;
    color: var(--brand);
    font-weight: 600; text-transform: uppercase; font-size: 0.75rem; letter-spacing: 0.1em;
}
.heading-dash::before { content: ''; width: 28px; height: 2px; background: var(--brand); border-radius: 2px; }

/* Gradient text */
.text-gradient {
    background: linear-gradient(135deg, #1e4ff5 0%, #f97316 100%);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Hero blob animation */
.blob {
    position: absolute; border-radius: 50%;
    filter: blur(90px); opacity: 0.55; pointer-events: none;
}

/* Stats */
.stat-number {
    font-family: 'Poppins', system-ui, sans-serif;
    font-weight: 800;
    font-size: clamp(1.35rem, 2.6vw, 2rem);
    line-height: 1.05;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    background: linear-gradient(135deg, #1e4ff5, #f97316);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    padding: 0 2px;          /* keeps + sign fully inside the gradient clip */
}

/* Mobile tab bar */
.tab-item {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 0.6rem 0.25rem; color: #64748b; gap: 2px;
    transition: color .15s ease;
}
.tab-item.tab-active { color: var(--brand); }
.tab-item span { font-size: 10px; font-weight: 600; }

/* Form fields */
.field {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid #e2e8f0;
    border-radius: 0.75rem;
    font-size: 0.95rem;
    background: #fff;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.field:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 4px rgba(30,79,245,0.12);
}
.field-error { border-color: #ef4444; }

/* Shimmer underline for CTAs */
.shimmer-link {
    position: relative;
    background: linear-gradient(90deg, transparent 0%, rgba(30,79,245,0.08) 50%, transparent 100%);
    background-size: 200% 100%;
    animation: shimmer 3s linear infinite;
}
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Smooth entrances (AOS fallback) */
[data-aos] { transition-timing-function: cubic-bezier(.2,.8,.2,1); }

/* Section heading */
.section-title {
    font-family: 'Poppins', system-ui, sans-serif;
    font-weight: 700;
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    color: var(--ink);
    line-height: 1.15;
}

/* Prose reset for course description */
.prose-lite p { margin-bottom: 0.85em; line-height: 1.7; color: #334155; }
.prose-lite ul { margin: 0.5em 0 1em 1.25em; list-style: disc; }
.prose-lite ul li { margin-bottom: 0.3em; }

/* Hide scrollbar but allow scroll */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* Subtle pattern backdrop */
.bg-pattern {
    background-image:
        radial-gradient(rgba(30,79,245,0.08) 1px, transparent 1px),
        radial-gradient(rgba(249,115,22,0.06) 1px, transparent 1px);
    background-size: 28px 28px, 28px 28px;
    background-position: 0 0, 14px 14px;
}

/* Mobile safe areas */
@supports (padding: env(safe-area-inset-bottom)) {
    .safe-bottom { padding-bottom: env(safe-area-inset-bottom); }
}

/* Simple loader */
.spinner {
    width: 20px; height: 20px; border: 3px solid rgba(255,255,255,0.35);
    border-top-color: #fff; border-radius: 50%;
    animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Hover lift for course cards */
.course-card { position: relative; overflow: hidden; }
.course-card::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(30,79,245,0.04), rgba(249,115,22,0.04));
    opacity: 0; transition: opacity .2s ease;
}
.course-card:hover::before { opacity: 1; }

/* Featured badge */
.badge-featured {
    background: linear-gradient(135deg, #fed7aa, #fdba74);
    color: #7c2d12;
    font-weight: 600; font-size: 10px; letter-spacing: 0.06em;
    padding: 3px 10px; border-radius: 9999px; text-transform: uppercase;
}

/* Highlighted number ring for stats */
.stat-ring {
    position: relative; padding: 1rem 0.5rem;
    min-width: 0;                     /* allow grid cell to shrink without overflow */
    background: linear-gradient(180deg, #fff, #f8fafc);
    border-radius: 1rem; border: 1px solid #e2e8f0;
}
