/* ==========================================================================
   KUNGS.LV – How-To Geek Style Stylesheet
   Zaļganīgs (Emerald / Forest Tech) moderns dizains tehnoloģiju portālam
   ========================================================================== */

:root {
  --bg-primary: #ffffff;
  --bg-secondary: #f4fbf7;
  --bg-card: #ffffff;
  --text-primary: #0f291e;
  --text-secondary: #335345;
  --text-muted: #648275;
  --border-color: #d1fae5;
  --border-subtle: #e5f6ed;

  /* Zaļo toņu palete (Emerald, Forest, Mint) */
  --green-darkest: #022c22;
  --green-darker: #064e3b;
  --green-forest: #047857;
  --green-primary: #059669;
  --green-emerald: #10b981;
  --green-mint: #34d399;
  --green-light: #ecfdf5;
  --green-border: #a7f3d0;
  
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace;
  --radius: 8px;
  --radius-lg: 14px;
  --shadow-sm: 0 1px 3px rgba(6, 78, 59, 0.05);
  --shadow: 0 4px 14px rgba(6, 78, 59, 0.08);
  --shadow-lg: 0 10px 25px -5px rgba(6, 78, 59, 0.12);
  --transition: all 0.2s ease-in-out;
}

*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Reading Progress Bar (2026 Editorial Trend) */
.reading-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--green-forest), var(--green-mint));
  width: 0%;
  z-index: 99999;
  transition: width 0.1s ease-out;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--green-primary);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* ==========================================================================
   Top Utility Bar (Dark Forest Green)
   ========================================================================== */
