/* v3.2.0 - World Clock Stylesheet */
.wc-container { max-width: 1140px; margin: 0 auto; padding: 20px 16px 40px; }
.wc-header { text-align: center; margin-bottom: 24px; }
.wc-header h1 { font-size: 1.6rem; font-weight: 900; margin-bottom: 4px; }
.wc-subtitle { font-size: 0.9rem; color: var(--text-muted); max-width: 480px; margin: 0 auto; }
.wc-style-bar { display: flex; align-items: center; justify-content: center; gap: 4px; margin-bottom: 20px; flex-wrap: wrap; }
.wc-style-label { font-size: 0.78rem; color: var(--text-muted); margin-right: 6px; font-weight: 600; }
.wc-style-btn { display: inline-flex; align-items: center; gap: 3px; padding: 5px 12px; border: 1.5px solid var(--border); border-radius: 18px; background: transparent; color: var(--text-muted); font-size: 0.75rem; font-weight: 600; cursor: pointer; transition: all 0.2s ease; font-family: inherit; }
.wc-style-btn:hover { border-color: var(--accent); color: var(--accent); }
.wc-style-btn.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.wc-search-bar { position: relative; max-width: 380px; margin: 0 auto 22px; }
.wc-add-input { width: 100%; padding: 9px 16px; border: 1.5px solid var(--border); border-radius: 22px; font-size: 0.85rem; background: var(--bg); color: var(--text); outline: none; transition: border-color 0.2s; box-sizing: border-box; font-family: inherit; }
.wc-add-input:focus { border-color: var(--accent); }
.wc-suggestions { display: none; position: absolute; top: 100%; left: 0; right: 0; margin-top: 4px; background: var(--bg); border: 1px solid var(--border); border-radius: 10px; box-shadow: 0 4px 16px rgba(0,0,0,0.08); z-index: 100; max-height: 260px; overflow-y: auto; }
body.dark .wc-suggestions { box-shadow: 0 4px 16px rgba(0,0,0,0.35); }
.wc-suggestion-item { display: flex; justify-content: space-between; align-items: center; padding: 9px 14px; cursor: pointer; transition: background 0.15s; }
.wc-suggestion-item + .wc-suggestion-item { border-top: 1px solid var(--border-light, #eee); }
.wc-suggestion-item:hover { background: var(--bg-alt); }
.wc-sug-name { font-size: 0.85rem; font-weight: 600; color: var(--text); }
.wc-sug-tz { font-size: 0.72rem; color: var(--text-muted); font-family: monospace; }
.wc-featured { margin-bottom: 22px; }
.wc-featured-label { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); margin-bottom: 8px; text-align: center; }
.wc-featured-card { position: relative; display: flex; align-items: center; gap: 20px; background: var(--bg-alt); border: 1.5px solid var(--border); border-radius: 16px; padding: 20px 24px; max-width: 520px; margin: 0 auto; transition: border-color 0.3s; }
.wc-feat-info { flex: 1; min-width: 0; text-align: center; }
.wc-feat-city { font-size: 1.3rem; font-weight: 900; color: var(--text); margin-bottom: 2px; }
.wc-feat-time { font-size: 2rem; font-weight: 800; font-family: "SF Mono","Fira Code",monospace; color: var(--clock-color,var(--accent)); letter-spacing: 0.02em; line-height: 1.2; }
.wc-feat-offset { font-size: 0.82rem; color: var(--text-muted); font-family: monospace; margin: 1px 0; }
.wc-feat-date { font-size: 0.8rem; color: var(--text-secondary); }
.wc-feat-fullscreen { position: absolute; top: 10px; right: 10px; width: 32px; height: 32px; border: none; border-radius: 8px; background: transparent; color: var(--text-muted); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background 0.2s; padding: 0; }
.wc-feat-fullscreen:hover { background: var(--bg-alt); color: var(--accent); }
.wc-feat-clock { flex-shrink: 0; width: 140px; height: 140px; }
.wc-modern .wc-feat-clock { display: none; }
.wc-modern .wc-feat-time { font-size: 2.6rem; }
.wc-minimal .wc-feat-clock { width: 120px; height: 120px; }
.wc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; margin-bottom: 20px; }
.wc-card { position: relative; background: var(--bg-alt); border: 1px solid var(--border); border-radius: 12px; padding: 14px 10px 10px; text-align: center; transition: all 0.25s ease; overflow: hidden; }
.wc-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.wc-card-city { font-size: 0.78rem; font-weight: 700; color: var(--text); margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wc-card-time { font-size: 1.3rem; font-weight: 800; font-family: "SF Mono","Fira Code",monospace; color: var(--clock-color,var(--accent)); letter-spacing: 0.01em; line-height: 1.3; margin-bottom: 2px; }
.wc-card-digi { font-size: 0.95rem; font-weight: 700; font-family: "SF Mono","Fira Code",monospace; color: var(--clock-color,var(--accent)); margin: 2px 0 1px; line-height: 1.2; }
.wc-card-diff { font-size: 0.7rem; font-weight: 600; color: var(--text-muted); margin-bottom: 1px; }
.wc-card-offset { font-size: 0.7rem; color: var(--text-muted); font-family: monospace; margin-bottom: 1px; }
.wc-card-date { font-size: 0.7rem; color: var(--text-secondary); margin-bottom: 3px; }
.wc-card-tz { font-size: 0.6rem; color: var(--text-muted); opacity: 0.5; }
.wc-card-remove { position: absolute; top: 4px; right: 6px; width: 20px; height: 20px; border: none; background: transparent; color: var(--text-muted); cursor: pointer; border-radius: 50%; opacity: 0; transition: opacity 0.2s; }
.wc-card:hover .wc-card-remove { opacity: 0.4; }
.wc-card-remove:hover { opacity: 1 !important; background: rgba(0,0,0,0.05); }
body.dark .wc-card-remove:hover { background: rgba(255,255,255,0.08); }
.wc-classic .wc-card-time { display: none; }
.wc-classic .wc-card-digi { display: block; }
.wc-classic .wc-analog { display: block; }
.wc-modern .wc-analog { display: none; }
.wc-modern .wc-card-digi { display: none; }
.wc-modern .wc-card-time { display: block !important; font-size: 1.4rem; }
.wc-minimal .wc-card-time { display: none; }
.wc-minimal .wc-card-digi { display: block; }
.wc-minimal .wc-analog { display: block; max-width: 80px; margin: 4px auto; }
.wc-minimal .wc-card { padding: 10px 6px 8px; display: flex; flex-direction: column; align-items: center; }
.wc-minimal .wc-card-city { font-size: 0.68rem; }
.wc-analog { width: 100%; height: auto; display: block; }
.wc-face { fill: #f5f4f0; stroke: #d0cec8; stroke-width: 1.5; }
body.dark .wc-face { fill: #2a2a2a; stroke: #444; stroke-width: 1.5; }
.wc-mark { stroke: #b0ada8; stroke-width: 1; opacity: 0.5; }
body.dark .wc-mark { stroke: #555; opacity: 0.5; }
.wc-mark-h { stroke: #555; stroke-width: 2; opacity: 0.8; }
body.dark .wc-mark-h { stroke: #aaa; stroke-width: 2; opacity: 0.8; }
.wc-hand-hour { stroke: #1a1a1a; stroke-linecap: round; }
body.dark .wc-hand-hour { stroke: #e0e0e0; }
.wc-hand-min { stroke: #444; stroke-linecap: round; }
body.dark .wc-hand-min { stroke: #bbb; }
.wc-hand-sec { stroke: #dc2626; stroke-linecap: round; }
body.dark .wc-hand-sec { stroke: #f87171; }
.wc-center { fill: #dc2626; }
body.dark .wc-center { fill: #f87171; }
.wc-empty { text-align: center; padding: 50px 20px; color: var(--text-muted); }
.wc-empty svg { width: 40px; height: 40px; opacity: 0.25; margin-bottom: 10px; }
.wc-footer-actions { text-align: center; margin-top: 6px; }
.wc-reset-btn { padding: 6px 20px; border: 1px solid var(--border); border-radius: 18px; background: transparent; color: var(--text-muted); font-size: 0.78rem; cursor: pointer; transition: all 0.2s; font-family: inherit; }
.wc-reset-btn:hover { border-color: var(--accent); color: var(--accent); background: var(--bg-alt); }
.wc-fullscreen-overlay { position: fixed; inset: 0; z-index: 10000; background: var(--bg); display: flex; align-items: center; justify-content: center; padding: 3vh 3vw; box-sizing: border-box; }
.wc-fs-close { position: fixed; top: 2.5vh; right: 2.5vw; width: 44px; height: 44px; border: none; border-radius: 50%; background: var(--bg-alt); color: var(--text-muted); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.25s; z-index: 10001; }
.wc-fs-close:hover { background: var(--accent); color: #fff; }
.wc-fs-body { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 94vw; height: 94vh; gap: 1.5vh; max-width: 1600px; }
.wc-fs-main { display: flex; align-items: center; justify-content: center; gap: 5vw; flex: 1; min-height: 0; width: 100%; }
.wc-fs-left { flex: 1; text-align: right; display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.wc-fs-city { font-size: clamp(2rem, 4vw, 5rem); font-weight: 900; color: var(--text); margin-bottom: 0.5vh; }
.wc-fs-time { font-size: clamp(3.5rem, 10vw, 11rem); font-weight: 800; font-family: "SF Mono","Fira Code","Courier New",monospace; color: var(--clock-color,var(--accent)); letter-spacing: 0.03em; line-height: 1.1; margin-bottom: 0.8vh; }
.wc-fs-offset { font-size: clamp(1.1rem, 2.2vw, 2.8rem); color: var(--text-muted); font-family: monospace; margin-bottom: 0.3vh; }
.wc-fs-date { font-size: clamp(1rem, 1.8vw, 2.2rem); color: var(--text-secondary); }
.wc-fs-right { flex: 1; display: flex; align-items: center; justify-content: center; min-width: 0; }
.wc-fs-clock-wrap { width: min(42vh, 42vw, 480px); height: min(42vh, 42vw, 480px); display: flex; align-items: center; justify-content: center; }
.wc-fs-svg { width: 100%; height: 100%; display: block; }
.wc-nums { font-family: "Georgia","Times New Roman",serif; font-weight: 700; }
.wc-num { fill: var(--text); font-size: 28px; text-anchor: middle; dominant-baseline: central; }
body.dark .wc-num { fill: #ddd; }
.wc-fs-bottom { display: flex; align-items: center; justify-content: center; gap: 16px; width: 94vw; max-width: 1500px; flex-shrink: 0; height: 18vh; min-height: 130px; max-height: 200px; padding: 6px 0; overflow-x: auto; overflow-y: hidden; }
.wc-fs-mini-card { flex-shrink: 0; width: 140px; height: 100%; text-align: center; background: var(--bg-alt); border: 1px solid var(--border); border-radius: 14px; padding: 8px; cursor: default; display: flex; flex-direction: column; align-items: center; justify-content: center; box-sizing: border-box; }
.wc-fs-mini-card .wc-card-city { font-size: 0.8rem; font-weight: 700; margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.wc-fs-mini-card .wc-analog { width: 65px; height: 65px; margin: 2px auto; display: block; }
.wc-fs-mini-card .wc-card-digi { font-size: 0.85rem; font-weight: 700; font-family: "SF Mono",monospace; color: var(--clock-color,var(--accent)); line-height: 1.2; }
.wc-fs-mini-card .wc-card-offset { font-size: 0.65rem; font-family: monospace; color: var(--text-muted); }
.wc-fs-mini-card .wc-card-diff, .wc-fs-mini-card .wc-card-date, .wc-fs-mini-card .wc-card-tz, .wc-fs-mini-card .wc-card-time, .wc-fs-mini-card .wc-card-remove { display: none; }
@media (max-width: 768px) {
.wc-header h1 { font-size: 1.3rem; }
.wc-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.wc-card { padding: 12px 8px 8px; }
.wc-card-time { font-size: 1.1rem; }
.wc-featured-card { flex-direction: column; padding: 16px; max-width: 280px; }
.wc-feat-clock { width: 120px; height: 120px; }
.wc-feat-time { font-size: 1.4rem; }
.wc-fs-main { flex-direction: column; gap: 2vh; }
.wc-fs-left { text-align: center; }
.wc-fs-city { font-size: clamp(1.2rem, 5vw, 2.2rem); }
.wc-fs-time { font-size: clamp(2rem, 10vw, 4rem); }
.wc-fs-clock-wrap { width: min(35vh, 55vw, 260px); height: min(35vh, 55vw, 260px); }
.wc-fs-close { top: 2vh; right: 3vw; width: 40px; height: 40px; }
.wc-fs-bottom { gap: 10px; height: 16vh; min-height: 100px; }
.wc-fs-mini-card { width: 110px; padding: 6px; }
.wc-fs-mini-card .wc-analog { width: 48px; height: 48px; }
}
@media (max-width: 480px) {
.wc-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
.wc-card { padding: 8px 4px 6px; }
.wc-card-time { font-size: 0.95rem; }
.wc-feat-time { font-size: 1.1rem; }
.wc-fs-bottom { gap: 8px; height: 14vh; min-height: 80px; }
.wc-fs-mini-card { width: 80px; padding: 4px; }
.wc-fs-mini-card .wc-analog { width: 34px; height: 34px; }
.wc-fs-mini-card .wc-card-digi { font-size: 0.55rem; }
.wc-fs-mini-card .wc-card-offset { font-size: 0.45rem; }
}
