/* ============================================================
   LUDO YODDHA ENTERPRISE - MARKET & LIVE IST STYLESHEET
   File: css/market.css
   Architecture: Sleek Montserrat/Poppins Typography for Market Overlays
   Security Level: AAA Grade (Clean Layout, Zero Font Distortion)
   ============================================================ */

/* ============================================================
   1. GOOGLE THIN & SLEEK LUXURY FONT IMPORTS
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@1,200;1,300;1,400&family=Poppins:ital,wght@0,600;0,700;0,800;0,900;1,300&display=swap');

/* ============================================================
   2. COMPACT LIVE IST CLOCK (TOP HEADER PILL)
   ============================================================ */
.ist-clock-pill {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 4px !important;
  background: #081d45 !important; /* Solid Dark Blue */
  border: 1.8px solid #ffd700 !important;
  border-radius: 14px !important;
  padding: 3px 8px !important;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.7) !important;
  flex-shrink: 0 !important;
  font-family: 'Poppins', 'Inter', -apple-system, sans-serif !important;
}

.ist-flag-icon {
  font-size: 13px !important;
  line-height: 1 !important;
}

.ist-time-text {
  font-family: 'Poppins', sans-serif !important;
  font-size: 10.5px !important;
  font-weight: 800 !important;
  color: #ffd700 !important; /* Bright Gold */
  white-space: nowrap !important;
  font-variant-numeric: tabular-nums !important;
  letter-spacing: 0.5px !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9) !important;
}

/* ============================================================
   3. MARKET CLOSED FULLSCREEN BLUR CURTAIN OVERLAY
   ============================================================ */
/* Explicit Hidden Guard Rule (Prevents Specificity Lock) */
#market-closed-overlay.hidden,
.market-curtain-overlay.hidden {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  z-index: -9999 !important;
}

/* Overlay Active Display Rule */
.market-curtain-overlay:not(.hidden),
#market-closed-overlay:not(.hidden) {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  z-index: 1200 !important; /* Covers board & buttons, keeps header clear */
  background: rgba(3, 10, 28, 0.90) !important;
  backdrop-filter: blur(25px) !important;
  -webkit-backdrop-filter: blur(25px) !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 20px !important;
  box-sizing: border-box !important;
  font-family: 'Poppins', 'Inter', -apple-system, sans-serif !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

/* TOP: USER BALANCE PILL ON MARKET CURTAIN */
.market-hero-top {
  position: absolute !important;
  top: 24px !important;
  display: flex !important;
  justify-content: center !important;
  width: 100% !important;
}

.market-hero-balance-pill {
  background: rgba(11, 38, 77, 0.85) !important;
  border: 1.5px solid #ffd700 !important;
  border-radius: 18px !important;
  padding: 5px 16px !important;
  color: #ffffff !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  font-variant-numeric: tabular-nums !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6) !important;
}

.market-hero-balance-pill span {
  color: #ffe600 !important;
  font-weight: 700 !important;
  margin-left: 4px !important;
}

/* CENTER: BIG BOLD WHITE CLOCK */
.market-hero-clock {
  font-family: 'Poppins', sans-serif !important;
  font-size: clamp(54px, 16vw, 76px) !important;
  font-weight: 900 !important;
  font-variant-numeric: tabular-nums !important;
  color: #ffffff !important;
  letter-spacing: 2px !important;
  text-align: center !important;
  line-height: 1 !important;
  margin-bottom: 12px !important;
  text-shadow: 0 0 25px rgba(255, 255, 255, 0.6), 0 4px 15px rgba(0, 0, 0, 0.9) !important;
}

/* ITALIC SUBTITLE: "Market Open At : 07:00 PM" */
.market-hero-sub {
  font-family: 'Poppins', sans-serif !important;
  font-style: italic !important;
  font-size: clamp(18px, 5.5vw, 24px) !important;
  font-weight: 700 !important;
  color: #ffd700 !important;
  letter-spacing: 0.5px !important;
  text-align: center !important;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9) !important;
  margin-bottom: 12px !important;
}

/* DAILY MOTIVATIONAL QUOTE (SLEEK MONTSERRAT 300 THIN FONT + 5% SHIFT) */
.market-daily-quote, .market-hero-quote {
  max-width: 320px !important;
  margin: 0 auto !important;
  position: relative !important;
  top: 5vh !important; /* 5% Downward Optical Shift */
  font-family: 'Montserrat', 'Poppins', sans-serif !important;
  font-style: italic !important;
  font-size: 13px !important;
  font-weight: 300 !important; /* Thin Elegant Font */
  color: #ffffff !important; /* 100% Crisp White */
  line-height: 1.6 !important;
  text-align: center !important;
  letter-spacing: 0.5px !important;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8) !important;
  opacity: 0.95 !important;
  box-sizing: border-box !important;
  -webkit-font-smoothing: antialiased !important;
}

.quote-mark {
  color: #ffd700 !important;
  font-size: 15px !important;
  font-weight: 400 !important;
  font-style: normal !important;
  margin: 0 4px !important;
  opacity: 0.9 !important;
}

/* BOTTOM FIXED: "JOIN TELEGRAM" CTA */
.market-hero-tg-btn {
  position: absolute !important;
  bottom: 35px !important;
  font-size: 16px !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  background: linear-gradient(180deg, #0088cc 0%, #005580 100%) !important;
  border: 1.5px solid #80d4ff !important;
  border-radius: 24px !important;
  padding: 10px 28px !important;
  letter-spacing: 1.5px !important;
  text-decoration: none !important;
  text-transform: uppercase !important;
  box-shadow: 0 6px 20px rgba(0, 136, 204, 0.5) !important;
  cursor: pointer !important;
  transition: transform 0.15s ease !important;
}

.market-hero-tg-btn:active {
  transform: scale(0.95) !important;
}
