/* ===========================
   SANAYI.TECH — MAGAZINE CSS
   =========================== */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;0,900;1,400;1,700&family=Inter:wght@300;400;500;600&family=Bebas+Neue&display=swap');

:root {
  --bg: #f5f0e8;
  --bg-dark: #1a1a1a;
  --text: #1a1a1a;
  --text-muted: #555;
  --accent: #c0392b;
  --accent-dark: #922b21;
  --border: #d0c8b8;
  --white: #ffffff;
  --col-font: 'Playfair Display', Georgia, serif;
  --body-font: 'Inter', system-ui, sans-serif;
  --display-font: 'Bebas Neue', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--body-font);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ── UTILITIES ── */
.container { max-width: 1280px; margin: 0 auto; padding: 0 2rem; }
.text-accent { color: var(--accent); }
.divider { width: 60px; height: 4px; background: var(--accent); margin: 1rem 0; }
.divider--full { width: 100%; height: 2px; background: var(--border); margin: 2rem 0; }

/* ── TOP BAR ── */
.top-bar {
  background: var(--bg-dark);
  color: #aaa;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 0.5rem 0;
  text-align: center;
}

/* ── HEADER / NAV ── */
header {
  background: var(--white);
  border-bottom: 3px solid var(--accent);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 0;
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 1rem 2rem;
  gap: 1rem;
}

.nav-left, .nav-right {
  display: flex;
  gap: 2rem;
  list-style: none;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 600;
}
.nav-right { justify-content: flex-end; }

.nav-left a, .nav-right a {
  color: var(--text);
  transition: color 0.2s;
  position: relative;
  padding-bottom: 2px;
}
.nav-left a::after, .nav-right a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s;
}
.nav-left a:hover::after, .nav-right a:hover::after { width: 100%; }
.nav-left a:hover, .nav-right a:hover { color: var(--accent); }

.logo-block { text-align: center; }
.logo-block .logo-main {
  font-family: var(--col-font);
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--bg-dark);
  letter-spacing: -1px;
  line-height: 1;
}
.logo-block .logo-main span { color: var(--accent); }
.logo-block .logo-sub {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

/* ── HERO FEATURE ── */
.hero-feature {
  position: relative;
  height: 85vh;
  min-height: 600px;
  overflow: hidden;
  background: var(--bg-dark);
}
.hero-feature__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
}
.hero-feature__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,10,10,0.95) 0%, rgba(10,10,10,0.3) 60%, transparent 100%);
}
.hero-feature__content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 4rem;
  max-width: 900px;
}
.hero-feature__kicker {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.hero-feature__kicker::before {
  content: '';
  display: block;
  width: 30px;
  height: 2px;
  background: var(--accent);
}
.hero-feature__title {
  font-family: var(--col-font);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.05;
  margin-bottom: 1.2rem;
}
.hero-feature__dek {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.75);
  max-width: 600px;
  margin-bottom: 2rem;
  line-height: 1.6;
}
.hero-feature__meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  color: rgba(255,255,255,0.5);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.hero-feature__meta a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.3);
  padding: 0.6rem 1.5rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  transition: all 0.3s;
}
.hero-feature__meta a:hover { background: var(--accent); border-color: var(--accent); }

/* ── SECTION LABELS ── */
.section-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 4px;
  font-weight: 700;
  color: var(--text-muted);
  border-top: 3px solid var(--accent);
  padding-top: 0.75rem;
  margin-bottom: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.section-label a { color: var(--accent); font-size: 0.65rem; }

/* ── MAGAZINE GRID ── */
.magazine-section { padding: 4rem 0; }

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
}
.grid-masthead {
  display: grid;
  grid-template-columns: 1fr 1px 1fr 1px 1fr;
  gap: 0;
}
.grid-divider {
  background: var(--border);
  width: 1px;
}

