/*
Theme Name: Mandle
Theme URI: https://mandle.sk
Author: Mandle.sk
Author URI: https://mandle.sk
Description: Playful & colorful blog o mandliach a zdravej výžive
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mandle
Tags: blog, food, one-column, custom-menu, featured-images
*/

/* === ROOT === */
:root {
  --cream: #FFF8F0;
  --sand: #F5E6D3;
  --almond: #D4A574;
  --almond-dark: #B8834A;
  --brown: #5C3D2E;
  --brown-deep: #3A2519;
  --green: #4CAF50;
  --green-light: #E8F5E9;
  --peach: #FFAB91;
  --peach-light: #FFF3EE;
  --coral: #FF7043;
  --yellow: #FFD54F;
  --yellow-light: #FFF8E1;
  --purple-light: #F3E5F5;
  --blue-light: #E3F2FD;
  --text: #3A2519;
  --text-secondary: #7A6355;
  --text-light: #A0917F;
  --border: #EDE0D4;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-full: 999px;
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Outfit', -apple-system, sans-serif;
  --max-w: 1180px;
  --header-h: 72px;
  --shadow: 0 2px 16px rgba(92,61,46,0.08);
  --shadow-lg: 0 8px 40px rgba(92,61,46,0.12);
}

/* === RESET === */
*,*::before,*::after { margin:0; padding:0; box-sizing:border-box; }
html { font-size:16px; scroll-behavior:smooth; }
body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* === LAYOUT === */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.section { padding: 100px 0; }
.text-center { text-align: center; }
h1,h2,h3 { font-family: var(--font-display); line-height: 1.2; }
h1 { font-size: clamp(2.5rem,6vw,4rem); font-weight: 800; }
h2 { font-size: clamp(2rem,4vw,2.8rem); font-weight: 600; }
h3 { font-size: clamp(1.2rem,2.5vw,1.5rem); font-weight: 600; }
.subtitle { color: var(--text-secondary); font-size: 18px; line-height: 1.7; max-width: 560px; }
.divider { height: 2px; background: linear-gradient(90deg,transparent,var(--border),transparent); }

