/* LEDEdit.Pro — LED & Tech Theme Styles */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #3b82f6;
  --accent: #06b6d4;
  --accent-dark: #0891b2;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --purple: #8b5cf6;
  --pink: #ec4899;
  --orange: #f97316;
  --dark-bg: #0f172a;
  --text: #1e293b;
  --text-light: #64748b;
  --bg: #f8fafc;
  --card-bg: #ffffff;
  --border: #e2e8f0;
  --section-alt: #f1f5f9;

  --font-stack: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  --radius: 10px;
  --radius-lg: 16px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-stack);
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  margin: 0;
}

.site-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ===== Logo ===== */
.logo { display: flex; align-items: center; text-decoration: none; }
.logo-img { display: block; height: 34px; width: auto; }

/* ===== Header / Nav ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0.85rem 0;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}

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

/* ===== Hamburger ===== */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 200;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--text);
  border-radius: 3px;
  transition: all 0.3s ease;
}

.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }

/* ===== Main Nav ===== */
.main-nav {
  display: flex;
  gap: 0.25rem;
  align-items: center;
}

.nav-link {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.5rem 0.9rem;
  border-radius: 8px;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.nav-link i {
  font-size: 0.85rem;
  color: var(--accent);
  transition: color 0.2s;
}

.nav-link:hover {
  color: var(--primary);
  background: rgba(37, 99, 235, 0.07);
}

.nav-link:hover i { color: var(--primary); }

.nav-link.active {
  color: #fff;
  background: var(--primary);
}

.nav-link.active i { color: rgba(255,255,255,0.85); }

/* ===== Language Switcher ===== */
.lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  margin-left: 0.6rem;
  padding: 0.25rem;
  background: #f1f5f9;
  border-radius: 8px;
}

