/* unLockGames - Traditional Blog Layout (Dark Theme) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,500;0,600;0,700;1,500&display=swap');

:root {
  --bg-page: #0f172a;
  --bg-card: #1e293b;
  --bg-card-hover: #334155;
  --nav-bg: #1e293b;
  --nav-border: #22d3ee;
  --nav-category: #22d3ee;
  --nav-hover: #334155;
  --accent-cyan: #22d3ee;
  --accent-green: #34d399;
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --border: #334155;
  --shadow: 0 4px 6px rgba(0,0,0,0.3);
  --radius: 8px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg-page);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
}

/* Header */
.blog-header {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
}

.blog-header .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.header-brand-cluster {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* Language switcher (top-left, next to logo) */
.header-lang-wrap {
  position: relative;
  flex-shrink: 0;
}

.header-lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.65rem;
  background: var(--bg-page);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  line-height: 1.2;
  transition: border-color 0.2s, background 0.2s;
}

.header-lang-btn:hover,
.header-lang-btn.is-open {
  border-color: var(--accent-cyan);
  background: var(--bg-card-hover);
}

.header-lang-flag {
  font-size: 1.15rem;
  line-height: 1;
}

/* 主按钮只显示 EN/ES/… 缩写；Windows 上国旗 emoji 常渲染成 “ES” 字母，与缩写重复成 “ES ES” */
.header-lang-btn .header-lang-flag {
  display: none;
}

.header-lang-chevron {
  font-size: 0.65rem;
  color: var(--text-secondary);
  margin-left: 0.1rem;
}

.header-lang-panel {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 3000;
  min-width: 220px;
  max-height: min(320px, 70vh);
  overflow-y: auto;
  margin: 0;
  padding: 0.4rem 0;
  list-style: none;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow), 0 12px 40px rgba(0, 0, 0, 0.45);
}

.header-lang-panel[hidden] {
  display: none !important;
}

.header-lang-panel li {
  list-style: none;
  margin: 0;
  padding: 0;
}

.header-lang-panel a {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 1rem;
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: background 0.15s, color 0.15s;
}

.header-lang-panel a:hover {
  background: var(--bg-card-hover);
  color: var(--accent-cyan);
}

.header-lang-panel a.is-current {
  background: var(--bg-card-hover);
  color: var(--accent-cyan);
  font-weight: 600;
}

.header-lang-panel .lang-flag {
  font-size: 1.2rem;
  line-height: 1;
  width: 1.5rem;
  text-align: center;
}

.blog-logo {
  display: inline-flex;
  align-items: baseline;
  gap: 0.1em;
  font-size: 1.75rem;
  text-decoration: none;
  line-height: 1.05;
  transition: filter 0.2s ease;
}

/* Inner pages: single-word logo (no split spans) */
.blog-logo:not(:has(.blog-logo-unlock)) {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600;
  color: var(--accent-cyan);
  letter-spacing: 0.02em;
}

.blog-logo-unlock {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-weight: 800;
  font-size: 1em;
  letter-spacing: 0.08em;
  color: var(--accent-cyan);
  text-shadow: 0 0 24px rgba(34, 211, 238, 0.35);
}

.blog-logo-games {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  font-style: italic;
  font-size: 1.08em;
  letter-spacing: 0.03em;
  color: #fbbf24;
  text-shadow: 0 0 20px rgba(251, 191, 36, 0.25);
}

.blog-logo:hover {
  filter: brightness(1.08);
}

.blog-logo:hover .blog-logo-unlock {
  color: #67e8f9;
}

.blog-logo:hover .blog-logo-games {
  color: #fde68a;
}

.blog-search-form {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
  max-width: 360px;
}

.blog-search {
  flex: 1;
  min-width: 0;
  padding: 0.5rem 1rem;
  background: var(--bg-page);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.95rem;
  color: var(--text-primary);
}

.blog-search::placeholder {
  color: var(--text-muted);
}

