/* =============================================
   KOFITOTO BLOG - STYLE.CSS (VERSI BERSIH & ELEGANT)
   ============================================= */

:root {
  --primary: #ffcc00;
  --primary-dark: #e6b800;
  --dark: #0f0f1a;
  --gray: #1a1a2e;
  --light-gray: #eeeeee;
  --text: #ffffff;
  --text-muted: #aaaaaa;
}

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

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--dark);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

/* ===================== NAVBAR ===================== */
.navbar {
  background: rgba(15, 15, 26, 0.97);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 204, 0, 0.15);
}

.nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1.1rem 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo span {
  color: white;
}

.nav-links a {
  color: white;
  text-decoration: none;
  margin: 0 1.1rem;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-icon {
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: all 0.3s;
}

.btn-icon:hover {
  background: rgba(255, 204, 0, 0.15);
}

/* ===================== HERO SECTION ===================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #0f0f1a 0%, #1a0033 50%, #2a0033 100%);
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 40% 30%, rgba(255, 204, 0, 0.18), transparent 60%);
  pointer-events: none;
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5%;
  position: relative;
  z-index: 2;
}

.hero-content {
  max-width: 820px;
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(3rem, 8vw, 4.8rem);
  line-height: 1.1;
  margin-bottom: 1.4rem;
}

.highlight {
  background: linear-gradient(90deg, #ffcc00, #ffe066);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.28rem;
  margin-bottom: 2.8rem;
  opacity: 0.92;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-primary {
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
  color: #000;
  padding: 15px 36px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05rem;
  transition: all 0.4s ease;
  display: inline-block;
}

.btn-primary:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 30px rgba(255, 204, 0, 0.45);
}

.btn-primary.large {
  padding: 18px 42px;
  font-size: 1.15rem;
}

.btn-secondary {
  background: transparent;
  border: 2px solid var(--primary);
  color: white;
  padding: 15px 36px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
}

.btn-secondary:hover {
  background: rgba(255, 204, 0, 0.1);
}

/* Trust Badges */
.trust-badges {
  margin-top: 3.5rem;
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
  font-size: 1.05rem;
}

/* ===================== PASARAN GRID ===================== */
.pasaran-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1.6rem;
  margin-top: 2rem;
}

.pasaran-card {
  background: var(--gray);
  padding: 2.2rem 1.5rem;
  border-radius: 18px;
  text-align: center;
  text-decoration: none;
  color: white;
  font-size: 1.35rem;
  font-weight: 600;
  transition: all 0.4s ease;
  border: 1px solid rgba(255, 204, 0, 0.12);
}

.pasaran-card:hover {
  transform: translateY(-12px);
  background: #24243d;
  border-color: var(--primary);
  box-shadow: 0 20px 35px rgba(255, 204, 0, 0.2);
}

/* ===================== SECTION TITLE ===================== */
.section-title {
  text-align: center;
  font-size: 2.4rem;
  margin-bottom: 3.2rem;
  color: var(--primary);
  font-weight: 700;
}

/* ===================== KATEGORI ===================== */
.kategori-list {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 2rem;
}

.kategori-btn {
  background: var(--gray);
  border: none;
  padding: 12px 28px;
  border-radius: 50px;
  color: white;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.kategori-btn.active,
.kategori-btn:hover {
  background: var(--primary);
  color: #000;
  transform: scale(1.05);
}

/* ===================== ARTIKEL GRID ===================== */
.artikel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2.2rem;
}

.artikel-card {
  background: var(--gray);
  border-radius: 18px;
  overflow: hidden;
  transition: all 0.4s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.artikel-card:hover {
  transform: translateY(-14px);
  box-shadow: 0 25px 45px rgba(255, 204, 0, 0.15);
}

.artikel-card img {
  width: 100%;
  height: 210px;
  object-fit: cover;
}

.card-content {
  padding: 1.6rem;
}

.card-content .date {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.card-content h3 {
  margin: 12px 0 14px;
  font-size: 1.28rem;
  line-height: 1.35;
}

.card-content h3 a {
  color: inherit;
  text-decoration: none;
}

.card-content p {
  font-size: 0.98rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.read-more {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}

.read-more:hover {
  text-decoration: underline;
}

/* ===================== HALAMAN ARTIKEL ===================== */
.artikel-detail {
  max-width: 920px;
  margin: 50px auto;
  padding: 0 20px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  margin-bottom: 25px;
}

.back-link:hover {
  text-decoration: underline;
}

.featured-image {
  width: 100%;
  height: 440px;
  object-fit: cover;
  border-radius: 20px;
  margin-bottom: 35px;
}

.artikel-full h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2.85rem;
  line-height: 1.2;
  margin-bottom: 22px;
}

.meta {
  display: flex;
  gap: 25px;
  margin-bottom: 40px;
  color: var(--text-muted);
  font-size: 1rem;
}

.artikel-body {
  font-size: 1.12rem;
  line-height: 1.85;
}

.artikel-body h2,
.artikel-body h3 {
  color: var(--primary);
  margin: 45px 0 18px;
}

.artikel-body ul {
  padding-left: 28px;
  margin: 20px 0;
}

.artikel-body li {
  margin-bottom: 10px;
}

.cta-box {
  background: #1f1f38;
  padding: 35px 30px;
  border-radius: 20px;
  text-align: center;
  margin: 60px 0 40px;
  border: 1px solid rgba(255, 204, 0, 0.25);
}

.terkait {
  margin-top: 90px;
}

.terkait h3 {
  text-align: center;
  margin-bottom: 35px;
  color: var(--primary);
}

/* ===================== FOOTER ===================== */
.footer {
  background: #0a0a12;
  padding: 3.5rem 0 2rem;
  margin-top: 6rem;
  border-top: 1px solid rgba(255, 204, 0, 0.1);
}

.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 5%;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 768px) {
  .nav-inner {
    padding: 1rem 5%;
  }
  
  .hero-cta {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .featured-image {
    height: 320px;
  }
  
  .artikel-full h1 {
    font-size: 2.3rem;
  }
  
  .pasaran-grid {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  }
}

/* Light Mode (Opsional) */
.light-mode {
  --dark: #f8f9fa;
  --gray: #ffffff;
  --text: #1f1f1f;
  --text-muted: #555;
}

.light-mode .navbar,
.light-mode .footer {
  background: white;
  color: #1f1f1f;
}