/* Demo styles that visually match the New Tab Dashboard extension UI.
   Used on feature-*.html pages alongside pages.css. */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Upright:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* ---------- Feature page header strip ---------- */
.feature-hero {
  padding: 64px 24px 32px;
  text-align: center;
  background: linear-gradient(180deg, #eef2ff 0%, var(--c-bg) 100%);
}

.feature-hero .eyebrow {
  display: inline-block;
  background: #eef2ff;
  color: var(--c-primary);
  font-size: 13px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 999px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.feature-hero h1 {
  font-size: 40px;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}

.feature-hero p {
  max-width: 680px;
  margin: 0 auto;
  color: var(--c-muted);
  font-size: 18px;
}

/* ---------- Feature detail layout ---------- */
.feature-body {
  max-width: 1040px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

.feature-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: center;
}

@media (max-width: 820px) {
  .feature-grid-2 {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

.feature-copy h2 {
  font-size: 26px;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}

.feature-copy ul {
  margin: 12px 0 0;
  padding-left: 20px;
  color: #374151;
}

.feature-copy li {
  margin-bottom: 6px;
}

.feature-divider {
  border: 0;
  border-top: 1px solid var(--c-border);
  margin: 56px 0;
}

/* ---------- The "extension look" demo card ----------
   Mimics the dashboard's visual style: Cormorant serif, dark
   #24282C text on a soft cream/white background with lime accents. */
.demo-frame {
  background:
    linear-gradient(135deg, rgba(211, 243, 107, 0.12) 0%, rgba(238, 242, 255, 0.6) 100%),
    #fafaf6;
  border: 1px solid var(--c-border);
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  padding: 40px 32px;
  font-family: 'Cormorant Upright', Georgia, serif;
  color: #24282C;
  position: relative;
  min-height: 320px;
  overflow: hidden;
}

.demo-frame .demo-label {
  position: absolute;
  top: 12px;
  right: 14px;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9ca3af;
}

/* Big rounded "time pill" pieces used in the extension's clock */
.demo-time {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin: 8px 0 20px;
}

.demo-time .pill {
  background: #24282C;
  color: #fff;
  border-radius: 18px;
  padding: 14px 22px;
  font-size: 56px;
  font-weight: 400;
  line-height: 1;
  font-family: 'Inter', sans-serif;
}

.demo-time .pill.lime {
  background: #D3F36B;
  color: #24282C;
}

.demo-time .dots {
  font-size: 48px;
  color: #24282C;
  font-family: 'Inter', sans-serif;
}

.demo-time .ampm {
  font-size: 22px;
  font-family: 'Inter', sans-serif;
  color: #24282C;
  margin-left: 6px;
  align-self: flex-end;
  padding-bottom: 10px;
}

/* Greeting heading style (Cormorant) */
.demo-greeting {
  text-align: center;
  font-size: 36px;
  font-weight: 400;
  margin: 8px 0 18px;
  color: #24282C;
}

.demo-sub {
  text-align: center;
  font-size: 18px;
  color: #4b5563;
  font-family: 'Inter', sans-serif;
  margin: 0 0 12px;
}

/* Notes / todo demo */
.demo-card {
  background: #fff;
  border: 1px solid #e8e4d8;
  border-radius: 14px;
  padding: 18px 20px;
  margin: 14px auto 0;
  max-width: 420px;
  font-family: 'Inter', sans-serif;
  color: #24282C;
  font-size: 14.5px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.demo-card h4 {
  margin: 0 0 10px;
  font-family: 'Cormorant Upright', Georgia, serif;
  font-size: 22px;
  font-weight: 500;
  color: #24282C;
}

.demo-todo-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px dashed #ece8db;
}

.demo-todo-item:last-child {
  border-bottom: none;
}

.demo-todo-item .check {
  width: 16px;
  height: 16px;
  border: 1.5px solid #24282C;
  border-radius: 4px;
  display: inline-block;
  flex-shrink: 0;
}

.demo-todo-item.done .check {
  background: #D3F36B;
  border-color: #D3F36B;
  position: relative;
}

.demo-todo-item.done .check::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 0px;
  width: 5px;
  height: 10px;
  border: solid #24282C;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.demo-todo-item.done .label {
  text-decoration: line-through;
  color: #9ca3af;
}

/* Bookmark grid */
.demo-bookmarks {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  max-width: 460px;
  margin: 14px auto 0;
  font-family: 'Inter', sans-serif;
}

@media (max-width: 480px) {
  .demo-bookmarks {
    grid-template-columns: repeat(3, 1fr);
  }
}

.demo-bookmarks .bm {
  background: #fff;
  border: 1px solid #e8e4d8;
  border-radius: 12px;
  padding: 12px 8px;
  text-align: center;
  font-size: 12px;
  color: #24282C;
}

.demo-bookmarks .bm .ico {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  margin: 0 auto 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}

/* Quote demo */
.demo-quote {
  text-align: center;
  max-width: 520px;
  margin: 0 auto;
  padding: 18px 8px;
}

.demo-quote .quote-mark {
  font-size: 60px;
  line-height: 0.5;
  color: #D3F36B;
  font-family: Georgia, serif;
}

.demo-quote blockquote {
  font-size: 26px;
  font-weight: 400;
  font-style: italic;
  margin: 12px 0 14px;
  color: #24282C;
  line-height: 1.4;
}

.demo-quote cite {
  font-family: 'Inter', sans-serif;
  font-style: normal;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6b7280;
}

/* Weather demo */
.demo-weather {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  font-family: 'Inter', sans-serif;
  color: #24282C;
}

.demo-weather .temp {
  font-size: 64px;
  font-weight: 300;
  line-height: 1;
}

.demo-weather .deg {
  font-size: 28px;
  vertical-align: top;
}

.demo-weather .meta {
  text-align: left;
  font-size: 14px;
  color: #4b5563;
}

.demo-weather .meta .city {
  font-family: 'Cormorant Upright', Georgia, serif;
  font-size: 22px;
  color: #24282C;
  margin-bottom: 4px;
}

.demo-weather .ico {
  font-size: 56px;
  line-height: 1;
}

/* Countdown demo */
.demo-countdown {
  text-align: center;
  margin: 4px auto 0;
}

.demo-countdown .label {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #6b7280;
  margin-bottom: 8px;
}

.demo-countdown .units {
  display: flex;
  justify-content: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
}

.demo-countdown .unit {
  background: #fff;
  border: 1px solid #e8e4d8;
  border-radius: 12px;
  padding: 10px 14px;
  min-width: 64px;
}

.demo-countdown .unit .n {
  font-size: 28px;
  font-weight: 500;
  color: #24282C;
  line-height: 1;
}

.demo-countdown .unit .u {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6b7280;
  margin-top: 4px;
}

/* Background gallery demo */
.demo-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  max-width: 460px;
  margin: 12px auto 0;
}

.demo-gallery .thumb {
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  border: 2px solid transparent;
  background-size: cover;
  background-position: center;
  cursor: pointer;
}

.demo-gallery .thumb.active {
  border-color: #D3F36B;
  box-shadow: 0 0 0 2px rgba(211, 243, 107, 0.4);
}

/* Section header on detail pages */
.feature-sub-h {
  font-size: 22px;
  margin: 0 0 18px;
  letter-spacing: -0.005em;
  text-align: center;
}

/* Other-features strip at bottom of each feature page */
.more-features {
  background: var(--c-surface);
  border-top: 1px solid var(--c-border);
  padding: 48px 24px 56px;
}

.more-features h3 {
  text-align: center;
  font-size: 22px;
  margin: 0 0 24px;
  letter-spacing: -0.005em;
}

.more-features .row {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}

.more-features .row a {
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 14px 16px;
  font-weight: 600;
  color: var(--c-text);
  text-align: center;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.more-features .row a:hover {
  background: #eef2ff;
  border-color: var(--c-primary);
  color: var(--c-primary);
  text-decoration: none;
}

/* ---------- Balance demo ---------- */
.demo-balance {
  max-width: 460px;
  margin: 14px auto 0;
  font-family: 'Inter', sans-serif;
}

.demo-balance .timeline {
  position: relative;
  height: 36px;
  border-radius: 18px;
  background: #ece8db;
  overflow: hidden;
  margin: 18px 0 10px;
}

.demo-balance .timeline .uptime {
  position: absolute;
  top: 0;
  bottom: 0;
  background: linear-gradient(90deg, #24282C, #3a4047);
  border-radius: 18px;
}

.demo-balance .timeline .downtime {
  position: absolute;
  top: 0;
  bottom: 0;
  background: linear-gradient(90deg, #D3F36B, #b8da4a);
  border-radius: 18px;
}

.demo-balance .legend {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #6b7280;
  margin-top: 6px;
}

.demo-balance .legend .dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
}

.demo-balance .legend .work {
  background: #24282C;
}

.demo-balance .legend .rest {
  background: #D3F36B;
}

.demo-balance .hours {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #9ca3af;
  margin-top: 4px;
  font-variant-numeric: tabular-nums;
}

.demo-balance .stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 18px;
}

.demo-balance .stat {
  background: #fff;
  border: 1px solid #e8e4d8;
  border-radius: 12px;
  padding: 12px 14px;
  text-align: center;
}

.demo-balance .stat .n {
  font-family: 'Cormorant Upright', Georgia, serif;
  font-size: 28px;
  color: #24282C;
  font-weight: 500;
  line-height: 1;
}

.demo-balance .stat .l {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6b7280;
  margin-top: 6px;
}

/* ---------- Focus goal demo ---------- */
.demo-focus {
  max-width: 460px;
  margin: 14px auto 0;
  font-family: 'Inter', sans-serif;
  text-align: center;
}

.demo-focus .focus-card {
  background: #fff;
  border: 1px solid #e8e4d8;
  border-radius: 16px;
  padding: 24px 20px;
  position: relative;
}

.demo-focus .focus-eyebrow {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6b7280;
  margin-bottom: 10px;
}

.demo-focus .focus-goal {
  font-family: 'Cormorant Upright', Georgia, serif;
  font-size: 26px;
  font-weight: 400;
  color: #24282C;
  line-height: 1.3;
  margin-bottom: 16px;
}

.demo-focus .focus-progress {
  height: 6px;
  background: #ece8db;
  border-radius: 3px;
  overflow: hidden;
  margin-top: 12px;
}

.demo-focus .focus-progress .bar {
  height: 100%;
  width: 62%;
  background: #D3F36B;
  border-radius: 3px;
}

.demo-focus .focus-meta {
  font-size: 12px;
  color: #6b7280;
  margin-top: 8px;
  display: flex;
  justify-content: space-between;
}

/* ---------- Search + custom links demo ---------- */
.demo-search {
  max-width: 480px;
  margin: 14px auto 0;
  font-family: 'Inter', sans-serif;
}

.demo-search .search-row {
  display: flex;
  align-items: center;
  background: #fff;
  border: 1px solid #e8e4d8;
  border-radius: 999px;
  padding: 8px 14px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.demo-search .search-row .engine-pick {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #24282C;
  padding-right: 12px;
  border-right: 1px solid #ece8db;
  margin-right: 12px;
  font-weight: 500;
}

.demo-search .search-row .engine-pick .ico {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  background: #4285F4;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
}

.demo-search .search-row input {
  border: 0;
  outline: 0;
  background: transparent;
  flex: 1;
  font-size: 14px;
  color: #24282C;
  font-family: inherit;
}

.demo-search .engines {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
}

.demo-search .engines .chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  padding: 6px 12px;
  background: #fff;
  border: 1px solid #e8e4d8;
  border-radius: 999px;
  color: #24282C;
  cursor: pointer;
}

.demo-search .engines .chip.active {
  border-color: #D3F36B;
  background: rgba(211, 243, 107, 0.18);
}

.demo-search .engines .chip .swatch {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.demo-search .pinned-links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 22px;
}

@media (max-width: 480px) {
  .demo-search .pinned-links {
    grid-template-columns: repeat(3, 1fr);
  }
}

.demo-search .pinned-links .link {
  background: #fff;
  border: 1px solid #e8e4d8;
  border-radius: 12px;
  padding: 12px 8px;
  text-align: center;
  font-size: 12px;
  color: #24282C;
  position: relative;
}

.demo-search .pinned-links .link .ico {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  margin: 0 auto 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}

.demo-search .pinned-links .link .pin {
  position: absolute;
  top: 4px;
  right: 5px;
  font-size: 10px;
  color: #D3F36B;
}
