/* lyssolar.com — warm solar spotlight theme */
:root {
  --lys-sun: #f4a024;
  --lys-sun-deep: #e07800;
  --lys-amber: #ffd166;
  --lys-cream: #fff8eb;
  --lys-warm-bg: #fef6e4;
  --lys-earth: #5c4033;
  --lys-text: #2d2416;
  --lys-muted: #6b5d4d;
  --lys-radius: 14px;
  --lys-shadow: 0 8px 32px rgba(224, 120, 0, 0.12);
  --font-main: 'Nunito', system-ui, sans-serif;
}

body.site-lys {
  margin: 0;
  background: var(--lys-warm-bg);
  color: var(--lys-text);
  font-family: var(--font-main);
  line-height: 1.65;
}

a { color: var(--lys-sun-deep); transition: color 0.2s; }
a:hover { color: #b85c00; }

/* Header */
.site-header {
  position: relative;
  background: linear-gradient(135deg, #fff8eb 0%, #ffe8b8 100%);
  border-bottom: 2px solid var(--lys-sun);
  padding: 1rem 0;
  overflow: hidden;
}
.header-glow {
  position: absolute;
  top: -40px;
  right: 10%;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(244, 160, 36, 0.35) 0%, transparent 70%);
  pointer-events: none;
  animation: lys-pulse 4s ease-in-out infinite;
}
@keyframes lys-pulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.08); }
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  position: relative;
  z-index: 1;
}
.brand-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--lys-earth);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.brand-title span { color: var(--lys-sun-deep); }
.brand-tagline { font-size: 0.85rem; color: var(--lys-muted); margin: 0; }
.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  align-items: center;
}
.nav-links a {
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--lys-earth);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  transition: background 0.2s, color 0.2s;
}
.nav-links a:hover { background: rgba(244, 160, 36, 0.2); color: var(--lys-sun-deep); }
.nav-partner {
  background: var(--lys-sun) !important;
  color: var(--lys-earth) !important;
}
.nav-partner:hover { background: var(--lys-sun-deep) !important; color: #fff !important; }

.header-search {
  flex: 1;
  min-width: 200px;
  max-width: 380px;
  margin-left: auto;
  display: flex;
  gap: 0.4rem;
}
.search-input {
  flex: 1;
  border: 2px solid rgba(224, 120, 0, 0.25);
  border-radius: 999px;
  padding: 0.5rem 1rem;
  font-size: 0.92rem;
  background: #fff;
  color: var(--lys-text);
}
.search-input:focus {
  outline: none;
  border-color: var(--lys-sun);
  box-shadow: 0 0 0 3px rgba(244, 160, 36, 0.2);
}
.search-btn {
  border: none;
  background: var(--lys-sun);
  color: var(--lys-earth);
  font-weight: 700;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  cursor: pointer;
}
.search-btn:hover { background: var(--lys-sun-deep); color: #fff; }
.art-card.is-hidden { display: none !important; }

/* Layout */
.site-wrap { max-width: 1160px; margin: 0 auto; padding: 1.5rem 1rem 3rem; }

/* Rubric chips */
.rubric-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
}
.rubric-chip {
  display: inline-block;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  background: #fff;
  border: 2px solid var(--lys-sun);
  color: var(--lys-sun-deep);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 700;
  transition: all 0.2s;
}
.rubric-chip:hover {
  background: var(--lys-sun);
  color: var(--lys-earth);
  transform: translateY(-1px);
}

/* Spotlight home */
.spotlight {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 0;
  background: #fff;
  border-radius: var(--lys-radius);
  overflow: hidden;
  box-shadow: var(--lys-shadow);
  margin-bottom: 2.5rem;
  border: 1px solid rgba(244, 160, 36, 0.25);
  transition: box-shadow 0.3s, transform 0.3s;
}
.spotlight:hover {
  box-shadow: 0 12px 40px rgba(224, 120, 0, 0.18);
  transform: translateY(-2px);
}
.spotlight-media {
  position: relative;
  display: block;
  min-height: 320px;
  overflow: hidden;
  text-decoration: none;
}
.spotlight-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 320px;
  transition: transform 0.5s ease;
}
.spotlight:hover .spotlight-media img { transform: scale(1.04); }
.spotlight-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(45, 36, 22, 0.15) 0%, rgba(244, 160, 36, 0.2) 100%);
  pointer-events: none;
}
.spotlight-rays {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 200%;
  height: 200%;
  transform: translate(-50%, -50%);
  background: conic-gradient(from 0deg, transparent 0deg, rgba(255, 209, 102, 0.15) 30deg, transparent 60deg, rgba(255, 209, 102, 0.1) 90deg, transparent 120deg);
  animation: lys-rotate 20s linear infinite;
  pointer-events: none;
}
@keyframes lys-rotate { to { transform: translate(-50%, -50%) rotate(360deg); } }
.spotlight-panel {
  padding: 2rem 2rem 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(180deg, #fff 0%, var(--lys-cream) 100%);
}
.spotlight-top {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.spotlight-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 800;
  color: var(--lys-sun-deep);
}
.spotlight-badge {
  font-size: 0.68rem;
  background: var(--lys-amber);
  color: var(--lys-earth);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-weight: 700;
  text-transform: uppercase;
}
.spotlight-title {
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  font-weight: 800;
  line-height: 1.25;
  margin: 0 0 0.75rem;
}
.spotlight-title a { color: var(--lys-earth); text-decoration: none; }
.spotlight-title a:hover { color: var(--lys-sun-deep); }
.spotlight-lead { color: var(--lys-muted); font-size: 1.05rem; margin-bottom: 1.25rem; }
.btn-spotlight {
  align-self: flex-start;
  background: linear-gradient(135deg, var(--lys-sun) 0%, var(--lys-sun-deep) 100%);
  border: none;
  color: var(--lys-earth);
  font-weight: 800;
  padding: 0.65rem 1.5rem;
  border-radius: 999px;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-spotlight:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(224, 120, 0, 0.35);
  color: var(--lys-earth);
}

/* Feed */
.section-head {
  margin: 0 0 1.25rem;
  padding-left: 1rem;
  border-left: 4px solid var(--lys-sun);
}
.section-head h2 { font-weight: 800; margin: 0 0 0.25rem; color: var(--lys-earth); }
.section-head p { margin: 0; color: var(--lys-muted); font-size: 0.95rem; }
.feed-spotlight {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}
.feed-category { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.25rem; }
.art-card {
  background: #fff;
  border-radius: var(--lys-radius);
  box-shadow: var(--lys-shadow);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  border: 1px solid rgba(244, 160, 36, 0.12);
}
.art-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 36px rgba(224, 120, 0, 0.15);
}
.art-featured { grid-column: span 1; }
.art-thumb img { width: 100%; height: 170px; object-fit: cover; }
.art-copy { padding: 1rem 1.15rem 1.25rem; }
.art-cat {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--lys-sun-deep);
  font-weight: 800;
}
.art-card h3 { font-size: 1.05rem; font-weight: 700; margin: 0.35rem 0; line-height: 1.35; }
.art-card h3 a { color: var(--lys-earth); text-decoration: none; }
.art-card h3 a:hover { color: var(--lys-sun-deep); }
.art-card p { font-size: 0.88rem; color: var(--lys-muted); margin: 0; }

