/*
Theme Name: SaulėsŽinios
Theme URI: https://sauleszinios.lt
Author: SaulėsŽinios
Description: AdSense optimizuota saulės energijos tema Lietuvai. Greita, švari, draugiška SEO ir reklamai.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: sauleszinios
Tags: blog, news, adsense, solar, lithuanian
*/

/* === GOOGLE FONTS === */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;900&family=DM+Sans:ital,wght@0,300;0,400;0,500;0,600;1,400&display=swap');

/* === ROOT === */
:root {
  --sun: #F5A623;
  --sun-light: #FFF3D6;
  --sun-deep: #E8890A;
  --green: #2D6A4F;
  --dark: #1A1A1A;
  --mid: #555555;
  --soft: #F9F6F0;
  --border: #EDE8DF;
  --white: #FFFFFF;
  --radius: 16px;
  --shadow: 0 4px 24px rgba(0,0,0,0.07);
}

/* === RESET === */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  color: var(--dark);
  background: var(--white);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--sun-deep); text-decoration: none; }
a:hover { color: var(--dark); }
ul, ol { padding-left: 1.5em; }

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  line-height: 1.15;
  color: var(--dark);
}
h1 { font-size: clamp(32px, 5vw, 52px); }
h2 { font-size: clamp(26px, 4vw, 40px); }
h3 { font-size: clamp(20px, 3vw, 28px); }
h4 { font-size: 20px; }
p { margin-bottom: 1.2em; color: var(--mid); }

/* === LAYOUT === */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.site-wrap { display: flex; flex-direction: column; min-height: 100vh; }
.site-content { flex: 1; }

/* === HEADER === */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 24px;
}
.site-logo {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  color: var(--dark) !important;
  white-space: nowrap;
  font-weight: 700;
}
.site-logo span { color: var(--sun); }

/* Nav */
.main-nav { display: flex; align-items: center; gap: 8px; }
.main-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--mid);
  padding: 6px 12px;
  border-radius: 8px;
  transition: all 0.2s;
  white-space: nowrap;
}
.main-nav a:hover, .main-nav a.current { color: var(--sun-deep); background: var(--sun-light); }
.header-cta {
  background: var(--sun);
  color: white !important;
  padding: 9px 20px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.2s, transform 0.2s;
  box-shadow: 0 2px 12px rgba(245,166,35,0.35);
}
.header-cta:hover { background: var(--sun-deep) !important; transform: translateY(-1px); }

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  flex-direction: column;
  gap: 5px;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: all 0.3s;
}

/* === AD ZONES === */
.ad-zone {
  background: var(--soft);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #bbb;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.5px;
  overflow: hidden;
  position: relative;
}
.ad-zone.ad-leaderboard { width: 100%; min-height: 90px; margin: 16px 0; }
.ad-zone.ad-rectangle { width: 100%; min-height: 250px; margin: 20px 0; }
.ad-zone.ad-inline { width: 100%; min-height: 90px; margin: 28px 0; }
/* Kai AdSense aktyvus, dashed border nerodomas */
.ad-zone:has(ins) { background: transparent; border: none; }
/* AdSense ins visada full width */
.ad-zone ins { display: block; width: 100% !important; }

/* Ad label */
.ad-label {
  font-size: 10px;
  color: #ccc;
  text-align: center;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 4px;
}

/* === HERO (front page) === */
.hero-section {
  background: var(--soft);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}
