/* ==========================================================================
   Live KwikPage.App component previews for the marketing site.
   Scoped under .kwik-preview so it never leaks into the rest of the page.
   Class names mirror the real extension (KWIKPAGE extension/css/style.css)
   so these previews stay visually identical to the real product.
   ========================================================================== */

.kwik-preview {
  --k-accent: #3584e4;
  --k-accent-2: #1a5fb4;
  --k-search-accent: #3584e4;
  --k-radius: 18px;
  --k-radius-sm: 12px;
  --k-panel-bg: rgba(255, 255, 255, 0.06);
  --k-panel-border: rgba(255, 255, 255, 0.09);
  --k-text: #f6f5f4;
  --k-text-muted: rgba(246, 245, 244, 0.65);
  --k-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  --k-settings-bg: #19191c;
  font-family: "Cantarell", "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--k-text);
}
.kwik-preview *{ box-sizing: border-box; }
.kwik-preview button, .kwik-preview input, .kwik-preview select { font-family: inherit; color: inherit; }

.kwik-preview .panel {
  background: var(--k-panel-bg);
  border: 1px solid var(--k-panel-border);
  border-radius: var(--k-radius);
  padding: 18px 20px;
}
.kwik-preview .panel-title {
  font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; color: var(--k-text-muted); margin-bottom: 10px;
}
.kwik-preview .icon-btn {
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--k-panel-border); background: var(--k-panel-bg);
  display: flex; align-items: center; justify-content: center; cursor: default;
}
.kwik-preview .icon-btn svg { width: 16px; height: 16px; fill: var(--k-text); }
.kwik-preview .ghost-btn {
  border: 1px solid var(--k-panel-border); background: rgba(255,255,255,0.06);
  color: var(--k-text); border-radius: var(--k-radius-sm);
  padding: 6px 12px; font-size: 13px;
}

/* Clock */
.kwik-preview .clock-time{ font-size:38px; font-weight:700; line-height:1; letter-spacing:-0.02em; }
.kwik-preview .clock-date{ margin-top:6px; font-size:13px; color:var(--k-text-muted); text-transform:capitalize; }

/* Weather */
.kwik-preview .weather-body{ font-size:14px; }
.kwik-preview .weather-main{ display:flex; align-items:center; gap:12px; }
.kwik-preview .weather-temp{ font-size:28px; font-weight:700; }
.kwik-preview .weather-icon{ font-size:28px; }
.kwik-preview .weather-place{ font-size:12px; color:var(--k-text-muted); margin-bottom:4px; }
.kwik-preview .weather-details{ margin-top:8px; display:flex; gap:14px; font-size:11px; color:var(--k-text-muted); flex-wrap:wrap; }
.kwik-preview .weather-minimal{ gap:8px; justify-content:center; height:100%; }
.kwik-preview .weather-minimal .weather-temp{ font-size:20px; }
.kwik-preview .weather-minimal .weather-icon{ font-size:20px; }
.kwik-preview .weather-icon-lg{ font-size:38px; }
.kwik-preview .weather-temp-lg{ font-size:30px; font-weight:700; line-height:1; }
.kwik-preview .weather-condition{ font-size:11px; color:var(--k-text-muted); margin-top:2px; }

