/*
 * Smart Tools Suite — What Time Is It v3
 * calcdaystime.com
 * All values hardcoded — no CSS vars — !important on key props to beat Kadence theme
 */

.sts-wt {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
    background: #ffffff !important;
    border-radius: 16px !important;
    box-shadow: 0 2px 8px rgba(26,58,92,.08), 0 8px 28px rgba(26,58,92,.12) !important;
    overflow: hidden !important;
    max-width: 680px !important;
    margin: 0 auto 3rem !important;
    color: #0f1f30 !important;
}
.sts-wt *, .sts-wt *::before, .sts-wt *::after { box-sizing: border-box !important; }

/* ── Header ── */
.sts-wt__header {
    display: flex !important;
    align-items: center !important;
    gap: 1rem !important;
    background: #1A3A5C !important;
    padding: 1.4rem 1.75rem !important;
    flex-wrap: wrap !important;
}
.sts-wt__header-icon {
    flex-shrink: 0 !important;
    width: 46px !important; height: 46px !important;
    background: rgba(255,255,255,.12) !important;
    border-radius: 10px !important;
    display: flex !important; align-items: center !important; justify-content: center !important;
    color: #fff !important;
}
.sts-wt__header-icon svg { width: 26px !important; height: 26px !important; }
.sts-wt__header-text { flex: 1 !important; min-width: 0 !important; }
.sts-wt__title {
    font-size: 1.3rem !important; font-weight: 800 !important; color: #fff !important;
    margin: 0 0 .2rem !important; letter-spacing: -.3px !important; line-height: 1.2 !important;
}
.sts-wt__subtitle { font-size: .83rem !important; color: rgba(255,255,255,.75) !important; margin: 0 !important; font-weight: 500 !important; }