/* Category page */
.cat-head h1 { font-weight: 800; color: var(--lys-earth); margin-bottom: 0.25rem; }
.cat-head p { color: var(--lys-muted); }

/* Article page */
.article-page { max-width: 780px; margin: 0 auto; padding: 1rem; }
.article-hero {
  width: 100%;
  border-radius: var(--lys-radius);
  margin: 1rem 0;
  max-height: 420px;
  object-fit: cover;
  box-shadow: var(--lys-shadow);
}
.article-lead { font-size: 1.15rem; color: var(--lys-muted); font-weight: 600; }
.article-content h2 { margin-top: 1.75rem; font-size: 1.3rem; font-weight: 800; color: var(--lys-earth); }
.article-content h3 { margin-top: 1.25rem; font-size: 1.1rem; font-weight: 700; }
.article-content blockquote {
  border-left: 4px solid var(--lys-sun);
  padding: 0.75rem 1.25rem;
  margin: 1.5rem 0;
  background: var(--lys-cream);
  font-style: italic;
  color: var(--lys-muted);
}
.ad-note {
  background: linear-gradient(90deg, #fff8e6 0%, #ffe8b8 100%);
  border-left: 4px solid var(--lys-sun-deep);
  padding: 0.85rem 1.1rem;
  margin: 1rem 0;
  font-size: 0.9rem;
  border-radius: 0 var(--lys-radius) var(--lys-radius) 0;
}
.ad-note strong { display: block; margin-bottom: 0.25rem; }
.promo-banner {
  background: linear-gradient(135deg, var(--lys-cream) 0%, #ffe8b8 100%);
  border: 2px dashed var(--lys-sun);
  border-radius: var(--lys-radius);
}
.promo-banner-img { max-height: 220px; width: 100%; object-fit: cover; border-radius: var(--lys-radius); }

/* Quiz — animated progress */
.site-quiz {
  background: #fff;
  border-radius: var(--lys-radius);
  padding: 1.75rem;
  margin: 2rem 0;
  box-shadow: var(--lys-shadow);
  border: 1px solid rgba(244, 160, 36, 0.2);
}
.site-quiz h2 { font-weight: 800; color: var(--lys-earth); margin-bottom: 1rem; }
.quiz-progress-track {
  height: 10px;
  background: #f0e6d0;
  border-radius: 999px;
  overflow: hidden;
  position: relative;
  margin-bottom: 0.5rem;
}
.quiz-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--lys-sun) 0%, var(--lys-sun-deep) 50%, var(--lys-sun) 100%);
  background-size: 200% 100%;
  border-radius: 999px;
  transition: width 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  animation: lys-shimmer 2s ease-in-out infinite;
}
@keyframes lys-shimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
.quiz-step-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--lys-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
}
.quiz-stage .quiz-option {
  text-align: left;
  margin-bottom: 0.5rem;
  border-radius: 10px;
  font-weight: 600;
  border-color: var(--lys-sun);
  color: var(--lys-earth);
}
.quiz-stage .quiz-option.active,
.quiz-stage .quiz-option:hover {
  background: var(--lys-sun);
  border-color: var(--lys-sun-deep);
  color: var(--lys-earth);
}
.quiz-result { animation: lys-fade-in 0.5s ease; }
@keyframes lys-fade-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.hidden { display: none !important; }

