/* ============================================
 🇮🇳 INDIA PAGE — GlobalTime.io
 Modern Glossy Gradient Background (Tricolor)
============================================ */
:root {
  --bg: linear-gradient(180deg, #ff9933, #ffffff, #138808);
  --card: rgba(255, 255, 255, 0.85);
  --text: #058813;
  --muted: #555;
  --accent: #ff8900;
  --radius: 16px;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  --overlay-light: rgba(255, 255, 255, 0.15);
  --overlay-dark: rgba(0, 0, 0, 0.3);
}

/* 🌙 Dark Mode */
body.dark-mode {
  --bg: linear-gradient(
    120deg,
    rgba(255, 153, 51, 0.25) 0%,    /* soft saffron */
    rgba(200, 200, 200, 0.05) 50%,  /* dimmed white */
    rgba(19, 136, 8, 0.25) 100%     /* soft green */
  );
  --card: rgba(22, 27, 34, 0.9);
  --text: #f4f6f8;
  --muted: #8b949e;
  --accent: #2f81f7;
  --shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

/* ============================
 🌍 Layout Base
============================ */
body {
  margin: 0;
  font-family: "Inter", "Segoe UI", system-ui, sans-serif;
  background:
    linear-gradient(
      180deg,
      rgba(255, 153, 51, 0.95) 0%,     /* Saffron */
      rgba(255, 255, 255, 0.95) 50%,   /* White */
      rgba(19, 136, 8, 0.95) 100%      /* Green */
    ),
    radial-gradient(
      circle at top right,
      var(--overlay-light),
      transparent 60%
    );
  background-blend-mode: overlay;
  background-attachment: fixed;
  background-size: cover;
  color: var(--text);
  transition: background 0.4s ease, color 0.3s ease;
}

/* 🌙 Dark Mode (Balanced Indian Flag + Soft Black Overlay) */
body.dark-mode {
  background:
    linear-gradient(
      120deg,
      rgba(255, 153, 51, 0.30) 0%,     /* saffron visible */
      rgba(255, 255, 255, 0.08) 50%,   /* dim white tone */
      rgba(19, 136, 8, 0.30) 100%      /* green visible */
    ),
    radial-gradient(
      circle at center,
      rgba(0, 0, 0, 0.45) 0%,          /* lighter black center */
      rgba(0, 0, 0, 0.65) 100%         /* darker edges */
    );
  
  background-blend-mode: overlay, multiply;
  background-attachment: fixed;
  background-size: cover;
  color: #e6edf3;
  transition: background 0.4s ease, color 0.3s ease;
}

/* ============================
   🌍 MAIN LAYOUT
============================ */
.hero {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
  margin: 30px auto;
  max-width: 1280px;
  padding: 0 20px;
}

.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  transition: background 0.3s, box-shadow 0.3s;
}

/* ============================
   ⏰ CLOCK SECTION
============================ */
.main-clock {
  text-align: center;
  margin-bottom: 24px;
  position: relative;
}

.main-clock .time {
  font-size: 64px;
  font-weight: 700;
  color: var(--accent);
}

.main-clock .tz {
  font-size: 16px;
  color: var(--muted);
  margin-top: 6px;
}

.utc-small {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(47, 129, 247, 0.1);
  border-radius: 10px;
  padding: 6px 12px;
  text-align: right;
}

.utc-small .clock-time {
  font-size: 18px;
  font-weight: 600;
  color: var(--accent);
}

.utc-small .clock-tz {
  font-size: 12px;
  color: var(--muted);
}

/* 🌙 Dark Mode Clock Accent */
body.dark-mode .main-clock .time,
body.dark-mode .utc-small .clock-time {
  color: var(--accent-green);
  text-shadow: 0 0 8px rgba(19, 136, 8, 0.6);
}

/* ============================
   📍 META INFO GRID
============================ */
.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0;
}

.meta {
  background: rgba(0, 0, 0, 0.05);
  padding: 6px 12px;
  border-radius: var(--radius);
  font-size: 13px;
  color: var(--muted);
}