.blog-search-btn {
  padding: 0.5rem 1rem;
  background: var(--accent-cyan);
  color: var(--bg-page);
  border: none;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.blog-search-btn:hover {
  filter: brightness(1.1);
}

/* Header auth buttons */
.header-auth {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.btn-auth {
  padding: 0.45rem 1rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-primary);
  white-space: nowrap;
}
.btn-auth:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}
.btn-register {
  background: var(--accent-cyan);
  color: var(--bg-page);
  border-color: var(--accent-cyan);
}
.btn-register:hover {
  filter: brightness(1.1);
  background: var(--accent-cyan);
  color: var(--bg-page);
  border-color: var(--accent-cyan);
}

/* Modal overlay */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
}
.modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
}
.modal-dialog {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
  max-width: 400px;
  max-height: 90vh;
  overflow-y: auto;
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
}
.modal-header h2 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
}
.modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.25rem;
}
.modal-close:hover {
  color: var(--text-primary);
}
.modal-form {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.modal-form label {
  font-size: 0.9rem;
  color: var(--text-secondary);
}
.modal-form input[type="text"],
.modal-form input[type="email"],
.modal-form input[type="password"] {
  width: 100%;
  padding: 0.5rem 1rem;
  background: var(--bg-page);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-size: 1rem;
}
.modal-form input::placeholder {
  color: var(--text-muted);
}
.modal-checkbox {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}
.modal-checkbox input {
  width: auto;
}
.modal-form a {
  color: var(--accent-cyan);
  text-decoration: none;
}
.modal-form a:hover {
  text-decoration: underline;
}
.modal-submit {
  padding: 0.6rem 1rem;
  background: var(--accent-cyan);
  color: var(--bg-page);
  border: none;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 0.25rem;
}
.modal-submit:hover {
  filter: brightness(1.1);
}
.modal-message {
  color: var(--accent-green);
  font-size: 0.95rem;
  margin: 0;
}

/* Main Nav - dark bar with cyan accent, categories highlighted */
.blog-nav {
  background: var(--nav-bg);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
  border-top: 3px solid var(--nav-border);
  border-bottom: 1px solid var(--border);
}

.blog-nav .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.blog-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0;
}

.blog-nav a {
  display: block;
  padding: 0.9rem 1.2rem;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s, background 0.2s;
}

.blog-nav a:visited {
  color: inherit;
}

.blog-nav a[href="index.html"],
.blog-nav a[href^="#saas"],
.blog-nav a[href^="#electronics"],
.blog-nav a[href^="#fashion"],
.blog-nav a[href^="#sport-fashion"],
.blog-nav a[href="category-sport-fashion.html"],
.blog-nav a[href^="#shopping"],
.blog-nav a[href^="#travel"],
.blog-nav a[href="index1018.html"] {
  color: var(--nav-category);
  font-weight: 600;
}

.blog-nav a:hover {
  background: var(--nav-hover);
  color: var(--accent-cyan);
}

/* Hero row: weather from edge | carousel 1200px | clock to edge */
.hero-row {
  width: 100%;
  max-width: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: flex;
  align-items: stretch;
  gap: 0;
  height: 320px;
  min-height: 320px;
}

.hero-weather {
  flex: 1 1 0;
  min-width: 0;
  height: 320px;
  border-radius: 0;
  overflow: hidden;
  position: relative;
  background: linear-gradient(180deg, #0c4a6e 0%, #0f172a 60%);
  border: none;
  border-right: 1px solid var(--border);
}

.weather-effect {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse 80% 50% at 20% 30%, rgba(255,255,255,0.12) 0%, transparent 50%),
    radial-gradient(ellipse 60% 40% at 70% 60%, rgba(255,255,255,0.08) 0%, transparent 45%),
    radial-gradient(ellipse 100% 60% at 50% 80%, rgba(255,255,255,0.06) 0%, transparent 40%);
  animation: weatherClouds 20s ease-in-out infinite;
  pointer-events: none;
}

@keyframes weatherClouds {
  0%, 100% { opacity: 1; transform: translate(0, 0); }
  50% { opacity: 0.9; transform: translate(3%, 2%); }
}

