/*
Theme Name: Beslenme Dünyası Foxiz
Theme URI: https://beslenmedunyasi.com.tr/
Author: Beslenme Dünyası Medya
Description: Foxiz Food & Nutrition esintili, temiz, iştah açıcı ve taze tasarımlı sağlıklı beslenme, diyet ve fonksiyonel gıda dergi teması.
Version: 2.2.0
*/

:root {
  --fx-bg: #f8faf6;
  --fx-card-bg: #ffffff;
  --fx-text: #1e281e;
  --fx-text-muted: #5e6d5e;
  --fx-green: #2e7d32;
  --fx-green-dark: #1b5e20;
  --fx-green-light: #e8f5e9;
  --fx-orange: #e65100;
  --fx-orange-light: #fff3e0;
  --fx-border: #e3eae0;
  --fx-radius: 12px;
  --fx-font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --fx-font-serif: 'Playfair Display', Georgia, serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  background-color: var(--fx-bg);
  color: var(--fx-text);
  font-family: var(--fx-font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; transition: all 0.2s ease; }
img { max-width: 100%; height: auto; display: block; }

.fx-container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }

/* TOPBAR */
.fx-topbar {
  background: #1b381e;
  color: #d1e4d1;
  font-size: 13px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.fx-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 38px;
}
.fx-trending-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--fx-green);
  color: #fff;
  padding: 4px 10px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.5px;
}
.fx-pulse-dot {
  width: 6px; height: 6px;
  background: #a5d6a7;
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
.fx-ticker {
  flex: 1;
  margin: 0 20px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 12px;
  color: #c0d8c0;
}
.fx-date { font-weight: 600; color: #a5d6a7; }

/* HEADER */
.fx-header {
  background: #ffffff;
  border-bottom: 1px solid var(--fx-border);
  box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}
.fx-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
}
.fx-logo-wrap { display: flex; flex-direction: column; }
.fx-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--fx-font-serif);
  font-size: 28px;
  font-weight: 800;
  color: var(--fx-green-dark);
}
.fx-logo-icon { font-size: 30px; }
.fx-tagline {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--fx-text-muted);
  margin-top: 3px;
}
.fx-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}
.fx-nav a {
  font-size: 14px;
  font-weight: 700;
  color: #3b4d3c;
  padding: 6px 0;
  position: relative;
}
.fx-nav a:hover, .fx-nav a.active {
  color: var(--fx-green);
}
.fx-nav a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--fx-green);
}
.fx-btn-recipe {
  background: var(--fx-green);
  color: #fff;
  padding: 9px 18px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.fx-btn-recipe:hover {
  background: var(--fx-green-dark);
  transform: translateY(-1px);
}

/* MAIN */
.fx-main-content { padding: 36px 0 60px; }

/* HERO GRID (1 LEAD + 3 SIDE STACK) */
.fx-hero-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 24px;
  margin-bottom: 48px;
  height: 500px;
  max-height: 500px;
}
.fx-lead-card {
  position: relative;
  border-radius: var(--fx-radius);
  overflow: hidden;
  height: 500px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}