.lang-globe {
  font-size: 0.85rem;
  color: var(--text-light);
  margin: 0 0.2rem 0 0.35rem;
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.6rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.lang-current {
  color: #fff;
  background: var(--primary);
  cursor: default;
}

.lang-other { color: var(--text-light); }

.lang-other:hover {
  color: var(--primary);
  background: rgba(37, 99, 235, 0.08);
}

/* ===== Hero Section ===== */
.home-hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #0f172a 100%);
  padding: 5rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.home-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(ellipse at center, rgba(96,165,250,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.home-hero h1 {
  font-size: 2.8rem;
  margin-bottom: 1.25rem;
  color: #fff;
  line-height: 1.2;
  position: relative;
}

@keyframes glow-pulse {
  0%, 100% { text-shadow: 0 0 20px rgba(96, 165, 250, 0.3); }
  50% { text-shadow: 0 0 40px rgba(96, 165, 250, 0.6), 0 0 80px rgba(96, 165, 250, 0.2); }
}

.home-hero h1 span.glow {
  color: #60a5fa;
  animation: glow-pulse 3s ease-in-out infinite;
}

.home-hero p {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.7);
  max-width: 620px;
  margin: 0 auto 2rem;
  line-height: 1.8;
}

.home-hero-badges {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
  position: relative;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.9rem;
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: 999px;
  text-decoration: none;
  transition: all 0.2s;
}

.hero-badge:hover {
  transform: translateY(-1px);
  filter: brightness(1.2);
}

/* ===== Buttons / CTAs ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.6rem;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  margin: 0.2rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn:hover {
  background: var(--primary-dark);
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(37,99,235,0.35);
  transform: translateY(-1px);
}

.btn-success { background: var(--success); }
.btn-success:hover { background: #059669; box-shadow: 0 4px 16px rgba(16,185,129,0.35); }
.btn-warning { background: var(--warning); color: #1e293b; }
.btn-warning:hover { background: #d97706; box-shadow: 0 4px 16px rgba(245,158,11,0.35); }
.btn-purple { background: var(--purple); }
.btn-purple:hover { background: #7c3aed; box-shadow: 0 4px 16px rgba(139,92,246,0.35); }

.btn-lg { padding: 0.85rem 2.3rem; font-size: 1.1rem; }

.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1.8rem;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(37,99,235,0.25);
}

.btn-download:hover {
  background: var(--primary-dark);
  box-shadow: 0 4px 20px rgba(37,99,235,0.4);
  transform: translateY(-2px);
  text-decoration: none;
  color: #fff;
}

.btn i { font-size: 0.9rem; }

/* Outline buttons */
.btn-outline {
  background: transparent;
  border: 1.5px solid var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: #fff;
}

/* Override .page a link color for buttons (fixes blue-on-blue) */
.page-content .btn,
.page-content .btn-download,
.page-content .btn-success,
.page-content .btn-warning,
.page-content .btn-purple,
.page-content .btn-outline {
  text-decoration: none;
}
.page-content .btn,
.page-content .btn-download,
.page-content .btn-success,
.page-content .btn-purple {
  color: #fff;
}
.page-content .btn-warning { color: #1e293b; }
.page-content .btn-outline { color: var(--primary); }
.page-content .btn-outline:hover { color: #fff; }

/* ===== Section Alternating Backgrounds ===== */
.section-white { background: var(--card-bg); }
.section-alt { background: var(--section-alt); }

/* ===== Content / Page ===== */
main { min-height: 60vh; padding: 3rem 0; }

.page {
  background: var(--card-bg);
  padding: 3rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.page h1 {
  font-size: 2.25rem;
  margin-bottom: 1.25rem;
  color: var(--dark-bg);
  line-height: 1.2;
}

.page h2 {
  font-size: 1.65rem;
  margin: 2.5rem 0 1rem;
  color: var(--dark-bg);
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border);
}

.page h3 {
  font-size: 1.35rem;
  margin: 2rem 0 0.85rem;
  color: var(--dark-bg);
}

.page h4 {
  font-size: 1.1rem;
  margin: 1.5rem 0 0.75rem;
  color: var(--text);
}

.page p {
  margin-bottom: 1.25rem;
  line-height: 1.8;
  color: var(--text);
}

.page ul, .page ol { margin: 1rem 0 1.25rem 1.75rem; }
.page li { margin-bottom: 0.5rem; line-height: 1.75; }

.page-content { max-width: 100%; }

/* Images */
.page img {
  max-width: 100%;
  max-height: 400px;
  width: auto;
  height: auto;
  display: block;
  margin: 1.75rem auto;
  border-radius: 12px;
  object-fit: contain;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.page figure { margin: 2rem 0; text-align: center; }
.page figcaption {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-top: 0.6rem;
  font-style: italic;
}

/* Links in content */
.page a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}

.page a:hover { color: var(--accent-dark); }

/* ===== Download Cards ===== */
.downloads-grid {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-width: 100%;
}

.download-card {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
  min-width: 0;
}

.download-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
  border-color: var(--primary-light);
}

.download-card-icon {
  flex-shrink: 0;
  width: 68px;
  height: 68px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.8rem;
}

/* Alternate icon colors — 3-color rotation */
.download-card:nth-child(3n+1) .download-card-icon { background: var(--primary); }
.download-card:nth-child(3n+2) .download-card-icon { background: var(--purple); }
.download-card:nth-child(3n+3) .download-card-icon { background: var(--success); }

/* Alternate left border accent — 3-color rotation */
.download-card:nth-child(3n+1) { border-left: 3px solid var(--primary); }
.download-card:nth-child(3n+2) { border-left: 3px solid var(--purple); }
.download-card:nth-child(3n+3) { border-left: 3px solid var(--success); }

.download-card-body { flex: 1; min-width: 0; }
.download-card-body h3 {
  font-size: 1.25rem;
  margin-bottom: 0.35rem;
  color: var(--dark-bg);
}

.download-card-body p {
  font-size: 0.92rem;
  color: var(--text-light);
  margin: 0 0 0.85rem;
  line-height: 1.7;
}

.download-card-img {
  width: 200px;
  height: 120px;
  max-height: 120px;
  object-fit: cover;
  border-radius: 10px;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  display: inline-block;
  margin: 0;
}

/* Beat .page img specificity */
.page-content .download-card-img {
  width: 200px;
  height: 120px;
  max-height: 120px;
  max-width: 200px;
  object-fit: cover;
  border-radius: 10px;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  display: inline-block;
  margin: 0;
}

@media (max-width: 768px) {
  .download-card-img,
  .page-content .download-card-img {
    width: 100%;
    height: 160px;
    max-height: 160px;
    max-width: 100%;
  }
}

.download-count {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--text-light);
  margin-left: 0.75rem;
}

.download-count i { font-size: 0.75rem; }
.download-card-body .btn-download { margin: 0; }

/* ===== Tutorial Cards ===== */
.tutorials-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.tutorial-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 2rem;
  transition: all 0.25s ease;
  position: relative;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  overflow: hidden;
  min-width: 0;
}

.tutorial-thumb {
  width: 140px;
  height: 85px;
  max-height: 85px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
  display: inline-block;
  margin: 0;
}

/* Beat .page img specificity */
.page-content .tutorial-thumb {
  width: 140px;
  height: 85px;
  max-height: 85px;
  max-width: 140px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
  display: inline-block;
  margin: 0;
}

@media (max-width: 768px) {
  .tutorial-card {
    flex-direction: column;
    align-items: flex-start;
  }
  .tutorial-thumb,
  .page-content .tutorial-thumb {
    width: 100%;
    height: 160px;
    max-height: 160px;
    max-width: 100%;
  }
}

/* Alternate left border accent — 3-color rotation */
.tutorial-card:nth-child(3n+1) { border-left: 3px solid var(--primary); }
.tutorial-card:nth-child(3n+2) { border-left: 3px solid var(--purple); }
.tutorial-card:nth-child(3n+3) { border-left: 3px solid var(--success); }

.tutorial-card:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.07);
  transform: translateY(-2px);
  border-color: var(--primary-light);
}

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

