/* Catppuccin Mocha Crust + full-color icons, live Pi stats & styled Weather */
:root {
  --ctp-crust: #11111b;
  --ctp-mantle: #181825;
  --ctp-surface0: #313244;
  --ctp-surface1: #45475a;
  --ctp-surface2: #585b70;
  --ctp-peach: #fab387;
  --ctp-maroon: #eba0ac;
  --ctp-mauve: #cba6f7;
  --ctp-green: #a6e3a1;
  --ctp-teal: #94e2d5;
  --ctp-sky: #89dceb;
  --ctp-blue: #89b4fa;
  --ctp-yellow: #f9e2af;
  --ctp-red: #f38ba8;
  --ctp-text: #cdd6f4;
  --ctp-subtext: #a6adc8;
}

.widget-content {
  background-color: var(--ctp-mantle);
  border-color: var(--ctp-surface0);
}

.widget-header h2,
.widget-header-title {
  color: var(--ctp-peach);
  font-weight: 700;
}

.widget-type-calendar .widget-header h2 { color: var(--ctp-blue); }
.widget-type-rss .widget-header h2 { color: var(--ctp-mauve); }
.widget-type-weather .widget-header h2 { color: var(--ctp-yellow); }
.widget-type-bookmarks .widget-header h2 { color: var(--ctp-green); }
.widget-type-releases .widget-header h2 { color: var(--ctp-mauve); }
.widget-type-pi-stats .widget-header h2 { color: var(--ctp-peach); }

/* Override Glance default dimming & grayscale on icons */
.bookmarks-icon-container,
.bookmarks-icon,
.monitor-site-icon {
  opacity: 1 !important;
  filter: none !important;
}

.bookmarks-link {
  color: var(--bookmarks-group-color) !important;
}

.bookmarks-link:hover,
.monitor-site-title:hover {
  color: var(--ctp-peach) !important;
}

/* Weather widget Catppuccin Mocha makeover */
.widget-type-weather .size-h2 {
  color: var(--ctp-yellow);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.widget-type-weather .size-h4 {
  color: var(--ctp-sky);
  margin-top: 2px;
}

.widget-type-weather .weather-bar {
  background: linear-gradient(180deg, var(--ctp-blue), var(--ctp-surface0)) !important;
  border-color: rgba(137, 180, 250, 0.35) !important;
  width: 7px;
  mask-image: none !important;
  -webkit-mask-image: none !important;
  border-radius: 6px 6px 2px 2px;
}

.widget-type-weather .weather-column-current .weather-bar,
.widget-type-weather .weather-column:hover .weather-bar {
  background: linear-gradient(180deg, var(--ctp-peach), var(--ctp-yellow)) !important;
  border-color: var(--ctp-peach) !important;
  width: 10px;
  box-shadow: 0 0 10px rgba(250, 179, 135, 0.35);
}

.widget-type-weather .weather-column-value {
  color: var(--ctp-peach) !important;
  font-weight: 700;
}

.widget-type-weather .weather-column-time {
  color: var(--ctp-subtext);
}

.widget-type-weather .weather-column-daylight {
  background: linear-gradient(0deg, transparent 24px, rgba(249, 226, 175, 0.09)) !important;
}

.widget-type-weather .weather-column-rain::before {
  background: radial-gradient(circle at 4px 4px, rgba(137, 180, 250, 0.65) 1.2px, transparent 0) !important;
}

/* Search bang autocomplete dropdown */
.bang-ac {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 4px;
  background: var(--ctp-mantle);
  border: 1px solid var(--ctp-surface0);
  border-radius: 6px;
  overflow: hidden;
  z-index: 100;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.bang-ac-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 12px;
  cursor: pointer;
}

.bang-ac-item.active,
.bang-ac-item:hover {
  background: var(--ctp-surface0);
}

.bang-ac-key {
  color: var(--ctp-peach);
  font-weight: 700;
  min-width: 3.2em;
}

.bang-ac-title {
  color: var(--ctp-text);
}

/* Bar-free colorful Orange Pi stats card + downward hover tooltips */
.widget-type-pi-stats .widget-content {
  overflow: visible;
}

.pi-stats {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pi-grid,
.pi-ips {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pi-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2px 4px;
  border-radius: 4px;
  position: relative;
}

.pi-row:hover {
  background: rgba(49, 50, 68, 0.55);
  z-index: 50;
}

.pi-copy {
  cursor: pointer;
}

.pi-lbl {
  font-weight: 600;
}

.pi-val {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.pi-slash {
  color: var(--ctp-surface2);
  font-weight: 400;
}

.pi-divider {
  height: 1px;
  background: var(--ctp-surface0);
  margin: 2px 0;
}

.pi-offline {
  color: var(--ctp-red);
  font-weight: 700;
  text-align: center;
  padding: 6px 0;
}

.pi-tip[data-tip]:hover::after {
  content: attr(data-tip);
  position: absolute;
  left: 0;
  top: calc(100% + 6px);
  white-space: pre;
  background: var(--ctp-crust);
  color: var(--ctp-text);
  border: 1px solid var(--ctp-peach);
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 12px;
  line-height: 1.4;
  z-index: 300;
  pointer-events: none;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.65);
}
