/* StoryReels.live — Magyar Praktikus Tanácsok — Main Stylesheet */
:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --secondary: #f59e0b;
  --accent: #10b981;
  --text: #1f2937;
  --text-muted: #6b7280;
  --bg: #ffffff;
  --bg-light: #f9fafb;
  --bg-dark: #111827;
  --border: #e5e7eb;
  --radius: 8px;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07), 0 2px 4px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.05);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family:
    "Segoe UI",
    system-ui,
    -apple-system,
    sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: var(--primary);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* ── Layout ── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}
.container-narrow {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ── Header ── */
header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  max-width: 1200px;
  margin: 0 auto;
}
.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
}
.logo span {
  color: var(--secondary);
}
nav ul {
  list-style: none;
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  transition: color 0.2s;
}
nav a:hover,
nav a.active {
  color: var(--primary);
  text-decoration: none;
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.5rem;
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }
  nav {
    display: none;
  }
  nav.open {
    display: block;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 16px;
  }
  nav.open ul {
    flex-direction: column;
    gap: 12px;
  }
}

/* ── Hero ── */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 60%, #2563eb 100%);
  color: #fff;
  padding: 80px 16px;
}
.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.25;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
}
.hero h1 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
}
.hero p {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 28px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}
.btn-primary {
  background: var(--secondary);
  color: #fff;
}
.btn-primary:hover {
  background: #d97706;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
  text-decoration: none;
}
.btn-secondary {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.4);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.3);
  text-decoration: none;
}
.btn-cta {
  background: var(--primary);
  color: #fff;
}
.btn-cta:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  text-decoration: none;
}

/* ── Category Cards ── */
.categories {
  padding: 60px 16px;
  background: var(--bg-light);
}
.categories h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 8px;
}
.categories .subtitle {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 40px;
}
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}
.cat-card {
  background: var(--bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition:
    transform 0.2s,
    box-shadow 0.2s;
  text-decoration: none;
  color: var(--text);
}
.cat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  text-decoration: none;
}
.cat-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}
.cat-card-body {
  padding: 20px;
}
.cat-card-body h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--primary);
}
.cat-card-body p {
  font-size: 0.9rem;
  color: var(--text-muted);
}
.cat-badge {
  display: inline-block;
  margin-top: 12px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  background: var(--primary);
  color: #fff;
}

/* ── Article Grid ── */
.articles-section {
  padding: 60px 16px;
}
.section-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.section-subtitle {
  color: var(--text-muted);
  margin-bottom: 32px;
}
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.article-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.article-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.article-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.article-card-body {
  padding: 20px;
}
.article-card-body .tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  background: #dbeafe;
  color: var(--primary);
  margin-bottom: 10px;
}
.article-card-body h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.4;
}
.article-card-body h3 a {
  color: var(--text);
}
.article-card-body h3 a:hover {
  color: var(--primary);
  text-decoration: none;
}
.article-card-body p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.article-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ── Article Page ── */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 16px;
}
@media (max-width: 900px) {
  .article-layout {
    grid-template-columns: 1fr;
  }
}
.article-main h1 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.3;
}
.article-main .lead {
  font-size: 1.1rem;
  color: var(--text-muted);
  border-left: 4px solid var(--primary);
  padding-left: 16px;
  margin-bottom: 28px;
}
.article-main h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 32px 0 16px;
}
.article-main h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 24px 0 12px;
}
.article-main p {
  margin-bottom: 16px;
}
.article-main ul,
.article-main ol {
  margin-bottom: 16px;
  padding-left: 24px;
}
.article-main li {
  margin-bottom: 8px;
}
.article-main img {
  border-radius: var(--radius);
  margin: 24px 0;
  width: 100%;
}
.tip-box {
  background: #ecfdf5;
  border: 1px solid #6ee7b7;
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin: 24px 0;
}
.tip-box strong {
  color: var(--accent);
}
.warn-box {
  background: #fffbeb;
  border: 1px solid #fcd34d;
  border-left: 4px solid var(--secondary);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin: 24px 0;
}
.warn-box strong {
  color: #92400e;
}
.cta-box {
  background: linear-gradient(
    135deg,
    var(--primary) 0%,
    var(--primary-dark) 100%
  );
  color: #fff;
  border-radius: 12px;
  padding: 32px;
  text-align: center;
  margin: 32px 0;
}
.cta-box h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
}
.cta-box p {
  opacity: 0.9;
  margin-bottom: 20px;
}
.sidebar {
}
.sidebar-widget {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 24px;
}
.sidebar-widget h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--primary);
}
.related-post {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}
.related-post img {
  width: 72px;
  height: 56px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}
