/* ============================================
   DELUXE TV BLOG - Clean Blog Theme
   ============================================ */

:root {
  --bg: #ffffff;
  --bg-alt: #f8f9fa;
  --bg-card: #ffffff;
  --text: #212529;
  --text-secondary: #495057;
  --text-muted: #6c757d;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --border: #dee2e6;
  --border-light: #e9ecef;
  --shadow: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-lg: 0 4px 12px rgba(0,0,0,0.1);
  --radius: 6px;
  --radius-lg: 10px;
  --max-width: 1100px;
  --header-height: 60px;
}

*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
}
a { color: var(--accent); text-decoration:none; }
a:hover { text-decoration:underline; }
img { max-width:100%; display:block; }

/* HEADER */
.header {
  position: fixed;
  top:0; left:0; right:0;
  height: var(--header-height);
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
}
.logo {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: -0.5px;
}
.logo-icon {
  width: 28px; height: 28px;
  background: var(--accent);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.logo-icon svg { width: 16px; height: 16px; fill: white; }
.nav { display: flex; align-items: center; gap: 1.5rem; }
.nav-link {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 500;
  transition: color 0.2s;
}
.nav-link:hover, .nav-link.active { color: var(--accent); text-decoration:none; }
.mobile-toggle { display: none; background:none; border:none; color:var(--text); cursor:pointer; padding:6px; }

/* HERO */
.hero {
  padding: calc(var(--header-height) + 3rem) 5% 3rem;
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
}
.hero-badge {
  display: inline-block;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 0.75rem;
  color: var(--text);
}
.hero p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 1.5rem;
}
.hero-buttons { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}
.btn-primary { background: var(--accent); color: white; }
.btn-primary:hover { background: var(--accent-hover); text-decoration:none; }
.btn-secondary { background: var(--bg-alt); color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { background: var(--border-light); text-decoration:none; }

/* AD SLOTS */
.ad-slot {
  background: var(--bg-alt);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.8rem;
  margin: 2rem auto;
  max-width: var(--max-width);
  padding: 1rem;
}
.ad-slot-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); margin-bottom: 4px; text-align:center; }
.ad-leaderboard { width: 100%; height: 90px; max-width: 728px; }
.ad-medium { width: 100%; height: 250px; max-width: 300px; }
.ad-responsive { width: 100%; min-height: 250px; }
.ad-sidebar { width: 100%; height: 250px; }

/* SECTIONS */
.section {
  padding: 2rem 5%;
  max-width: var(--max-width);
  margin: 0 auto;
}
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}
.section-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
}
.section-link { font-size: 0.85rem; color: var(--accent); font-weight: 500; }
.section-link:hover { text-decoration: underline; }

/* BLOG GRID */
.blog-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2.5rem;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 5% 2rem;
}
.blog-main { min-width: 0; }
.blog-sidebar { min-width: 0; }

/* ARTICLE CARDS */
.article-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 1.5rem;
  transition: box-shadow 0.2s;
}
.article-card:hover { box-shadow: var(--shadow-lg); }
.article-image {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, #e9ecef, #dee2e6);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 1.1rem;
}
.article-content { padding: 1.25rem; }
.article-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  display: flex;
  gap: 1rem;
}
.article-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text);
  line-height: 1.3;
}
.article-title a { color: inherit; }
.article-title a:hover { color: var(--accent); text-decoration:none; }
.article-excerpt {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 0.75rem;
}
.article-tag {
  display: inline-block;
  padding: 3px 10px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* SIDEBAR */
.sidebar-widget {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}
.sidebar-widget h4 {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
}
.sidebar-list { list-style: none; }
.sidebar-list li { margin-bottom: 0.75rem; }
.sidebar-list li a {
  font-size: 0.9rem;
  color: var(--text-secondary);
  display: flex;
  justify-content: space-between;
}
.sidebar-list li a:hover { color: var(--accent); text-decoration:none; }
.sidebar-list li a span { color: var(--text-muted); font-size: 0.8rem; }

/* GUIDE TABLE */
.guide-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  font-size: 0.9rem;
}
.guide-table th, .guide-table td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border-light);
}
.guide-table th {
  background: var(--bg-alt);
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.guide-table tr:hover td { background: var(--bg-alt); }
.guide-time { color: var(--accent); font-weight: 600; }
.guide-program { font-weight: 600; font-size: 0.9rem; }
.guide-channel { color: var(--text-secondary); font-size: 0.85rem; }
.guide-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
}
.guide-status.live { background: #dcfce7; color: #16a34a; }
.guide-status.upcoming { background: #fef3c7; color: #d97706; }

/* LEGAL PAGES */
.legal-page { padding-top: calc(var(--header-height) + 2rem); min-height: 100vh; }
.legal-container { max-width: 800px; margin: 0 auto; padding: 2rem 5%; }
.legal-header { margin-bottom: 2.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--border); }
.legal-header h1 { font-size: 2rem; font-weight: 800; margin-bottom: 0.5rem; }
.legal-header p { color: var(--text-muted); font-size: 0.9rem; }
.legal-section { margin-bottom: 2rem; }
.legal-section h2 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text);
}
.legal-section p {
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
  line-height: 1.7;
}
.legal-section ul { list-style: none; padding-left: 0; }
.legal-section ul li {
  color: var(--text-secondary);
  padding: 0.4rem 0;
  padding-left: 1.25rem;
  position: relative;
  font-size: 0.95rem;
}
.legal-section ul li::before {
  content: '—';
  color: var(--accent);
  position: absolute;
  left: 0;
}
.legal-info-box {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  margin: 1rem 0;
}
.legal-info-box h3 { font-size: 0.9rem; font-weight: 700; margin-bottom: 0.75rem; color: var(--text); }
.legal-info-row {
  display: flex;
  justify-content: space-between;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.9rem;
}
.legal-info-row:last-child { border-bottom: none; }
.legal-info-label { color: var(--text-muted); }
.legal-info-value { color: var(--text); font-weight: 500; text-align: right; }

