/* ===== AfriJuice – Colorful Blog Styles ===== */
:root {
  --orange: #FF6B35;
  --yellow: #F7C948;
  --green: #2ECC71;
  --pink: #FF4D8D;
  --purple: #9B59B6;
  --teal: #1ABC9C;
  --dark: #1A1A2E;
  --text: #2D2D2D;
  --light: #FFF9F0;
  --white: #FFFFFF;
  --gray: #6B7280;
  --shadow: 0 10px 30px rgba(0,0,0,0.08);
  --radius: 16px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  background: var(--light);
  color: var(--text);
  line-height: 1.6;
}

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

a {
  text-decoration: none;
  color: inherit;
}

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== Header ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 249, 240, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 2px solid rgba(255, 107, 53, 0.15);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 1.5rem;
}

.logo-icon {
  font-size: 1.8rem;
}

.logo-text span {
  color: var(--orange);
}

.nav {
  display: flex;
  gap: 8px;
}

.nav-link {
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 500;
  transition: all 0.25s ease;
}

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

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 3px;
  background: var(--dark);
  border-radius: 2px;
  transition: 0.3s;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, #FF6B35 0%, #F7C948 40%, #2ECC71 100%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url('https://images.unsplash.com/photo-1604329760661-e7fb3b2c4b4f?w=1600&q=80') center/cover;
  opacity: 0.25;
  mix-blend-mode: overlay;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
  padding: 60px 20px;
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.5rem, 6vw, 4.2rem);
  font-weight: 700;
  margin-bottom: 16px;
  text-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.hero h1 span {
  color: var(--yellow);
}

.hero p {
  font-size: 1.2rem;
  max-width: 560px;
  margin: 0 auto 32px;
  opacity: 0.95;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.25s ease;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: white;
  color: var(--orange);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.2);
}

/* ===== Sections ===== */
.section {
  padding: 80px 0;
}

.section-alt {
  background: white;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.4rem;
  color: var(--dark);
  margin-bottom: 8px;
}

.section-header p {
  color: var(--gray);
  font-size: 1.1rem;
}

/* ===== Post Cards ===== */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
}

.post-card {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

.post-image {
  height: 200px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.post-category {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.cat-food { background: var(--orange); }
.cat-travel { background: var(--teal); }
.cat-music { background: var(--purple); }
.cat-culture { background: var(--pink); }
.cat-lifestyle { background: var(--green); }

.post-body {
  padding: 22px;
}

.post-body h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
  line-height: 1.4;
}

.post-body h3 a:hover {
  color: var(--orange);
}

.post-body p {
  color: var(--gray);
  font-size: 0.95rem;
  margin-bottom: 14px;
}

.post-meta {
  display: flex;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--gray);
}

/* ===== Categories Row ===== */
.categories-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.category-pill {
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 600;
  color: white;
  transition: transform 0.25s, box-shadow 0.25s;
}

.category-pill:hover {
  transform: scale(1.06);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* ===== CTA ===== */
.cta-section {
  background: linear-gradient(135deg, #FF6B35, #F7C948);
  color: white;
}

.cta-box {
  text-align: center;
  max-width: 560px;
}

.cta-box h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.4rem;
  margin-bottom: 12px;
}

.newsletter-form {
  display: flex;
  gap: 10px;
  margin-top: 28px;
  flex-wrap: wrap;
  justify-content: center;
}

.newsletter-form input {
  flex: 1;
  min-width: 220px;
  padding: 14px 20px;
  border: none;
  border-radius: 999px;
  font-size: 1rem;
  font-family: inherit;
}

.newsletter-form .btn {
  background: var(--dark);
  color: white;
}

/* ===== Page Hero ===== */
.page-hero {
  background: linear-gradient(135deg, #FF6B35, #9B59B6);
  color: white;
  padding: 70px 0 50px;
  text-align: center;
}

.page-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2.8rem;
  margin-bottom: 8px;
}

/* ===== Gallery ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 1;
  box-shadow: var(--shadow);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px;
  background: linear-gradient(transparent, rgba(0,0,0,0.75));
  color: white;
  font-weight: 500;
  font-size: 0.95rem;
}

/* ===== Videos ===== */
.videos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 32px;
}

.video-card h3 {
  margin: 16px 0 8px;
  font-size: 1.15rem;
}

.video-card p {
  color: var(--gray);
  font-size: 0.95rem;
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.note {
  text-align: center;
  margin-top: 40px;
  color: var(--gray);
  font-size: 0.9rem;
}

/* ===== Categories Grid ===== */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.category-card {
  background: white;
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
  border-top: 5px solid transparent;
}

.category-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 35px rgba(0,0,0,0.1);
}

.category-card.cat-food { border-color: var(--orange); }
.category-card.cat-travel { border-color: var(--teal); }
.category-card.cat-music { border-color: var(--purple); }
.category-card.cat-culture { border-color: var(--pink); }
.category-card.cat-lifestyle { border-color: var(--green); }

.category-icon {
  font-size: 2.8rem;
  margin-bottom: 12px;
}

.category-card h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.category-card p {
  color: var(--gray);
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.category-card .count {
  display: inline-block;
  padding: 4px 12px;
  background: var(--light);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--orange);
}

/* ===== Single Post ===== */
.single-post .post-hero {
  min-height: 420px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  color: white;
  position: relative;
}

.single-post .post-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 30%, rgba(0,0,0,0.8));
}

.single-post .post-hero .container {
  position: relative;
  z-index: 2;
  padding-bottom: 48px;
}

.single-post .post-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin: 12px 0;
  max-width: 800px;
}

.post-content {
  max-width: 720px;
  padding: 48px 20px 80px;
}

.post-content .lead {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--dark);
  margin-bottom: 24px;
}

.post-content p {
  margin-bottom: 20px;
  font-size: 1.05rem;
}

.post-content h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  margin: 36px 0 16px;
  color: var(--dark);
}

.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 36px 0;
}

.post-tags a {
  padding: 6px 16px;
  background: var(--light);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--orange);
  border: 1px solid rgba(255,107,53,0.3);
}

.post-tags a:hover {
  background: var(--orange);
  color: white;
}

/* ===== Footer ===== */
.footer {
  background: var(--dark);
  color: #ccc;
  padding-top: 60px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}

.footer-brand p {
  margin-top: 12px;
  font-size: 0.95rem;
  max-width: 280px;
}

.footer .logo {
  color: white;
}

.footer-links h4 {
  color: white;
  margin-bottom: 16px;
  font-size: 1rem;
}

.footer-links a {
  display: block;
  margin-bottom: 10px;
  font-size: 0.95rem;
  transition: color 0.2s;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  padding: 20px;
  font-size: 0.9rem;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  .nav {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 20px;
    gap: 4px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
  }

  .nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-link {
    padding: 14px 16px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero {
    min-height: 55vh;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .newsletter-form input,
  .newsletter-form .btn {
    width: 100%;
  }
}
