/**
 * ============================================================
 * WHEN I FLY TOWARDS YOU THEME - Summer / Sky Blue / Youth
 * ============================================================
 * Theme ID: wheniflytowardsyou
 * Drama: When I Fly Towards You (向你飞) 2023
 * Design: Sky blue, summer vibes, fresh and youthful
 * ============================================================
 */

html[data-color="wheniflytowardsyou"]{ --brand-h:200; }

/* ===== CORE COLOR SYSTEM ===== */
/* Light Theme (Primary - Fresh summer vibes) */
html[data-theme="light"][data-color="wheniflytowardsyou"]{
  --bg: #f0f9ff;
  --bg-primary: #f0f9ff;
  --bg-secondary: #e0f2fe;
  --bg-tertiary: #bae6fd;
  --card: rgba(255, 255, 255, 0.85);
  --text: #0c4a6e;
  --text-primary: #0c4a6e;
  --text-secondary: #0369a1;
  --muted: #0284c7;
  --line: rgba(56, 189, 248, 0.2);
  --surface-2: rgba(224, 242, 254, 0.8);
  --surface-3: rgba(186, 230, 253, 0.8);
  --accent-primary: #0ea5e9;
  --accent-secondary: #38bdf8;
  --border-subtle: rgba(14, 165, 233, 0.15);
  --border-strong: #0ea5e9;
}

/* Dark Theme */
html[data-theme="dark"][data-color="wheniflytowardsyou"]{
  --bg: #0a1929;
  --bg-primary: #0a1929;
  --bg-secondary: #0d2137;
  --bg-tertiary: #102a45;
  --card: rgba(13, 33, 55, 0.85);
  --text: #e0f2fe;
  --text-primary: #e0f2fe;
  --text-secondary: #7dd3fc;
  --muted: #38bdf8;
  --line: rgba(56, 189, 248, 0.15);
  --surface-2: rgba(13, 33, 55, 0.7);
  --surface-3: rgba(16, 42, 69, 0.7);
  --accent-primary: #38bdf8;
  --accent-secondary: #7dd3fc;
  --border-subtle: rgba(56, 189, 248, 0.2);
  --border-strong: #38bdf8;
  --brand: #38bdf8;
  --brand-2: #7dd3fc;
  --brand-3: #a5e0fb;
  --brand-4: #bae6fd;
}