.related-post h5 {
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.4;
}
.related-post h5 a {
  color: var(--text);
}
.related-post h5 a:hover {
  color: var(--primary);
  text-decoration: none;
}
.ad-placeholder {
  background: var(--bg-light);
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 40px 20px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ── Category Page ── */
.page-hero {
  background: linear-gradient(135deg, var(--primary) 0%, #7c3aed 100%);
  color: #fff;
  padding: 60px 16px;
}
.page-hero h1 {
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 8px;
}
.page-hero p {
  opacity: 0.9;
  font-size: 1.05rem;
}
.breadcrumb {
  font-size: 0.85rem;
  margin-bottom: 16px;
  opacity: 0.8;
}
.breadcrumb a {
  color: rgba(255, 255, 255, 0.8);
}
.breadcrumb a:hover {
  color: #fff;
  text-decoration: none;
}
.page-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 16px;
}
@media (max-width: 900px) {
  .page-layout {
    grid-template-columns: 1fr;
  }
}
.subcategory-list {
  list-style: none;
}
.subcategory-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.subcategory-list li:last-child {
  border-bottom: none;
}
.subcategory-list a {
  font-size: 0.9rem;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}
.subcategory-list a::before {
  content: "›";
  color: var(--primary);
  font-weight: 700;
}
.subcategory-list a:hover {
  color: var(--primary);
  text-decoration: none;
}

/* ── Video Embed ── */
.video-wrap {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: var(--radius);
  margin: 24px 0;
}
.video-wrap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* ── Forms ── */
.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 6px;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-family: inherit;
  background: var(--bg);
  color: var(--text);
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
}
.form-group textarea {
  min-height: 130px;
  resize: vertical;
}
.checkbox-group {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.checkbox-group input {
  width: auto;
  margin-top: 3px;
}
.form-success {
  background: #ecfdf5;
  border: 1px solid #6ee7b7;
  border-radius: var(--radius);
  padding: 16px;
  color: #065f46;
  display: none;
}

/* ── Footer ── */
footer {
  background: var(--bg-dark);
  color: #d1d5db;
  padding: 60px 16px 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto 40px;
}
.footer-brand .logo {
  color: #fff;
  margin-bottom: 12px;
}
.footer-brand p {
  font-size: 0.875rem;
  color: #9ca3af;
  line-height: 1.7;
}
.footer-col h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
}
.footer-col ul {
  list-style: none;
}
.footer-col li {
  margin-bottom: 10px;
}
.footer-col a {
  color: #9ca3af;
  font-size: 0.875rem;
  transition: color 0.2s;
}
.footer-col a:hover {
  color: #fff;
  text-decoration: none;
}
.footer-bottom {
  border-top: 1px solid #374151;
  padding-top: 24px;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.8rem;
  color: #6b7280;
}
.social-links {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}
.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: #374151;
  border-radius: 50%;
  color: #9ca3af;
  font-size: 0.9rem;
  transition: all 0.2s;
}
.social-links a:hover {
  background: var(--primary);
  color: #fff;
  text-decoration: none;
}

/* ── Cookie Banner ── */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--bg-dark);
  color: #d1d5db;
  padding: 20px;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
}
.cookie-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
}
.cookie-text {
  flex: 1;
  min-width: 200px;
  font-size: 0.875rem;
}
.cookie-text a {
  color: #60a5fa;
}
.cookie-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.btn-accept {
  background: var(--accent);
  color: #fff;
  padding: 10px 20px;
  border-radius: var(--radius);
  border: none;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.9rem;
}
.btn-reject {
  background: transparent;
  color: #9ca3af;
  padding: 10px 20px;
  border-radius: var(--radius);
  border: 2px solid #4b5563;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.9rem;
}
.btn-accept:hover {
  background: #059669;
}
.btn-reject:hover {
  border-color: #9ca3af;
  color: #d1d5db;
}

/* ── Policy Pages ── */
.policy-content {
  max-width: 860px;
  margin: 0 auto;
  padding: 48px 16px;
}
.policy-content h1 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 8px;
}
.policy-content .last-updated {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 36px;
}
.policy-content h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 32px 0 12px;
  border-bottom: 2px solid var(--border);
  padding-bottom: 8px;
}
.policy-content p,
.policy-content li {
  margin-bottom: 12px;
  font-size: 0.95rem;
  line-height: 1.7;
}
.policy-content ul,
.policy-content ol {
  padding-left: 24px;
  margin-bottom: 16px;
}
.policy-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 0.9rem;
}
.policy-content table th,
.policy-content table td {
  border: 1px solid var(--border);
  padding: 10px 14px;
  text-align: left;
}
.policy-content table th {
  background: var(--bg-light);
  font-weight: 600;
}

/* ── Misc ── */
.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 32px 0;
}
.text-center {
  text-align: center;
}
.mt-8 {
  margin-top: 8px;
}
.mt-16 {
  margin-top: 16px;
}
.mt-32 {
  margin-top: 32px;
}
.mb-8 {
  margin-bottom: 8px;
}
.mb-16 {
  margin-bottom: 16px;
}
.mb-32 {
  margin-bottom: 32px;
}
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}
.tag-item {
  padding: 4px 12px;
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.steps {
  counter-reset: step;
}
.step {
  counter-increment: step;
  position: relative;
  padding-left: 48px;
  margin-bottom: 24px;
}
.step::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 32px;
  height: 32px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
}
.step h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}
