/* -----------------------------------
   GLOBAL RESET & BASE
----------------------------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #050816;
  color: #e5f0ff;
  line-height: 1.5;
}

.tagline {
  font-size: 0.75rem;
  color: var(--text-light);
  margin-top: -4px;
  letter-spacing: 0.5px;
}


/* -----------------------------------
   BRAND HEADER (Shared Across Pages)
----------------------------------- */
header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.5rem;
  background: rgba(5, 8, 22, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(120, 178, 255, 0.35);
}

/* NAVIGATION */
.main-nav {
    margin-left: 40px;
    display: flex;
    gap: 20px;
}

.main-nav a {
    text-decoration: none;
    color: #0078D4;
    font-weight: 500;
}

.main-nav a:hover {
    text-decoration: underline;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9fc5ff;
}

.brand-mark {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 1px solid rgba(159, 197, 255, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: #e5f0ff;
}

nav a.active {
  margin-left: 1rem;
  font-size: 0.9rem;
  color: #c7ddff;
  text-decoration: none;
  opacity: 0.8;
}

nav a.active {
  color: #ffffff;
  opacity: 1;
  border-bottom: 1px solid #78b2ff;
  padding-bottom: 0.15rem;
}

nav a.active {
  color: var(--accent);          /* Highlight with your brand colour */
  font-weight: 700;              /* Make it bold */
  border-bottom: 2px solid var(--accent); /* Underline indicator */
}

/* -----------------------------------
   PAGE LAYOUT
----------------------------------- */
main {
  max-width: 1100px;
  margin: 1.5rem auto 2.5rem;
  padding: 0 1.25rem 3rem;
}

h1 {
  font-size: 1.8rem;
  margin-bottom: 0.25rem;
}

.subtitle {
  font-size: 0.95rem;
  color: #9fb4d8;
  max-width: 640px;
}

/* -----------------------------------
   CONTROLS (Dropdowns, Buttons)
----------------------------------- */
.controls {
  margin-top: 1.5rem;
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

select {
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
  border: 1px solid rgba(120, 178, 255, 0.4);
  background: rgba(5, 8, 22, 0.6);
  color: #e5f0ff;
  font-size: 0.9rem;
  flex: 1;
}

button {
  cursor: pointer;
}

.add-btn {
  padding: 0.55rem 1rem;
  border-radius: 8px;
  border: 1px solid rgba(120, 178, 255, 0.6);
  background: rgba(120, 178, 255, 0.15);
  color: #c7ddff;
  font-size: 0.9rem;
}

/* -----------------------------------
   CARD GRID SYSTEM (Reusable)
----------------------------------- */
.grid {
  margin-top: 1.75rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

/* -----------------------------------
   CARD COMPONENT (Reusable)
----------------------------------- */
.card {
  background: radial-gradient(circle at top left, rgba(120, 178, 255, 0.18), rgba(5, 8, 22, 0.98));
  border-radius: 14px;
  padding: 1rem;
  border: 1px solid rgba(120, 178, 255, 0.35);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.55);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  position: relative;
}

/* --- CLOCK TIME EMPHASIS (World Time + Market Hours) --- */
.local-time {
  font-size: 2.4rem;          /* Large, bold, premium */
  font-weight: 700;
  font-family: var(--mono);   /* Your clean mono font */
  color: #5A7FBF;             /* Brand accent colour */
  text-align: center;         /* Center the time */
  display: block;             /* Ensures centering works cleanly */
  margin: 0.4rem 0;           /* Breathing room */
  text-shadow: 0 0 6px rgba(0, 0, 0, 0.25); /* Soft glow shadow */
  letter-spacing: 0.5px;      /* Slight spacing for clarity */
}

.local-date {
  font-size: 1rem;
  font-weight: 500;
  text-align: center;
  display: block;
  margin-top: 0.2rem;
  opacity: 0.8;
  color: var(--text-light);
}

  /* Dragging state */
.card.dragging {
  opacity: 0.7;
  border-style: dashed;
}

/* Remove button */
.remove-btn {
  position: absolute;
  top: 6px;
  right: 6px;
  background: rgba(255, 120, 120, 0.2);
  border: 1px solid rgba(255, 120, 120, 0.5);
  color: #ffb3b3;
  border-radius: 6px;
  padding: 2px 6px;
  font-size: 0.75rem;
  cursor: pointer;
}

/* Flash animation */
.flash {
  animation: flashAnim 0.8s ease;
}

@keyframes flashAnim {
  0% { box-shadow: 0 0 0px #78b2ff; }
  50% { box-shadow: 0 0 18px #78b2ff; }
  100% { box-shadow: 0 0 0px #78b2ff; }
}

/* -----------------------------------
   MARKET CARD SPECIFIC
----------------------------------- */
.market-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.market-name {
  font-size: 1rem;
  font-weight: 600;
}

.market-city {
  font-size: 0.85rem;
  color: #9fb4d8;
}

/* Small dot indicator */
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: red;
}

.time-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #c7ddff;
}

.time-row .label {
  color: #9fb4d8;
}

/* -----------------------------------
   FOOTER + AD SLOT
----------------------------------- */
footer {
  border-top: 1px solid rgba(120, 178, 255, 0.25);
  padding: 0.9rem 1.5rem 1.2rem;
  font-size: 0.78rem;
  color: #7f8fb0;
  background: rgba(5, 8, 22, 0.96);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.footer-brand {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.7rem;
  color: #9fc5ff;
}

.footer-ad-slot {
  flex: 1;
  min-width: 220px;
  max-width: 420px;
  border-radius: 10px;
  border: 1px dashed rgba(120, 178, 255, 0.4);
  padding: 0.45rem 0.7rem;
  text-align: center;
  color: #9fb4d8;
}
