/* =======================================================
   KITA BAHAS - Stylesheet Editorial Video Ringan & Cepat
   Warna: Putih/Abu (#F8FAFC), Ungu (#7C3AED), Oranye (#FF6B35), Navy (#111827)
   ======================================================= */

:root {
  --bg-main: #F8FAFC;
  --bg-card: #FFFFFF;
  --text-main: #111827;
  --text-muted: #64748B;
  --primary: #7C3AED;
  --primary-hover: #6D28D9;
  --primary-light: #F5F3FF;
  --accent: #FF6B35;
  --accent-hover: #E85520;
  --border-color: #E2E8F0;
  --font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

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

body {
  font-family: var(--font-family);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.2s ease;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Layout Container */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Header Sticky */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-color);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.25rem;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.brand-badge {
    width: 2.5rem;
    height: 2.5rem;
background: url('/assets/images/logo.jpg') center / cover no-repeat;
color: transparent;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.18);
}

.brand-logo span span {
  color: var(--accent);
}

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

.nav-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: #475569;
  padding: 0.4rem 0.85rem;
  border-radius: 9999px;
  transition: all 0.2s;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary);
  background-color: var(--primary-light);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn-search {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.9rem;
  border-radius: 9999px;
  background: #F1F5F9;
  border: 1px solid transparent;
  color: var(--text-muted);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-search:hover {
  background: #E2E8F0;
  color: var(--text-main);
}

.btn-admin {
  background: var(--primary-light);
  color: var(--primary);
  padding: 0.45rem 0.9rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 700;
  transition: all 0.2s;
}

.btn-admin:hover {
  background: var(--primary);
  color: #fff;
}

/* Hero Section */
.hero-card {
  background: #FFFFFF;
  border-radius: 1.5rem;
  padding: 1.5rem;
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05);
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin: 1.5rem 0 2.5rem 0;
}

@media (min-width: 900px) {
  .hero-card {
    grid-template-columns: 7fr 5fr;
    padding: 2rem;
    gap: 2.25rem;
    align-items: center;
  }
}

.aspect-video-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 1.15rem;
  overflow: hidden;
  background-color: #0F172A;
}

.aspect-video-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.hero-card:hover .aspect-video-wrapper img {
  transform: scale(1.03);
}

.play-overlay-btn {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.hero-card:hover .play-overlay-btn {
  background: rgba(0, 0, 0, 0.45);
}

.play-icon-circle {
  width: 4.25rem;
  height: 4.25rem;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(255, 107, 53, 0.4);
  transition: transform 0.2s;
}

.hero-card:hover .play-icon-circle {
  transform: scale(1.1);
  background: var(--accent-hover);
}

.badge-cat {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--primary-light);
  color: var(--primary);
}

.hero-title {
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1.25;
  color: var(--text-main);
  margin: 0.75rem 0 0.5rem 0;
}

.hero-title a:hover {
  color: var(--primary);
}

.hero-desc {
  font-size: 0.925rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--primary);
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem;
  font-weight: 700;
  font-size: 0.925rem;
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.25);
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

/* Reels 9:16 Vertical Cards */
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.section-title {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.reels-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 3rem;
}

@media (min-width: 640px) {
  .reels-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
  .reels-grid { grid-template-columns: repeat(6, 1fr); }
}

.reel-card {
  position: relative;
  aspect-ratio: 9 / 16;
  border-radius: 1.15rem;
  overflow: hidden;
  background: #000;
  border: 1px solid var(--border-color);
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  transition: all 0.3s;
}

.reel-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

.reel-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.reel-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, transparent 40%, rgba(0,0,0,0.92) 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 0.75rem;
  color: #fff;
}

.reel-title {
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Category Cards */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .cat-grid { grid-template-columns: repeat(5, 1fr); }
}

.cat-card {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 1.15rem;
  padding: 1.15rem;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.cat-card:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 15px rgba(124, 58, 237, 0.08);
  transform: translateY(-2px);
}

.cat-title {
  font-size: 0.95rem;
  font-weight: 800;
  margin: 0.5rem 0 0.25rem 0;
}

.cat-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Video Grid 16:9 Standard */
.video-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 3.5rem;
}

@media (min-width: 640px) {
  .video-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .video-grid { grid-template-columns: repeat(3, 1fr); }
}

.video-card {
  background: #fff;
  border-radius: 1.15rem;
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
  display: flex;
  flex-direction: column;
  transition: all 0.3s;
}

.video-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  border-color: #DDD6FE;
}

.video-body {
  padding: 1rem 1.15rem 1.15rem 1.15rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
}

.video-title {
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 0.4rem;
  color: var(--text-main);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.video-title a:hover {
  color: var(--primary);
}

.video-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-muted);
  padding-top: 0.75rem;
  border-top: 1px solid #F1F5F9;
}

/* Video Detail Page */
.detail-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin: 1.5rem 0 3rem 0;
}

@media (min-width: 992px) {
  .detail-layout { grid-template-columns: 8fr 4fr; }
}

.player-container {
  aspect-ratio: 16 / 9;
  width: 100%;
  border-radius: 1.25rem;
  overflow: hidden;
  background: #000;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  margin-bottom: 1.5rem;
}

.player-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.detail-h1 {
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.25;
  color: var(--text-main);
  margin: 0.75rem 0 1rem 0;
}

@media (min-width: 768px) {
  .detail-h1 { font-size: 2.25rem; }
}

.article-box {
  background: #fff;
  border-radius: 1.25rem;
  padding: 1.75rem;
  border: 1px solid var(--border-color);
  margin-top: 1.5rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

.share-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin: 1.25rem 0;
  padding: 1rem;
  background: #F1F5F9;
  border-radius: 0.85rem;
}

.btn-share {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  border-radius: 0.65rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  border: none;
}

.btn-wa { background: #25D366; }
.btn-wa:hover { background: #20ba5a; }
.btn-fb { background: #1877F2; }
.btn-fb:hover { background: #166fe5; }
.btn-copy { background: #fff; color: var(--text-main); border: 1px solid var(--border-color); }
.btn-copy:hover { background: #F8FAFC; }

/* Footer */
.site-footer {
  background: #fff;
  border-top: 1px solid var(--border-color);
  padding: 3rem 0 2rem 0;
  margin-top: 4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 1.5rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
}