.hero-section::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(245,166,35,0.12) 0%, transparent 70%);
  top: -100px;
  right: -100px;
  pointer-events: none;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--sun-light);
  color: var(--sun-deep);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 20px;
}
.hero-title { color: var(--dark); margin-bottom: 16px; }
.hero-title em { color: var(--sun); font-style: normal; }
.hero-desc { font-size: 18px; color: var(--mid); line-height: 1.7; margin-bottom: 32px; }
.hero-buttons { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-primary {
  background: var(--sun);
  color: white;
  padding: 13px 30px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 600;
  transition: all 0.2s;
  box-shadow: 0 4px 20px rgba(245,166,35,0.35);
  display: inline-block;
}
.btn-primary:hover { background: var(--sun-deep); color: white; transform: translateY(-2px); }
.btn-secondary {
  background: transparent;
  color: var(--dark);
  padding: 13px 30px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 500;
  border: 2px solid var(--border);
  transition: all 0.2s;
  display: inline-block;
}
.btn-secondary:hover { border-color: var(--sun); color: var(--sun-deep); }

/* Hero visual */
.hero-visual { display: flex; align-items: center; justify-content: center; position: relative; }
.sun-orb {
  width: 360px;
  height: 360px;
  background: radial-gradient(circle at 35% 35%, #FFE57A, var(--sun) 55%, var(--sun-deep));
  border-radius: 50%;
  box-shadow: 0 20px 80px rgba(245,166,35,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 120px;
  animation: float 7s ease-in-out infinite;
}
@keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-16px)} }
.hero-badge-float {
  position: absolute;
  background: white;
  border-radius: 14px;
  padding: 12px 18px;
  box-shadow: var(--shadow);
  font-size: 13px;
  font-weight: 500;
}
.hero-badge-float strong { display: block; font-size: 20px; font-family: 'Playfair Display', serif; color: var(--sun-deep); }
.hbf-1 { top: 40px; left: -10px; }
.hbf-2 { bottom: 60px; right: -10px; }
.hbf-3 { top: 160px; right: -50px; }

/* === STATS BAR === */
.stats-bar { background: var(--dark); }
.stats-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.stat-item {
  text-align: center;
  padding: 28px 20px;
  border-right: 1px solid rgba(255,255,255,0.06);
}
.stat-item:last-child { border-right: none; }
.stat-num { font-family: 'Playfair Display', serif; font-size: 36px; color: var(--sun); }
.stat-lbl { font-size: 12px; color: rgba(255,255,255,0.5); margin-top: 4px; letter-spacing: 0.3px; }

/* === SECTION BASE === */
.section { padding: 72px 0; }
.section-tag {
  display: inline-block;
  background: var(--sun-light);
  color: var(--sun-deep);
  padding: 5px 14px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.section-title { margin-bottom: 12px; }
.section-sub { font-size: 17px; color: var(--mid); max-width: 560px; line-height: 1.7; }

/* === STEPS (how it works) === */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 44px;
}
.step-card {
  background: var(--soft);
  border-radius: var(--radius);
  padding: 28px 22px;
  position: relative;
  transition: transform 0.2s, box-shadow 0.2s;
  border: 1px solid var(--border);
}
.step-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.step-number {
  font-family: 'Playfair Display', serif;
  font-size: 56px;
  color: var(--sun-light);
  position: absolute;
  top: 10px;
  right: 16px;
  line-height: 1;
}
.step-icon { font-size: 28px; margin-bottom: 14px; }
.step-card h3 { font-size: 16px; margin-bottom: 8px; }
.step-card p { font-size: 14px; margin: 0; }