.top-bar {
  background-color: var(--green-darkest);
  color: #94b8a7;
  font-size: 0.8125rem;
  border-bottom: 1px solid #064e3b;
  padding: 0.45rem 0;
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.top-left, .top-right {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.divider {
  color: #065f46;
}

.weather-pill {
  color: #d1fae5;
  font-weight: 500;
}

.top-link {
  color: #94b8a7;
}

.top-link:hover {
  color: #ffffff;
}

.admin-pill {
  background: rgba(16, 185, 129, 0.18);
  color: #34d399;
  padding: 0.15rem 0.65rem;
  border-radius: 9999px;
  font-weight: 600;
  border: 1px solid rgba(52, 211, 153, 0.3);
}

.admin-pill:hover {
  background: #10b981;
  color: #022c22;
}

/* ==========================================================================
   Main Site Header (Forest Green Gradient & Geek Logo)
   ========================================================================== */
.site-header {
  background: linear-gradient(135deg, #022c22 0%, #064e3b 100%);
  color: #ffffff;
  padding: 1.5rem 0;
  border-bottom: 2px solid var(--green-forest);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.brand-emblem {
  font-size: 2.4rem;
  line-height: 1;
  filter: drop-shadow(0 2px 8px rgba(16, 185, 129, 0.4));
}

.brand-text {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #ffffff;
}

.brand-dot {
  color: var(--green-mint);
}

.brand-tagline {
  margin: 0.25rem 0 0;
  font-size: 0.9rem;
  color: #a7f3d0;
  font-weight: 500;
}

.editorial-callout {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: rgba(2, 44, 34, 0.6);
  border: 1px solid rgba(52, 211, 153, 0.25);
  padding: 0.6rem 1.15rem;
  border-radius: var(--radius);
  font-size: 0.8125rem;
}

.live-dot {
  width: 9px;
  height: 9px;
  background: #34d399;
  border-radius: 50%;
  animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 7px rgba(52, 211, 153, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

.callout-label {
  font-weight: 700;
  color: #ffffff;
}

.callout-desc {
  color: #a7f3d0;
}

/* ==========================================================================
   Navigation Bar (Dark Tech Green)
   ========================================================================== */
.main-nav {
  background: #022c22;
  color: #f8fafc;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 12px rgba(2, 44, 34, 0.25);
  border-bottom: 2px solid var(--green-emerald);
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.85rem 1.1rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #d1fae5;
  transition: var(--transition);
  border-bottom: 3px solid transparent;
}

.nav-link:hover, .nav-link.active {
  color: #ffffff;
  background-color: #064e3b;
  border-bottom-color: var(--green-mint);
}

.cat-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--green-emerald);
}

.nav-search-box {
  display: flex;
  align-items: center;
}

.search-form-inline {
  display: flex;
  align-items: center;
  background: #064e3b;
  border-radius: 9999px;
  padding: 0.25rem 0.5rem 0.25rem 0.85rem;
  border: 1px solid var(--green-forest);
}

.search-form-inline input {
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  font-size: 0.8125rem;
  width: 140px;
}

.search-form-inline input::placeholder {
  color: #6ee7b7;
}

.search-form-inline button {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.2rem;
  font-size: 0.9rem;
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-menu-toggle span {
  width: 22px;
  height: 2px;
  background: #ffffff;
}

/* ==========================================================================
   Breaking News Ticker
   ========================================================================== */
.news-ticker {
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
  padding: 0.45rem 0;
  font-size: 0.875rem;
}

.ticker-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.ticker-badge {
  background: var(--green-primary);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.25rem 0.65rem;
  border-radius: 4px;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.ticker-content {
  flex: 1;
  overflow: hidden;
  color: var(--text-secondary);
  font-weight: 500;
}

/* ==========================================================================
   Main Content Layout
   ========================================================================== */
.main-content {
  padding: 2rem 0 4rem;
}

.content-columns {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 2rem;
  align-items: start;
}

/* ==========================================================================
   How-To Geek Hero Section
   ========================================================================== */
.hero-section {
  margin-bottom: 2.5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero-lead-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #022c22;
  color: #ffffff;
}

.hero-image-link {
  position: relative;
  display: block;
  height: 380px;
  overflow: hidden;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.hero-lead-card:hover .hero-image {
  transform: scale(1.03);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2,44,34,0) 30%, rgba(2,44,34,0.95) 100%);
}

.hero-content {
  padding: 1.5rem 2rem 2rem;
  background: #022c22;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.8125rem;
  color: #a7f3d0;
}

.badge-tag {
  display: inline-block;
  background: var(--green-emerald);
  color: #022c22;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.25rem 0.65rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero-title {
  margin: 0 0 0.75rem;
  font-size: 1.85rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.hero-title a {
  color: #ffffff;
}

.hero-title a:hover {
  color: var(--green-mint);
}

.hero-excerpt {
  margin: 0 0 1rem;
  color: #d1fae5;
  font-size: 1rem;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-author-date {
  font-size: 0.8125rem;
  color: #94b8a7;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Hero Sidebar */
.hero-sidebar {
  padding: 1.5rem;
  background: #f0fdf4;
  border-left: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
}

.sidebar-header {
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--border-color);
}

.sidebar-title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--green-darkest);
}

.hero-substories-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.hero-substory-item {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}

.substory-thumb-link {
  flex-shrink: 0;
  width: 90px;
  height: 68px;
  border-radius: var(--radius);
  overflow: hidden;
}

.substory-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.hero-substory-item:hover .substory-thumb {
  transform: scale(1.05);
}

.substory-info {
  flex: 1;
}

.substory-badge {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--green-primary);
  display: block;
  margin-bottom: 0.2rem;
  letter-spacing: 0.04em;
}

.substory-title {
  margin: 0 0 0.3rem;
  font-size: 0.925rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--green-darkest);
}

.substory-title a:hover {
  color: var(--green-primary);
}

.substory-date {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Section Blocks & Grids
   ========================================================================== */
.section-block {
  margin-bottom: 3rem;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--border-color);
}

.section-title {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--green-darkest);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.title-accent {
  width: 6px;
  height: 24px;
  background: var(--green-emerald);
  border-radius: 3px;
  display: inline-block;
}

.section-subtitle {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.see-all-link {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--green-forest);
}

.see-all-link:hover {
  color: var(--green-primary);
  text-decoration: underline;
}

/* News Cards Grid */
.news-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

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

.news-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--green-mint);
}

.news-card-thumb-link {
  position: relative;
  display: block;
  height: 180px;
  overflow: hidden;
  background: #e2f4ea;
}

.news-card-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.news-card:hover .news-card-thumb {
  transform: scale(1.05);
}

.card-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--green-primary);
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.news-card-body {
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.news-card-title {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--green-darkest);
}

