/*
Theme Name: Beslenme Dünyası Pro
Theme URI: https://beslenmedunyasi.com.tr
Description: Özel Fonksiyonel Beslenme, Diyet ve Sağlıklı Yaşam Portalı Teması
Author: Antigravity Pair Programming
Version: 3.5.0
Text Domain: beslenmedunyasi-pro
*/

:root {
  --food-dark-header: #16191e;
  --food-bg: #f9fafb;
  --accent-orange: #f97316;
  --pill-green: #10b981;
  --pill-purple: #8b5cf6;
  --pill-blue: #3b82f6;
  --pill-orange: #f97316;
  --pill-pink: #ec4899;
  --text-dark: #111827;
  --text-muted: #6b7280;
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-cursive: 'Caveat', cursive, serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  background-color: var(--food-bg);
  color: var(--text-dark);
  font-family: var(--font-main);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; transition: 0.2s; }
a:hover { opacity: 0.85; }
img { max-width: 100%; height: auto; display: block; object-fit: cover; }

.container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 20px;
}

/* DARK HEADER ROW (Exact pro_mag Food) */
.food-header {
  background: var(--food-dark-header);
  padding: 0 32px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 999;
}
.food-brand-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand-leaf-icon {
  font-size: 26px;
  color: var(--accent-orange);
}
.food-brand-title {
  font-family: var(--font-cursive);
  font-size: 32px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.5px;
}

.food-nav-menu {
  display: flex;
  list-style: none;
  gap: 24px;
  align-items: center;
}
.food-nav-menu li a {
  font-size: 13.5px;
  font-weight: 700;
  color: #cbd5e1;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  transition: color 0.2s;
  position: relative;
  padding: 6px 0;
}
.food-nav-menu li.current-menu-item a, .food-nav-menu li a:hover {
  color: #ffffff;
}
.food-nav-menu li.current-menu-item a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent-orange);
}
.badge-green-hot {
  background: #10b981;
  color: #ffffff;
  font-size: 9px;
  font-weight: 900;
  padding: 2px 5px;
  border-radius: 3px;
  margin-left: 4px;
}

.food-header-right-tools {
  display: flex;
  align-items: center;
  gap: 18px;
  color: #cbd5e1;
  font-size: 16px;
}
.food-header-right-tools span { cursor: pointer; transition: color 0.2s; }
.food-header-right-tools span:hover { color: #ffffff; }

/* HERO 5 TALL CARDS EDGE-TO-EDGE GRID (Exact pro_mag Food) */
.hero-food-slider {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2px;
  background: #000000;
  width: 100%;
  height: 480px;
  overflow: hidden;
}
.food-tall-card {
  position: relative;
  height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: #111;
}
.food-tall-card img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
  z-index: 1;
}
.food-tall-card:hover img {
  transform: scale(1.08);
}
.food-tall-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(0,0,0,0.7) 65%, rgba(0,0,0,0.95) 100%);
  z-index: 2;
}
.food-tall-body {
  position: relative;
  z-index: 3;
  padding: 22px 18px;
}

/* Category Pills on Food Cards */
.food-pill-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: #ffffff;
  padding: 3px 8px;
  border-radius: 4px;
  margin-bottom: 8px;
}
.pill-c1 { background: var(--pill-green); }
.pill-c2 { background: var(--pill-purple); }
.pill-c3 { background: var(--pill-blue); }
.pill-c4 { background: var(--pill-orange); }
.pill-c5 { background: var(--pill-orange); }

.food-tall-title {
  font-size: 16px;
  font-weight: 800;
  line-height: 1.35;
  color: #ffffff;
  margin-bottom: 12px;
}
.food-tall-card:hover .food-tall-title {
  color: #fde047;
}

.food-tall-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11.5px;
  color: #d1d5db;
}
.food-author-pill {
  display: flex;
  align-items: center;
  gap: 6px;
}
.author-avatar-food {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #f97316;
}
.bookmark-food {
  font-size: 13px;
  color: #d1d5db;
  cursor: pointer;
}

/* Carousel Control Bar */
.food-slider-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  padding: 16px 0 30px;
  background: #ffffff;
}
.food-slider-controls span {
  cursor: pointer;
  font-size: 14px;
  color: #4b5563;
}
.carousel-dots {
  display: flex;
  gap: 6px;
}
.dot-circ {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #d1d5db;
}
.dot-circ.active {
  background: #111827;
}

/* SECTION 2: EXPLORE CATEGORIES (Exact pro_mag Food 6 Gradient Cards with + Button) */
.section-explore-cats {
  padding: 40px 0 60px;
}
.section-center-head {
  text-align: center;
  margin-bottom: 35px;
}
.section-center-head h2 {
  font-size: 28px;
  font-weight: 800;
  color: #111827;
}
.orange-bar-center {
  width: 50px;
  height: 3.5px;
  background: var(--accent-orange);
  border-radius: 2px;
  margin: 10px auto 0;
}

