/* ===========================
   Swedish Candy Blog — style.css
   buyswedishcandy.ae
   =========================== */

@import url('https://fonts.googleapis.com/css2?family=Pacifico&family=Nunito:wght@400;600;700;800&family=Tajawal:wght@400;500;700&display=swap');

/* === VARIABLES === */
:root {
  --pink: #E8284A;
  --yellow: #FFD94A;
  --blue: #4ABEFF;
  --green: #4ECB7A;
  --cream: #FFF8EE;
  --dark: #2D1A0E;
  --mid: #6B3F2A;
  --light-pink: #FFE8ED;
  --light-yellow: #FFFBE0;
  --light-blue: #E8F7FF;
  --light-green: #E8FFF2;
  --shadow: 0 4px 24px rgba(232,40,74,0.10);
  --radius: 20px;
  --radius-pill: 100px;
}

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Nunito', sans-serif;
  background: var(--cream);
  color: var(--dark);
  line-height: 1.7;
  overflow-x: hidden;
}
body[dir="rtl"] { font-family: 'Tajawal', sans-serif; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* === SPRINKLE DOTS (decorative) === */
.sprinkles {
  pointer-events: none;
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  overflow: hidden;
  z-index: 0;
}
.sprinkle {
  position: absolute;
  border-radius: 100px;
  opacity: 0.18;
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-18px) rotate(20deg); }
}

/* === STICKY HEADER === */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  border-bottom: 3px solid var(--yellow);
  box-shadow: 0 2px 16px rgba(0,0,0,0.08);
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
  flex-wrap: wrap;
}
.logo {
  font-family: 'Pacifico', cursive;
  font-size: 1.5rem;
  color: var(--pink);
  white-space: nowrap;
}
.logo span { color: var(--yellow); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  flex-wrap: wrap;
}
.nav-links a {
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.92rem;
  transition: background 0.2s, color 0.2s;
  color: var(--mid);
}
.nav-links a:hover, .nav-links a.active {
  background: var(--light-pink);
  color: var(--pink);
}
.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.btn-shop-header {
  background: var(--pink);
  color: #fff !important;
  padding: 8px 20px;
  border-radius: var(--radius-pill);
  font-weight: 800;
  font-size: 0.9rem;
  transition: background 0.2s, transform 0.15s;
  white-space: nowrap;
}
.btn-shop-header:hover { background: #c71e38; transform: scale(1.04); }

/* Language Switcher */
.lang-switcher {
  display: flex;
  gap: 4px;
  align-items: center;
}
.lang-btn {
  border: 2px solid #e0d0c8;
  background: #fff;
  border-radius: var(--radius-pill);
  padding: 4px 10px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  color: var(--mid);
}
.lang-btn:hover, .lang-btn.active {
  background: var(--yellow);
  border-color: var(--yellow);
  color: var(--dark);
}

/* === WAVY DIVIDER === */
.wave-divider {
  width: 100%;
  overflow: hidden;
  line-height: 0;
  margin: 0;
}
.wave-divider svg { display: block; width: 100%; }

/* === HERO SECTION === */
.hero {
  position: relative;
  background: linear-gradient(135deg, #FFE8ED 0%, #FFFBE0 50%, #E8F7FF 100%);
  padding: 80px 20px 60px;
  text-align: center;
  overflow: hidden;
}
.hero-content { position: relative; z-index: 1; max-width: 760px; margin: 0 auto; }
.hero h1 {
  font-family: 'Pacifico', cursive;
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--pink);
  line-height: 1.2;
  margin-bottom: 16px;
}
.hero p {
  font-size: 1.15rem;
  color: var(--mid);
  margin-bottom: 28px;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
}
.hero-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* === BUTTONS === */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: var(--radius-pill);
  font-weight: 800;
  font-size: 1rem;
  transition: transform 0.15s, box-shadow 0.15s;
  cursor: pointer;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.13); }