/* Footer */
.site-footer {
  background: linear-gradient(180deg, var(--lys-earth) 0%, #3d2a1f 100%);
  color: #e8ddd0;
  padding: 2.5rem 1rem 1.5rem;
  margin-top: 3rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}
.footer-logo { font-size: 1.4rem; font-weight: 800; margin: 0; color: #fff; }
.footer-logo span { color: var(--lys-amber); }
.footer-tagline { font-size: 0.88rem; opacity: 0.85; }
.footer-contact a { color: var(--lys-amber); }
.footer-legal { display: flex; flex-direction: column; gap: 0.35rem; }
.footer-legal a { color: #e8ddd0; text-decoration: none; font-size: 0.88rem; }
.footer-legal a:hover { color: var(--lys-amber); }
.footer-disclaimer {
  font-size: 0.78rem;
  opacity: 0.7;
  text-align: center;
  margin: 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Cookie bar */
.cookie-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: var(--lys-earth);
  color: #fff;
  padding: 0.85rem 0;
  transform: translateY(100%);
  transition: transform 0.35s ease;
}
.cookie-bar.ck-show { transform: translateY(0); }
.cookie-bar.ck-hide { transform: translateY(100%); }
.cookie-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.cookie-text { max-width: 720px; font-size: 0.88rem; margin: 0; }

@media (max-width: 768px) {
  .spotlight { grid-template-columns: 1fr; }
  .spotlight-media { min-height: 220px; }
  .spotlight-media img { min-height: 220px; }
  .header-inner { flex-direction: column; align-items: flex-start; }
  .nav-links { width: 100%; }
}