.explore-cats-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
.cat-gradient-card {
  position: relative;
  height: 160px;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  box-shadow: 0 4px 15px rgba(0,0,0,0.06);
  transition: transform 0.25s ease;
}
.cat-gradient-card:hover {
  transform: translateY(-4px);
}
.cat-gradient-card img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  z-index: 1;
}
.cat-gradient-card:hover img {
  transform: scale(1.08);
}
.cat-gradient-tint {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
}
.tint-c1 { background: linear-gradient(180deg, rgba(0,0,0,0.1) 40%, rgba(16,185,129,0.92) 100%); }
.tint-c2 { background: linear-gradient(180deg, rgba(0,0,0,0.1) 40%, rgba(139,92,246,0.92) 100%); }
.tint-c3 { background: linear-gradient(180deg, rgba(0,0,0,0.1) 40%, rgba(236,72,153,0.92) 100%); }
.tint-c4 { background: linear-gradient(180deg, rgba(0,0,0,0.1) 40%, rgba(59,130,246,0.92) 100%); }
.tint-c5 { background: linear-gradient(180deg, rgba(0,0,0,0.1) 40%, rgba(249,115,22,0.92) 100%); }
.tint-c6 { background: linear-gradient(180deg, rgba(0,0,0,0.1) 40%, rgba(234,179,8,0.92) 100%); }

.cat-card-content {
  position: relative;
  z-index: 3;
  padding: 14px 12px;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.cat-card-name {
  font-size: 14px;
  font-weight: 800;
  color: #ffffff;
}
.cat-expand-circle {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: #ffffff;
  font-weight: 700;
}

/* SECTION 3: Hot This Month */
.section-hot-month {
  padding: 20px 0 70px;
}
.hot-month-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.hot-card {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  box-shadow: 0 2px 10px rgba(0,0,0,0.03);
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
}
.hot-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.hot-card-thumb {
  height: 200px;
  overflow: hidden;
}
.hot-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.hot-card:hover .hot-card-thumb img {
  transform: scale(1.05);
}
.hot-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.hot-card-cat {
  font-size: 11px;
  font-weight: 800;
  color: var(--accent-orange);
  text-transform: uppercase;
  margin-bottom: 6px;
}
.hot-card-title {
  font-size: 16px;
  font-weight: 800;
  line-height: 1.35;
  color: #111827;
  margin-bottom: 10px;
}
.hot-card-meta {
  margin-top: auto;
  font-size: 12px;
  color: #9ca3af;
  display: flex;
  justify-content: space-between;
}

/* Single Post */
.single-post-wrapper {
  max-width: 860px;
  margin: 40px auto 80px;
  background: #fff;
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
  border: 1px solid #e5e7eb;
}
.single-post-title {
  font-size: 34px;
  font-weight: 800;
  line-height: 1.25;
  margin: 16px 0;
  color: #111827;
}
.single-post-content {
  font-size: 17px;
  line-height: 1.8;
  color: #374151;
}
.single-post-content p { margin-bottom: 20px; }

/* Footer */
.food-footer {
  background: var(--food-dark-header);
  color: #9ca3af;
  padding: 50px 0 30px;
  text-align: center;
  font-size: 13px;
}
.footer-food-logo {
  font-family: var(--font-cursive);
  font-size: 30px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 10px;
}

@media (max-width: 1024px) {
  .hero-food-slider { grid-template-columns: repeat(2, 1fr); height: auto; }
  .food-tall-card { height: 320px; }
  .explore-cats-grid { grid-template-columns: repeat(3, 1fr); }
  .hot-month-grid { grid-template-columns: 1fr; }
  .food-nav-menu { display: none; }
}
@media (max-width: 640px) {
  .hero-food-slider { grid-template-columns: 1fr; }
  .explore-cats-grid { grid-template-columns: repeat(2, 1fr); }
}

/* === UNIVERSAL CLEAN HEADER CSS === */
.food-main-header {
  background: #ffffff !important;
  border-bottom: 1px solid #e5e7eb !important;
  padding: 16px 0 !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 100 !important;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04) !important;
}
.food-head-flex {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 24px !important;
}
.food-brand-logo {
  display: flex !important;
  align-items: center; gap: 8px !important;
  text-decoration: none !important;
  font-size: 22px !important;
  font-weight: 900 !important;
  color: #111827 !important;
  letter-spacing: -0.5px !important;
}
.food-leaf-icon {
  font-size: 22px !important;
  color: #10b981 !important;
}
.food-nav-menu {
  display: flex !important;
  align-items: center !important;
  gap: 22px !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
.food-nav-menu li a {
  text-decoration: none !important;
  color: #374151 !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  transition: color 0.15s ease !important;
}
.food-nav-menu li.current-menu-item a,
.food-nav-menu li a:hover {
  color: #10b981 !important;
}
.food-search-wrap .food-search-form {
  display: flex !important;
  align-items: center !important;
  background: #f9fafb !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 20px !important;
  padding: 4px 12px !important;
}
.food-search-wrap .search-input {
  border: none !important;
  background: transparent !important;
  padding: 6px 8px !important;
  font-size: 13px !important;
  color: #111827 !important;
  outline: none !important;
  width: 170px !important;
}
.food-search-wrap .search-btn {
  border: none !important;
  background: transparent !important;
  cursor: pointer !important;
  padding: 4px !important;
  color: #6b7280 !important;
  font-size: 14px !important;
}
