/* ============================================================
   Glance Dashboard — Custom Stylesheet
   Soft rounded cards, subtle shadows, clean typography
   ============================================================ */

/* ── System font stack (no external dependencies) ─────────── */
:root {
  --font-sans: 'Inter', 'SF Pro Display', 'Segoe UI', system-ui,
               -apple-system, BlinkMacSystemFont, Roboto,
               'Helvetica Neue', Arial, sans-serif;
}

body {
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Widget cards: rounded + soft shadow ──────────────────── */
.widget {
  border-radius: 12px !important;
  box-shadow:
    0 1px 3px rgba(0, 0, 0, 0.12),
    0 1px 2px rgba(0, 0, 0, 0.08) !important;
  border: 1px solid hsl(var(--background-color) / 0.3) !important;
  transition: box-shadow 0.2s ease;
}

.widget:hover {
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.15),
    0 2px 6px rgba(0, 0, 0, 0.10) !important;
}

/* ── Remove harsh border lines between list items ─────────── */
.widget-type-rss .feed-article,
.widget-type-hacker-news .post,
.widget-type-lobsters .post,
.widget-type-reddit .post {
  border-bottom: 1px solid hsl(var(--background-color) / 0.15) !important;
}

.widget-type-rss .feed-article:last-child,
.widget-type-hacker-news .post:last-child,
.widget-type-lobsters .post:last-child {
  border-bottom: none !important;
}

/* ── RSS horizontal cards: rounded thumbs ─────────────────── */
.widget-type-rss .horizontal-cards .card,
.widget-type-rss .horizontal-cards-2 .card {
  border-radius: 10px !important;
  overflow: hidden;
}

.widget-type-rss .horizontal-cards .card img,
.widget-type-rss .horizontal-cards-2 .card img {
  border-radius: 6px !important;
}

/* ── Bookmarks: rounded icon containers ───────────────────── */
.widget-type-bookmarks .bookmark-link {
  border-radius: 10px !important;
  transition: background-color 0.15s ease;
}

/* ── Calendar: softer date indicators ─────────────────────── */
.widget-type-calendar .day.today {
  border-radius: 8px !important;
}

/* ── Soften the page background for depth ─────────────────── */
.page {
  background: transparent !important;
}

/* ── Navigation bar polish ────────────────────────────────── */
.navigation {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* ── Scrollbar styling ────────────────────────────────────── */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: hsl(var(--primary-color) / 0.25);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: hsl(var(--primary-color) / 0.4);
}
