/* =============================================
   WorldTimeZone4Me — Stylesheet
   Brand: Midnight Navy #0c1f3f + Amber #f59e0b
   ============================================= */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary:       #0c1f3f;
  --primary-dark:  #070f20;
  --primary-pale:  #edf0f8;
  --accent:        #f59e0b;
  --accent-dark:   #d97706;
  --accent-pale:   #fffbeb;
  --bg:            #f4f6fb;
  --card:          #ffffff;
  --text:          #111827;
  --text-muted:    #4b5e7a;
  --border:        #d1daea;
  --danger:        #dc2626;
  --success:       #16a34a;
  --warning:       #d97706;
  --shadow-sm:     0 1px 3px rgba(0,0,0,.06);
  --shadow-md:     0 4px 16px rgba(12,31,63,.12);
  --radius:        12px;
  --radius-lg:     18px;
}

body { font-family: 'Inter', sans-serif; background: var(--bg); color: var(--text); line-height: 1.6; font-size: 15px; }

/* --- Header --- */
.site-header { background: var(--primary); position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 12px rgba(0,0,0,.22); }
.header-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; padding: .85rem 1.5rem; }
.site-logo { display: flex; align-items: center; gap: .5rem; font-family: 'Nunito', sans-serif; font-weight: 900; font-size: 1.2rem; color: #fff; text-decoration: none; }
.site-logo span { color: var(--accent); }
.header-nav { display: flex; gap: 1.5rem; }
.header-nav a { color: rgba(255,255,255,.8); text-decoration: none; font-size: .9rem; font-weight: 500; transition: color .2s; }
.header-nav a:hover { color: var(--accent); }

/* --- Hero --- */
.hero { background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, #142a5e 100%); color: #fff; text-align: center; padding: 3.5rem 1.5rem 3rem; }
.hero-badge { display: inline-block; background: var(--accent); color: var(--primary-dark); font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: .3rem .9rem; border-radius: 999px; margin-bottom: 1.1rem; }
.hero h1 { font-family: 'Nunito', sans-serif; font-size: clamp(1.9rem, 4vw, 2.9rem); font-weight: 900; line-height: 1.15; margin-bottom: .85rem; }
.hero h1 span { color: var(--accent); }
.hero p { font-size: 1.05rem; opacity: .9; max-width: 640px; margin: 0 auto 1.5rem; }
.hero-stats { display: flex; justify-content: center; gap: 2.5rem; flex-wrap: wrap; }
.hero-stat strong { display: block; font-family: 'Nunito', sans-serif; font-size: 1.6rem; font-weight: 900; color: var(--accent); }
.hero-stat span { font-size: .78rem; opacity: .8; text-transform: uppercase; letter-spacing: .06em; }

/* --- Tab Bar --- */
.tool-tabs { background: var(--primary-dark); border-bottom: 3px solid var(--accent); }
.tool-tabs-inner { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; display: flex; overflow-x: auto; }
.tab-btn { background: none; border: none; color: rgba(255,255,255,.65); padding: .9rem 1.35rem; font-size: .88rem; font-weight: 700; cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -3px; white-space: nowrap; transition: all .2s; font-family: 'Inter', sans-serif; }
.tab-btn:hover { color: #fff; }
.tab-btn.active { color: var(--accent); border-bottom-color: var(--accent); }

/* --- Main --- */
.site-main { max-width: 1200px; margin: 0 auto; padding: 2rem 1.5rem 4rem; }
.tool-section { display: none; }
.tool-section.active { display: block; }

/* --- Cards --- */
.card { background: var(--card); border: 1.5px solid var(--border); border-radius: var(--radius-lg); padding: 1.5rem; box-shadow: var(--shadow-sm); }
.card-title { font-family: 'Nunito', sans-serif; font-size: 1.05rem; font-weight: 900; color: var(--primary); margin-bottom: 1.1rem; }

/* --- Forms --- */
.field-group { margin-bottom: 1rem; }
.field-group label { display: block; font-size: .82rem; font-weight: 600; color: var(--text-muted); margin-bottom: .35rem; text-transform: uppercase; letter-spacing: .04em; }
input[type="text"], input[type="number"], input[type="datetime-local"], select, input[type="date"], input[type="time"] {
  width: 100%; padding: .65rem .85rem; border: 1.5px solid var(--border); border-radius: var(--radius); font-size: .95rem; font-family: inherit; color: var(--text); background: #fff; transition: border-color .2s;
}
input:focus, select:focus { outline: none; border-color: var(--primary); }
.hint { font-size: .75rem; color: var(--text-muted); margin-top: .3rem; display: block; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.three-col { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: .75rem; }

/* Styled select */
select { appearance: none; padding-right: 2.5rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%234b5e7a' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .85rem center; cursor: pointer; }

/* --- Buttons --- */
.btn-primary { background: var(--accent); color: var(--primary-dark); border: none; padding: .55rem 1.25rem; border-radius: 999px; font-weight: 800; font-size: .9rem; cursor: pointer; font-family: inherit; transition: background .2s; }
.btn-primary:hover { background: var(--accent-dark); color: #fff; }
.btn-ghost { background: var(--primary-pale); color: var(--primary); border: 1.5px solid var(--border); padding: .5rem 1rem; border-radius: 999px; font-weight: 700; font-size: .85rem; cursor: pointer; font-family: inherit; transition: all .2s; }
.btn-ghost:hover { border-color: var(--primary); }
.btn-danger { background: #fee2e2; color: var(--danger); border: 1.5px solid #fca5a5; padding: .35rem .85rem; border-radius: 999px; font-weight: 700; font-size: .8rem; cursor: pointer; font-family: inherit; }

/* ============================================================
   WORLD CLOCK
   ============================================================ */
.clock-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; }
.clock-card { background: var(--card); border: 1.5px solid var(--border); border-radius: var(--radius-lg); padding: 1.25rem 1.5rem; position: relative; }
.clock-card.is-night { background: #0f1e3a; border-color: #1e3060; color: #e2e8f0; }
.clock-card.is-night .cc-city { color: #93b4d9; }
.clock-card.is-night .cc-country { color: #5a7fa8; }
.clock-card.is-night .cc-offset { color: #5a7fa8; }
.clock-card.is-night .cc-date { color: #7090b8; }
.cc-remove { position: absolute; top: .6rem; right: .6rem; background: none; border: none; cursor: pointer; font-size: .85rem; opacity: .4; transition: opacity .2s; }
.cc-remove:hover { opacity: 1; }
.cc-city { font-family: 'Nunito', sans-serif; font-weight: 900; font-size: 1rem; color: var(--primary); margin-bottom: .1rem; }
.cc-country { font-size: .78rem; color: var(--text-muted); margin-bottom: .5rem; }
.cc-time { font-family: 'Nunito', sans-serif; font-size: 2.2rem; font-weight: 900; color: var(--accent); line-height: 1; margin-bottom: .2rem; letter-spacing: -.02em; }
.cc-date { font-size: .8rem; color: var(--text-muted); margin-bottom: .3rem; }
.cc-offset { font-size: .75rem; color: var(--text-muted); font-weight: 600; }
.cc-day-badge { display: inline-block; font-size: .68rem; font-weight: 800; padding: .1rem .45rem; border-radius: 999px; margin-left: .35rem; }
.cc-day-badge.day  { background: #fef3c7; color: #92400e; }
.cc-day-badge.night { background: #1e3060; color: #93b4d9; }

/* Add city bar */
.add-city-bar { display: flex; gap: .75rem; align-items: flex-end; margin-bottom: 1.5rem; flex-wrap: wrap; }
.add-city-bar select { flex: 1; min-width: 200px; }

/* ============================================================
   TIME CONVERTER
   ============================================================ */
.conv-source { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: .75rem; margin-bottom: 1.5rem; }
.conv-results { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .85rem; }
.conv-card { background: var(--primary-pale); border: 1.5px solid var(--border); border-radius: var(--radius); padding: 1rem 1.1rem; }
.conv-card.source-card { background: var(--primary); color: #fff; border-color: var(--primary); }
.conv-card .cc-city { color: inherit; }
.conv-card .cc-time { font-size: 1.5rem; }
.conv-card .cc-date, .conv-card .cc-country, .conv-card .cc-offset { color: rgba(255,255,255,.7); }
.conv-remove-btn { float: right; background: none; border: none; cursor: pointer; font-size: .85rem; opacity: .5; }
.conv-remove-btn:hover { opacity: 1; }
.next-day-note { font-size: .72rem; font-weight: 700; background: #fef3c7; color: #92400e; padding: .1rem .4rem; border-radius: 4px; margin-left: .3rem; }
.prev-day-note { font-size: .72rem; font-weight: 700; background: #dbeafe; color: #1e40af; padding: .1rem .4rem; border-radius: 4px; margin-left: .3rem; }

/* ============================================================
   MEETING PLANNER
   ============================================================ */
.meet-zones-row { display: flex; gap: .75rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.meet-zone-select { flex: 1; min-width: 160px; }
.meet-grid-wrap { overflow-x: auto; }
.meet-grid { border-collapse: collapse; font-size: .82rem; min-width: 700px; width: 100%; }
.meet-grid th { background: var(--primary); color: #fff; padding: .45rem .6rem; font-size: .75rem; text-align: center; font-weight: 700; }
.meet-grid th:first-child { text-align: left; min-width: 130px; }
.meet-grid td { padding: .4rem .5rem; border: 1px solid var(--border); text-align: center; font-size: .8rem; }
.meet-grid td:first-child { font-weight: 700; text-align: left; padding-left: .75rem; }
.hour-good { background: #d1fae5; color: #065f46; font-weight: 700; }
.hour-ok   { background: #fef3c7; color: #92400e; }
.hour-bad  { background: #f5f5f5; color: #9ca3af; }
.hour-night { background: #0f1e3a; color: #475569; }
.meet-legend { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: .85rem; }
.legend-item { display: flex; align-items: center; gap: .35rem; font-size: .8rem; color: var(--text-muted); }
.legend-dot { width: 14px; height: 14px; border-radius: 4px; flex-shrink: 0; }

/* ============================================================
   COUNTDOWN
   ============================================================ */
.countdown-display { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin: 1.5rem 0; }
.cd-unit { background: var(--primary); border-radius: var(--radius-lg); padding: 1.5rem 1rem; text-align: center; color: #fff; }
.cd-number { font-family: 'Nunito', sans-serif; font-size: 3rem; font-weight: 900; color: var(--accent); line-height: 1; }
.cd-label { font-size: .78rem; opacity: .7; text-transform: uppercase; letter-spacing: .08em; margin-top: .3rem; }
.cd-event-name { font-family: 'Nunito', sans-serif; font-size: 1.3rem; font-weight: 900; color: var(--primary); margin-bottom: .35rem; }
.cd-expired { font-family: 'Nunito', sans-serif; font-size: 1.5rem; font-weight: 900; color: var(--danger); text-align: center; padding: 2rem; }

/* ============================================================
   SECTION TITLE / NETWORK NAV
   ============================================================ */
.section-title { font-family: 'Nunito', sans-serif; font-size: 1.25rem; font-weight: 900; color: var(--primary); padding-bottom: .6rem; border-bottom: 2px solid var(--border); margin-bottom: 1.25rem; }
.network-nav { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: .85rem; }
.net-card { display: flex; flex-direction: column; gap: .25rem; background: var(--card); border: 1.5px solid var(--border); border-radius: var(--radius); padding: .9rem 1rem; text-decoration: none; transition: all .2s; }
.net-card:hover { border-color: var(--accent); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.nc-icon { font-size: 1.4rem; }
.nc-name { font-weight: 800; font-size: .88rem; color: var(--primary); }
.nc-desc { font-size: .75rem; color: var(--text-muted); }

/* --- Ad slot --- */
.ad-slot { background: var(--card); border: 1.5px dashed var(--border); border-radius: var(--radius); padding: 1rem; text-align: center; min-height: 90px; display: flex; align-items: center; justify-content: center; }

/* --- Cookie banner --- */
.cookie-banner { position: fixed; bottom: 1.25rem; left: 50%; transform: translateX(-50%); background: var(--primary-dark); color: #fff; border-radius: var(--radius); padding: 1rem 1.5rem; display: flex; align-items: center; gap: 1rem; max-width: 560px; width: calc(100% - 2rem); z-index: 9999; box-shadow: 0 8px 32px rgba(0,0,0,.25); flex-wrap: wrap; }
.cookie-banner p { font-size: .85rem; flex: 1; }
.cookie-banner a { color: var(--accent); }
.cookie-btns { display: flex; gap: .5rem; }
.btn-accept { background: var(--accent); color: var(--primary-dark); border: none; padding: .5rem 1.1rem; border-radius: 999px; font-weight: 800; font-size: .85rem; cursor: pointer; font-family: inherit; }
.btn-decline { background: rgba(255,255,255,.12); color: #fff; border: 1.5px solid rgba(255,255,255,.3); padding: .5rem 1.1rem; border-radius: 999px; font-weight: 700; font-size: .85rem; cursor: pointer; font-family: inherit; }

/* --- Footer --- */
.site-footer { background: var(--primary-dark); color: rgba(255,255,255,.7); padding: 2.5rem 1.5rem; }
.footer-inner { max-width: 1200px; margin: 0 auto; text-align: center; }
.footer-logo { display: flex; align-items: center; justify-content: center; gap: .5rem; font-family: 'Nunito', sans-serif; font-weight: 900; font-size: 1.1rem; color: #fff; margin-bottom: 1rem; }
.footer-logo span { color: var(--accent); }
.footer-links { display: flex; justify-content: center; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 1rem; }
.footer-links a { color: rgba(255,255,255,.65); text-decoration: none; font-size: .85rem; }
.footer-links a:hover { color: var(--accent); }
.footer-disclaimer { font-size: .78rem; max-width: 700px; margin: 0 auto .75rem; line-height: 1.6; }
.footer-copy { font-size: .75rem; opacity: .5; }

/* --- Tips --- */
.tips-list { display: flex; flex-direction: column; gap: .75rem; }
.tip-item { display: flex; gap: .75rem; align-items: flex-start; }
.tip-icon { font-size: 1.25rem; flex-shrink: 0; margin-top: .1rem; }
.tip-text { font-size: .87rem; color: var(--text-muted); line-height: 1.55; }
.tip-text strong { color: var(--text); }

/* --- Responsive --- */
@media (max-width: 900px) {
  .conv-source { grid-template-columns: 1fr 1fr; }
  .countdown-display { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .two-col, .three-col { grid-template-columns: 1fr; }
  .conv-source { grid-template-columns: 1fr; }
  .clock-grid { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 1.7rem; }
}
@media (max-width: 480px) {
  .clock-grid { grid-template-columns: 1fr; }
  .countdown-display { grid-template-columns: 1fr 1fr; }
  .cd-number { font-size: 2.2rem; }
}