/* === CALCULATOR SECTION === */
.calc-section { background: linear-gradient(135deg, var(--sun-light), #fffdf7); }
.calc-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.calc-usp-list { list-style: none; padding: 0; margin-top: 20px; display: flex; flex-direction: column; gap: 10px; }
.calc-usp-list li { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--mid); }
.calc-usp-list li::before { content: '✓'; color: var(--sun); font-size: 18px; font-weight: 700; }
.calc-box {
  background: white;
  border-radius: 20px;
  padding: 36px;
  box-shadow: 0 8px 40px rgba(245,166,35,0.15);
}
.calc-box h3 { font-size: 22px; margin-bottom: 24px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 12px; font-weight: 600; color: var(--mid); margin-bottom: 7px; letter-spacing: 0.3px; text-transform: uppercase; }
.form-group input, .form-group select {
  width: 100%;
  border: 2px solid var(--border);
  border-radius: 10px;
  padding: 11px 15px;
  font-size: 15px;
  font-family: 'DM Sans', sans-serif;
  color: var(--dark);
  transition: border 0.2s;
  outline: none;
  background: white;
}
.form-group input:focus, .form-group select:focus { border-color: var(--sun); }
.calc-result-box {
  background: var(--sun-light);
  border-radius: 12px;
  padding: 18px;
  text-align: center;
  margin: 16px 0;
}
.calc-result-num { font-family: 'Playfair Display', serif; font-size: 40px; color: var(--sun-deep); }
.calc-result-lbl { font-size: 13px; color: var(--mid); margin-top: 2px; }
.calc-submit {
  width: 100%;
  background: var(--sun);
  color: white;
  border: none;
  border-radius: 50px;
  padding: 13px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  transition: background 0.2s;
}
.calc-submit:hover { background: var(--sun-deep); }

/* === POSTS GRID === */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 44px;
}
.posts-grid.featured { grid-template-columns: 2fr 1fr 1fr; }
.post-card {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform 0.2s, box-shadow 0.2s;
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.post-card-thumb {
  background: linear-gradient(135deg, var(--sun-light), #ffe99a);
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 50px;
  overflow: hidden;
}
.post-card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.posts-grid.featured .post-card:first-child .post-card-thumb { height: 240px; font-size: 70px; }
.post-card-body { padding: 20px; }
.post-cat {
  font-size: 10px;
  font-weight: 700;
  color: var(--sun-deep);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 7px;
}
.post-card-title { font-size: 17px; line-height: 1.3; margin-bottom: 8px; }
.posts-grid.featured .post-card:first-child .post-card-title { font-size: 22px; }
.post-card-title a { color: var(--dark); transition: color 0.2s; }
.post-card-title a:hover { color: var(--sun-deep); }
.post-card-excerpt { font-size: 13px; color: var(--mid); line-height: 1.6; margin-bottom: 12px; }
.post-meta { font-size: 12px; color: #bbb; }
.read-more { font-size: 13px; font-weight: 600; color: var(--sun-deep); }
.read-more:hover { color: var(--dark); }

/* === SINGLE POST === */
.page-header { background: var(--soft); padding: 48px 0; border-bottom: 1px solid var(--border); }
.page-header .post-cat { font-size: 12px; }
.page-header h1 { font-size: clamp(28px, 4vw, 44px); margin: 12px 0 16px; max-width: 800px; }
.post-header-meta { display: flex; gap: 20px; font-size: 14px; color: var(--mid); }

.single-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 48px;
  padding: 48px 0;
  align-items: start;
}
.post-content { max-width: 720px; }
.post-content p { font-size: 16.5px; line-height: 1.8; color: #444; }
.post-content h2 { font-size: 28px; margin: 36px 0 14px; padding-top: 12px; border-top: 2px solid var(--border); }
.post-content h3 { font-size: 22px; margin: 28px 0 10px; }
.post-content ul, .post-content ol { margin: 0 0 1.2em; }
.post-content li { font-size: 16px; color: #444; line-height: 1.7; margin-bottom: 6px; }
.post-content strong { color: var(--dark); font-weight: 700; }
.post-content blockquote {
  border-left: 4px solid var(--sun);
  padding: 16px 24px;
  background: var(--sun-light);
  border-radius: 0 12px 12px 0;
  margin: 24px 0;
  font-style: italic;
  font-size: 17px;
}
.post-content table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 15px; }
.post-content th { background: var(--dark); color: white; padding: 12px 16px; text-align: left; font-family: 'DM Sans', sans-serif; font-weight: 600; }
.post-content td { padding: 11px 16px; border-bottom: 1px solid var(--border); }
.post-content tr:nth-child(even) td { background: var(--soft); }

/* Ad inside post content */
.ad-post-top, .ad-post-mid, .ad-post-bottom { margin: 32px 0; }

/* === SIDEBAR === */
.sidebar { position: sticky; top: 88px; display: flex; flex-direction: column; gap: 24px; }
.sidebar-widget {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.widget-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--mid);
  padding: 16px 20px 14px;
  border-bottom: 1px solid var(--border);
}
.widget-body { padding: 16px 20px; }
.widget-posts { list-style: none; padding: 0; }
.widget-posts li { padding: 12px 0; border-bottom: 1px solid var(--border); }
.widget-posts li:last-child { border: none; padding-bottom: 0; }
.widget-posts a { font-size: 14px; color: var(--dark); line-height: 1.4; font-weight: 500; }
.widget-posts a:hover { color: var(--sun-deep); }
.widget-posts .wpost-meta { font-size: 11px; color: #bbb; margin-top: 4px; }
.sidebar .ad-zone.ad-rectangle { border-radius: var(--radius); }

/* === ARCHIVE / BLOG === */
.archive-header { background: var(--soft); padding: 44px 0; border-bottom: 1px solid var(--border); margin-bottom: 48px; }
.archive-layout { display: grid; grid-template-columns: 1fr 340px; gap: 48px; padding-bottom: 60px; }
.archive-posts { display: flex; flex-direction: column; gap: 28px; }
.archive-post {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 24px;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}
.archive-post:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.archive-thumb {
  background: linear-gradient(135deg, var(--sun-light), #ffe99a);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  min-height: 140px;
}
.archive-thumb img { width: 100%; height: 100%; object-fit: cover; }
.archive-body { padding: 20px 20px 20px 0; display: flex; flex-direction: column; justify-content: center; }
.archive-body h2 { font-size: 20px; margin-bottom: 8px; }
.archive-body h2 a { color: var(--dark); }
.archive-body h2 a:hover { color: var(--sun-deep); }
.archive-body p { font-size: 14px; margin-bottom: 10px; }
.pagination { display: flex; gap: 8px; justify-content: center; padding: 40px 0; }
.pagination a, .pagination span {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px;
  border: 1px solid var(--border);
  color: var(--dark);
  transition: all 0.2s;
}
.pagination .current, .pagination a:hover { background: var(--sun); color: white; border-color: var(--sun); }

/* === CTA BANNER === */
.cta-banner { background: var(--dark); padding: 72px 0; text-align: center; }
.cta-banner h2 { color: white; margin-bottom: 12px; }
.cta-banner h2 span { color: var(--sun); }
.cta-banner p { color: rgba(255,255,255,0.6); font-size: 17px; margin-bottom: 32px; max-width: 520px; margin-left: auto; margin-right: auto; }

/* === FOOTER === */
.site-footer { background: #111; color: #666; }
.footer-top { padding: 56px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand .site-logo { color: white !important; font-size: 20px; display: inline-block; margin-bottom: 12px; }
.footer-brand p { font-size: 13px; color: #555; line-height: 1.8; }
.footer-col h4 { font-family: 'DM Sans', sans-serif; font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: #999; margin-bottom: 16px; }
.footer-col ul { list-style: none; padding: 0; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a { color: #555; font-size: 13px; transition: color 0.2s; }
.footer-col ul a:hover { color: var(--sun); }
.footer-bottom {
  border-top: 1px solid #1E1E1E;
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #444;
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-visual { display: none; }
  .hero-buttons { justify-content: center; }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .calc-inner { grid-template-columns: 1fr; }
  .posts-grid, .posts-grid.featured { grid-template-columns: repeat(2, 1fr); }
  .single-layout, .archive-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .main-nav { display: none; }
  .main-nav.open { display: flex; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0; background: white; border-bottom: 1px solid var(--border); padding: 16px; box-shadow: 0 8px 24px rgba(0,0,0,0.08); }
  .menu-toggle { display: flex; }
  .header-cta { font-size: 13px; padding: 8px 16px; }
  .posts-grid, .posts-grid.featured { grid-template-columns: 1fr; }
  .archive-post { grid-template-columns: 1fr; }
  .archive-thumb { height: 160px; }
  .steps-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 48px 0; }
  .hero-section { padding: 48px 0; }
}

/* Hero korteles telpa ekrane */
.hbf-2 { right: 0 !important; }
.hbf-3 { right: 12% !important; }
@media (max-width: 900px) { .hero-badge-float { display: none; } }

@media (max-width: 600px) { .header-cta { display: none !important; } }