body.dark-mode .meta {
  background: rgba(255, 255, 255, 0.05);
}

/* ============================
   🏙️ CITY CLOCKS GRID
============================ */
.cities {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.city-card {
  background: rgba(255, 255, 255, 0.15);
  padding: 14px;
  border-radius: var(--radius);
  text-align: center;
  backdrop-filter: blur(6px);
  transition: all 0.25s ease;
}

.city-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.city-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.city-time {
  font-size: 20px;
  font-weight: 700;
  color: var(--accent);
  margin-top: 4px;
}

/* 🌙 Dark Mode Accent */
body.dark-mode .city-time {
  color: var(--accent-green);
}

body.dark-mode .city-name {
  color: var(--accent);
}

/* ============================
   🇮🇳 FLAG INLINE ICON
============================ */
.flag-inline-title {
  height: 1em;
  width: auto;
  margin-right: 0.4em;
  vertical-align: middle;
  border-radius: 0.2em;
  object-fit: cover;
  box-shadow: 0 0.05em 0.15em rgba(0, 0, 0, 0.15);
  transition: transform 0.2s ease;
}

.flag-inline-title:hover {
  transform: scale(1.05);
}

/* ============================
   🗂️ SIDEBAR SECTION
============================ */
.sidebar-main-box {
  background: var(--card);
  border-radius: var(--radius);
  text-align: center;
  padding: 10px 12px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 10px;
  margin-top: 10px;
}

.sidebar-inner-box {
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  padding: 8px;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

/* Sidebar Links */
.sidebar-inner-box .division-link {
  display: block;
  width: 80%;
  padding: 8px 12px;
  text-align: center;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid #ff9933;
  border-radius: 8px;
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.25s ease;
}

.sidebar-inner-box .division-link:hover {
  background: linear-gradient(180deg, #ff9933, #ffffff, #138808);
  color: #000;
  transform: translateY(-2px);
  font-weight: 600;
}

.sidebar-inner-box .division-link.active-division {
  background: linear-gradient(180deg, #ff9933, #ffffff, #138808);
  color: #000 !important;
  font-weight: 700;
}

/* 🌙 Dark Mode Sidebar */
body.dark-mode .sidebar-main-box {
  background: rgba(22, 27, 34, 0.95);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

body.dark-mode .sidebar-inner-box {
  background: rgba(22, 27, 34, 0.2);
}

body.dark-mode .sidebar-inner-box .division-link {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
}

body.dark-mode .sidebar-inner-box .division-link:hover {
  background: linear-gradient(90deg, #ff9933, #3d9970);
  color: #fff;
}

/* ============================
   🇮🇳 SIDEBAR HEADER (FLAG + TITLE)
============================ */
.sidebar-header {
  display: flex;
  flex-direction: column;
  align-items: center;   /* ✅ centers horizontally */
  justify-content: center;
  text-align: center;
  margin-top: 15px;
  margin-bottom: 15px;
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: center; /* ✅ centers flag + text inline */
  gap: 8px;
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  margin: 0;
}

.flag-inline-title {
  width: 28px;
  height: auto;
  border-radius: 4px;
  display: inline-block;
  vertical-align: middle;
}

/* 🌙 Dark Mode Header */
body.dark-mode .section-title {
  color: #fff;
}

body.dark-mode .section-title::after {
  background: linear-gradient(90deg, #ff9933, #3d9970);
}


/* ============================
   🔙 BACK BUTTON
============================ */
.back-home-wrapper {
  text-align: center;
  margin: 40px 0;
}

.back-home-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #ff8900;
  color: #fff;
  padding: 12px 24px;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: background 0.3s ease;
}

.back-home-button:hover {
  background-color: #138808;
}

/* ============================
   📱 RESPONSIVE DESIGN
============================ */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .main-clock .time {
    font-size: 52px;
  }

  .utc-small {
    position: static;
    margin-top: 10px;
    text-align: center;
  }

  .sidebar-inner-box {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

  .sidebar-inner-box .division-link {
    flex: 1 1 45%;
    margin: 4px;
  }
}