.btn-primary { background: var(--pink); color: #fff; }
.btn-primary:hover { background: #c71e38; }
.btn-secondary { background: var(--yellow); color: var(--dark); }
.btn-secondary:hover { background: #f0c800; }
.btn-blue { background: var(--blue); color: #fff; }
.btn-green { background: var(--green); color: #fff; }
.btn-outline {
  background: transparent;
  color: var(--pink);
  border: 2.5px solid var(--pink);
}
.btn-outline:hover { background: var(--pink); color: #fff; }

/* === SECTION CONTAINER === */
.section { padding: 60px 20px; }
.container { max-width: 1200px; margin: 0 auto; }
.section-title {
  font-family: 'Pacifico', cursive;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: var(--pink);
  text-align: center;
  margin-bottom: 10px;
}
.section-subtitle {
  text-align: center;
  color: var(--mid);
  font-size: 1.05rem;
  margin-bottom: 40px;
}

/* === BLOG CARDS GRID === */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
}
.card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}
.card:hover { transform: translateY(-5px); box-shadow: 0 12px 36px rgba(232,40,74,0.15); }
.card-img { width: 100%; height: 210px; object-fit: cover; }
.card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.card-tag {
  display: inline-block;
  background: var(--light-pink);
  color: var(--pink);
  font-size: 0.78rem;
  font-weight: 800;
  padding: 3px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.card h3 {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--dark);
  line-height: 1.4;
}
.card p { font-size: 0.92rem; color: #7a5a4a; flex: 1; margin-bottom: 14px; }
.card-meta { font-size: 0.8rem; color: #b09080; margin-bottom: 14px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.card-meta span::before { content: "⏱ "; }
.card .btn { align-self: flex-start; font-size: 0.88rem; padding: 8px 20px; }

/* === SUBSCRIPTION BANNER === */
.sub-banner {
  background: linear-gradient(135deg, var(--pink) 0%, #ff6b8a 100%);
  border-radius: var(--radius);
  padding: 36px 32px;
  text-align: center;
  color: #fff;
  margin: 40px 0;
  position: relative;
  overflow: hidden;
}
.sub-banner h2 { font-family: 'Pacifico', cursive; font-size: 1.8rem; margin-bottom: 10px; }
.sub-banner p { margin-bottom: 20px; opacity: 0.9; font-size: 1.05rem; }
.sub-banner .btn { background: var(--yellow); color: var(--dark); }

/* === ARTICLE PAGE === */
.article-hero {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: 0 0 var(--radius) var(--radius);
  display: block;
}
.article-container {
  max-width: 820px;
  margin: 0 auto;
  padding: 40px 20px 60px;
}
.article-meta {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  color: #a07860;
  font-size: 0.9rem;
  margin-bottom: 28px;
}
.article-meta .badge {
  background: var(--light-pink);
  color: var(--pink);
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  font-weight: 800;
  font-size: 0.82rem;
}
.article-container h1 {
  font-family: 'Pacifico', cursive;
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  color: var(--pink);
  line-height: 1.25;
  margin-bottom: 20px;
}
.article-body h2 {
  font-family: 'Pacifico', cursive;
  font-size: 1.5rem;
  color: var(--mid);
  margin: 32px 0 12px;
}
.article-body h3 { font-size: 1.15rem; font-weight: 800; color: var(--dark); margin: 24px 0 8px; }
.article-body p { margin-bottom: 16px; font-size: 1.02rem; }
.article-body ul, .article-body ol { margin: 10px 0 16px 24px; }
.article-body li { margin-bottom: 6px; }
.article-body blockquote {
  border-left: 4px solid var(--pink);
  padding: 12px 20px;
  background: var(--light-pink);
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 20px 0;
  font-style: italic;
  color: var(--mid);
}
body[dir="rtl"] .article-body blockquote {
  border-left: none;
  border-right: 4px solid var(--pink);
  border-radius: var(--radius) 0 0 var(--radius);
}
.inline-cta {
  background: var(--light-yellow);
  border: 2px solid var(--yellow);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 28px 0;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.inline-cta p { margin: 0; font-weight: 700; flex: 1; }
.related-posts { margin-top: 48px; }
.related-posts h2 {
  font-family: 'Pacifico', cursive;
  color: var(--pink);
  font-size: 1.5rem;
  margin-bottom: 20px;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
}
.related-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  transition: transform 0.2s;
}
.related-card:hover { transform: translateY(-3px); }
.related-card img { width: 100%; height: 130px; object-fit: cover; }
.related-card-body { padding: 12px; }
.related-card-body h4 { font-size: 0.9rem; font-weight: 800; color: var(--dark); line-height: 1.4; }

/* === FOOTER === */
.site-footer {
  background: var(--dark);
  color: #e0c8b8;
  padding: 50px 20px 28px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 36px;
  margin-bottom: 36px;
}
.footer-brand .logo { color: var(--yellow); }
.footer-brand .logo span { color: var(--pink); }
.footer-tagline { margin-top: 10px; font-size: 0.9rem; opacity: 0.75; }
.footer-col h4 { color: #fff; font-weight: 800; margin-bottom: 12px; font-size: 0.95rem; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul a { opacity: 0.75; font-size: 0.9rem; transition: opacity 0.2s; }
.footer-col ul a:hover { opacity: 1; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  text-align: center;
  font-size: 0.82rem;
  opacity: 0.55;
}

/* === ABOUT / SHOP PAGE === */
.page-hero {
  background: linear-gradient(135deg, #FFE8ED 0%, #FFFBE0 100%);
  padding: 60px 20px 50px;
  text-align: center;
}
.page-hero h1 {
  font-family: 'Pacifico', cursive;
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--pink);
  margin-bottom: 14px;
}
.page-hero p { color: var(--mid); font-size: 1.05rem; max-width: 600px; margin: 0 auto; }
.content-block {
  background: #fff;
  border-radius: var(--radius);
  padding: 36px;
  margin-bottom: 28px;
  box-shadow: var(--shadow);
}
.content-block h2 {
  font-family: 'Pacifico', cursive;
  color: var(--pink);
  font-size: 1.5rem;
  margin-bottom: 14px;
}

/* === UTILITY === */
.text-center { text-align: center; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-40 { margin-top: 40px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-40 { margin-bottom: 40px; }
.hidden { display: none !important; }

/* === PAGINATION (blog listing) === */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
  flex-wrap: wrap;
}
.pagination a {
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  border: 2px solid #e0d0c8;
  font-weight: 700;
  color: var(--mid);
  transition: all 0.2s;
}
.pagination a:hover, .pagination a.active {
  background: var(--pink);
  border-color: var(--pink);
  color: #fff;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .header-inner { min-height: 60px; gap: 10px; padding: 8px 16px; }
  .nav-links { display: none; }
  .nav-links.open { display: flex; flex-direction: column; position: fixed; top: 68px; left: 0; right: 0; background: #fff; padding: 16px; border-bottom: 2px solid var(--yellow); z-index: 999; }
  .hamburger { display: flex; flex-direction: column; gap: 5px; cursor: pointer; padding: 6px; }
  .hamburger span { width: 24px; height: 3px; background: var(--mid); border-radius: 3px; transition: all 0.3s; }
  .article-hero { height: 220px; }
  .cards-grid { grid-template-columns: 1fr; }
  .inline-cta { flex-direction: column; text-align: center; }
  .hero-btns { flex-direction: column; align-items: center; }
}
@media (min-width: 769px) {
  .hamburger { display: none; }
}

/* === RTL OVERRIDES === */
[dir="rtl"] .article-body ul, [dir="rtl"] .article-body ol { margin-right: 24px; margin-left: 0; }
[dir="rtl"] .card .btn { align-self: flex-end; }
[dir="rtl"] .logo { direction: ltr; }

/* === FEATURE STRIP === */
.features-strip {
  background: var(--yellow);
  padding: 18px 20px;
  overflow: hidden;
}
.features-strip-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}
.feature-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 0.92rem;
  color: var(--dark);
}
.feature-item .icon { font-size: 1.3rem; }

/* === SHOP CARDS === */
.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 32px;
}
.shop-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.2s;
}
.shop-card:hover { transform: translateY(-4px); }
.shop-card .icon { font-size: 3rem; margin-bottom: 14px; }
.shop-card h3 { font-family: 'Pacifico', cursive; color: var(--pink); font-size: 1.3rem; margin-bottom: 10px; }
.shop-card p { color: var(--mid); font-size: 0.95rem; margin-bottom: 18px; }