.kwik-preview .weather-panel-gradient{ border:none; color:#fff; position:relative; overflow:hidden; }
.kwik-preview .wx-g-top{ display:flex; justify-content:space-between; align-items:center; font-size:12px; opacity:.9; }
.kwik-preview .wx-g-condition{ display:flex; align-items:center; gap:6px; }
.kwik-preview .wx-g-icon{ font-size:15px; }
.kwik-preview .wx-g-bottom{ display:flex; justify-content:space-between; align-items:flex-end; margin-top:18px; }
.kwik-preview .wx-g-temp{ font-size:34px; font-weight:700; line-height:1; }
.kwik-preview .wx-g-meta{ text-align:right; font-size:11px; opacity:.85; line-height:1.4; }
.kwik-preview .wx-theme-sunny-day{ background:linear-gradient(135deg,#ff7e5f,#feb47b); }

.kwik-preview .wx-glass-header{ display:flex; justify-content:space-between; align-items:flex-start; gap:10px; }
.kwik-preview .wx-glass-place{ font-weight:600; font-size:14px; }
.kwik-preview .wx-glass-sub{ font-size:11px; color:var(--k-text-muted); margin-top:2px; }
.kwik-preview .wx-glass-icon-circle{ width:30px; height:30px; border-radius:50%; background:rgba(255,255,255,0.1); display:flex; align-items:center; justify-content:center; font-size:15px; flex-shrink:0; }
.kwik-preview .wx-glass-body{ display:flex; justify-content:space-between; align-items:center; margin-top:12px; gap:10px; }
.kwik-preview .wx-glass-grid{ display:grid; grid-template-columns:1fr 1fr; gap:8px 14px; flex:1; min-width:0; }
.kwik-preview .wx-glass-item{ display:flex; flex-direction:column; gap:2px; }
.kwik-preview .wx-glass-label{ font-size:9px; color:var(--k-text-muted); text-transform:uppercase; letter-spacing:.04em; }
.kwik-preview .wx-glass-value{ font-size:12px; font-weight:500; }
.kwik-preview .wx-glass-temp{ font-size:32px; font-weight:700; line-height:1; flex-shrink:0; }

/* Quote */
.kwik-preview .quote-text{ margin:0 0 8px; font-size:13px; font-style:italic; line-height:1.5; }
.kwik-preview .quote-author{ font-size:11px; color:var(--k-text-muted); }

/* Todo */
.kwik-preview .todo-list{ list-style:none; margin:0 0 10px; padding:0; display:flex; flex-direction:column; gap:6px; }
.kwik-preview .todo-item{ display:flex; align-items:center; gap:8px; font-size:13px; padding:4px 2px; }
.kwik-preview .todo-item input[type="checkbox"]{ accent-color:var(--k-accent); width:14px; height:14px; }
.kwik-preview .todo-item span{ flex:1; }
.kwik-preview .todo-item.done span{ text-decoration:line-through; color:var(--k-text-muted); }
.kwik-preview .todo-form{ display:flex; gap:8px; }
.kwik-preview .todo-input{ flex:1; background:rgba(255,255,255,0.08); border:1px solid var(--k-panel-border); border-radius:var(--k-radius-sm); padding:7px 10px; font-size:12px; color:var(--k-text-muted); }

/* Events */
.kwik-preview .events-list{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:8px; }
.kwik-preview .event-item{ padding:8px 10px; border-radius:10px; background:rgba(255,255,255,0.05); }
.kwik-preview .event-item-top{ display:flex; justify-content:space-between; align-items:baseline; gap:8px; }
.kwik-preview .event-title{ font-size:12px; font-weight:600; }
.kwik-preview .event-countdown{ font-size:10px; color:var(--k-accent); white-space:nowrap; }
.kwik-preview .event-date{ font-size:10px; color:var(--k-text-muted); margin-top:2px; }
.kwik-preview .event-desc{ font-size:11px; color:var(--k-text-muted); margin-top:4px; }

/* Notes */
.kwik-preview .notes-textarea{ width:100%; background:rgba(255,255,255,0.08); border:1px solid var(--k-panel-border); border-radius:var(--k-radius-sm); padding:10px; font-size:12px; color:var(--k-text-muted); font-family:inherit; min-height:70px; resize:none; }

/* Pomodoro */
.kwik-preview .pomodoro-panel{ text-align:center; }
.kwik-preview .pomodoro-mode{ font-size:11px; text-transform:uppercase; letter-spacing:.06em; margin-bottom:6px; color:var(--k-text-muted); }
.kwik-preview .pomodoro-time{ font-size:34px; font-weight:700; line-height:1; letter-spacing:-0.02em; margin-bottom:12px; font-variant-numeric:tabular-nums; }
.kwik-preview .pomodoro-controls{ display:flex; gap:8px; justify-content:center; }

/* Countdown */
.kwik-preview .countdown-panel{ text-align:center; }
.kwik-preview .countdown-number{ font-size:38px; font-weight:700; line-height:1; letter-spacing:-0.02em; }
.kwik-preview .countdown-caption{ font-size:11px; text-transform:uppercase; letter-spacing:.06em; margin-top:6px; color:var(--k-text-muted); }
.kwik-preview .countdown-label{ font-size:13px; font-weight:600; margin-top:4px; }

/* Search bar */
.kwik-preview .search-form{
  display:flex; align-items:center; gap:10px;
  background: var(--k-panel-bg); border:1px solid var(--k-panel-border);
  border-radius:999px; box-shadow: var(--k-shadow);
  padding:9px 10px 9px 16px; width:100%;
}
.kwik-preview .search-form .icon-btn{ border:none; background:var(--k-search-accent); cursor:default; }
.kwik-preview .search-form .icon-btn svg{ fill:#fff; }
.kwik-preview .search-input{ flex:1; background:transparent; border:none; outline:none; font-size:14px; color:var(--k-text-muted); }

.kwik-preview .search-form.search-style-glass{
  background: rgba(255,255,255,0.08); border:1px solid rgba(255,255,255,0.18);
  box-shadow: 0 8px 32px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.15);
}
.kwik-preview .search-form.search-style-minimal{
  background:transparent; border:none; border-bottom:2px solid var(--k-panel-border); border-radius:0; box-shadow:none; padding:9px 4px;
}
.kwik-preview .search-form.search-style-roundbtn{ background:transparent; border:none; box-shadow:none; gap:10px; padding:0; }
.kwik-preview .search-form.search-style-roundbtn .search-input{ background:var(--k-panel-bg); border:1px solid var(--k-panel-border); border-radius:999px; padding:11px 16px; }
.kwik-preview .search-form.search-style-roundbtn .icon-btn{ width:40px; height:40px; border-radius:50%; flex-shrink:0; }
.kwik-preview .search-form.search-style-squarebtn{ border-radius:12px; padding:0; gap:0; overflow:hidden; align-items:stretch; }
.kwik-preview .search-form.search-style-squarebtn .search-input{ padding:12px 0 12px 16px; }
.kwik-preview .search-form.search-style-squarebtn .icon-btn{ border-radius:0; width:48px; height:auto; }
.kwik-preview .search-form.search-style-icononly .icon-btn{ background:transparent; }
.kwik-preview .search-form.search-style-icononly .icon-btn svg{ fill:var(--k-search-accent); }
.kwik-preview .search-form.search-style-contrast{ background:#16161a; border:none; box-shadow:0 8px 24px rgba(0,0,0,0.4); }

/* Shortcuts */
.kwik-preview .tabs-row{ display:flex; align-items:center; gap:8px; margin-bottom:14px; flex-wrap:wrap; }
.kwik-preview .tab-btn{ border:1px solid transparent; background:rgba(255,255,255,0.06); color:var(--k-text-muted); padding:6px 12px; border-radius:999px; font-size:12px; }
.kwik-preview .tab-btn.active{ background:var(--k-accent); color:#fff; }
.kwik-preview .shortcuts-grid{ display:flex; flex-wrap:wrap; gap:14px; }
.kwik-preview .shortcut-tile{ display:flex; flex-direction:column; align-items:center; gap:6px; width:72px; }
.kwik-preview .shortcut-icon{
  width:44px; height:44px; border-radius:14px; background:rgba(255,255,255,0.12);
  display:flex; align-items:center; justify-content:center; font-size:18px; font-weight:700;
  box-shadow:0 4px 14px rgba(0,0,0,0.25);
}
.kwik-preview .shortcut-label{ font-size:11px; color:var(--k-text-muted); text-align:center; }

/* Toggle switch */
.kwik-preview .switch{ position:relative; display:inline-block; width:36px; height:20px; flex-shrink:0; }
.kwik-preview .switch input{ position:absolute; opacity:0; width:0; height:0; }
.kwik-preview .switch-slider{ position:absolute; inset:0; background:transparent; border:2px solid rgba(255,255,255,0.35); border-radius:999px; }
.kwik-preview .switch-slider::before{ content:""; position:absolute; width:12px; height:12px; left:2px; top:1px; background:#fff; border-radius:50%; }
.kwik-preview .switch input:checked + .switch-slider{ background:var(--k-accent); border-color:var(--k-accent); }
.kwik-preview .switch input:checked + .switch-slider::before{ transform:translateX(16px); }

/* Generic layout helpers for the feature grids */
.kwik-grid{ display:grid; grid-template-columns:repeat(auto-fit, minmax(360px, 1fr)); gap:24px; }
.kwik-card{ background:#181c26; border:1px solid rgba(255,255,255,.07); border-radius:16px; padding:26px; }
.kwik-card-label{ font-size:12px; color:var(--kp-muted); text-align:center; margin-top:12px; font-weight:600; }
.kwik-card .panel{ margin:0 auto; }

.kwik-shot{
  background:#14171f; border:1px solid rgba(255,255,255,.07); border-radius:20px;
  padding:36px 28px; display:flex; align-items:center; justify-content:center; min-height:260px;
}
.kwik-shot .panel{ margin:0 auto; }
