/* World Clock Tool */
.worldclock-tool {
  width: 100%;
  max-width: 960px;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
  animation: fadeInUp 0.5s ease-out;
}

/* Arama / şehir ekle */
.wc-add {
  position: relative;
  max-width: 420px;
  width: 100%;
  margin: 0 auto;
}
.wc-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  pointer-events: none;
}
.wc-search.calc-input { padding-left: 42px; }

.wc-suggest {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(20, 20, 35, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--border-radius-sm);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.45);
  overflow: hidden;
  max-height: 320px;
  overflow-y: auto;
}
.wc-suggest-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--spacing-sm);
  width: 100%;
  padding: 0.7rem 0.9rem;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease;
}
.wc-suggest-item:last-child { border-bottom: none; }
.wc-suggest-item:hover { background: rgba(102, 126, 234, 0.18); }
.wc-suggest-item small { color: var(--text-muted); font-weight: 400; font-size: 0.8rem; }

/* Kart grid */
.wc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: var(--spacing-md);
}

.wc-card {
  position: relative;
  padding: var(--spacing-lg) var(--spacing-md);
  border-radius: var(--border-radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%);
  backdrop-filter: blur(var(--blur-amount));
  text-align: center;
  transition: var(--transition);
  overflow: hidden;
}
.wc-grid.wc-dn .wc-card.wc-day { background: linear-gradient(160deg, rgba(56, 189, 248, 0.16) 0%, rgba(255, 255, 255, 0.03) 70%); }
.wc-grid.wc-dn .wc-card.wc-night { background: linear-gradient(160deg, rgba(79, 70, 229, 0.20) 0%, rgba(15, 15, 30, 0.10) 70%); }

.wc-remove {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  cursor: pointer;
  opacity: 0;
  transition: all 0.2s ease;
}
.wc-card:hover .wc-remove { opacity: 1; }
.wc-remove:hover { background: rgba(239, 68, 68, 0.25); color: #fff; }
.wc-remove svg { width: 14px; height: 14px; }

.wc-city {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}
.wc-country {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: var(--spacing-sm);
  min-height: 0.9em;
}
.wc-time {
  font-size: clamp(1.6rem, 6vw, 2rem);
  font-weight: 700;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
  line-height: 1;
}
.wc-date {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-top: 4px;
}
.wc-offset {
  display: inline-block;
  margin-top: var(--spacing-sm);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 8px;
  border-radius: 20px;
}

.wc-empty {
  text-align: center;
  color: var(--text-muted);
  padding: var(--spacing-lg);
}

/* Tam ekranda şehir ekleme kutusu gizli */
body.fullscreen .wc-add { display: none; }

/* Gündüz/gece ikon rozeti (beyaz SVG, sol üst) — yalnızca özellik açıkken görünür */
.wc-daynight {
  display: none;
  position: absolute;
  top: 8px;
  left: 10px;
  color: rgba(255, 255, 255, 0.85);
}
.wc-grid.wc-dn .wc-card.wc-day .wc-daynight,
.wc-grid.wc-dn .wc-card.wc-night .wc-daynight { display: block; }
.wc-daynight svg { display: none; width: 16px; height: 16px; }
.wc-card.wc-day .wc-sun { display: block; }
.wc-card.wc-night .wc-moon { display: block; }

/* Kart boyutu ön ayarları */
.wc-grid.wc-size-sm { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); --balance-min: 130px; }
.wc-grid.wc-size-md { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); --balance-min: 170px; }
.wc-grid.wc-size-lg { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); --balance-min: 220px; }
.wc-grid.wc-size-sm .wc-time { font-size: clamp(1.3rem, 5vw, 1.55rem); }
.wc-grid.wc-size-lg .wc-time { font-size: clamp(2rem, 6vw, 2.6rem); }

/* Dijital / minimal analog geçişi */
.wc-analog {
  display: none;
  width: clamp(88px, 26vw, 112px);
  height: auto;
  margin: 6px auto 0;
}
.wc-grid.wc-mode-analog .wc-time { display: none; }
.wc-grid.wc-mode-analog .wc-analog { display: block; }
.wc-grid.wc-size-sm .wc-analog { width: clamp(72px, 22vw, 92px); }
.wc-grid.wc-size-lg .wc-analog { width: clamp(120px, 30vw, 150px); }

.wc-face { fill: none; stroke: rgba(255, 255, 255, 0.28); stroke-width: 2; }
.wc-hand { stroke: var(--text-primary); stroke-linecap: round; }
.wc-h-hour { stroke-width: 3.4; }
.wc-h-min { stroke-width: 2.4; }
.wc-h-sec { stroke: #f5576c; stroke-width: 1.4; }
.wc-center { fill: var(--text-primary); }

/* Touch cihazlarda kaldır butonu her zaman görünür */
@media (hover: none) {
  .wc-remove { opacity: 1; }
}

@media (max-width: 400px) {
  .wc-grid.wc-size-md { grid-template-columns: repeat(2, 1fr); --balance-min: 140px; }
  .wc-grid.wc-size-lg { grid-template-columns: repeat(2, 1fr); --balance-min: 140px; }
}
