/* =========================================================
   THE STREAMIC - Apple Bento Grid Design System
   Tiered layout: Large cards (1-12), List cards (13-20)
========================================================= */

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

:root {
  --apple-blue: #0071e3;
  --deep-black: #1d1d1f;
  --slate-gray: #6e6e73;
  --light-bg: #f5f5f7;
  --border-color: #d2d2d7;
  --gold-accent: #FFD700;
  --card-shadow: 0 2px 12px rgba(0,0,0,0.06);
  --card-hover-shadow: 0 8px 32px rgba(0,0,0,0.12);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
  color: var(--deep-black);
  background: #fff;
  line-height: 1.47059;
  -webkit-font-smoothing: antialiased;
}

/* =========== CENTERED NAVIGATION =========== */
.site-nav {
  background: rgba(255,255,255,0.95);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 0 22px;
}

.nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 48px;
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  align-items: center;
}

.nav-links a {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.4px;
  color: var(--deep-black);
  transition: color 0.2s;
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--apple-blue);
}

.nav-toggle {
  display: none;
}

@media (max-width: 1024px) {
  .nav-toggle {
    display: block;
    position: absolute;
    right: 22px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
  }
  
  .nav-links {
    display: none;
    position: absolute;
    top: 48px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: saturate(180%) blur(20px);
    flex-direction: column;
    gap: 0;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    z-index: 9999;  /* HIGH Z-INDEX FOR MOBILE */
  }
  
  .nav-links.active {
    display: flex;
  }
  
  .nav-links a {
    padding: 12px 22px;
    display: block;
  }
}

/* =========== HERO =========== */
.page-hero {
  background: linear-gradient(135deg, var(--light-bg) 0%, #fff 100%);
  padding: 70px 22px 50px;
  text-align: center;
  border-bottom: 1px solid var(--border-color);
}

.hero-inner h1 {
  font-size: 52px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
  color: var(--deep-black);
}

.hero-inner p {
  font-size: 21px;
  color: var(--slate-gray);
  line-height: 1.4;
}

@media (max-width: 768px) {
  .page-hero {
    padding: 50px 22px 40px;
  }
  
  .hero-inner h1 {
    font-size: 36px;
  }
  
  .hero-inner p {
    font-size: 18px;
  }
  
  /* Mobile category heading */
  .category-heading {
    font-size: 28px !important;
  }
}

/* =========== MAIN CONTAINER =========== */
main {
  max-width: 1400px;
  margin: 0 auto;
  padding: 60px 22px;
}

/* =========== TIER 1: LARGE BENTO CARDS (Items 1-12) =========== */
.bento-grid-large {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.bento-card-large {
  display: block;
  background: #fff;
  border-radius: 32px;
  overflow: hidden;
  border: 1px solid #e8e8ed;
  box-shadow: var(--card-shadow);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  min-height: 480px;
  text-decoration: none;
  color: inherit;
}

.bento-card-large:hover {
  transform: translateY(-6px);
  box-shadow: var(--card-hover-shadow);
  border-color: var(--border-color);
}

.bento-card-large .card-image {
  position: relative;
  width: 100%;
  height: 280px;  /* FIXED HEIGHT */
  background: var(--light-bg);
  overflow: hidden;
}

.bento-card-large .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;  /* ENSURE COVER FIT */
  transition: transform 0.4s ease;
}

.bento-card-large:hover .card-image img {
  transform: scale(1.05);
}

.bento-card-large .card-body {
  padding: 24px;
}

.bento-card-large .card-body h3 {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 12px;
  color: var(--deep-black);
  letter-spacing: -0.02em;
}

.bento-card-large .card-summary {
  font-size: 15px;
  line-height: 1.5;
  color: var(--slate-gray);
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.bento-card-large .card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 14px;
  font-size: 13px;
  color: var(--slate-gray);
}

.bento-card-large .source {
  font-weight: 500;
}

.bento-card-large .category-tag {
  background: var(--light-bg);
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Vlog gold border */
.bento-card-large.vlog-card {
  border: 3px solid var(--gold-accent);
}

@media (max-width: 1024px) {
  .bento-grid-large {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .bento-grid-large {
    grid-template-columns: 1fr;
  }
  .bento-card-large {
    min-height: 420px;
  }
}

/* =========== TIER 2: HORIZONTAL LIST CARDS (Items 13-20) =========== */
.list-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 48px;
}

.list-card-horizontal {
  display: flex;
  background: #fff;
  border-radius: 18px;
  border: 1px solid #e8e8ed;
  overflow: hidden;
  max-height: 120px;
  transition: all 0.3s ease;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--card-shadow);
}

.list-card-horizontal:hover {
  transform: translateX(4px);
  box-shadow: var(--card-hover-shadow);
}

.list-card-horizontal .card-image {
  width: 180px;
  min-width: 180px;
  height: 120px;
  background: var(--light-bg);
}

.list-card-horizontal .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.list-card-horizontal .card-body {
  padding: 16px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.list-card-horizontal .card-body h3 {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 6px;
  color: var(--deep-black);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.list-card-horizontal .card-meta {
  font-size: 13px;
  color: var(--slate-gray);
  display: flex;
  gap: 12px;
  align-items: center;
}

@media (max-width: 640px) {
  .list-card-horizontal .card-image {
    width: 120px;
    min-width: 120px;
  }
  .list-card-horizontal .card-body h3 {
    font-size: 16px;
  }
}

/* =========== VIEW MORE BUTTON =========== */
.view-more-wrap {
  text-align: center;
  margin-top: 48px;
}

.btn-view-more {
  background: var(--apple-blue);
  color: #fff;
  border: none;
  border-radius: 980px;
  padding: 14px 36px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.btn-view-more:hover {
  background: #0077ED;
  transform: scale(1.03);
}

/* =========== FOOTER =========== */
.site-footer {
  background: var(--light-bg);
  border-top: 1px solid var(--border-color);
  padding: 48px 22px 32px;
  margin-top: 80px;
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 32px;
}

.foot-col h4 {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--slate-gray);
  margin-bottom: 16px;
}

.foot-col a {
  display: block;
  font-size: 14px;
  color: var(--slate-gray);
  margin-bottom: 10px;
  transition: color 0.2s;
  text-decoration: none;
}

.foot-col a:hover {
  color: var(--deep-black);
}

.footer-links {
  display: flex;
  gap: 24px;
  justify-content: center;
  padding: 20px 0;
  border-top: 1px solid var(--border-color);
  margin-bottom: 12px;
}

.footer-links a {
  font-size: 14px;
  color: var(--slate-gray);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--apple-blue);
}

.footer-note {
  text-align: center;
  font-size: 13px;
  color: var(--slate-gray);
}

@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* =========== CATEGORY PAGE SPECIFIC =========== */
.category-content {
  margin-top: 40px;
}

/* =========== EDITOR'S DESK (VLOG) =========== */
.vlog-container {
  max-width: 880px;
  margin: 0 auto;
  padding: 60px 22px;
}

.vlog-post {
  background: #fff;
  border: 3px solid var(--gold-accent);
  border-radius: 24px;
  padding: 40px;
  margin-bottom: 40px;
}

.vlog-post h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--deep-black);
}