.fx-lead-card .fx-card-media {
  display: block;
  width: 100%;
  height: 500px;
  overflow: hidden;
}
.fx-lead-card img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.fx-lead-card:hover img { transform: scale(1.03); }
.fx-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(20,40,20,0.85) 75%, rgba(10,25,10,0.95) 100%);
}
.fx-lead-body {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 32px;
  color: #fff;
  z-index: 2;
}
.fx-meta-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.fx-cat-badge {
  background: var(--fx-green);
  color: #fff;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}
.fx-cat-badge.sm { font-size: 10px; padding: 3px 8px; }
.fx-recipe-badge {
  background: rgba(255,255,255,0.22);
  backdrop-filter: blur(4px);
  color: #fff;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
}
.fx-recipe-badge.sm { font-size: 10px; padding: 2px 8px; background: var(--fx-green-light); color: var(--fx-green-dark); }
.fx-recipe-badge.cal { background: var(--fx-orange); color: #fff; }
.fx-recipe-badge.sm.cal { background: var(--fx-orange-light); color: var(--fx-orange); }
.fx-recipe-badge.tag { background: #388e3c; color: #fff; }

.fx-lead-title {
  font-family: var(--fx-font-serif);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 10px;
  color: #fff;
}
.fx-lead-title a:hover { color: #a5d6a7; }
.fx-lead-excerpt { font-size: 14px; color: #e0eee0; margin-bottom: 14px; line-height: 1.5; }
.fx-author-meta { display: flex; gap: 16px; font-size: 12px; color: #c8e6c9; font-weight: 600; }

.fx-side-stack {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 500px;
}
.fx-side-card {
  display: flex;
  gap: 16px;
  background: var(--fx-card-bg);
  padding: 14px;
  border-radius: var(--fx-radius);
  border: 1px solid var(--fx-border);
  height: 154px;
  transition: all 0.25s ease;
}
.fx-side-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  border-color: var(--fx-green);
}
.fx-side-media {
  width: 140px;
  height: 100%;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
}
.fx-side-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.fx-side-card:hover .fx-side-media img { transform: scale(1.05); }
.fx-side-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
}
.fx-side-title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  margin: 6px 0;
  color: var(--fx-text);
}
.fx-side-title a:hover { color: var(--fx-green); }
.fx-side-date { font-size: 11px; color: var(--fx-text-muted); }

/* SECTION 2: 4-COLUMN RECIPES STRIP */
.fx-picks-section { margin-bottom: 48px; }
.fx-section-header { margin-bottom: 22px; }
.fx-section-title {
  font-family: var(--fx-font-serif);
  font-size: 24px;
  font-weight: 700;
  color: var(--fx-green-dark);
}
.fx-section-desc { font-size: 13px; color: var(--fx-text-muted); display: block; margin-top: 3px; }

.fx-picks-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.fx-pick-card {
  background: var(--fx-card-bg);
  border-radius: var(--fx-radius);
  border: 1px solid var(--fx-border);
  overflow: hidden;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
}
.fx-pick-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  border-color: var(--fx-green);
}
.fx-pick-media {
  position: relative;
  width: 100%;
  height: 190px;
  overflow: hidden;
  display: block;
}
.fx-pick-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.fx-pick-card:hover .fx-pick-media img { transform: scale(1.05); }
.fx-pick-cat {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(27,94,32,0.9);
  color: #fff;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
}
.fx-pick-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.fx-pick-title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  margin: 8px 0;
  color: var(--fx-text);
}
.fx-pick-title a:hover { color: var(--fx-green); }
.fx-pick-excerpt { font-size: 13px; color: var(--fx-text-muted); margin-bottom: 14px; flex: 1; }
.fx-pick-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--fx-text-muted);
  border-top: 1px solid var(--fx-border);
  padding-top: 10px;
}
.fx-read-more { font-weight: 700; color: var(--fx-green); }

/* 2-COLUMN LAYOUT */
.fx-2col-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 36px;
}
.fx-feed-list { display: flex; flex-direction: column; gap: 20px; }
.fx-feed-card {
  display: flex;
  gap: 20px;
  background: var(--fx-card-bg);
  border-radius: var(--fx-radius);
  border: 1px solid var(--fx-border);
  padding: 16px;
  transition: all 0.25s ease;
}
.fx-feed-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  border-color: var(--fx-green);
}
.fx-feed-media {
  width: 220px;
  height: 150px;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
}
.fx-feed-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.fx-feed-card:hover .fx-feed-media img { transform: scale(1.04); }
.fx-feed-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
}
.fx-feed-title {
  font-family: var(--fx-font-serif);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  margin: 8px 0;
}
.fx-feed-title a:hover { color: var(--fx-green); }
.fx-feed-excerpt { font-size: 13px; color: var(--fx-text-muted); margin-bottom: 10px; }
.fx-feed-meta { display: flex; gap: 14px; font-size: 12px; color: var(--fx-text-muted); font-weight: 600; }