.tutorial-content h3 {
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}

.tutorial-content h3 a {
  color: var(--dark-bg);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.tutorial-content h3 a i { font-size: 0.95rem; }
.tutorial-card:nth-child(3n+1) .tutorial-content h3 a i { color: var(--primary); }
.tutorial-card:nth-child(3n+2) .tutorial-content h3 a i { color: var(--purple); }
.tutorial-card:nth-child(3n+3) .tutorial-content h3 a i { color: var(--success); }

.tutorial-content h3 a:hover { color: var(--primary); }
.tutorial-content p {
  font-size: 0.92rem;
  color: var(--text-light);
  margin: 0 0 0.4rem;
  line-height: 1.7;
}

.tutorial-meta {
  font-size: 0.8rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.tutorial-card:nth-child(3n+1) .tutorial-meta { color: var(--primary); }
.tutorial-card:nth-child(3n+2) .tutorial-meta { color: var(--purple); }
.tutorial-card:nth-child(3n+3) .tutorial-meta { color: var(--success); }

.tutorial-meta::before { content: '\f02d'; font-family: 'Font Awesome 6 Free'; font-weight: 900; font-size: 0.7rem; }

/* ===== Blog Post List ===== */
.post-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 1.5rem; }

.post-item .meta { font-size: 0.875rem; color: var(--text-light); margin-bottom: 0.6rem; }
.post-item p { font-size: 0.975rem; color: var(--text); margin: 0; }

/* ===== Feature Grid (Home Page) ===== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 2.5rem 0;
}

.feature-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: all 0.25s ease;
}

.feature-card:hover {
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.12);
  transform: translateY(-3px);
  border-color: var(--primary-light);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

/* Rainbow feature icon colors */
.feature-card:nth-child(1) .feature-icon { background: var(--primary); }
.feature-card:nth-child(2) .feature-icon { background: var(--success); }
.feature-card:nth-child(3) .feature-icon { background: var(--purple); }
.feature-card:nth-child(4) .feature-icon { background: var(--orange); }
.feature-card:nth-child(5) .feature-icon { background: var(--accent); }
.feature-card:nth-child(6) .feature-icon { background: var(--pink); }

.feature-card h4 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

.feature-card h4 a {
  color: var(--dark-bg);
  text-decoration: none;
  transition: color 0.2s;
}

.feature-card h4 a:hover { color: var(--primary); }

.feature-card p {
  font-size: 0.88rem;
  color: var(--text-light);
  line-height: 1.65;
  margin: 0;
}

/* ===== Section Headers ===== */
.section-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--dark-bg);
  text-align: center;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-light);
  text-align: center;
  max-width: 600px;
  margin: 0 auto 2rem;
}

/* ===== Video Wrapper ===== */
.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  margin: 2rem 0;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* ===== Footer ===== */
.site-footer {
  background: var(--dark-bg);
  color: rgba(255,255,255,0.55);
  padding: 4rem 0 0;
  margin-top: 4rem;
  font-size: 0.92rem;
}