/* ===== BACKGROUND ===== */
html[data-color="wheniflytowardsyou"] body {
  background: 
    linear-gradient(135deg, 
      rgba(240, 249, 255, 0.85) 0%, 
      rgba(186, 230, 253, 0.78) 50%, 
      rgba(240, 249, 255, 0.85) 100%
    ),
    url('../backrounds/wheniflytowardsyou-backround.jpeg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

html[data-theme="dark"][data-color="wheniflytowardsyou"] body {
  background: 
    linear-gradient(135deg, 
      rgba(10, 25, 41, 0.85) 0%, 
      rgba(13, 33, 55, 0.8) 50%,
      rgba(10, 25, 41, 0.85) 100%
    ),
    url('../backrounds/wheniflytowardsyou-backround.jpeg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

/* ===== CONTAINER ===== */
html[data-color="wheniflytowardsyou"] .container {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(14, 165, 233, 0.2);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(14, 165, 233, 0.1);
}

html[data-theme="dark"][data-color="wheniflytowardsyou"] .container {
  background: rgba(13, 33, 55, 0.75);
  border-color: rgba(56, 189, 248, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* ===== CARDS ===== */
html[data-color="wheniflytowardsyou"] .card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(14, 165, 233, 0.15);
  border-radius: 12px;
  transition: all 200ms ease;
}

html[data-color="wheniflytowardsyou"] .card:hover {
  border-color: rgba(14, 165, 233, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(14, 165, 233, 0.15);
}

html[data-theme="dark"][data-color="wheniflytowardsyou"] .card {
  background: rgba(16, 42, 69, 0.6);
  border-color: rgba(56, 189, 248, 0.15);
}

/* ===== THEMED CARDS ===== */
html[data-color="wheniflytowardsyou"] .themed-card::before {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.95), rgba(56, 189, 248, 0.9));
}

html[data-color="wheniflytowardsyou"] .themed-card {
  color: #fff;
  border: 1px solid rgba(14, 165, 233, 0.5);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(14, 165, 233, 0.25);
}

html[data-color="wheniflytowardsyou"] .themed-card .label,
html[data-color="wheniflytowardsyou"] .themed-card .muted,
html[data-color="wheniflytowardsyou"] .themed-card #currentName,
html[data-color="wheniflytowardsyou"] .themed-card #currentRoom,
html[data-color="wheniflytowardsyou"] .themed-card #currentTimeRange,
html[data-color="wheniflytowardsyou"] .themed-card #elapsedOut,
html[data-color="wheniflytowardsyou"] .themed-card #leftOut,
html[data-color="wheniflytowardsyou"] .themed-card #nextName,
html[data-color="wheniflytowardsyou"] .themed-card #nextRoom,
html[data-color="wheniflytowardsyou"] .themed-card #nextTimeRange,
html[data-color="wheniflytowardsyou"] .themed-card #nextInOut,
html[data-color="wheniflytowardsyou"] .themed-card #untilOut {
  color: rgba(255, 255, 255, 0.95) !important;
}

/* ===== PROGRESS BAR ===== */
html[data-color="wheniflytowardsyou"] .progress {
  background: linear-gradient(90deg, #0ea5e9, #38bdf8, #7dd3fc);
  border-radius: 4px;
}

html[data-color="wheniflytowardsyou"] .progress-wrap {
  background: rgba(186, 230, 253, 0.5);
  border: 1px solid rgba(14, 165, 233, 0.2);
  border-radius: 6px;
}

/* ===== BUTTONS ===== */
html[data-color="wheniflytowardsyou"] .btn {
  background: linear-gradient(135deg, #0ea5e9, #38bdf8);
  color: #fff;
  border: none;
  font-weight: 600;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(14, 165, 233, 0.3);
  transition: all 200ms ease;
}

html[data-color="wheniflytowardsyou"] .btn:hover {
  background: linear-gradient(135deg, #38bdf8, #7dd3fc);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(14, 165, 233, 0.4);
}

/* ===== STATUS BADGES ===== */
html[data-color="wheniflytowardsyou"] .status--current {
  background: linear-gradient(135deg, #0ea5e9, #38bdf8);
  color: #fff;
  font-weight: 600;
  border-radius: 6px;
}

html[data-color="wheniflytowardsyou"] .status--next {
  background: rgba(56, 189, 248, 0.15);
  color: #0ea5e9;
  border: 1px solid rgba(14, 165, 233, 0.3);
  border-radius: 6px;
}

/* ===== SCHEDULE TABLE ===== */
html[data-color="wheniflytowardsyou"] .schedule th {
  border-bottom: 2px solid #0ea5e9;
  color: #0ea5e9;
  font-weight: 600;
}

html[data-color="wheniflytowardsyou"] .schedule tr.active {
  background: linear-gradient(90deg, rgba(14, 165, 233, 0.2), rgba(14, 165, 233, 0.05), transparent);
  border-left: 3px solid #0ea5e9;
}

/* ===== DIALOGS ===== */
html[data-color="wheniflytowardsyou"] dialog {
  background: rgba(240, 249, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(14, 165, 233, 0.2);
  border-radius: 16px;
}

html[data-theme="dark"][data-color="wheniflytowardsyou"] dialog {
  background: rgba(10, 25, 41, 0.95);
  border-color: rgba(56, 189, 248, 0.2);
}

html[data-color="wheniflytowardsyou"] .modal-header strong {
  color: #0ea5e9;
}

/* ===== CHIPS ===== */
html[data-color="wheniflytowardsyou"] .chip {
  background: rgba(224, 242, 254, 0.6);
  border: 1px solid rgba(14, 165, 233, 0.2);
  border-radius: 8px;
  transition: all 200ms ease;
}

html[data-color="wheniflytowardsyou"] .chip:hover {
  border-color: #0ea5e9;
  color: #0ea5e9;
}

html[data-color="wheniflytowardsyou"] .chip[aria-pressed="true"] {
  background: rgba(14, 165, 233, 0.2);
  border-color: #0ea5e9;
  color: #0ea5e9;
}

/* ===== CLOCK ===== */
html[data-theme="light"][data-color="wheniflytowardsyou"] #clockOut {
  color: #0ea5e9;
  text-shadow: 0 2px 10px rgba(14, 165, 233, 0.3);
}

html[data-theme="dark"][data-color="wheniflytowardsyou"] #clockOut {
  color: #38bdf8;
  text-shadow: 0 2px 20px rgba(56, 189, 248, 0.4);
}

/* ===== SCROLLBAR ===== */
html[data-color="wheniflytowardsyou"] ::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #0ea5e9, #38bdf8);
  border-radius: 4px;
}

/* ===== SELECTION ===== */
html[data-color="wheniflytowardsyou"] ::selection {
  background: rgba(14, 165, 233, 0.4);
  color: #fff;
}