.vlog-post .post-meta {
  font-size: 14px;
  color: var(--slate-gray);
  margin-bottom: 24px;
}

.vlog-post img {
  width: 100%;
  border-radius: 16px;
  margin: 24px 0;
}

.vlog-post p {
  font-size: 17px;
  line-height: 1.6;
  margin-bottom: 16px;
  color: #424245;
}

/* =========== UTILITY =========== */
.hidden {
  display: none;
}

/* ===== LOGO & FOOTER ENHANCEMENTS ===== */
.nav-logo {
  font-size: 20px;
  font-weight: 700;
  color: var(--deep-black);
  text-decoration: none;
  letter-spacing: -0.5px;
  margin-right: auto;
  transition: opacity 0.2s ease;
}
.nav-logo:hover {
  opacity: 0.7;
}

.site-footer {
  background: #f5f5f7;
  border-top: 1px solid var(--border-color);
  padding: 60px 22px 30px;
  margin-top: 80px;
}
.footer-content {
  max-width: 1400px;
  margin: 0 auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}
.foot-col h4 {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 16px;
  color: var(--deep-black);
}
.foot-col p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--slate-gray);
  margin: 0 0 12px;
}
.foot-col a {
  display: block;
  font-size: 14px;
  color: var(--slate-gray);
  text-decoration: none;
  margin-bottom: 10px;
  transition: color 0.2s ease;
}
.foot-col a:hover {
  color: var(--apple-blue);
}
.footer-tagline {
  font-style: italic;
  font-size: 13px;
  color: var(--slate-gray);
}
.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-note, .footer-tech {
  font-size: 13px;
  color: var(--slate-gray);
  margin: 0;
}
@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  .site-footer {
    padding: 40px 16px 20px;
  }
}
@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