/* ── ARTICLE CARD ── */
.article-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.article-card__img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}
.article-card__kicker {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 700;
  color: var(--accent);
}
.article-card__title {
  font-family: var(--col-font);
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--bg-dark);
  transition: color 0.2s;
}
.article-card:hover .article-card__title { color: var(--accent); }
.article-card__dek {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.article-card__byline {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-top: auto;
  border-top: 1px solid var(--border);
  padding-top: 0.75rem;
}
.article-card--padded { padding: 0 2rem; }

/* ── FEATURED ROW (big + 2 stacked) ── */
.featured-row {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 3rem;
  align-items: start;
}
.featured-big .article-card__title { font-size: 2rem; }
.featured-stack {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  border-left: 1px solid var(--border);
  padding-left: 3rem;
}
.featured-stack .article-card { flex-direction: row; gap: 1rem; }
.featured-stack .article-card__img { width: 120px; height: 90px; flex-shrink: 0; }

/* ── TOC STRIP ── */
.toc-strip {
  background: var(--bg-dark);
  padding: 3rem 0;
  overflow: hidden;
}
.toc-strip__inner {
  display: flex;
  gap: 1rem;
  align-items: stretch;
  height: 220px;
}
.toc-item {
  position: relative;
  flex: 1;
  overflow: hidden;
  clip-path: polygon(8% 0%, 100% 0%, 92% 100%, 0% 100%);
}
.toc-item img { width: 100%; height: 100%; object-fit: cover; opacity: 0.6; transition: opacity 0.3s; }
.toc-item:hover img { opacity: 0.9; }
.toc-item__label {
  position: absolute;
  bottom: 0.75rem;
  left: 1.5rem;
  color: var(--white);
  font-family: var(--col-font);
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.2;
}
.toc-item__num {
  position: absolute;
  top: 0.5rem;
  left: 1.5rem;
  font-family: var(--display-font);
  font-size: 2rem;
  color: var(--accent);
}

/* ── TESTIMONIALS ── */
.testimonials-section {
  background: var(--bg-dark);
  padding: 5rem 0;
}
.testimonials-section .section-label { color: #888; border-color: var(--accent); }
.testimonial-card {
  border-left: 3px solid var(--accent);
  padding-left: 2rem;
  color: var(--white);
}
.testimonial-card__quote {
  font-family: var(--col-font);
  font-size: 1.25rem;
  font-style: italic;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  color: #e0d8cc;
}
.testimonial-card__author { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 2px; color: var(--accent); }
.testimonial-card__company { font-size: 0.8rem; color: #888; }

/* ── FOOTER ── */
footer {
  background: #111;
  color: #aaa;
  padding: 5rem 0 2rem;
}
footer::before {
  content: '';
  display: block;
  height: 4px;
  background: var(--accent);
  margin-bottom: 5rem;
}
.footer-logo {
  font-family: var(--col-font);
  font-size: 3rem;
  font-weight: 900;
  color: var(--white);
  line-height: 1;
  margin-bottom: 1rem;
}
.footer-logo span { color: var(--accent); }
.footer-tagline { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 3px; color: #666; margin-bottom: 2rem; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 4rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid #333;
  margin-bottom: 2rem;
}
.footer-col h5 {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--accent);
  margin-bottom: 1.5rem;
  border-bottom: 1px solid #333;
  padding-bottom: 0.75rem;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.75rem; }
.footer-col a { color: #888; font-size: 0.85rem; transition: color 0.2s; }
.footer-col a:hover { color: var(--white); }
.newsletter-row { display: flex; gap: 0.5rem; margin-top: 1rem; }
.newsletter-row input {
  flex: 1; padding: 0.7rem 1rem; background: #222; border: 1px solid #444;
  color: var(--white); font-family: var(--body-font); font-size: 0.85rem; outline: none;
}
.newsletter-row input:focus { border-color: var(--accent); }
.btn-submit {
  padding: 0.7rem 1.5rem; background: var(--accent); color: var(--white); border: none;
  font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1px; cursor: pointer; transition: background 0.2s;
}
.btn-submit:hover { background: var(--accent-dark); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.75rem; color: #555;
}
.social-links { display: flex; gap: 1rem; }
.social-links a {
  width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
  border: 1px solid #333; color: #888; font-size: 0.75rem; transition: all 0.3s;
}
.social-links a:hover { background: var(--accent); color: var(--white); border-color: var(--accent); }

/* ── READING PAGE ── */
.reading-header {
  max-width: 900px;
  margin: 6rem auto 3rem;
  padding: 0 2rem;
  text-align: center;
}
.reading-header .kicker {
  font-size: 0.7rem; text-transform: uppercase; letter-spacing: 3px;
  color: var(--accent); font-weight: 700; margin-bottom: 1rem;
  display: flex; justify-content: center; align-items: center; gap: 0.75rem;
}
.reading-header .kicker::before, .reading-header .kicker::after {
  content: ''; display: block; width: 40px; height: 2px; background: var(--accent);
}
.reading-header h1 {
  font-family: var(--col-font);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}
.reading-header .dek {
  font-size: 1.15rem; color: var(--text-muted); line-height: 1.7; max-width: 700px; margin: 0 auto 2rem;
}
.reading-header .meta {
  font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1.5px;
  color: var(--text-muted); display: flex; justify-content: center; gap: 2rem;
}
.reading-hero-img {
  width: 100%; max-width: 1200px; height: 60vh; object-fit: cover;
  margin: 0 auto 4rem; display: block;
}

.reading-body {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 2rem 6rem;
  font-size: 1.05rem;
  line-height: 1.85;
  color: #222;
}
.reading-body p { margin-bottom: 1.5rem; }
.drop-cap::first-letter {
  font-family: var(--col-font);
  font-size: 4.5rem;
  font-weight: 900;
  float: left;
  line-height: 0.8;
  margin: 0.1em 0.12em 0 0;
  color: var(--accent);
}
.qa-block { margin-bottom: 2.5rem; }
.qa-block h3 {
  font-family: var(--col-font);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--bg-dark);
  margin-bottom: 0.75rem;
  padding-left: 1rem;
  border-left: 3px solid var(--accent);
}
.pull-quote {
  font-family: var(--col-font);
  font-size: 1.7rem;
  font-style: italic;
  line-height: 1.4;
  color: var(--bg-dark);
  border-top: 3px solid var(--accent);
  border-bottom: 3px solid var(--accent);
  padding: 2rem 0;
  margin: 3rem 0;
  text-align: center;
}
.interviewer { font-weight: 600; font-style: normal; color: var(--accent); }

/* ── ANIMATIONS ── */
@keyframes fadeUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
.fade-in-section { opacity: 0; transform: translateY(20px); transition: opacity 0.7s ease-out, transform 0.7s ease-out; }
.fade-in-section.is-visible { opacity: 1; transform: none; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .featured-row { grid-template-columns: 1fr; }
  .featured-stack { border-left: none; padding-left: 0; border-top: 1px solid var(--border); padding-top: 2rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .header-inner { grid-template-columns: 1fr; text-align: center; }
  .nav-left, .nav-right { display: none; }
}
@media (max-width: 600px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .grid-masthead { grid-template-columns: 1fr; }
  .grid-divider { display: none; }
  .featured-stack .article-card { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; }
  .toc-strip__inner { height: 300px; flex-wrap: wrap; }
  .hero-feature__content { padding: 2rem; }
}