/* CONTACT */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  max-width: 800px;
  margin: 0 auto;
}
.contact-info h2 { font-size: 1.25rem; margin-bottom: 1.25rem; }
.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.contact-icon {
  width: 36px; height: 36px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-icon svg { width: 16px; height: 16px; fill: var(--accent); }
.contact-detail h4 { font-size: 0.9rem; margin-bottom: 2px; }
.contact-detail p { color: var(--text-secondary); font-size: 0.85rem; }
.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 10px 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 0.95rem;
  transition: border-color 0.2s;
  font-family: inherit;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent);
}
.form-group textarea { min-height: 100px; resize: vertical; }

/* COOKIE BANNER */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 1rem 5%;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
}
.cookie-banner.show { transform: translateY(0); }
.cookie-text { flex: 1; min-width: 250px; }
.cookie-text h4 { font-size: 0.9rem; margin-bottom: 0.25rem; font-weight: 700; }
.cookie-text p { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.5; }
.cookie-text a { color: var(--accent); text-decoration: underline; }
.cookie-buttons { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.cookie-btn {
  padding: 8px 18px;
  border-radius: var(--radius);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  white-space: nowrap;
}
.cookie-btn-accept { background: var(--accent); color: white; }
.cookie-btn-accept:hover { background: var(--accent-hover); }
.cookie-btn-decline {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
}
.cookie-btn-decline:hover { background: var(--bg-alt); }

/* FOOTER */
.footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 2.5rem 5% 1.5rem;
  margin-top: 3rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  max-width: var(--max-width);
  margin: 0 auto 2rem;
}
.footer-brand p { color: var(--text-muted); margin-top: 0.75rem; font-size: 0.85rem; line-height: 1.6; }
.footer-links h4 { font-size: 0.8rem; font-weight: 700; margin-bottom: 1rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }
.footer-links ul { list-style: none; }
.footer-links ul li { margin-bottom: 0.5rem; }
.footer-links ul li a { color: var(--text-secondary); font-size: 0.85rem; }
.footer-links ul li a:hover { color: var(--accent); text-decoration:none; }
.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-copyright { color: var(--text-muted); font-size: 0.8rem; }
.footer-legal { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.footer-legal a { color: var(--text-muted); font-size: 0.8rem; }
.footer-legal a:hover { color: var(--accent); text-decoration:none; }

/* RESPONSIVE */
@media (max-width: 900px) {
  .blog-grid { grid-template-columns: 1fr; }
  .blog-sidebar { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .nav { display: none; position: absolute; top: var(--header-height); left: 0; right: 0; background: var(--bg); flex-direction: column; padding: 1rem 5%; gap: 0.75rem; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
  .nav.show { display: flex; }
  .mobile-toggle { display: block; }
  .hero { padding-top: calc(var(--header-height) + 2rem); }
  .hero h1 { font-size: 1.75rem; }
  .hero p { font-size: 1rem; }
  .blog-sidebar { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .cookie-banner { flex-direction: column; text-align: center; padding: 1rem; }
  .cookie-buttons { justify-content: center; }
  .legal-header h1 { font-size: 1.5rem; }
  .guide-table { font-size: 0.8rem; }
  .guide-table th, .guide-table td { padding: 0.6rem; }
  .section { padding: 1.5rem 5%; }
}