.weather-inner {
  position: relative;
  z-index: 1;
  padding: 1rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  text-align: center;
}

.weather-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  position: relative;
  width: 100%;
}

.weather-loc-icon {
  font-size: 1rem;
  opacity: 0.9;
}

.weather-city {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.weather-dropdown {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.weather-menu {
  position: absolute;
  right: 0;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0.25rem;
}

.weather-menu:hover { color: var(--text-primary); }

.weather-main {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.weather-icon-wrap {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.weather-icon {
  font-size: 3rem;
  line-height: 1;
}

.weather-temp-wrap {
  display: flex;
  align-items: baseline;
  gap: 0.15rem;
}

.weather-temp {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

.weather-unit {
  font-size: 1rem;
  color: var(--text-secondary);
}

.weather-details {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.weather-desc { text-transform: capitalize; }

.weather-meta { display: flex; align-items: center; gap: 0.35rem; }
.weather-meta-icon { opacity: 0.8; }

.weather-forecast-btn {
  display: block;
  text-align: center;
  padding: 0.5rem 1rem;
  background: rgba(255,255,255,0.12);
  color: var(--text-primary);
  text-decoration: none;
  border-radius: var(--radius);
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

.weather-forecast-btn:hover {
  background: rgba(255,255,255,0.18);
}

/* Flip clock - right panel, same height as carousel */
.hero-clock-wrap {
  flex: 1 1 0;
  min-width: 0;
  height: 320px;
}

.hero-clock {
  height: 100%;
  background: var(--bg-card);
  border: none;
  border-left: 1px solid var(--border);
  border-radius: 0;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.clock-date {
  margin: 0.5rem 0 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Clock: single row, one number per unit */
.clock-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: nowrap;
}

.clock-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  min-width: 2.8rem;
}

.clock-label {
  font-size: 0.6rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.clock-num {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
  background: #0f172a;
  border-radius: 4px;
  padding: 0.25rem 0.4rem;
  min-width: 2.2rem;
  text-align: center;
  box-shadow: inset 0 0 0 1px var(--border);
}

.clock-actions {
  position: absolute;
  bottom: 0.5rem;
  right: 0.5rem;
}

.clock-fullscreen {
  padding: 0.35rem 0.6rem;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.9rem;
}

.clock-fullscreen:hover {
  color: var(--accent-cyan);
  border-color: var(--accent-cyan);
}

/* Fullscreen clock: fills entire screen, no content behind */
.clock-fullscreen-overlay {
  position: fixed;
  inset: 0;
  background: #0f172a;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s;
}

.clock-fullscreen-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.clock-fullscreen-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.clock-row-fs {
  gap: 2rem;
  flex-wrap: nowrap;
}

.clock-row-fs .clock-unit {
  min-width: 6rem;
}

.clock-row-fs .clock-num {
  font-size: 8rem;
  padding: 0.5rem 0.75rem;
  min-width: 5rem;
}

.clock-row-fs .clock-label {
  font-size: 1.1rem;
}

.clock-date-fs {
  margin-top: 1.5rem;
  font-size: 1.5rem;
  color: var(--text-muted);
}

.clock-fs-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(255,255,255,0.1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
  padding: 0.25rem 0.5rem;
}

.clock-fs-close:hover { color: var(--text-primary); background: rgba(255,255,255,0.15); }

/* AI Assistant: float container (quick input + icon) + resizable panel */
@keyframes askAiBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* Small float bottom-right; expands when user has sent a message (.has-chat) */
.ask-ai-float {
  position: fixed;
  right: 0.75rem;
  bottom: 1.5rem;
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.35rem;
  transition: width 0.25s ease, max-height 0.25s ease;
}

.ask-ai-float.has-chat {
  width: 280px;
  max-height: 70vh;
  align-items: stretch;
  padding: 0.6rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.ask-ai-quick-messages {
  display: none;
  flex: 1;
  min-height: 80px;
  max-height: 200px;
  overflow-y: auto;
  padding: 0.4rem 0;
  flex-direction: column;
  gap: 0.5rem;
}

.ask-ai-float.has-chat .ask-ai-quick-messages {
  display: flex;
}

.ask-ai-quick-messages .ask-ai-msg {
  font-size: 0.82rem;
  padding: 0.45rem 0.6rem;
  max-width: 100%;
}

.ask-ai-quick-row {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.ask-ai-float.has-chat .ask-ai-quick-row {
  border-radius: 8px;
  padding: 0.4rem 0.5rem;
}

.ask-ai-quick-input {
  width: 140px;
  padding: 0.35rem 0.5rem;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 0.85rem;
}

.ask-ai-float.has-chat .ask-ai-quick-input {
  width: 100%;
  min-width: 0;
}

.ask-ai-quick-input::placeholder { color: var(--text-muted); }
.ask-ai-quick-input:focus { outline: none; }

.ask-ai-quick-send {
  width: 28px;
  height: 28px;
  padding: 0;
  background: linear-gradient(135deg, #22d3ee 0%, #06b6d4 100%);
  color: #0f172a;
  border: none;
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
  line-height: 1;
  flex-shrink: 0;
}

.ask-ai-quick-send:hover { filter: brightness(1.1); }

.ask-ai-fab {
  padding: 0;
  border: none;
  border-radius: 9999px;
  cursor: pointer;
  background: linear-gradient(
    105deg,
    #fb923c 0%,
    #f97316 18%,
    #c084fc 62%,
    #6366f1 100%
  );
  box-shadow: 0 4px 22px rgba(99, 102, 241, 0.35), 0 2px 8px rgba(249, 115, 22, 0.2);
  animation: askAiBounce 1.8s ease-in-out infinite;
  display: inline-flex;
  align-items: stretch;
  line-height: 1.2;
}

.ask-ai-fab-inner {
  margin: 2px;
  padding: 0.45rem 1rem 0.5rem 0.75rem;
  border-radius: 9999px;
  background: linear-gradient(180deg, #faf5ff 0%, #f3e8ff 45%, #ede9fe 100%);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.35rem;
  box-sizing: border-box;
}

.ask-ai-ava-sparkles {
  position: relative;
  width: 1.65rem;
  height: 1.2rem;
  flex-shrink: 0;
}

.ask-ai-spark {
  position: absolute;
  line-height: 1;
  font-weight: 700;
  pointer-events: none;
}

.ask-ai-spark-lg {
  left: 0.05rem;
  top: -0.05rem;
  font-size: 0.95rem;
  color: #ea580c;
}

.ask-ai-spark-s1 {
  left: 0.72rem;
  top: 0.38rem;
  font-size: 0.52rem;
  color: #fb923c;
}

.ask-ai-spark-s2 {
  left: 0;
  top: 0.58rem;
  font-size: 0.48rem;
  color: #fdba74;
}

.ask-ai-ava-text {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #6d28d9;
  white-space: nowrap;
}

.ask-ai-fab:hover {
  animation: none;
  transform: translateY(-2px);
  filter: brightness(1.05);
  box-shadow: 0 8px 28px rgba(99, 102, 241, 0.45), 0 4px 12px rgba(249, 115, 22, 0.25);
}

.ask-ai-fab:hover .ask-ai-ava-text {
  color: #5b21b6;
}

@media (max-width: 380px) {
  .ask-ai-ava-text {
    font-size: 0.75rem;
  }
  .ask-ai-fab-inner {
    padding-left: 0.55rem;
    padding-right: 0.75rem;
  }
}

.ask-ai-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 360px;
  min-width: 320px;
  max-width: 95vw;
  height: 100vh;
  background: var(--bg-card);
  border-left: 1px solid var(--border);
  z-index: 1001;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -8px 0 32px rgba(0,0,0,0.25);
}

.ask-ai-panel.ask-ai-maximized {
  width: 90vw !important;
  max-width: 90vw;
}

.ask-ai-panel.is-open {
  transform: translateX(0);
}

.ask-ai-resize-handle {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 6px;
  cursor: ew-resize;
  z-index: 2;
}

.ask-ai-resize-handle:hover { background: rgba(34, 211, 238, 0.2); }

.ask-ai-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(34, 211, 238, 0.06) 0%, transparent 100%);
}

.ask-ai-header-actions {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.ask-ai-maximize {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1rem;
  cursor: pointer;
  padding: 0.2rem;
  line-height: 1;
}

.ask-ai-maximize:hover { color: var(--text-primary); }

.ask-ai-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0.04em;
}

.ask-ai-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.25rem;
  cursor: pointer;
  line-height: 1;
  padding: 0.2rem;
  margin-left: 0.15rem;
}

.ask-ai-close:hover { color: var(--text-primary); }

.ask-ai-messages {
  flex: 1;
  overflow-y: auto;
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.ask-ai-msg {
  padding: 0.65rem 0.9rem;
  border-radius: 10px;
  font-size: 0.88rem;
  line-height: 1.5;
  max-width: 90%;
  white-space: pre-wrap;
  word-break: break-word;
}

.ask-ai-msg-user {
  align-self: flex-end;
  background: linear-gradient(135deg, #22d3ee 0%, #06b6d4 100%);
  color: #0f172a;
}

.ask-ai-msg-assistant {
  align-self: flex-start;
  background: var(--bg-page);
  border: 1px solid var(--border);
  color: var(--text-primary);
}

.ask-ai-input-row {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem;
  border-top: 1px solid var(--border);
}

.ask-ai-input {
  flex: 1;
  padding: 0.55rem 0.9rem;
  background: var(--bg-page);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 0.9rem;
}

.ask-ai-input::placeholder {
  color: var(--text-muted);
}

.ask-ai-send {
  padding: 0.55rem 1rem;
  background: linear-gradient(135deg, #22d3ee 0%, #06b6d4 100%);
  color: #0f172a;
  border: none;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}

.ask-ai-send:hover:not(:disabled) {
  filter: brightness(1.08);
}
.ask-ai-send:disabled { opacity: 0.7; cursor: not-allowed; }

@media (max-width: 992px) {
  .hero-row {
    flex-direction: column;
    align-items: stretch;
    min-height: 0;
  }
  .hero-weather {
    min-height: 200px;
    border-radius: 0;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .blog-carousel {
    flex: 1 1 auto;
    width: 100%;
    max-width: 100%;
    border-left: none;
    border-right: none;
  }
  .hero-clock-wrap {
    min-height: 0;
  }
  .hero-clock {
    min-height: 160px;
    border-left: none;
    border-top: 1px solid var(--border);
  }
}

/* Carousel: fixed width same as content */
.blog-carousel {
  background: var(--bg-card);
  overflow: hidden;
  flex: 0 0 1200px;
  width: 1200px;
  max-width: 1200px;
  border-radius: 0;
  border: none;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
}

.carousel-inner {
  position: relative;
  width: 100%;
  height: 320px;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

.carousel-slide.active {
  display: block;
}

.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.4);
  color: #fff;
  border: none;
  padding: 0.75rem 1rem;
  cursor: pointer;
  font-size: 1.25rem;
  transition: background 0.2s;
}

.carousel-nav:hover { background: rgba(0,0,0,0.6); }
.carousel-prev { left: 0; }
.carousel-next { right: 0; }

.carousel-dots {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  border: none;
  cursor: pointer;
}

.carousel-dot.active { background: #fff; }

/* Home: family / Old Navy spotlight (below hero) */
.home-spotlight {
  width: 100%;
  margin: 0 0 1.5rem;
  padding: 1.35rem 0 1.5rem;
  background: linear-gradient(180deg, rgba(34, 211, 238, 0.1) 0%, rgba(15, 23, 42, 0.4) 55%, transparent 100%);
  border-bottom: 1px solid var(--border);
}

.home-spotlight-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.home-spotlight-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.25rem, 2.5vw, 1.65rem);
  font-weight: 600;
  margin: 0 0 0.45rem;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.home-spotlight-title .home-spotlight-kicker {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 0.78em;
  font-weight: 600;
  color: var(--accent-cyan);
  letter-spacing: 0.02em;
  margin-right: 0.45rem;
}

@media (max-width: 480px) {
  .home-spotlight-title .home-spotlight-kicker {
    display: block;
    margin: 0 0 0.25rem;
  }
}

.home-spotlight-intro {
  margin: 0 0 1.2rem;
  max-width: none;
  width: 100%;
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  text-align: left;
}

.home-spotlight-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.home-spotlight-card {
  display: block;
  padding: 1rem 1.1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  line-height: 1.4;
  box-shadow: var(--shadow);
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
}

.home-spotlight-card:hover {
  border-color: var(--accent-cyan);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}

@media (max-width: 640px) {
  .home-spotlight-cards {
    grid-template-columns: 1fr;
  }
}

/* Main Content - 3 Column */
.blog-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 2rem;
  display: grid;
  grid-template-columns: 1fr 2fr 280px;
  gap: 1.5rem;
}

@media (max-width: 992px) {
  .blog-main { grid-template-columns: 1fr; }
}

/* Sidebar */
.blog-sidebar {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  height: fit-content;
  position: sticky;
  top: 120px;
}

.blog-sidebar h3 {
  font-size: 1rem;
  color: var(--accent-cyan);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--accent-cyan);
}

.sidebar-latest-note {
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--text-secondary);
  margin: -0.35rem 0 0.85rem;
}

.sidebar-list { list-style: none; }

.sidebar-list li.sidebar-featured {
  padding-left: 0.65rem;
  margin-left: -0.15rem;
  border-left: 3px solid var(--accent-cyan);
}

.sidebar-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
}

.sidebar-list li:last-child { border-bottom: none; }

.sidebar-list a {
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.9rem;
  display: block;
}

.sidebar-list a:hover { color: var(--accent-cyan); }

.sidebar-date {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.sidebar-date .date-text {
  color: inherit;
}

/* Article Module */
.article-module {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.module-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.module-header h2 {
  font-size: 1.1rem;
  color: var(--accent-cyan);
}

.module-more {
  font-size: 0.9rem;
  color: var(--accent-cyan);
  text-decoration: none;
}

.module-more:hover { text-decoration: underline; }

/* Article Item (with image) */
.article-item {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}

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

.article-item-thumb {
  flex-shrink: 0;
  width: 120px;
  height: 80px;
  border-radius: 6px;
  overflow: hidden;
  background: var(--bg-page);
}

.article-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-item-content { flex: 1; min-width: 0; }

.article-item-title {
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 0.35rem;
}

.article-item-title a {
  color: var(--text-primary);
  text-decoration: none;
}

.article-item-title a:hover { color: var(--accent-cyan); }

.article-item-excerpt {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.article-item-date {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.article-item-date .date-text {
  color: inherit;
}

/* Article List (text only) */
.article-list { list-style: none; }

.article-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px dashed var(--border);
}

.article-list li:last-child { border-bottom: none; }

.article-list a {
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.9rem;
  flex: 1;
}

.article-list a:hover { color: var(--accent-cyan); }

.article-list .date {
  font-size: 0.8rem;
  color: var(--text-muted);
  flex-shrink: 0;
  margin-left: 1rem;
}

/* Keep date + views compact and readable */
.article-item-date,
.article-list .date,
.sidebar-date {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: nowrap;
}

.view-count {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  color: #7f96b5;
  font-size: 0.92em;
}

/* Two-column module layout */
.module-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 768px) {
  .module-split { grid-template-columns: 1fr; }
}

/* Right Sidebar */
.blog-right {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  height: fit-content;
  position: sticky;
  top: 120px;
}

.blog-right-intro {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  line-height: 1.4;
}

.blog-right .category-grid {
  list-style: none;
  padding: 0;
  margin: 0;
}

.blog-right .category-item {
  margin-bottom: 0;
  border-bottom: 1px solid var(--border);
}

.blog-right .category-item:last-child { border-bottom: none; }

.blog-right .category-item a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0;
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: background 0.15s ease;
  border-radius: 6px;
  margin: 0 -0.25rem;
  padding-left: 0.25rem;
  padding-right: 0.25rem;
}

.blog-right .category-item a:hover {
  color: var(--accent-cyan);
  background: var(--bg-card-hover);
}

.blog-right .category-thumb {
  width: 64px;
  height: 48px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}

.blog-right .category-item a span { display: block; }

.blog-right .category-name {
  font-weight: 500;
  line-height: 1.25;
}

.blog-right .category-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

/* Article Comments */
.article-comments {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.article-comments h3 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.comment-list {
  margin-bottom: 1.5rem;
}

.comment-item {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}

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

.comment-item strong { color: var(--accent-cyan); }

.comment-date {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-left: 0.5rem;
}

.comment-item p {
  margin-top: 0.35rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.comment-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 480px;
}

.comment-form input,
.comment-form textarea {
  padding: 0.6rem 0.75rem;
  background: var(--bg-page);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-size: 0.9rem;
  font-family: inherit;
}

.comment-form input::placeholder,
.comment-form textarea::placeholder {
  color: var(--text-muted);
}

.comment-form textarea {
  resize: vertical;
  min-height: 80px;
}

.comment-form button {
  padding: 0.6rem 1.25rem;
  background: var(--accent-cyan);
  color: var(--bg-page);
  border: none;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  align-self: flex-start;
}

.comment-form button:hover {
  opacity: 0.9;
}

.comment-note {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--accent-green);
}

/* Footer */
.blog-footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  margin-top: 2rem;
}

.blog-footer .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
}

.footer-links a:hover { color: var(--accent-cyan); }

.footer-bottom {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-bottom a { color: var(--accent-cyan); }

/* Category list page */
.category-article-list {
  list-style: none;
  margin: 1.5rem 0;
}
.category-article-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0;
  border-bottom: 1px dashed var(--border);
}
.category-article-list li:last-child { border-bottom: none; }
.category-article-list a {
  color: var(--text-primary);
  text-decoration: none;
  flex: 1;
}
.category-article-list a:hover { color: var(--accent-cyan); }
.category-article-list .date {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-left: 1rem;
}
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 2rem 0;
  flex-wrap: wrap;
}
.pagination a {
  color: var(--accent-cyan);
  text-decoration: none;
}
.pagination a:hover { text-decoration: underline; }
.pagination-info { color: var(--text-muted); font-size: 0.9rem; }

/* Category pages — magazine-style list (inspired by editorial travel hubs) */
.category-page-mag {
  max-width: 1100px !important;
  margin-left: auto;
  margin-right: auto;
}

.category-page-mag .category-hero-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.category-intro {
  color: var(--text-secondary);
  font-size: 1.02rem;
  line-height: 1.75;
  max-width: 42rem;
  margin-bottom: 2rem;
}

.category-mag-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin: 1.5rem 0 2.5rem;
}

@media (min-width: 720px) {
  .category-mag-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem 1.5rem;
  }
}

.category-mag-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.category-mag-card:hover {
  border-color: rgba(34, 211, 238, 0.35);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.category-mag-thumb-link {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-page);
}

.category-mag-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.category-mag-card:hover .category-mag-thumb {
  transform: scale(1.04);
}

.category-mag-body {
  padding: 1.15rem 1.25rem 1.35rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.5rem;
}

.category-mag-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.category-mag-meta time {
  font-variant-numeric: tabular-nums;
}

.category-mag-views.view-count {
  color: #89a0bf;
}

.category-mag-tag {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: rgba(34, 211, 238, 0.12);
  color: var(--accent-cyan);
  border: 1px solid rgba(34, 211, 238, 0.25);
}

.category-mag-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.35;
  margin: 0;
}

.category-mag-title a {
  color: var(--text-primary);
  text-decoration: none;
}

.category-mag-title a:hover {
  color: var(--accent-cyan);
}

.category-mag-excerpt {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin: 0;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.category-mag-readmore {
  margin-top: 0.35rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent-cyan);
  text-decoration: none;
  align-self: flex-start;
}

.category-mag-readmore:hover {
  text-decoration: underline;
}

.category-count-line {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}