.news-card-title a:hover {
  color: var(--green-primary);
}

.news-card-excerpt {
  margin: 0 0 1rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-color);
  padding-top: 0.75rem;
}

/* Category highlights */
.category-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.compact-card {
  display: flex;
  gap: 0.85rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 0.85rem;
  align-items: center;
}

.compact-thumb-link {
  flex-shrink: 0;
  width: 80px;
  height: 60px;
  border-radius: 6px;
  overflow: hidden;
}

.compact-thumb-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.compact-body {
  flex: 1;
}

.compact-title {
  margin: 0 0 0.25rem;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--green-darkest);
}

.compact-date {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Sidebar Boxes (How-To Geek Tech Style)
   ========================================================================== */
.content-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.sidebar-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.box-title {
  margin: 0 0 1rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--green-darkest);
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 0.5rem;
}

.popular-ranking-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.ranking-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.ranking-num {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--green-mint);
  line-height: 1;
  width: 24px;
  text-align: center;
}

.ranking-item:first-child .ranking-num {
  color: var(--green-forest);
}

.ranking-content {
  flex: 1;
}

.ranking-cat {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.15rem;
  color: var(--green-primary);
}

.ranking-title {
  margin: 0 0 0.25rem;
  font-size: 0.925rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--green-darkest);
}

.ranking-stats {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.quote-box {
  background: linear-gradient(135deg, #022c22, #064e3b);
  color: #ffffff;
  border: 1px solid var(--green-forest);
}

.quote-icon {
  font-size: 2rem;
  line-height: 1;
  color: var(--green-mint);
  margin-bottom: 0.5rem;
}

.quote-text {
  margin: 0 0 0.75rem;
  font-style: italic;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #d1fae5;
}

.quote-author {
  font-size: 0.8125rem;
  color: #6ee7b7;
  font-weight: 600;
}

.submit-tip-box {
  background: #f0fdf4;
  border-color: #a7f3d0;
  text-align: center;
}

.tip-badge {
  display: inline-block;
  background: var(--green-primary);
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  margin-bottom: 0.5rem;
}

.submit-tip-box h4 {
  margin: 0 0 0.5rem;
  color: #064e3b;
}

.submit-tip-box p {
  margin: 0 0 1rem;
  font-size: 0.85rem;
  color: #047857;
}

.btn-tip {
  display: inline-block;
  background: var(--green-forest);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.5rem 1rem;
  border-radius: 6px;
}

.btn-tip:hover {
  background: var(--green-darker);
  color: #ffffff;
}

.cms-shortcut-box {
  background: #ecfdf5;
  border: 1px dashed var(--green-border);
}

.cms-inner {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 0.75rem;
}

.cms-icon {
  font-size: 1.5rem;
}

.cms-inner strong {
  display: block;
  font-size: 0.95rem;
  color: #064e3b;
}

.cms-inner p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.btn-admin-shortcut {
  display: block;
  text-align: center;
  background: var(--green-darker);
  color: #ffffff;
  padding: 0.5rem;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
}

.btn-admin-shortcut:hover {
  background: var(--green-primary);
  color: #ffffff;
}

/* ==========================================================================
   Article Detail Page & How-To Geek Callouts / Steps
   ========================================================================== */
.article-page-wrapper {
  margin-bottom: 3rem;
}

.breadcrumb-nav {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.bc-sep {
  color: #a7f3d0;
}

.bc-current {
  color: var(--text-secondary);
  font-weight: 500;
}

.article-container {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
}

.article-header {
  margin-bottom: 2rem;
}

.article-title {
  margin: 1rem 0;
  font-size: 2.3rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--green-darkest);
}

.article-lead {
  font-size: 1.18rem;
  line-height: 1.6;
  color: var(--text-secondary);
  font-weight: 400;
  margin: 0 0 1.5rem;
  border-left: 4px solid var(--green-primary);
  padding-left: 1.1rem;
}

.article-byline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.byline-author-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--green-forest);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
}

.author-name {
  font-size: 0.95rem;
  color: var(--green-darkest);
}

