/* ============================================
   CECH TECH REVIEWS - v1.0
   The Verge editorial layout + cyberpunk brand
   ============================================ */

:root {
  --bg: #08171c;
  --bg-elevated: #0d1e24;
  --bg-card: #12242c;
  --bg-card-hover: #162a34;
  --bg-nav: rgba(8, 23, 28, 0.95);

  --text: #e2e8f0;
  --text-secondary: #94a3b8;
  --text-muted: #5a6f84;
  --white: #ffffff;

  --teal: #2dd4bf;
  --orange: #f97316;
  --purple: #a855f7;
  --gold: #fbbf24;
  --red: #ef4444;

  --border: rgba(45, 212, 191, 0.06);
  --border-hover: rgba(45, 212, 191, 0.15);
  --transition: 0.2s ease;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; transition: color var(--transition); }
img { max-width: 100%; display: block; }

/* --- Circuit Board Background --- */
.circuit-bg {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 0;
  pointer-events: none;
  background: url('/img/circuit-v2.svg') repeat;
  background-size: 400px 400px;
}
.content { position: relative; z-index: 1; }

/* --- Brand Banner --- */
.brand-banner {
  width: 100%;
  background-color: var(--bg);
  padding: 40px 0;
  text-align: center;
}
.brand-banner-img {
  display: block;
  width: 90%;
  max-width: 1000px;
  margin: 0 auto;
  mix-blend-mode: lighten;
}

/* --- Nav --- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-nav);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo { height: 44px; width: auto; filter: drop-shadow(0 0 8px rgba(45, 212, 191, 0.15)); }
.nav-links { display: flex; gap: 8px; align-items: center; }
.nav-links a {
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 6px;
  transition: all var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.nav-links a:hover { color: var(--white); background: rgba(255,255,255,0.05); }
.nav-links a.active { color: var(--teal); }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.5rem;
  cursor: pointer;
}
.nav-mobile {
  display: none;
  position: fixed;
  top: 60px; left: 0; right: 0;
  background: var(--bg-nav);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 8px 24px 16px;
  z-index: 99;
}
.nav-mobile.open { display: block; }
.nav-mobile a {
  display: block;
  padding: 12px 0;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.95rem;
  border-bottom: 1px solid var(--border);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.nav-mobile a:last-child { border-bottom: none; }

/* --- Layout Container --- */
.page-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Hero: Verge-style featured article --- */
.hero-feature {
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 20px;
}
.hero-main {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-card);
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.hero-main-img {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background:
    radial-gradient(ellipse at 80% 20%, rgba(45, 212, 191, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 20% 80%, rgba(249, 115, 22, 0.08) 0%, transparent 50%),
    linear-gradient(135deg, var(--bg-card) 0%, #1a2636 50%, #1e2a38 100%);
}
.hero-main-img::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 70%;
  background: linear-gradient(transparent, var(--bg-card));
}
.hero-main-content {
  position: relative;
  padding: 32px;
  z-index: 1;
}
.hero-main .tag { color: var(--teal); }
.hero-main h2 {
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1.2;
  margin: 8px 0 12px;
  color: var(--white);
}
.hero-main p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: 500px;
}
.hero-main .meta { margin-top: 12px; }

.hero-side {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.hero-side-card {
  flex: 1;
  background: var(--bg-card);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--transition);
  border: 1px solid var(--border);
}
.hero-side-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}
.hero-side-img {
  height: 140px;
  background:
    radial-gradient(ellipse at 70% 30%, rgba(45, 212, 191, 0.08) 0%, transparent 60%),
    linear-gradient(135deg, var(--bg-elevated), var(--bg-card));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
}
.hero-side-body { padding: 16px 20px; flex: 1; }
.hero-side-body h3 {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 6px 0 8px;
  color: var(--white);
}

/* --- Tags & Meta --- */
.tag {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--teal);
}
.tag-orange { color: var(--orange); }
.tag-purple { color: var(--purple); }
.meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}
.stars { color: var(--gold); }
.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.badge-soon { background: rgba(249,115,22,0.12); color: var(--orange); }

/* --- Section Headers (Verge-style) --- */
.section-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px 0 20px;
  border-bottom: 2px solid var(--teal);
  margin-bottom: 24px;
}
.section-bar h2 {
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--white);
}
.section-bar .accent {
  width: 4px;
  height: 20px;
  background: var(--teal);
}
.section-bar a {
  margin-left: auto;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.section-bar a:hover { color: var(--white); }

/* --- Article Grid (mixed sizes like The Verge) --- */
.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
}
.article-card {
  background: var(--bg-card);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all var(--transition);
  position: relative;
}
.article-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--teal), var(--orange));
  transform: scaleX(0);
  transition: transform 0.3s ease;
}
.article-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3), 0 0 20px rgba(45, 212, 191, 0.05);
}
.article-card:hover::after { transform: scaleX(1); }
.article-card-img {
  height: 180px;
  background: linear-gradient(135deg, var(--bg-elevated), var(--bg-card));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  position: relative;
}
.article-card-body { padding: 16px 20px; }
.article-card-body h3 {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 6px 0 8px;
  color: var(--white);
}
.article-card-body p {
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.5;
}

