/* ---------------- HNV Sangh — Modern Typography + Custom Styles ---------------- */
/* ============================================================
   FONT SYSTEM
   Latin (English)     → Inter (body) + Teko (display headings)
   Devanagari (Hindi)  → Noto Sans Devanagari (body) + Baloo 2 (display)
   Browser auto-selects the right font per glyph via fallback chain.
   ============================================================ */

::selection { background: #FF5E00; color: #fff; }

html {
    -webkit-text-size-adjust: 100%;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background: #050505;
    color: #fff;
    font-family: 'Inter', 'Noto Sans Devanagari', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    font-weight: 400;
    font-feature-settings: 'kern' 1, 'liga' 1, 'calt' 1;
}

/* Improve Devanagari rendering — Hindi needs slightly more line height + weight */
:lang(hi), [lang="hi"] {
    font-family: 'Noto Sans Devanagari', 'Inter', sans-serif;
    line-height: 1.7;
    letter-spacing: 0;
}

/* Headings — use Teko for English (sports look), Baloo 2 for Hindi (bold + clean) */
h1, h2, h3, h4, h5, h6, .font-teko {
    font-family: 'Teko', 'Baloo 2', 'Noto Sans Devanagari', sans-serif;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: 0.005em;
}

/* Body/utility classes */
.font-mukta {
    font-family: 'Inter', 'Noto Sans Devanagari', sans-serif;
    font-weight: 400;
}
.font-display {
    font-family: 'Baloo 2', 'Teko', 'Noto Sans Devanagari', sans-serif;
    font-weight: 700;
}

/* Force Devanagari to always render with Noto Sans Devanagari / Baloo 2
   even inside .font-teko blocks (Teko does not support Devanagari) */
.font-teko:lang(hi),
h1:lang(hi), h2:lang(hi), h3:lang(hi), h4:lang(hi), h5:lang(hi) {
    font-family: 'Baloo 2', 'Noto Sans Devanagari', sans-serif;
    font-weight: 700;
    letter-spacing: 0;
}

/* Buttons + navigation with proper Hindi support */
.font-teko { font-feature-settings: 'kern' 1; }

/* Sharpen small caps text so labels don't look muddy */
.uppercase.tracking-widest, .uppercase.tracking-\[0\.25em\], .uppercase.tracking-\[0\.35em\] {
    font-feature-settings: 'kern' 1, 'ss01' 1;
}

/* Layout */
.glass-nav {
    background: rgba(5, 5, 5, 0.78);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.hero-gradient {
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.55) 45%, rgba(0,0,0,0.15) 100%);
}

.sharp-card {
    background: #0a0a0a;
    border: 1px solid #1f1f1f;
    transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.sharp-card:hover {
    border-color: #FF5E00;
    transform: translateY(-2px);
    box-shadow: 0 12px 32px -14px rgba(255, 94, 0, 0.35);
}

/* Buttons */
.btn-primary-sport {
    background: #FF5E00; color: #fff;
    padding: 0.75rem 1.5rem;
    font-family: 'Teko', 'Baloo 2', 'Noto Sans Devanagari', sans-serif;
    font-weight: 600;
    letter-spacing: 0.06em; text-transform: uppercase; font-size: 1.05rem;
    border: none; border-radius: 4px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    cursor: pointer; display: inline-flex; align-items: center; gap: 0.5rem;
    text-decoration: none;
}
.btn-primary-sport:hover { background: #ff7020; transform: translateY(-2px); box-shadow: 0 10px 24px -6px rgba(255,94,0,0.6); }

.btn-outline-sport {
    background: transparent; color: #fff;
    padding: 0.75rem 1.5rem;
    font-family: 'Teko', 'Baloo 2', 'Noto Sans Devanagari', sans-serif;
    font-weight: 600;
    letter-spacing: 0.06em; text-transform: uppercase; font-size: 1.05rem;
    border: 1px solid rgba(255,255,255,0.6); border-radius: 4px;
    transition: all 0.2s ease; cursor: pointer;
    display: inline-flex; align-items: center; gap: 0.5rem; text-decoration: none;
}
.btn-outline-sport:hover { border-color: #FF5E00; color: #FF5E00; }

.section-heading {
    font-family: 'Teko', 'Baloo 2', 'Noto Sans Devanagari', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.005em;
    line-height: 1.05;
}
/* Section headings in Hindi look better with a bit more line-height and no forced uppercase (Devanagari doesn't have uppercase) */
.section-heading:lang(hi) {
    font-family: 'Baloo 2', 'Noto Sans Devanagari', sans-serif;
    text-transform: none;
    letter-spacing: 0;
    line-height: 1.15;
}

/* Ticker */
.ticker-item {
    font-family: 'Teko', 'Baloo 2', 'Noto Sans Devanagari', sans-serif;
    text-transform: uppercase; letter-spacing: 0.04em;
    color: #FF5E00; font-size: 1.05rem; font-weight: 600;
    padding: 0 2rem; display: inline-flex; align-items: center;
}
.ticker-item:lang(hi) { text-transform: none; font-weight: 700; }
.ticker-item::after { content: "•"; color: #FFB800; margin-left: 2rem; }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #050505; }
::-webkit-scrollbar-thumb { background: #262626; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #FF5E00; }

/* Brand color utilities */
.text-orange { color: #FF5E00 !important; }
.bg-orange { background-color: #FF5E00 !important; }
.border-orange { border-color: #FF5E00 !important; }

/* Toast */
.hnv-toast {
    position: fixed; top: 20px; left: 50%; transform: translateX(-50%);
    background: #0a0a0a; border: 1px solid #FF5E00;
    color: white; padding: 12px 24px; z-index: 9999;
    font-family: 'Inter', 'Noto Sans Devanagari', sans-serif; font-size: 14px; font-weight: 500;
    box-shadow: 0 8px 24px rgba(0,0,0,0.5); border-radius: 6px;
}
.hnv-toast.success { border-color: #4ade80; }
.hnv-toast.error { border-color: #ef4444; }

/* Better form inputs */
input, textarea, select {
    font-family: 'Inter', 'Noto Sans Devanagari', sans-serif;
}

/* Responsive scaling for headings */
@media (max-width: 640px) {
    body { font-size: 15px; }
    .btn-primary-sport, .btn-outline-sport { font-size: 0.95rem; padding: 0.65rem 1.25rem; }
}

/* Media queries for very small devices */
@media (max-width: 380px) {
    body { font-size: 14.5px; }
    .ticker-item { font-size: 0.9rem; padding: 0 1rem; }
    .ticker-item::after { margin-left: 1rem; }
}
