/**
 * Clock Widget Styles – hero-style digits (v3)
 *
 * Goal:
 * - MINI: day + big time + date (centered stack)
 * - COMPACT: giant single-line time, day/date overlaid bottom-left
 * - HERO (standard / expanded / xl):
 *     6   (80% opacity)
 *     28  (60% opacity)
 *     01  (optional seconds)
 *     pm  (40% opacity)
 *   with day/date anchored bottom-left; time stack fills the tile.
 */

.widget.widget-clock .widget-body {
  display: flex;
  align-items: center;
  justify-content: center;
}

.widget.widget-clock .widget-body-inner.widget-clock {
  position: relative;
  width: 100%;
  height: 100%;
}

/* --------------------------------
 * MINI
 * -------------------------------- */

.clock-mini {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.1rem;
  text-align: center;
}

.clock-mini-day {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: clamp(0.55rem, 1.2vw, 0.75rem);
  font-weight: 900;
}

.clock-mini-time {
  font-variant-numeric: tabular-nums;
  font-weight: 900;
  letter-spacing: -0.03em;
  white-space: nowrap;
  line-height: 1.02;
  font-size: clamp(1.2rem, 3.5vw, 1.8rem);
  opacity: 0.7;
}

.clock-mini-date {
  font-size: clamp(0.7rem, 1.6vw, 0.95rem);
  font-weight: 900;
}

/* --------------------------------
 * COMPACT (1×2 / 2×1)
 * -------------------------------- */

.clock-compact {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.clock-compact-time {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  letter-spacing: -0.04em;
  white-space: nowrap;
  text-align: left;
  line-height: 0.9;
  opacity: 0.6;

  padding: 0.1rem 0.6rem 0.1rem 0.55rem;
  font-size: clamp(2.8rem, 8.8vw, 5.2rem);
}

/* Overlay with day/date similar to iOS medium widget */
.clock-compact-overlay {
  position: absolute;
  left: 0.65rem;
  bottom: 0.4rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  pointer-events: none;
}

.clock-compact-day {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: clamp(0.55rem, 1.2vw, 0.75rem);
  font-weight: 900;
}

.clock-compact-date {
  font-size: clamp(0.75rem, 1.7vw, 1.0rem);
  font-weight: 900;
}

/* --------------------------------
 * HERO MODES (standard / expanded / xl)
 * -------------------------------- */

.clock-hero {
  position: relative;
  width: 100%;
  height: 100%;
}

/* Time stack: centered, very tight insets so it can fill the card */
.clock-hero-time {
  position: absolute;
  inset: 0.1rem 0.6rem 0.8rem 0.6rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 0.1rem;
}

.clock-hero-line {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  letter-spacing: -0.06em;
  white-space: nowrap;
}

/* Opacity layering */
.clock-hero-hour {
  opacity: 0.8;
}

.clock-hero-minute {
  opacity: 0.6;
}

.clock-hero-second {
  opacity: 0.5; /* keep same as minutes for now */
}

/* AM/PM suffix under stack – larger and lighter */
.clock-hero-suffix {
  font-weight: 600;
  text-transform: lowercase;
  font-size: 0.6em; /* larger than before */
  margin-top: 0.2em;
  opacity: 0.4;
}

/* HERO overlay (day/date) anchored bottom-left */
.clock-hero-overlay {
  position: absolute;
  left: 0.7rem;
  bottom: 0.45rem;
  top: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  pointer-events: none;
}

.clock-hero-day {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: clamp(0.55rem, 1.2vw, 0.8rem);
  font-weight: 900;
}

.clock-hero-date {
  font-size: clamp(0.8rem, 1.8vw, 1.1rem);
  font-weight: 900;
  opacity: 1; /* full opacity */
}

/* --------------------------------
 * Mode-specific hero sizing
 * -------------------------------- */

/* STANDARD – big */
.widget.widget-clock.widget--mode-standard .clock-hero-hour,
.widget.widget-clock.widget--mode-standard .clock-hero-minute {
  font-size: clamp(3.5rem, 12vw, 10rem);
  line-height: 0.4; /* strong overlap */
}

/* .widget.widget-clock.widget--mode-standard .clock-hero-second {
  font-size: 0.45em;
  line-height: 0.9;
} */

.widget.widget-clock.widget--mode-standard .clock-hero-second,
.widget.widget-clock.widget--mode-standard .clock-hero-suffix {
  font-size: clamp(2.5rem, 8vw, 7rem);
  line-height: 0.2; /* strong overlap */
}

/* EXPANDED – bigger */
.widget.widget-clock.widget--mode-expanded .clock-hero-hour,
.widget.widget-clock.widget--mode-expanded .clock-hero-minute {
  font-size: clamp(5.5rem, 20vw, 15rem);
  line-height: 0.45;
}

/*.widget.widget-clock.widget--mode-expanded .clock-hero-second {
  font-size: 0.45em;
  line-height: 0.9;
} */

.widget.widget-clock.widget--mode-expanded .clock-hero-second,
.widget.widget-clock.widget--mode-expanded .clock-hero-suffix {
  font-size: clamp(3.5rem, 10vw, 8rem);
  line-height: 0.3;
}

/* XL – gargantuan */
.widget.widget-clock.widget--mode-xl .clock-hero-hour,
.widget.widget-clock.widget--mode-xl .clock-hero-minute {
  font-size: clamp(6.5rem, 24vw, 17rem);
  line-height: 0.5;
}

/* .widget.widget-clock.widget--mode-xl .clock-hero-second {
  font-size: 0.45em;
  line-height: 0.9;
} */

.widget.widget-clock.widget--mode-xl .clock-hero-second,
.widget.widget-clock.widget--mode-xl .clock-hero-suffix {
  font-size: clamp(3.5rem, 23vw, 9rem);
  line-height: 0.4;
}