/* Analog Clock - Minimalist Dark Theme */

/* Container */
.clock-app-container {
  width: 100%;
  max-width: 500px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

/* Header */

/* Clock Face */
.analog-clock {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: #222;
  border: 8px solid #333;
  position: relative;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
  transition: all 0.3s ease;
}

.clock-face {
  width: 100%;
  height: 100%;
  position: relative;
  border-radius: 50%;
}

.center-dot {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 12px;
  background: var(--text-secondary); /* Gray dot */
  border-radius: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
}

/* Markers */
.hour-marker {
  position: absolute;
  width: 4px;
  height: 15px;
  background: var(--text-muted);
  left: 50%;
  top: 0;
  transform-origin: 50% 150px; /* Half of clock width */
}

.minute-marker {
  position: absolute;
  width: 2px;
  height: 8px;
  background: #444;
  left: 50%;
  top: 0;
  transform-origin: 50% 150px;
}

/* Numbers */
.clock-numbers {
  width: 100%;
  height: 100%;
  position: absolute;
}

.number {
  position: absolute;
  width: 30px;
  height: 30px;
  text-align: center;
  line-height: 30px;
  color: var(--text-secondary);
  font-size: 1.2rem;
  font-weight: bold;
  font-family: "JetBrains Mono", monospace;
}

/* Positioning Numbers */
.number[data-number="12"] {
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
}
.number[data-number="6"] {
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
}
.number[data-number="3"] {
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
}
.number[data-number="9"] {
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
}

/* Hide other numbers for minimalist look or position them correctly if needed */
.number:not([data-number="12"]):not([data-number="6"]):not(
    [data-number="3"]
  ):not([data-number="9"]) {
  display: none; /* Simplification */
}

/* Hands */
.hand {
  position: absolute;
  bottom: 50%;
  left: 50%;
  transform-origin: bottom center;
  border-radius: 4px;
  z-index: 5;
}

.hour-hand {
  width: 6px;
  height: 70px;
  background: var(--text-secondary);
}

.minute-hand {
  width: 4px;
  height: 100px;
  background: #888;
}

.second-hand {
  width: 2px;
  height: 110px;
  background: #ff5f56; /* Red second hand */
  z-index: 6;
}

/* Controls */
.clock-options {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  width: 100%;
}

.toggle-group {
  display: flex;
  gap: 15px;
}

.toggle-group label {
  color: var(--text-muted);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}

.style-selector {
  display: flex;
  gap: 10px;
}

.style-btn {
  padding: 8px 16px;
  border: 1px solid #444;
  background: transparent;
  color: var(--text-muted);
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.2s;
}

.style-btn.active,
.style-btn:hover {
  background: var(--text-secondary);
  color: var(--bg-primary);
  border-color: var(--text-secondary);
}

.timezone-display {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 10px;
}

/* Styles */
/* Modern Design - Sleek, Swiss-style */
.analog-clock.style-modern {
  background: #ffffff;
  border: 4px solid #e0e0e0;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.analog-clock.style-modern .clock-face {
  background: radial-gradient(circle at center, #fff 0%, #f8f9fa 100%);
}

.analog-clock.style-modern .number {
  font-family: "Inter", sans-serif;
  font-weight: 500;
  color: #212529;
  display: none; /* Hide numbers for modern look */
}

/* Modern Markers - Thinner, longer */
.analog-clock.style-modern .hour-marker {
  width: 2px;
  height: 20px;
  background: #212529;
}

.analog-clock.style-modern .minute-marker {
  width: 1px;
  height: 8px;
  background: #adb5bd;
}

/* Modern Hands */
.analog-clock.style-modern .hour-hand {
  width: 6px;
  background: #212529;
  border-radius: 4px;
}

.analog-clock.style-modern .minute-hand {
  width: 4px;
  background: #495057;
  border-radius: 4px;
}

.analog-clock.style-modern .second-hand {
  width: 2px;
  background: #fa5252; /* Different accent for modern */
}

.analog-clock.style-modern .center-dot {
  background: #212529;
  width: 8px;
  height: 8px;
}

.analog-clock.style-minimal .number {
  display: none;
}
.analog-clock.style-minimal .hour-markers,
.analog-clock.style-minimal .minute-markers {
  display: none;
}