/* Wide card (spans 2 columns) */
.article-card.wide {
  grid-column: span 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.article-card.wide .article-card-img { height: 100%; min-height: 220px; }

/* --- Categories Strip --- */
.categories-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding: 24px 0 40px;
  border-bottom: 1px solid var(--border);
}
.cat-chip {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--teal);
  border-radius: 8px;
  padding: 16px 20px;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  gap: 12px;
}
.cat-chip:hover {
  border-color: var(--teal);
  border-left-color: var(--orange);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(45, 212, 191, 0.08);
}
.cat-chip:nth-child(even) { border-left-color: var(--orange); }
.cat-chip:nth-child(even):hover { border-left-color: var(--teal); }
.cat-chip-icon { font-size: 1.5rem; }
.cat-chip-text { font-size: 0.85rem; font-weight: 700; color: var(--white); }

/* --- Guide List (compact) --- */
.guide-list {
  padding: 0 0 40px;
}
.guide-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 0 16px 12px;
  border-bottom: 1px solid var(--border);
  border-left: 3px solid transparent;
  transition: all var(--transition);
}
.guide-row:hover {
  padding-left: 16px;
  border-left-color: var(--teal);
  background: rgba(45, 212, 191, 0.02);
}
.guide-row:last-child { border-bottom: none; }
.guide-icon { font-size: 1.3rem; flex-shrink: 0; width: 36px; text-align: center; }
.guide-info { flex: 1; }
.guide-title { font-size: 0.95rem; font-weight: 700; color: var(--white); }
.guide-desc { font-size: 0.8rem; color: var(--text-muted); margin-top: 2px; }
.guide-badge { flex-shrink: 0; }

/* --- Newsletter --- */
.newsletter-bar {
  background:
    radial-gradient(ellipse at 0% 50%, rgba(45, 212, 191, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 100% 50%, rgba(249, 115, 22, 0.04) 0%, transparent 50%),
    var(--bg-elevated);
  border: 1px solid var(--border);
  border-top: 2px solid var(--teal);
  border-radius: 8px;
  padding: 32px;
  display: flex;
  align-items: center;
  gap: 32px;
  margin: 40px 0;
}
.newsletter-bar-text { flex: 1; }
.newsletter-bar-text h2 {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 4px;
}
.newsletter-bar-text p { font-size: 0.85rem; color: var(--text-secondary); }
.newsletter-form {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.newsletter-form input {
  padding: 10px 16px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: 0.9rem;
  font-family: inherit;
  width: 260px;
  outline: none;
  transition: border var(--transition);
}
.newsletter-form input:focus { border-color: var(--teal); }
.newsletter-form input::placeholder { color: var(--text-muted); }
.newsletter-form button {
  padding: 10px 20px;
  border-radius: 6px;
  background: var(--teal);
  color: var(--bg);
  font-weight: 700;
  font-size: 0.85rem;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: all var(--transition);
  white-space: nowrap;
}
.newsletter-form button:hover { background: #26b5a1; }

/* --- Affiliate Disclosure --- */
.disclosure {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  padding: 16px;
  border-top: 1px solid var(--border);
  line-height: 1.5;
}

/* --- Footer --- */
.footer {
  border-top: 1px solid var(--border);
  padding: 40px 24px 32px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-left { display: flex; align-items: center; gap: 12px; }
.footer-logo { height: 30px; }
.footer-tagline { font-size: 0.8rem; color: var(--text-muted); }
.footer-links { display: flex; gap: 20px; }
.footer-links a { color: var(--text-secondary); font-size: 0.8rem; font-weight: 500; }
.footer-links a:hover { color: var(--teal); }
.footer-copy { font-size: 0.7rem; color: var(--text-muted); margin-top: 20px; text-align: center; }

/* --- Page Header (sub-pages) --- */
.page-header {
  padding: 32px 0;
  border-bottom: 2px solid var(--teal);
  margin-bottom: 24px;
}
.page-header h1 {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.page-header p { color: var(--text-secondary); font-size: 0.95rem; margin-top: 4px; }

/* --- About --- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 40px;
  align-items: start;
  padding: 24px 0 40px;
}
.about-img { border-radius: 8px; border: 1px solid var(--border); }
.about-text p { color: var(--text-secondary); line-height: 1.8; margin-bottom: 16px; }
.about-text strong { color: var(--white); }
.stat-row { display: flex; gap: 32px; margin-top: 24px; }
.stat-num { font-size: 1.5rem; font-weight: 800; color: var(--teal); }
.stat-label { font-size: 0.75rem; color: var(--text-muted); }

/* --- Responsive --- */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-main { min-height: 300px; }
  .article-grid { grid-template-columns: 1fr; }
  .article-card.wide { grid-column: span 1; display: block; }
  .article-card.wide .article-card-img { height: 180px; }
  .categories-strip { grid-template-columns: repeat(2, 1fr); }
  .newsletter-bar { flex-direction: column; text-align: center; }
  .newsletter-form { width: 100%; }
  .newsletter-form input { flex: 1; width: auto; }
  .footer-inner { flex-direction: column; gap: 16px; text-align: center; }
  .about-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .categories-strip { grid-template-columns: 1fr 1fr; gap: 8px; }
  .hero-main h2 { font-size: 1.4rem; }
}