.publish-time {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.byline-meta-stats {
  display: flex;
  gap: 0.75rem;
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

/* Share actions bar */
.share-actions-bar {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.share-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.85rem;
  border-radius: 6px;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--border-color);
  background: #f0fdf4;
  color: var(--green-darker);
}

.share-whatsapp:hover { background: #25d366; color: #ffffff; border-color: #25d366; }
.share-facebook:hover { background: #1877f2; color: #ffffff; border-color: #1877f2; }
.share-twitter:hover { background: #000000; color: #ffffff; border-color: #000000; }
.share-copy:hover { background: var(--green-primary); color: #ffffff; border-color: var(--green-primary); }

.copy-toast {
  display: none;
  font-size: 0.8125rem;
  color: #16a34a;
  font-weight: 600;
}

.article-featured-image {
  margin: 0 0 2rem;
  border-radius: var(--radius);
  overflow: hidden;
}

.article-featured-image img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
}

.image-caption {
  font-size: 0.8rem;
  color: var(--text-muted);
  padding: 0.5rem 0;
  font-style: italic;
}

/* ==========================================================================
   How-To Geek Typography & Callouts
   ========================================================================== */
.article-body {
  font-size: 1.125rem;
  line-height: 1.8;
  color: #1e3a2f;
  margin-bottom: 2.5rem;
}

.article-body p {
  margin: 0 0 1.5rem;
}

.article-body h2, .article-body h3, .article-body h4 {
  font-weight: 800;
  color: var(--green-darkest);
  margin: 2.25rem 0 1rem;
  line-height: 1.3;
}

.article-body blockquote {
  margin: 2rem 0;
  padding: 1.25rem 1.75rem;
  background: #ecfdf5;
  border-left: 4px solid var(--green-emerald);
  font-style: italic;
  color: #064e3b;
  border-radius: 0 var(--radius) var(--radius) 0;
}

/* How-To Geek Callouts */
.geek-callout {
  padding: 1.15rem 1.4rem;
  border-radius: var(--radius);
  margin: 1.75rem 0;
  font-size: 1rem;
  line-height: 1.6;
}

.geek-tip {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-left: 5px solid #22c55e;
  color: #14532d;
}

.geek-warning {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-left: 5px solid #f59e0b;
  color: #78350f;
}

.geek-note {
  background: #f0fdfa;
  border: 1px solid #99f6e4;
  border-left: 5px solid #14b8a6;
  color: #134e4a;
}

/* Formal Article References Block (2026 Trend) */
.article-references {
  margin: 2.5rem 0 1.5rem;
  padding: 1.35rem 1.6rem;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-left: 5px solid var(--green-forest);
  border-radius: var(--radius);
  font-size: 0.925rem;
  box-shadow: var(--shadow-sm);
}

.article-references h4 {
  margin: 0 0 0.65rem;
  color: #064e3b;
  font-size: 1.05rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.article-references ul {
  margin: 0;
  padding-left: 1.25rem;
  color: #166534;
  line-height: 1.7;
}

/* AI Disclosure Notice (2026 Media Standard & Transparency) */
.ai-disclosure-notice {
  margin: 1.5rem 0 2rem;
  padding: 1rem 1.25rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-left: 4px solid #0d9488;
  border-radius: var(--radius);
  font-size: 0.875rem;
  color: #475569;
  line-height: 1.55;
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.ai-disclosure-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(13, 148, 136, 0.12);
  color: #0f766e;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  white-space: nowrap;
  flex-shrink: 0;
}

.article-references li {
  margin-bottom: 0.4rem;
}

.article-references a {
  color: #047857;
  text-decoration: underline;
  font-weight: 600;
}

.article-references a:hover {
  color: #065f46;
}

/* How-To Geek Step by Step Guide formatting */
.geek-step {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  margin: 1.5rem 0;
  padding: 1.25rem;
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
}

.step-num {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--green-primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.2rem;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(5, 150, 105, 0.3);
}

.step-content {
  flex: 1;
  font-size: 1rem;
  line-height: 1.6;
}

/* Code Blocks */
pre {
  background: #022c22;
  color: #a7f3d0;
  padding: 1.25rem;
  border-radius: 8px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.925rem;
  border: 1px solid #064e3b;
  margin: 1.5rem 0;
}

code {
  font-family: var(--font-mono);
  background: #ecfdf5;
  color: #065f46;
  padding: 0.2rem 0.45rem;
  border-radius: 4px;
  font-size: 0.9em;
  border: 1px solid #a7f3d0;
}

pre code {
  background: transparent;
  color: inherit;
  padding: 0;
  border: none;
  font-size: inherit;
}

/* ==========================================================================
   Article Tags (Birkas) for SEO & Discovery
   ========================================================================== */
.article-tags-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin: 1.5rem 0 1rem;
  padding: 1rem 0;
  border-top: 1px dashed var(--border-color);
  border-bottom: 1px dashed var(--border-color);
}

.tags-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--green-darkest);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-right: 0.25rem;
}

.article-tag-item {
  display: inline-block;
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.article-tag-item:hover {
  background: #059669;
  color: #ffffff;
  border-color: #059669;
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(5, 150, 105, 0.25);
}

/* ==========================================================================
   Comments Section
   ========================================================================== */
.comments-section {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 2px solid var(--border-color);
}

.comments-header h3 {
  margin: 0 0 1.5rem;
  font-size: 1.4rem;
  color: var(--green-darkest);
}

.comment-form {
  background: #f0fdf4;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.comment-form h4 {
  margin: 0 0 1rem;
  font-size: 1rem;
  color: var(--green-darkest);
}

.form-row {
  margin-bottom: 1rem;
}

.input-text, .input-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  outline: none;
  transition: var(--transition);
  background: #ffffff;
}

.input-text:focus, .input-textarea:focus {
  border-color: var(--green-primary);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.btn-submit-comment {
  background: var(--green-primary);
  color: #ffffff;
  border: none;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9375rem;
}

.btn-submit-comment:hover {
  background: var(--green-forest);
}

.comments-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.comment-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.comment-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-size: 0.8125rem;
}

.comment-author {
  font-weight: 700;
  color: var(--green-darkest);
}

.comment-date {
  color: var(--text-muted);
}

.comment-text {
  font-size: 0.95rem;
  color: #1e3a2f;
  line-height: 1.5;
}

/* Related articles */
.related-section {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 2px solid var(--border-color);
}

.related-title {
  margin: 0 0 1.25rem;
  font-size: 1.3rem;
  color: var(--green-darkest);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.25rem;
}

.related-card {
  display: flex;
  flex-direction: column;
}

.related-thumb-link {
  height: 120px;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.related-thumb-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.related-card h4 {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  line-height: 1.35;
}

.related-date {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Category & Search Pages
   ========================================================================== */
.category-header-banner {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-top: 4px solid var(--green-primary);
  border-radius: var(--radius);
  padding: 2rem;
  margin-bottom: 2rem;
}

.cat-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.cat-pill {
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  text-transform: uppercase;
}

.cat-title-wrap h1 {
  margin: 0;
  font-size: 2rem;
  font-weight: 800;
  color: var(--green-darkest);
}

.cat-subtitle {
  margin: 0;
  color: var(--text-secondary);
}

.search-header-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 2.5rem;
  text-align: center;
  margin-bottom: 2.5rem;
}

.search-header-box h1 {
  margin: 0 0 1.5rem;
  font-size: 2.2rem;
  color: var(--green-darkest);
}

.search-page-form {
  display: flex;
  max-width: 600px;
  margin: 0 auto;
  gap: 0.5rem;
}

.search-page-input {
  flex: 1;
  padding: 0.85rem 1.25rem;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  font-size: 1rem;
  outline: none;
}

.search-page-input:focus {
  border-color: var(--green-primary);
}

.search-page-submit {
  background: var(--green-primary);
  color: #ffffff;
  border: none;
  font-weight: 700;
  padding: 0 1.75rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
}

.search-results-count {
  margin-top: 1.5rem;
  font-size: 1rem;
  color: var(--text-secondary);
}

/* Static pages (About, Contacts) */
.static-page-wrapper {
  max-width: 860px;
  margin: 0 auto 3rem;
}

.static-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 3rem;
  box-shadow: var(--shadow-sm);
}

.static-badge {
  display: inline-block;
  background: #ecfdf5;
  color: #047857;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  margin-bottom: 1rem;
}

.static-card h1 {
  margin: 0 0 1.5rem;
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--green-darkest);
}

.static-card .lead {
  font-size: 1.2rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 2rem;
}

.contacts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.contact-info-card {
  background: #f0fdf4;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.static-contact-box {
  margin-top: 2rem;
  padding: 1.5rem;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: var(--radius);
  color: #065f46;
}

/* ==========================================================================
   Footer (Forest Green)
   ========================================================================== */
.site-footer {
  background: #022c22;
  color: #94b8a7;
  padding: 3.5rem 0 1.5rem;
  border-top: 3px solid var(--green-primary);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.footer-logo .brand-text {
  color: #ffffff;
  font-size: 1.8rem;
}

.footer-desc {
  font-size: 0.875rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
  color: #a7f3d0;
}

.footer-badges {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.8125rem;
}

.editorial-badge {
  background: rgba(6, 78, 59, 0.6);
  padding: 0.4rem 0.85rem;
  border-radius: 6px;
  display: inline-block;
  width: fit-content;
  color: #d1fae5;
  border: 1px solid rgba(52, 211, 153, 0.25);
  font-weight: 500;
}

.footer-title {
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  font-size: 0.875rem;
}

.footer-links a:hover {
  color: var(--green-mint);
}

.footer-text {
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
}

.footer-contact-item {
  font-size: 0.875rem;
  color: #ffffff;
  margin-bottom: 1.25rem;
}

.footer-contact-item a {
  color: var(--green-mint);
}

.social-pills {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.social-pill {
  background: #064e3b;
  color: #d1fae5;
  font-size: 0.75rem;
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  font-weight: 600;
  border: 1px solid #047857;
}

.social-pill:hover {
  background: var(--green-emerald);
  color: #022c22;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #064e3b;
  padding-top: 1.5rem;
  font-size: 0.8125rem;
  color: #6ee7b7;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-meta a {
  color: #a7f3d0;
}

.footer-meta a:hover {
  color: #ffffff;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-sidebar {
    border-left: none;
    border-top: 1px solid var(--border-color);
  }
  .content-columns {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
  .editorial-callout {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  .nav-menu {
    display: none;
    width: 100%;
    flex-direction: column;
    border-top: 1px solid #064e3b;
  }
  .nav-menu.open {
    display: flex;
  }
  .nav-inner {
    flex-wrap: wrap;
    padding: 0.5rem 0;
  }
  .category-cards-grid {
    grid-template-columns: 1fr;
  }
  .contacts-grid {
    grid-template-columns: 1fr;
  }
  .article-container {
    padding: 1.5rem;
  }
  .article-title {
    font-size: 1.8rem;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Google AdSense / Ads Units (Modern, Clean, Nordic Tech Green Accent)
   ========================================================================== */
.ad-slot-wrapper {
  margin: 1.75rem 0;
  text-align: center;
  position: relative;
  clear: both;
}

.ad-slot-label {
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #94a3b8;
  margin-bottom: 0.35rem;
  font-weight: 600;
}

.ad-slot-content {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 90px;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.2s ease;
}

.ad-slot-header {
  margin: 1rem 0 1.5rem;
}

.ad-slot-header .ad-slot-content {
  min-height: 90px;
  max-width: 970px;
  margin: 0 auto;
}

.ad-slot-sidebar {
  margin: 1.5rem 0;
}

.ad-slot-sidebar .ad-slot-content {
  min-height: 250px;
}

.ad-slot-in_article {
  margin: 2rem 0;
  padding: 0.5rem 0;
}

.ad-slot-in_article .ad-slot-content {
  min-height: 120px;
}

.ad-mockup-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  color: #64748b;
  text-align: center;
  width: 100%;
}

.ad-mockup-badge {
  display: inline-block;
  background: rgba(16, 185, 129, 0.12);
  color: #047857;
  border: 1px solid rgba(16, 185, 129, 0.3);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  margin-bottom: 0.4rem;
}

.ad-mockup-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: #334155;
}

.ad-mockup-sub {
  font-size: 0.75rem;
  color: #94a3b8;
  margin-top: 0.2rem;
}

