/* Desktop widgets — chromatic liquid glass (no white/milky wash) */

.desktop-widgets {
  position: absolute;
  top: calc(var(--menubar-h) + 14px);
  left: 16px;
  z-index: 12;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 280px;
  pointer-events: auto;
  max-height: calc(100% - var(--menubar-h) - 100px);
  overflow: auto;
  scrollbar-width: none;
}

.desktop-widgets::-webkit-scrollbar {
  display: none;
}

.gg-widget {
  position: relative;
  width: 280px;
  border-radius: 18px;
  padding: 14px 14px 12px;
  overflow: hidden;
  color: var(--text);
  background: rgba(20, 110, 230, 0.1);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: 0.5px solid rgba(120, 180, 255, 0.28);
  box-shadow: none;
  transition: transform 0.2s var(--ease-spring), opacity 0.2s var(--ease-out);
  animation: gg-widget-in 0.45s var(--ease-out) both;
  will-change: transform, opacity;
}

.gg-widget:nth-child(1) { animation-delay: 0.05s; }
.gg-widget:nth-child(2) { animation-delay: 0.1s; }
.gg-widget:nth-child(3) { animation-delay: 0.15s; }
.gg-widget:nth-child(4) { animation-delay: 0.2s; }

.gg-widget:hover {
  transform: translateY(-1px) scale(1.01);
}

.gg-widget:active {
  transform: scale(0.985);
}

html[data-theme="light"] .gg-widget {
  background: rgba(0, 122, 255, 0.08);
  border-color: rgba(0, 122, 255, 0.22);
  color: #1c1c1e;
  box-shadow: none;
}

html.gg-liq-live .gg-widget,
html.gg-liq-live .desktop-widget {
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

html:not(.gg-liq-live) .gg-widget {
  backdrop-filter: blur(28px) saturate(170%);
  -webkit-backdrop-filter: blur(28px) saturate(170%);
}

.gg-widget-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.gg-widget-title {
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.gg-widget-meta {
  font-size: 11px;
  color: var(--text-dim);
  font-variant-numeric: tabular-nums;
}

/* Calendar */
.gg-cal-month {
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.gg-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  text-align: center;
}

.gg-cal-dow {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  padding: 2px 0 4px;
}

.gg-cal-day {
  font-size: 12px;
  font-weight: 500;
  padding: 6px 0;
  border-radius: 8px;
  color: var(--text);
}

.gg-cal-day.empty {
  opacity: 0;
  pointer-events: none;
}

.gg-cal-day.today {
  background: var(--accent);
  color: #fff;
  font-weight: 650;
}

/* Weather */
.gg-weather-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.gg-weather-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff;
  background: linear-gradient(145deg, #64d2ff, #0a84ff 55%, #5e5ce6);
  flex-shrink: 0;
}

.gg-weather-temp {
  font-size: 36px;
  font-weight: 200;
  letter-spacing: -0.04em;
  line-height: 1;
}

.gg-weather-unit {
  font-size: 22px;
  font-weight: 300;
}

.gg-weather-info {
  margin-left: auto;
  text-align: right;
}

.gg-weather-cond {
  font-size: 13px;
  font-weight: 560;
}

.gg-weather-loc {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Reminders */
.gg-rem-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.gg-rem-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  padding: 2px 0;
}

.gg-rem-item.done .gg-rem-text {
  text-decoration: line-through;
  opacity: 0.55;
}

.gg-rem-check {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1.5px solid rgba(120, 180, 255, 0.55);
  background: transparent;
  flex-shrink: 0;
  padding: 0;
  cursor: pointer;
}

.gg-rem-check.on {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: inset 0 0 0 3px rgba(0, 0, 0, 0.15);
}

.gg-rem-text {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  outline: none;
  padding: 2px 0;
}

/* Stocks */
.gg-stock-row {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 5px 0;
  font-size: 12px;
}

.gg-stock-sym {
  font-weight: 650;
  letter-spacing: -0.01em;
}

.gg-stock-spark {
  width: 100%;
  height: 22px;
  display: block;
}

.gg-stock-quote {
  text-align: right;
  min-width: 64px;
}

.gg-stock-price {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.gg-stock-chg {
  font-size: 11px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.gg-stock-chg.up {
  color: #30d158;
}

.gg-stock-chg.down {
  color: #ff453a;
}

@keyframes gg-widget-in {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