.footer-cols {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer-col h4 {
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.footer-col h4 i { margin-right: 0.5rem; }

.footer-col:nth-child(1) h4 i { color: var(--accent); }
.footer-col:nth-child(2) h4 i { color: var(--success); }
.footer-col:nth-child(3) h4 i { color: var(--purple); }
.footer-col:nth-child(4) h4 i { color: var(--pink); }

.footer-col p {
  color: rgba(255,255,255,0.5);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.footer-col ul { list-style: none; padding: 0; }
.footer-col ul li { margin-bottom: 0.6rem; }

.footer-col ul li i {
  font-size: 0.6rem;
  margin-right: 0.5rem;
}

.footer-col:nth-child(2) ul li i { color: var(--success); }
.footer-col:nth-child(3) ul li i { color: var(--purple); }
.footer-col:nth-child(4) ul li i { color: var(--pink); }

.footer-col a {
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  transition: all 0.2s;
}

.footer-col a:hover {
  color: #fff;
  padding-left: 3px;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.5);
  font-size: 1.1rem;
  transition: all 0.25s;
  text-decoration: none;
}

.footer-social a:hover {
  background: var(--primary);
  color: #fff;
  padding-left: 0;
  transform: translateY(-2px);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 1.75rem 0;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.35);
}

.footer-bottom a { color: rgba(255,255,255,0.45); text-decoration: none; }
.footer-bottom a:hover { color: var(--accent); }

/* ===== Cards & Tables ===== */
.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.table {
  --bs-table-bg: var(--card-bg);
  --bs-table-color: var(--text);
  border-radius: 12px;
  overflow: hidden;
}

.table thead th {
  background: var(--section-alt);
  color: var(--dark-bg);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.72rem;
  padding: 0.85rem 1rem;
}

.table tbody tr { border-bottom: 1px solid var(--border); }
.table tbody tr:last-child td { border-bottom: none; }
.table tbody td { padding: 0.75rem 1rem; }

/* ===== Code Blocks ===== */
pre {
  background: var(--dark-bg);
  color: #e2e8f0;
  padding: 1.5rem;
  border-radius: 12px;
  overflow-x: auto;
  margin: 1.75rem 0;
}

code:not(pre code) {
  background: rgba(37,99,235,0.08);
  color: var(--primary);
  padding: 0.15rem 0.4rem;
  border-radius: 5px;
  font-size: 0.875em;
}

/* ===== Blockquotes ===== */
blockquote {
  border-left: 4px solid var(--accent);
  background: rgba(6,182,212,0.04);
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
  border-radius: 0 8px 8px 0;
}

.page blockquote {
  border-left: 4px solid var(--accent);
  background: rgba(6,182,212,0.04);
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
  border-radius: 0 8px 8px 0;
}

/* ===== Page Hero ===== */
.page-hero {
  background: var(--dark-bg);
  padding: 3.5rem 0;
  margin-bottom: 3rem;
  text-align: center;
}

.page-hero h1 {
  color: #fff;
  font-size: 2.25rem;
  margin-bottom: 0.75rem;
}

.page-hero h1 i { margin-right: 0.6rem; color: var(--accent); }

.page-hero .lead {
  color: rgba(255,255,255,0.6);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ===== Post List ===== */
.post-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  margin-bottom: 3rem;
}

.post-item {
  display: flex;
  gap: 2rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 0;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.post-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.08);
}

.post-image {
  flex: 0 0 280px;
  overflow: hidden;
  min-height: 200px;
}

.post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  margin: 0;
  border-radius: 0;
}

.post-body {
  flex: 1;
  padding: 1.75rem 2rem 1.75rem 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.post-body h2 { font-size: 1.35rem; margin-bottom: 0.5rem; }
.post-body h2 a { color: var(--dark-bg); text-decoration: none; transition: color 0.2s; }
.post-body h2 a:hover { color: var(--primary); }
.post-body p {
  font-size: 0.95rem;
  color: var(--text);
  margin: 0.6rem 0 0.85rem;
  line-height: 1.7;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 0.4rem;
}

.post-meta span { display: inline-flex; align-items: center; gap: 0.35rem; }
.post-meta i { font-size: 0.8rem; color: var(--accent); }

.post-body .btn { align-self: flex-start; }

/* ===== Tags ===== */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.65rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.7rem;
  font-size: 0.7rem;
  font-weight: 600;
  border-radius: 999px;
  text-decoration: none;
  transition: all 0.2s;
}

.tag:nth-child(6n+1) { color: var(--primary); background: rgba(37,99,235,0.08); }
.tag:nth-child(6n+2) { color: var(--purple); background: rgba(139,92,246,0.08); }
.tag:nth-child(6n+3) { color: var(--success); background: rgba(16,185,129,0.08); }
.tag:nth-child(6n+4) { color: var(--orange); background: rgba(249,115,22,0.08); }
.tag:nth-child(6n+5) { color: var(--pink); background: rgba(236,72,153,0.08); }
.tag:nth-child(6n+6) { color: var(--accent); background: rgba(6,182,212,0.08); }