/* SIDEBAR */
.fx-sidebar { display: flex; flex-direction: column; gap: 24px; }
.fx-widget {
  background: var(--fx-card-bg);
  border-radius: var(--fx-radius);
  border: 1px solid var(--fx-border);
  padding: 24px;
}
.fx-widget-title {
  font-family: var(--fx-font-serif);
  font-size: 18px;
  font-weight: 700;
  color: var(--fx-green-dark);
  margin-bottom: 18px;
  position: relative;
  padding-bottom: 8px;
}
.fx-widget-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--fx-green);
}
.fx-superfood-box img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 14px;
}
.fx-superfood-content h4 { font-size: 16px; font-weight: 800; color: var(--fx-green-dark); margin-bottom: 6px; }
.fx-superfood-content p { font-size: 13px; color: var(--fx-text-muted); line-height: 1.5; margin-bottom: 12px; }
.fx-benefit-list { list-style: none; display: flex; flex-direction: column; gap: 6px; font-size: 12px; font-weight: 600; color: #2e7d32; }

.fx-category-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.fx-category-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--fx-text);
  padding: 8px 12px;
  border-radius: 6px;
  background: var(--fx-bg);
}
.fx-category-list a:hover { background: var(--fx-green-light); color: var(--fx-green-dark); padding-left: 16px; }
.fx-count { font-size: 11px; background: #fff; padding: 2px 8px; border-radius: 10px; color: var(--fx-green); font-weight: 700; border: 1px solid var(--fx-border); }

.fx-newsletter-widget { background: linear-gradient(135deg, #e8f5e9 0%, #f1f8e9 100%); border-color: #c8e6c9; }
.fx-news-icon { font-size: 32px; display: block; margin-bottom: 10px; }
.fx-newsletter-widget p { font-size: 13px; color: #33691e; line-height: 1.5; margin-bottom: 16px; }
.fx-newsletter-form { display: flex; flex-direction: column; gap: 10px; }
.fx-newsletter-form input {
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #a5d6a7;
  font-size: 13px;
  outline: none;
}
.fx-newsletter-form button {
  background: var(--fx-green);
  color: #fff;
  border: none;
  padding: 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}
.fx-newsletter-form button:hover { background: var(--fx-green-dark); }

/* SINGLE ARTICLE */
.fx-single-article { max-width: 1000px; margin: 0 auto; }
.fx-single-header { text-align: center; margin-bottom: 30px; }
.fx-single-header .fx-meta-badges { justify-content: center; }
.fx-single-title {
  font-family: var(--fx-font-serif);
  font-size: 36px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--fx-green-dark);
  margin: 16px 0;
}
.fx-single-meta { display: flex; justify-content: center; gap: 20px; font-size: 13px; color: var(--fx-text-muted); font-weight: 600; flex-wrap: wrap; }

.fx-article-layout { display: grid; grid-template-columns: 2.2fr 1fr; gap: 36px; }
.fx-single-hero-media { border-radius: var(--fx-radius); overflow: hidden; margin-bottom: 24px; }
.fx-single-hero-media img { width: 100%; max-height: 480px; object-fit: cover; }

.fx-recipe-summary-box {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  background: var(--fx-card-bg);
  border: 1px solid var(--fx-border);
  border-radius: var(--fx-radius);
  padding: 18px;
  margin-bottom: 28px;
  text-align: center;
}
.fx-sum-label { display: block; font-size: 11px; color: var(--fx-text-muted); font-weight: 600; margin-bottom: 4px; }
.fx-sum-val { font-size: 14px; font-weight: 800; color: var(--fx-green-dark); }

.fx-body-text { font-size: 16px; line-height: 1.8; color: #2e3b2e; }
.fx-body-text p { margin-bottom: 20px; }

/* FOOTER */
.fx-footer { background: #132414; color: #fff; padding: 60px 0 30px; margin-top: 60px; border-top: 1px solid rgba(255,255,255,0.08); }
.fx-footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.fx-footer-col h4 { font-size: 16px; font-weight: 800; color: #fff; margin-bottom: 20px; position: relative; padding-bottom: 8px; }
.fx-footer-col h4::after { content: ''; position: absolute; bottom: 0; left: 0; width: 30px; height: 2px; background: var(--fx-green); }
.fx-footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.fx-footer-col ul a { font-size: 14px; color: #b2c5b2; }
.fx-footer-col ul a:hover { color: #a5d6a7; padding-left: 4px; }
.fx-footer-bottom { padding-top: 24px; display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: #8fa88f; flex-wrap: wrap; gap: 12px; }

/* RESPONSIVE */
@media (max-width: 992px) {
  .fx-hero-grid { grid-template-columns: 1fr; height: auto; max-height: none; }
  .fx-lead-card { height: 400px !important; }
  .fx-card-media { height: 400px !important; }
  .fx-side-stack { height: auto !important; gap: 16px; }
  .fx-picks-grid { grid-template-columns: repeat(2, 1fr); }
  .fx-2col-layout { grid-template-columns: 1fr; }
  .fx-article-layout { grid-template-columns: 1fr; }
  .fx-footer-grid { grid-template-columns: 1fr 1fr; }
  .fx-nav { display: none; }
}
@media (max-width: 600px) {
  .fx-picks-grid { grid-template-columns: 1fr; }
  .fx-feed-card { flex-direction: column; }
  .fx-feed-media { width: 100%; height: 200px; }
  .fx-footer-grid { grid-template-columns: 1fr; }
  .fx-lead-title { font-size: 22px; }
  .fx-recipe-summary-box { grid-template-columns: 1fr 1fr; }
}