/* Toggle */
.sts-wt__toggle {
    display: flex !important; background: rgba(255,255,255,.1) !important;
    border-radius: 8px !important; padding: 3px !important; gap: 2px !important; flex-shrink: 0 !important;
}
.sts-wt__toggle-btn {
    padding: 5px 12px !important; border-radius: 6px !important; border: none !important;
    background: transparent !important; color: rgba(255,255,255,.6) !important;
    font-size: .82rem !important; font-weight: 700 !important; cursor: pointer !important;
    transition: background .15s, color .15s !important; font-family: inherit !important;
}
.sts-wt__toggle-btn:hover { color: #fff !important; }
.sts-wt__toggle-btn--active { background: #1D9E75 !important; color: #fff !important; }

/* ── Search section ── */
.sts-wt__search {
    background: #122840 !important;
    padding: 1rem 1.75rem !important;
    border-bottom: 1px solid rgba(255,255,255,.08) !important;
    display: block !important;
}
.sts-wt__search-label {
    font-size: .72rem !important; font-weight: 700 !important;
    text-transform: uppercase !important; letter-spacing: 2px !important;
    color: #1D9E75 !important; display: block !important; margin-bottom: .5rem !important;
}
.sts-wt__search-row {
    display: flex !important; gap: .5rem !important;
}
.sts-wt__search-input {
    flex: 1 !important;
    background: rgba(255,255,255,.07) !important;
    border: 1.5px solid rgba(255,255,255,.12) !important;
    border-radius: 8px !important; padding: .65rem 1rem !important;
    font-size: .93rem !important; color: #ffffff !important;
    outline: none !important; font-family: inherit !important;
    -webkit-appearance: none !important;
    box-shadow: none !important;
}
.sts-wt__search-input::placeholder { color: rgba(255,255,255,.35) !important; }
.sts-wt__search-input:focus {
    border-color: #1D9E75 !important;
    background: rgba(255,255,255,.12) !important;
    color: #ffffff !important;
    outline: none !important;
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
}
.sts-wt__search-btn {
    background: #1D9E75 !important; color: #fff !important; border: none !important;
    border-radius: 8px !important; padding: .65rem 1.25rem !important;
    font-size: .88rem !important; font-weight: 700 !important; cursor: pointer !important;
    font-family: inherit !important; white-space: nowrap !important;
    transition: background .15s !important;
}
.sts-wt__search-btn:hover { background: #178a62 !important; }
.sts-wt__search-hint {
    font-size: .75rem !important; color: rgba(255,255,255,.45) !important;
    margin-top: .45rem !important; font-weight: 500 !important; min-height: 1.2em !important;
    display: block !important;
}

/* Quick city buttons */
.sts-wt__quick-cities {
    display: flex !important; flex-wrap: wrap !important;
    gap: .4rem !important; margin-top: .6rem !important;
}
.sts-wt__quick-btn {
    font-size: .72rem !important; font-weight: 700 !important; letter-spacing: .3px !important;
    padding: 4px 11px !important; border-radius: 999px !important;
    border: 1px solid rgba(255,255,255,.18) !important;
    background: rgba(255,255,255,.08) !important; color: rgba(255,255,255,.8) !important;
    cursor: pointer !important; font-family: inherit !important; white-space: nowrap !important;
    transition: all .15s !important; display: inline-flex !important; align-items: center !important;
}
.sts-wt__quick-btn:hover {
    background: #1D9E75 !important; border-color: #1D9E75 !important; color: #fff !important;
}

/* City result card */
.sts-wt__city-result {
    background: #0e2a44 !important;
    border: 1px solid rgba(29,158,117,.3) !important;
    border-radius: 10px !important; padding: 1rem 1.25rem !important;
    margin-top: .75rem !important;
    display: flex !important; align-items: center !important; gap: 1rem !important; flex-wrap: wrap !important;
}
.sts-wt__city-result[hidden] { display: none !important; }
.sts-wt__city-result-info { flex: 1 !important; min-width: 0 !important; }
.sts-wt__city-result-name {
    font-size: .78rem !important; font-weight: 700 !important;
    text-transform: uppercase !important; letter-spacing: 1.5px !important;
    color: #1D9E75 !important; display: block !important; margin-bottom: .2rem !important;
}
.sts-wt__city-result-time {
    font-size: 2rem !important; font-weight: 900 !important; color: #fff !important;
    letter-spacing: -.5px !important; display: block !important; font-variant-numeric: tabular-nums !important;
}
.sts-wt__city-result-meta {
    font-size: .8rem !important; color: rgba(255,255,255,.55) !important;
    font-weight: 500 !important; display: block !important; margin-top: .2rem !important;
}
.sts-wt__city-result-close {
    background: rgba(255,255,255,.06) !important;
    border: 1px solid rgba(255,255,255,.12) !important;
    border-radius: 6px !important; color: rgba(255,255,255,.6) !important;
    font-size: .8rem !important; padding: 5px 12px !important; cursor: pointer !important;
    font-family: inherit !important; white-space: nowrap !important;
}
.sts-wt__city-result-close:hover { background: rgba(255,255,255,.14) !important; color: #fff !important; }

/* ── Tabs ── */
.sts-wt__tabs {
    display: flex !important;
    background: #f0f4f8 !important;
    border-bottom: 2px solid #dce4ef !important;
}
.sts-wt__tab {
    flex: 1 !important; padding: .82rem .5rem !important;
    font-size: .8rem !important; font-weight: 700 !important;
    background: #f0f4f8 !important; border: none !important; cursor: pointer !important;
    color: #2D4A63 !important; border-bottom: 3px solid transparent !important;
    margin-bottom: -2px !important; transition: all .15s !important;
    font-family: inherit !important; letter-spacing: .5px !important; text-transform: uppercase !important;
}
.sts-wt__tab:hover { color: #1A3A5C !important; }
.sts-wt__tab--active {
    color: #1A3A5C !important; background: #fff !important;
    border-bottom-color: #1D9E75 !important;
}

/* Panel */
.sts-wt__panel[hidden] { display: none !important; }

/* ── Clock face ── */
.sts-wt__clock-face {
    background: #1A3A5C !important;
    padding: 2.2rem 1.75rem 1.75rem !important;
    text-align: center !important;
    border-bottom: 3px solid #1D9E75 !important;
    display: block !important;
}
.sts-wt__time-wrap {
    display: flex !important; align-items: flex-start !important;
    justify-content: center !important; gap: .5rem !important; margin-bottom: .65rem !important;
}
.sts-wt__time {
    font-size: clamp(52px,11vw,76px) !important; font-weight: 900 !important;
    color: #fff !important; line-height: 1 !important; letter-spacing: -3px !important;
    font-variant-numeric: tabular-nums !important;
}
.sts-wt__ampm {
    font-size: 1rem !important; font-weight: 800 !important; color: #1D9E75 !important;
    margin-top: 9px !important; min-width: 26px !important;
}
.sts-wt__date-row {
    display: flex !important; align-items: center !important; justify-content: center !important;
    gap: .5rem !important; font-size: .95rem !important;
    color: rgba(255,255,255,.75) !important; font-weight: 600 !important;
}
.sts-wt__day { color: #1D9E75 !important; font-weight: 700 !important; }
.sts-wt__date-sep { color: rgba(255,255,255,.3) !important; }

/* ── Info cards ── */
.sts-wt__info-grid {
    display: grid !important; grid-template-columns: 1fr 1fr !important;
    gap: 1px !important; background: #dce4ef !important;
    border-bottom: 1px solid #dce4ef !important;
}
.sts-wt__info-card {
    background: #ffffff !important; padding: 1.1rem 1.25rem !important;
    display: flex !important; flex-direction: column !important; gap: .2rem !important;
}
.sts-wt__info-card:nth-child(odd) { background: #F7F9FC !important; }
.sts-wt__info-lbl {
    font-size: .7rem !important; font-weight: 700 !important;
    text-transform: uppercase !important; letter-spacing: 1.5px !important; color: #2D4A63 !important;
}
.sts-wt__info-val {
    font-size: 1.15rem !important; font-weight: 800 !important; color: #1A3A5C !important;
    line-height: 1.15 !important; font-variant-numeric: tabular-nums !important;
}
.sts-wt__info-sub { font-size: .73rem !important; font-weight: 600 !important; color: #2D4A63 !important; }

/* ── World clock ── */
.sts-wt__world-header {
    display: flex !important; align-items: baseline !important;
    justify-content: space-between !important; padding: 1rem 1.5rem .6rem !important;
    border-bottom: 1px solid #dce4ef !important;
}
.sts-wt__world-title {
    font-size: .82rem !important; font-weight: 800 !important;
    color: #1A3A5C !important; text-transform: uppercase !important;
}
.sts-wt__world-sub { font-size: .73rem !important; color: #2D4A63 !important; font-weight: 500 !important; }
.sts-wt__world-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)) !important;
    gap: 1px !important; background: #dce4ef !important;
}
.sts-wt__city {
    background: #ffffff !important; padding: .9rem 1rem !important;
    display: flex !important; flex-direction: column !important; gap: .2rem !important;
}
.sts-wt__city:nth-child(odd) { background: #F7F9FC !important; }
.sts-wt__city--night .sts-wt__city-time { color: #2D4A63 !important; opacity: .65 !important; }
.sts-wt__city-name {
    font-size: .69rem !important; font-weight: 700 !important;
    text-transform: uppercase !important; letter-spacing: 1.2px !important;
    color: #2D4A63 !important; display: flex !important;
    align-items: center !important; justify-content: space-between !important;
}
.sts-wt__city-time {
    font-size: 1.18rem !important; font-weight: 800 !important;
    color: #1A3A5C !important; letter-spacing: -.3px !important; font-variant-numeric: tabular-nums !important;
}
.sts-wt__city-offset {
    font-size: .69rem !important; font-weight: 600 !important;
    color: #5a7a96 !important; display: flex !important; align-items: center !important; gap: 3px !important;
}
.sts-wt__city-period {
    font-size: .6rem !important; font-weight: 700 !important;
    letter-spacing: .5px !important; padding: 1px 5px !important; border-radius: 4px !important;
}
.sts-wt__city-period--day { background: rgba(29,158,117,.12) !important; color: #1D9E75 !important; }
.sts-wt__city-period--night { background: rgba(26,58,92,.08) !important; color: #2D4A63 !important; }

/* ── Actions ── */
.sts-wt__actions {
    display: flex !important; gap: .75rem !important;
    padding: 1rem 1.5rem !important; background: #fff !important;
    border-top: 1px solid #dce4ef !important; flex-wrap: wrap !important;
}
.sts-wt__btn {
    display: inline-flex !important; align-items: center !important; gap: .45rem !important;
    padding: .65rem 1.25rem !important;
    border: 1.8px solid #1A3A5C !important; border-radius: 8px !important;
    background: transparent !important; color: #1A3A5C !important;
    font-size: .82rem !important; font-weight: 700 !important; cursor: pointer !important;
    font-family: inherit !important; letter-spacing: .4px !important; text-transform: uppercase !important;
}
.sts-wt__btn svg { width: 15px !important; height: 15px !important; }
.sts-wt__btn:hover { background: #1A3A5C !important; color: #fff !important; }

/* Toast */
.sts-wt__toast {
    margin: .25rem 1.5rem .75rem !important; padding: .6rem 1rem !important;
    background: #0f1f30 !important; color: #fff !important;
    font-size: .84rem !important; font-weight: 600 !important;
    border-radius: 8px !important; text-align: center !important; font-family: inherit !important;
}
.sts-wt__toast[hidden] { display: none !important; }

/* ── Responsive ── */
@media (max-width: 520px) {
    .sts-wt__header      { padding: 1.1rem 1.25rem !important; }
    .sts-wt__search      { padding: .85rem 1.25rem !important; }
    .sts-wt__clock-face  { padding: 1.75rem 1.25rem 1.5rem !important; }
    .sts-wt__time        { letter-spacing: -2px !important; }
    .sts-wt__info-grid   { grid-template-columns: 1fr !important; }
    .sts-wt__world-grid  { grid-template-columns: 1fr 1fr !important; }
    .sts-wt__actions     { flex-direction: column !important; }
    .sts-wt__btn         { width: 100% !important; justify-content: center !important; }
    .sts-wt__search-row  { flex-direction: column !important; }
    .sts-wt__search-btn  { width: 100% !important; }
    .sts-wt__quick-cities { gap: .35rem !important; }
}

/* ── Custom suggestions dropdown ─────────────────────────────────────────── */
.sts-wt__suggestions {
    list-style: none !important;
    position: absolute !important;
    top: calc(100% + 4px) !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 999 !important;
    background: #0d2035 !important;
    border: 1px solid rgba(80,160,220,.25) !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    box-shadow: 0 8px 24px rgba(0,0,0,.4) !important;
    margin: 0 !important;
    padding: 0 !important;
    max-height: 220px !important;
    overflow-y: auto !important;
}
.sts-wt__suggestions[hidden],
.sts-wt__suggestions[style*="display:none"] {
    display: none !important;
}
.sts-wt__suggestion {
    padding: .65rem 1rem !important;
    cursor: pointer !important;
    font-size: .88rem !important;
    font-weight: 600 !important;
    color: rgba(255,255,255,.85) !important;
    border-bottom: 1px solid rgba(255,255,255,.05) !important;
    display: flex !important;
    align-items: center !important;
    gap: .5rem !important;
    transition: background .12s !important;
}
.sts-wt__suggestion:last-child { border-bottom: none !important; }
.sts-wt__suggestion:hover,
.sts-wt__suggestion.active {
    background: rgba(29,158,117,.2) !important;
    color: #fff !important;
}
.sts-wt__suggestion-sub {
    font-size: .72rem !important;
    color: rgba(255,255,255,.4) !important;
    font-weight: 500 !important;
    margin-left: auto !important;
}
/* Make search row relative so suggestions position correctly */
.sts-wt__search-row {
    position: relative !important;
}

/* ── City/Country Select Dropdown ─────────────────────────────────────────── */
.sts-wt__or-divider {
    display: flex !important;
    align-items: center !important;
    gap: .75rem !important;
    margin: .75rem 0 .6rem !important;
    color: rgba(255,255,255,.3) !important;
    font-size: .72rem !important;
    font-weight: 600 !important;
    letter-spacing: 1px !important;
    text-transform: uppercase !important;
}
.sts-wt__or-divider::before,
.sts-wt__or-divider::after {
    content: '' !important;
    flex: 1 !important;
    height: 1px !important;
    background: rgba(255,255,255,.1) !important;
}

.sts-wt__select-row {
    display: flex !important;
    gap: .5rem !important;
}
.sts-wt__select {
    flex: 1 !important;
    background: rgba(255,255,255,.07) !important;
    color: #ffffff !important;
    border: 1.5px solid rgba(255,255,255,.15) !important;
    border-radius: 8px !important;
    padding: .65rem 1rem !important;
    font-size: .88rem !important;
    font-weight: 600 !important;
    font-family: inherit !important;
    outline: none !important;
    cursor: pointer !important;
    -webkit-appearance: auto !important;
    appearance: auto !important;
}
.sts-wt__select:focus {
    border-color: #1D9E75 !important;
    background: rgba(255,255,255,.1) !important;
    outline: none !important;
}
.sts-wt__select option {
    background: #1A3A5C !important;
    color: #fff !important;
    padding: 4px 8px !important;
}
.sts-wt__select optgroup {
    background: #122840 !important;
    color: #1D9E75 !important;
    font-weight: 700 !important;
    font-size: .82rem !important;
}
.sts-wt__select-btn {
    background: #1D9E75 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 8px !important;
    padding: .65rem 1.4rem !important;
    font-size: .92rem !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    font-family: inherit !important;
    white-space: nowrap !important;
    transition: background .15s !important;
    min-width: 60px !important;
}
.sts-wt__select-btn:hover { background: #178a62 !important; }

@media (max-width: 520px) {
    .sts-wt__select-row { flex-direction: column !important; }
    .sts-wt__select-btn { width: 100% !important; }
}

/* ── Date display in city result and world clock ──────────────────────────── */
.sts-wt__city-result-meta {
    font-size: .78rem !important;
    color: rgba(255,255,255,.55) !important;
    font-weight: 500 !important;
    display: block !important;
    margin-top: .2rem !important;
    line-height: 1.5 !important;
}

/* Date badge on world clock cards when date differs from local */
.sts-wt__city-date {
    font-size: .65rem !important;
    font-weight: 700 !important;
    color: #fff !important;
    background: rgba(29,158,117,.3) !important;
    border-radius: 4px !important;
    padding: 1px 6px !important;
    letter-spacing: .3px !important;
    display: inline-block !important;
    margin-top: 2px !important;
}