.tag:nth-child(6n+1):hover { background: var(--primary); color: #fff; }
.tag:nth-child(6n+2):hover { background: var(--purple); color: #fff; }
.tag:nth-child(6n+3):hover { background: var(--success); color: #fff; }
.tag:nth-child(6n+4):hover { background: var(--orange); color: #fff; }
.tag:nth-child(6n+5):hover { background: var(--pink); color: #fff; }
.tag:nth-child(6n+6):hover { background: var(--accent); color: #fff; }

.tag i { font-size: 0.6rem; }

/* ===== Post Tags (single) ===== */
.post-tags {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 2rem 0 1.25rem;
  padding: 1.25rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.post-tags i { color: var(--accent); font-size: 1rem; }

.post-tags .tag {
  font-size: 0.8rem;
  padding: 0.25rem 0.85rem;
}

/* ===== Post Navigation ===== */
.post-nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin: 1.75rem 0;
}

.post-nav a {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.25rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  text-decoration: none;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 500;
  flex: 1;
  transition: all 0.2s;
}

.post-nav a:hover {
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: 0 2px 8px rgba(37,99,235,0.08);
}

.post-nav i { color: var(--accent); }
.post-nav-prev { text-align: left; }
.post-nav-next { text-align: right; justify-content: flex-end; }

/* ===== Share Buttons ===== */
.post-share {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 1.75rem 0;
  padding: 1.25rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.post-share span {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  margin-right: 0.5rem;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  text-decoration: none;
  color: #fff;
  font-size: 0.95rem;
  transition: all 0.2s;
}

.share-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.share-btn.facebook { background: #1877f2; }
.share-btn.twitter { background: #14171a; }
.share-btn.linkedin { background: #0a66c2; }
.share-btn.email { background: var(--text-light); }

/* ===== Related Posts ===== */
.related-posts {
  margin-top: 2.5rem;
}

.related-posts h3 {
  font-size: 1.25rem;
  margin-bottom: 1.25rem;
  color: var(--dark-bg);
}

.related-posts h3 i { color: var(--accent); margin-right: 0.5rem; }

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.related-card {
  display: block;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  transition: all 0.25s;
}

.related-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.related-img {
  height: 160px;
  overflow: hidden;
}

.related-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  margin: 0;
  border-radius: 0;
}

.related-body {
  padding: 1rem 1.25rem;
}

.related-body h4 {
  font-size: 0.95rem;
  color: var(--dark-bg);
  margin-bottom: 0.4rem;
  line-height: 1.4;
}

.related-body .meta-date {
  font-size: 0.8rem;
  color: var(--text-light);
}

/* ===== Empty State ===== */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-light);
}

.empty-state i { color: var(--border); margin-bottom: 1rem; }

/* ===== Post Hero Image ===== */
.post-hero-image {
  margin: -3rem -3rem 2rem;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  overflow: hidden;
  max-height: 300px;
  aspect-ratio: 16/9;
}

.post-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  margin: 0;
  border-radius: 0;
}

/* ===== Info Boxes ===== */
.info-box {
  padding: 1.25rem 1.5rem;
  border-radius: 12px;
  margin: 1.5rem 0;
  border-left: 4px solid;
}

.info-box.info { background: rgba(6,182,212,0.06); border-color: var(--accent); }
.info-box.success { background: rgba(16,185,129,0.06); border-color: var(--success); }
.info-box.warning { background: rgba(245,158,11,0.06); border-color: var(--warning); }
.info-box.danger { background: rgba(239,68,68,0.06); border-color: var(--danger); }

.info-box p { margin: 0; }

/* ===== Two Column Layout ===== */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 1.5rem 0;
}

/* ===== Fade-in Animation ===== */
.fade-in-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .site-header .container { flex-direction: row; gap: 0.875rem; }
  .hamburger { display: flex; }
  .main-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(16px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    z-index: 150;
  }
  .main-nav.open { display: flex; }
  .nav-link { font-size: 1.15rem; padding: 0.6rem 1.5rem; }
  .lang-switcher { margin-left: 0; margin-top: 1rem; }

  .home-hero { padding: 3.5rem 0; }
  .home-hero h1 { font-size: 1.8rem; }
  .home-hero p { font-size: 1rem; }

  .feature-grid { grid-template-columns: 1fr; }

  .post-item { flex-direction: column; }
  .post-image {
    flex: 0 0 auto;
    width: 100%;
    height: 200px;
  }
  .post-body { padding: 0 1.25rem 1.25rem; }

  .footer-cols {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .related-grid { grid-template-columns: 1fr; }
  .post-nav { flex-direction: column; }

  .post-hero-image {
    margin: -1.5rem -1.5rem 1.5rem;
  }

  .page { padding: 1.5rem; }
  .page img { max-height: 250px; }

  .wp-block-columns { flex-direction: column; }
  .site-footer .container { flex-direction: column; text-align: center; }
  .footer-social { justify-content: center; }

  .two-col { grid-template-columns: 1fr; }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .related-grid { grid-template-columns: 1fr 1fr; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .post-image { flex: 0 0 220px; }
}