/* === TAGS === */
.section-tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 18px; border-radius: var(--radius-full);
  font-size: 13px; font-weight: 600; margin-bottom: 16px;
}
.tag-green { background: var(--green-light); color: var(--green); }
.tag-peach { background: var(--peach-light); color: var(--coral); }
.tag-purple { background: var(--purple-light); color: #9C27B0; }
.tag-blue { background: var(--blue-light); color: #1976D2; }
.tag-yellow { background: var(--yellow-light); color: #F57F17; }
.chip {
  display: inline-block; padding: 5px 14px;
  border-radius: var(--radius-full); font-size: 12px; font-weight: 600;
}

/* === BUTTONS === */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: var(--radius-full);
  font-family: var(--font-body); font-size: 15px; font-weight: 600;
  border: none; cursor: pointer; transition: all 0.3s;
}
.btn-primary { background: var(--brown); color: white; }
.btn-primary:hover { background: var(--brown-deep); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-secondary { background: white; color: var(--brown); border: 2px solid var(--border); }
.btn-secondary:hover { border-color: var(--almond); background: var(--peach-light); }
.btn-coral { background: var(--coral); color: white; }
.btn-coral:hover { background: #E64A19; transform: translateY(-2px); }
.btn-green { background: var(--green); color: white; }
.btn-sm { padding: 10px 20px; font-size: 13px; }

/* === CARDS === */
.card {
  background: white; border-radius: var(--radius-lg);
  overflow: hidden; transition: all 0.3s; box-shadow: var(--shadow);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

/* === HEADER === */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--header-h);
  background: rgba(255,248,240,0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(237,224,212,0.6);
  display: flex; align-items: center;
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.logo {
  font-family: var(--font-display); font-size: 24px; font-weight: 800;
  display: flex; align-items: center; gap: 10px; color: var(--brown);
}
.logo-icon {
  width: 38px; height: 38px;
  background: linear-gradient(135deg,var(--almond),var(--peach));
  border-radius: 12px; display: flex; align-items: center;
  justify-content: center; font-size: 20px;
}
.main-nav { display: flex; gap: 28px; align-items: center; }
.main-nav ul { list-style: none; display: flex; gap: 28px; margin: 0; padding: 0; }
.main-nav a {
  font-size: 14px; font-weight: 500; color: var(--text-secondary);
  transition: color 0.2s; position: relative;
}
.main-nav a:hover,
.main-nav .current-menu-item > a,
.main-nav .current_page_item > a { color: var(--brown); }
.main-nav .current-menu-item > a::after,
.main-nav .current_page_item > a::after {
  content: ''; position: absolute; bottom: -4px; left: 20%; right: 20%;
  height: 3px; background: var(--coral); border-radius: 3px;
}
.header-cta { display: flex; gap: 12px; align-items: center; }
.mobile-menu-btn {
  display: none; background: none; border: none;
  font-size: 24px; cursor: pointer; color: var(--brown); padding: 4px;
}
.mobile-nav {
  display: none; position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0;
  background: var(--cream); z-index: 99; padding: 24px;
  flex-direction: column; gap: 4px;
}
.mobile-nav.open { display: flex; }
.mobile-nav ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 4px; }
.mobile-nav li a {
  display: block; padding: 16px; font-size: 17px; font-weight: 500;
  color: var(--text-secondary); border-radius: 12px;
}
.mobile-nav li a:hover { background: var(--sand); color: var(--brown); }

/* WP custom logo */
.logo .custom-logo-link { display: flex; align-items: center; }
.logo .custom-logo { height: 36px; width: auto; }

/* === HERO === */
.hero {
  padding-top: calc(var(--header-h) + 60px);
  padding-bottom: 80px; position: relative;
  overflow: hidden; min-height: 92vh; display: flex; align-items: center;
}
.blob {
  position: absolute; border-radius: 50%; filter: blur(60px);
  opacity: 0.4; pointer-events: none; z-index: 0;
}
.blob-1 { width: 400px; height: 400px; background: var(--peach); top: -100px; right: -100px; }
.blob-2 { width: 300px; height: 300px; background: var(--yellow); bottom: -50px; left: -80px; }
.blob-3 { width: 200px; height: 200px; background: var(--green-light); top: 40%; left: 30%; }
.hero-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 60px; align-items: center; position: relative; z-index: 1;
}
.hero h1 { margin-bottom: 20px; }
.hero h1 .highlight { position: relative; display: inline-block; }
.hero h1 .highlight::after {
  content: ''; position: absolute; bottom: 4px; left: -4px; right: -4px;
  height: 14px; background: var(--yellow); opacity: 0.4;
  border-radius: 4px; z-index: -1;
}
.hero .subtitle { margin-bottom: 36px; font-size: 19px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 48px; }
.hero-badges { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-badge {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 18px; background: white; border-radius: var(--radius-full);
  font-size: 13px; font-weight: 500; color: var(--text-secondary);
  box-shadow: var(--shadow);
}
.hero-badge .emoji { font-size: 18px; }
.hero-visual { position: relative; display: flex; justify-content: center; align-items: center; }
.hero-img-wrapper {
  width: 420px; height: 420px; border-radius: 50%;
  background: linear-gradient(135deg,var(--peach-light),var(--yellow-light),var(--green-light));
  display: flex; align-items: center; justify-content: center;
  position: relative; animation: heroFloat 6s ease-in-out infinite;
}
@keyframes heroFloat {
  0%,100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(2deg); }
}
.hero-emoji-big { font-size: 160px; filter: drop-shadow(0 20px 40px rgba(0,0,0,0.1)); }
.hero-float {
  position: absolute; background: white; border-radius: var(--radius);
  padding: 12px 18px; box-shadow: var(--shadow-lg);
  font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 8px;
  animation: float 4s ease-in-out infinite;
}
.hero-float:nth-child(2) { top: 20px; right: -20px; animation-delay: 0.5s; }
.hero-float:nth-child(3) { bottom: 40px; left: -30px; animation-delay: 1s; }
.hero-float:nth-child(4) { top: 50%; right: -40px; animation-delay: 1.5s; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* === BENEFITS === */
.benefits-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; margin-top: 48px; }
.benefit-card {
  padding: 32px 24px; text-align: center;
  border-radius: var(--radius-lg); transition: all 0.3s;
}
.benefit-card:nth-child(1) { background: linear-gradient(135deg,#FFF3EE,#FFE0D0); }
.benefit-card:nth-child(2) { background: linear-gradient(135deg,#E8F5E9,#C8E6C9); }
.benefit-card:nth-child(3) { background: linear-gradient(135deg,#FFF8E1,#FFECB3); }
.benefit-card:nth-child(4) { background: linear-gradient(135deg,#E3F2FD,#BBDEFB); }
.benefit-card:hover { transform: translateY(-4px); }
.benefit-icon { font-size: 42px; margin-bottom: 16px; }
.benefit-card h3 { font-size: 17px; margin-bottom: 8px; }
.benefit-card p { font-size: 14px; color: var(--text-secondary); line-height: 1.6; margin: 0; }

/* === FACTS === */
.facts-strip { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; margin-top: 48px; }
.fact-card { padding: 28px; border-radius: var(--radius-lg); text-align: center; }
.fact-card:nth-child(1) { background: var(--peach-light); }
.fact-card:nth-child(2) { background: var(--green-light); }
.fact-card:nth-child(3) { background: var(--yellow-light); }
.fact-card:nth-child(4) { background: var(--blue-light); }
.fact-number {
  font-family: var(--font-display); font-size: 36px; font-weight: 800; margin-bottom: 4px;
}
.fact-card:nth-child(1) .fact-number { color: var(--coral); }
.fact-card:nth-child(2) .fact-number { color: var(--green); }
.fact-card:nth-child(3) .fact-number { color: #F57F17; }
.fact-card:nth-child(4) .fact-number { color: #1976D2; }
.fact-label { font-size: 13px; color: var(--text-secondary); }

/* === ARTICLES === */
.articles-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; margin-top: 48px; }
.article-card .article-img {
  height: 200px; display: flex; align-items: center;
  justify-content: center; font-size: 64px;
}
.article-card:nth-child(1) .article-img { background: linear-gradient(135deg,#FFE0B2,#FFCC80); }
.article-card:nth-child(2) .article-img { background: linear-gradient(135deg,#C8E6C9,#A5D6A7); }
.article-card:nth-child(3) .article-img { background: linear-gradient(135deg,#FFCDD2,#EF9A9A); }
.article-card:nth-child(4) .article-img { background: linear-gradient(135deg,#D1C4E9,#B39DDB); }
.article-card:nth-child(5) .article-img { background: linear-gradient(135deg,#B3E5FC,#81D4FA); }
.article-card:nth-child(6) .article-img { background: linear-gradient(135deg,#F0F4C3,#DCE775); }
/* For WP featured images */
.article-card .article-img img { width: 100%; height: 100%; object-fit: cover; }
.article-body { padding: 24px; }
.article-meta {
  display: flex; gap: 12px; align-items: center;
  margin-bottom: 12px; font-size: 12px; color: var(--text-light);
}
.article-card h3 { font-size: 17px; margin-bottom: 8px; line-height: 1.4; }
.article-card h3 a:hover { color: var(--coral); }
.article-excerpt { font-size: 14px; color: var(--text-secondary); line-height: 1.6; }
.article-read-more {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 14px; font-size: 13px; font-weight: 600; color: var(--coral);
}

/* === RECIPES === */
.recipes-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; margin-top: 48px; }
.recipe-card { border-radius: var(--radius-lg); overflow: hidden; position: relative; cursor: pointer; }
.recipe-img {
  height: 260px; display: flex; align-items: center;
  justify-content: center; font-size: 80px; position: relative;
}
.recipe-card:nth-child(1) .recipe-img { background: linear-gradient(135deg,#D7CCC8,#BCAAA4); }
.recipe-card:nth-child(2) .recipe-img { background: linear-gradient(135deg,#FFE0B2,#FFB74D); }
.recipe-card:nth-child(3) .recipe-img { background: linear-gradient(135deg,#F8BBD0,#F48FB1); }
.recipe-overlay {
  position: absolute; bottom: 0; left: 0; right: 0; padding: 24px;
  background: linear-gradient(to top,rgba(58,37,25,0.9),transparent); color: white;
}
.recipe-overlay .chip { background: rgba(255,255,255,0.2); color: white; margin-bottom: 8px; }
.recipe-overlay h3 { font-size: 18px; color: white; margin-bottom: 4px; }
.recipe-overlay p { font-size: 13px; opacity: 0.8; margin: 0; }

/* === NEWSLETTER === */
.newsletter {
  background: linear-gradient(135deg,var(--brown),var(--brown-deep));
  border-radius: var(--radius-xl); padding: 64px;
  color: white; text-align: center; position: relative; overflow: hidden;
}
.newsletter::before {
  content: '🌰'; position: absolute; top: -20px; right: -20px;
  font-size: 200px; opacity: 0.05; transform: rotate(15deg);
}
.newsletter h2 { color: white; margin-bottom: 12px; }
.newsletter p { color: rgba(255,255,255,0.75); max-width: 480px; margin: 0 auto 32px; font-size: 16px; }
.newsletter-form { display: flex; gap: 12px; max-width: 440px; margin: 0 auto; }
.newsletter-input {
  flex: 1; padding: 16px 22px; border-radius: var(--radius-full);
  border: none; font-size: 15px; font-family: var(--font-body);
  background: rgba(255,255,255,0.12); color: white; backdrop-filter: blur(8px);
}
.newsletter-input::placeholder { color: rgba(255,255,255,0.5); }
.newsletter-input:focus { outline: none; background: rgba(255,255,255,0.18); }

/* === CATEGORY PILLS === */
.cat-pills { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.cat-pill, .cat-pills a {
  padding: 12px 24px; border-radius: var(--radius-full);
  font-size: 14px; font-weight: 600; cursor: pointer; transition: all 0.3s;
  border: 2px solid var(--border); background: white; color: var(--text-secondary);
  font-family: var(--font-body); text-decoration: none; display: inline-block;
}
.cat-pill:hover, .cat-pill.active,
.cat-pills a:hover, .cat-pills a.active {
  border-color: var(--coral); color: var(--coral); background: var(--peach-light);
}

/* === PAGE HEADER === */
.page-header {
  padding-top: calc(var(--header-h) + 48px);
  padding-bottom: 40px; position: relative;
}
.page-header::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg,var(--sand) 0%,var(--cream) 100%); z-index: 0;
}
.page-header .container { position: relative; z-index: 1; }
.breadcrumb {
  display: flex; gap: 8px; font-size: 13px;
  color: var(--text-light); margin-bottom: 12px;
}
.breadcrumb a:hover { color: var(--brown); }

/* === INFO CONTENT === */
.info-content { max-width: 720px; margin: 0 auto; }
.info-content p { font-size: 16px; color: var(--text-secondary); line-height: 1.85; margin-bottom: 20px; }
.info-content h3 { margin-top: 36px; margin-bottom: 14px; color: var(--brown); }
.info-content a { color: var(--coral); font-weight: 600; }
.info-content a:hover { text-decoration: underline; }
.info-card { padding: 32px; border-radius: var(--radius-lg); margin-bottom: 20px; }
.info-card-green { background: var(--green-light); border-left: 4px solid var(--green); }
.info-card-peach { background: var(--peach-light); border-left: 4px solid var(--coral); }
.info-card-yellow { background: var(--yellow-light); border-left: 4px solid #F57F17; }

/* === SINGLE POST === */
.single-content { max-width: 720px; margin: 0 auto; }
.single-content p { font-size: 17px; color: var(--text-secondary); line-height: 1.85; }
.single-content h2,.single-content h3 { margin-top: 36px; margin-bottom: 16px; }
.single-content a { color: var(--coral); }
.single-content img { border-radius: var(--radius-lg); margin: 24px 0; }
.single-content ul,.single-content ol { margin: 16px 0; padding-left: 24px; color: var(--text-secondary); }

/* === CONTACT FORM (CF7 / WPForms) === */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; max-width: 900px; margin: 0 auto; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: var(--text-secondary); margin-bottom: 6px; }
.form-control {
  width: 100%; padding: 14px 18px; border-radius: 12px;
  border: 2px solid var(--border); font-size: 15px;
  font-family: var(--font-body); background: white; transition: border-color 0.2s;
}
.form-control:focus { outline: none; border-color: var(--coral); }
textarea.form-control { min-height: 140px; resize: vertical; }
.wpcf7 input[type="text"],.wpcf7 input[type="email"],.wpcf7 textarea,
.wpforms-field input,.wpforms-field textarea {
  width: 100%; padding: 14px 18px; border-radius: 12px;
  border: 2px solid var(--border); font-size: 15px;
  font-family: var(--font-body); background: white;
}
.wpcf7 input[type="text"]:focus,.wpcf7 input[type="email"]:focus,.wpcf7 textarea:focus { border-color: var(--coral); outline: none; }
.wpcf7 input[type="submit"],.wpforms-submit {
  background: var(--coral); color: white; border: none;
  padding: 14px 28px; border-radius: var(--radius-full);
  font-weight: 600; cursor: pointer; font-family: var(--font-body); font-size: 15px;
}

/* === FOOTER === */
.site-footer { background: var(--brown-deep); color: white; padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand p { color: rgba(255,255,255,0.55); font-size: 14px; margin-top: 16px; line-height: 1.7; }
.site-footer .logo { color: white; }
.site-footer .logo-icon { background: linear-gradient(135deg,var(--almond),var(--coral)); }
.footer-col h4 { font-size: 12px; text-transform: uppercase; letter-spacing: 1.2px; color: rgba(255,255,255,0.35); margin-bottom: 18px; }
.footer-col a,.footer-col li a { display: block; font-size: 14px; color: rgba(255,255,255,0.6); padding: 5px 0; transition: color 0.2s; }
.footer-col a:hover,.footer-col li a:hover { color: white; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px;
  display: flex; justify-content: space-between;
  font-size: 12px; color: rgba(255,255,255,0.35);
}

/* === RESPONSIVE === */
@media(max-width:1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .benefits-grid { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media(max-width:768px) {
  .main-nav { display: none; }
  .mobile-menu-btn { display: block; }
  .articles-grid,.recipes-row { grid-template-columns: 1fr; }
  .facts-strip { grid-template-columns: 1fr 1fr; }
  .section { padding: 64px 0; }
  .newsletter { padding: 40px 24px; }
  .newsletter-form { flex-direction: column; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .hero { min-height: auto; padding-top: calc(var(--header-h) + 40px); }
  .hero-ctas .btn { width: 100%; justify-content: center; }
}
@media(max-width:480px) {
  .benefits-grid { grid-template-columns: 1fr; }
  .facts-strip { grid-template-columns: 1fr; }
}
