/*
Theme Name: MoufaLight
Theme URI: https://example.com/
Author: Johny
Author URI: https://example.com/
Description: Lightweight, responsive theme for recipes — minimal, optimized for low-resource hosting.
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: moufalight
*/
:root{
--bg:#ffffff;--text:#222;--accent:#d9534f;--muted:#666;
}
*{box-sizing:border-box}
body{font-family:system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,'Helvetica Neue',Arial;line-height:1.5;color:var(--text);background:var(--bg);margin:0}
a{color:var(--accent);text-decoration:none}
.header{padding:18px 16px;border-bottom:1px solid #eee;display:flex;align-items:center;justify-content:space-between}
.site-title{font-size:20px;font-weight:700}
.site-desc{font-size:12px;color:var(--muted)}
.container{max-width:1100px;margin:20px auto;padding:0 16px}
.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:18px}
.card{border:1px solid #eee;border-radius:8px;overflow:hidden;background:#fff}
.card img{width:100%;height:170px;object-fit:cover;display:block}
.card .meta{padding:12px}
.card h2{margin:0 0 8px;font-size:18px}
.card p{margin:0;color:var(--muted);font-size:14px}
.sidebar{padding:12px;border:1px solid #eee;border-radius:8px}
.main{display:block}
.row{display:grid;grid-template-columns:1fr 300px;gap:20px}
@media(max-width:900px){.row{grid-template-columns:1fr}.site-title{font-size:18px}.card img{height:160px}}
.post-content{padding:18px}
footer{padding:18px;text-align:center;color:var(--muted);font-size:13px;border-top:1px solid #eee;margin-top:30px}

.hero {
  text-align: center;
  margin: 40px 0;
}

.hero-content {
  max-width: 700px;
  margin: 0 auto;
  color: #444;
  font-size: 1.1em;
}

.latest-posts {
  margin-top: 50px;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.post img {
  width: 100%;
  border-radius: 12px;
  transition: transform 0.2s;
}

.post img:hover {
  transform: scale(1.05);
}

.post h3 {
  font-size: 1.1em;
  margin-top: 10px;
}

.post p {
  color: #555;
  font-size: 0.95em;
}

body {
  font-family: system-ui, sans-serif;
  margin: 0;
  background: #fff;
  color: #333;
}

/* Header */
.site-header {
  background: #fafafa;
  border-bottom: 1px solid #ddd;
  padding: 15px 0;
}
.site-title a {
  text-decoration: none;
  color: #222;
  font-size: 1.5em;
}
.main-menu .menu {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 20px;
}
.main-menu a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
}
.main-menu a:hover {
  color: #d04;
}

/* Content */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 15px;
}

.hero {
  text-align: center;
  margin: 40px 0;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.post img {
  width: 100%;
  border-radius: 10px;
  transition: transform 0.2s;
}
.post img:hover {
  transform: scale(1.05);
}
.post h3 {
  font-size: 1.1em;
  margin-top: 10px;
}

/* Footer */
.site-footer {
  background: #f4f4f4;
  padding: 25px 0;
  text-align: center;
  border-top: 1px solid #ddd;
}
.footer-menu ul {
  list-style: none;
  padding: 0;
  margin: 0 0 10px 0;
  display: flex;
  justify-content: center;
  gap: 25px;
}
.footer-menu a {
  text-decoration: none;
  color: #333;
}
.footer-menu a:hover {
  color: #d04;
}

.navbar {
  display: flex;
  justify-content: space-between; /* logo αριστερά, menu δεξιά */
  align-items: center;
  padding: 10px 25px;
  flex-wrap: wrap; /* επιτρέπει wrap αν μικρύνει το παράθυρο */
}

/* Desktop menu */
.menu {
  display: flex;           /* inline menu για desktop */
  gap: 20px;
}

.menu a {
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: #333;
  font-weight: 500;
}

.menu a:hover {
  color: #d73b3e;
}

/* Hamburger icon */
.menu-icon {
  display: none;
  font-size: 22px;
  cursor: pointer;
}

/* Mobile */
@media (max-width: 768px) {
  .menu {
    display: none;
    flex-direction: column;
    width: 100%;
    background: #fff;
    position: absolute;
    top: 60px;
    left: 0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  }
  .menu.active {
    display: flex;
  }
  .menu-icon {
    display: block;
  }
}

.category-section {
    margin: 50px 0;
}

.category-section h2 {
    font-size: 1.6em;
    margin-bottom: 20px;
    border-bottom: 2px solid #d73b3e;
    display: inline-block;
    padding-bottom: 5px;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.post {
    text-align: center;
}

.post img {
    width: 100%;
    border-radius: 10px;
    transition: transform 0.2s;
}

.post img:hover {
    transform: scale(1.05);
}

.category-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #f4f4f4;
    height: 180px;
    border-radius: 12px;
    color: #d73b3e;
    text-decoration: none;
}

.post h3 {
    font-size: 1.1em;
    margin-top: 10px;
}

.post p {
    color: #555;
    font-size: 0.95em;
}

.category-section {
  margin: 50px 0;
}

.category-section h2 {
  font-size: 1.7em;
  border-bottom: 3px solid #d73b3e;
  display: inline-block;
  margin-bottom: 15px;
  padding-bottom: 5px;
  color: #d73b3e;
}

.subcategory-block {
  margin-top: 25px;
}

.subcategory-block h3 {
  font-size: 1.3em;
  margin-bottom: 15px;
  color: #333;
  display: flex;
  align-items: center;
  gap: 8px;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.post {
  text-align: center;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  padding: 10px;
  transition: transform 0.2s ease;
}

.post:hover {
  transform: translateY(-5px);
}

.post img {
  width: 100%;
  border-radius: 8px;
}

.category-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  background: #f9f9f9;
  height: 160px;
  border-radius: 10px;
  color: #d73b3e;
  text-decoration: none;
}

.post h4 {
  font-size: 1em;
  margin-top: 10px;
}

/* ---------- MoufaGrid Home Styles ---------- */
.moufa-grid-home .hero { text-align:center; margin:30px 0; }
.moufa-grid-home .hero-content { max-width:900px; margin:0 auto; color:#444; font-size:1.05rem; }

.mu-section { padding:30px 0; border-top:1px solid rgba(0,0,0,0.03); }
.mu-section-inner { max-width:1100px; margin:0 auto; padding:0 16px; }

.mu-section-header { display:flex; align-items:center; gap:14px; margin-bottom:18px; }
.mu-section-header h2 { font-size:1.5rem; margin:0; color:#333; }
.mu-section-header .mu-icon svg { width:46px; height:46px; display:block; }

.mu-posts-grid {
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap:18px;
}

.mu-post {
  background: #fff;
  border-radius:10px;
  overflow:hidden;
  box-shadow: 0 3px 10px rgba(0,0,0,0.04);
  transition: transform .18s ease, box-shadow .18s ease;
}

.mu-post:hover { transform: translateY(-6px); box-shadow: 0 8px 24px rgba(0,0,0,0.08); }

.mu-post-link { display:flex; flex-direction:column; height:100%; color:inherit; text-decoration:none; }

.mu-media { position:relative; min-height:140px; display:flex; align-items:center; justify-content:center; background:transparent; padding:12px; }
.mu-media img { width:100%; height:160px; object-fit:cover; display:block; }
.mu-svg-icon { width:100%; display:flex; align-items:center; justify-content:center; height:160px; background:rgba(255,255,255,0.6); }

.mu-badge.vegan {
  position:absolute; top:10px; right:10px; background:#1db954; color:#fff; font-weight:700;
  padding:6px 8px; border-radius:20px; font-size:12px; box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

.mu-body { padding:12px 14px 18px; }
.mu-title { font-size:1.05rem; margin:0 0 8px; color:#222; }
.mu-excerpt { margin:0; color:#666; font-size:0.95rem; line-height:1.35; }

.mu-section-foot { margin-top:16px; text-align:right; }
.mu-see-all { font-weight:700; color:#d73b3e; text-decoration:none; }
.mu-see-all:hover { text-decoration:underline; }

/* Alternate subtle background stripes to break monotony */
.moufa-grid-home .mu-section:nth-child(odd) { box-shadow: inset 0 40px 60px rgba(255,255,255,0.02); }
.moufa-grid-home .mu-section:nth-child(even) { box-shadow: inset 0 -40px 60px rgba(255,255,255,0.02); }

/* Responsive tweaks */
@media (max-width: 900px) {
  .mu-section-header h2 { font-size:1.25rem; }
  .mu-posts-grid { gap:12px; }
  .mu-media img, .mu-svg-icon { height:140px; }
}

@media (max-width: 600px) {
  .mu-section-header { gap:10px; }
  .mu-posts-grid { grid-template-columns: 1fr; }
  .mu-section-foot { text-align:center; margin-top:12px; }
}

.section-page {
  padding: 40px;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}

.category-card {
  background: #fff8f0;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  text-align: center;
  padding: 20px;
  transition: transform 0.3s ease;
}

.category-card:hover {
  transform: translateY(-5px);
}

.cat-icon {
  margin-bottom: 10px;
}

.badge-vegan {
  background: #00a86b;
  color: #fff;
  font-size: 0.8em;
  padding: 3px 7px;
  border-radius: 5px;
  margin-left: 6px;
}

.searchform {
  text-align: right;
  margin-right: 20px;
}

.searchform input {
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #ccc;
}

.searchform button {
  background: #ffa500;
  border: none;
  color: white;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
}

/* =====================
   Γενικό Grid & Section
===================== */
.section-recipes {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.section-title {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 30px;
  color: #2c3e50;
  font-weight: 700;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: #e67e22;
  margin: 10px auto 0;
  border-radius: 2px;
}

/* =====================
   Recipes Grid
===================== */
.recipes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

/* =====================
   Recipe Card
===================== */
.recipe-card {
  background: #fff;
  border-radius: 12px;
  padding: 15px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
}

.recipe-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* =====================
   Thumbnails / SVG Placeholder
===================== */
.recipe-card .thumb,
.recipe-card .placeholder-icon {
  width: 100%;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
  border-radius: 10px;
  background: #f5f5f5;
  overflow: hidden;
}

.recipe-card .placeholder-icon svg {
  width: 60px;
  height: 60px;
}

/* =====================
   Title
===================== */
.recipe-card h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: #34495e;
}

.recipe-card h3 a {
  text-decoration: none;
  color: inherit;
}

.recipe-card h3 a:hover {
  color: #e67e22;
}

/* =====================
   Vegan Badge
===================== */
.badge-vegan {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #2ecc71;
  color: #fff;
  font-size: 0.75rem;
  padding: 3px 8px;
  border-radius: 20px;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

/* =====================
   Responsive Adjustments
===================== */
@media (max-width: 768px) {
  .recipe-card .thumb,
  .recipe-card .placeholder-icon {
    height: 120px;
  }

  .section-title {
    font-size: 1.7rem;
  }
}

@media (max-width: 480px) {
  .recipe-card .thumb,
  .recipe-card .placeholder-icon {
    height: 100px;
  }

  .section-title {
    font-size: 1.5rem;
  }
}

.search-wrapper {
  position: relative;
  max-width: 400px;
  margin: 0 auto 30px;
}

#recipe-search {
  width: 100%;
  padding: 10px 15px;
  border-radius: 25px;
  border: 1px solid #ccc;
  font-size: 1rem;
}

#search-results {
  position: absolute;
  top: 110%;
  left: 0;
  width: 100%;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.1);
  z-index: 999;
  max-height: 400px;
  overflow-y: auto;
  display: none;
}

.search-list {
  list-style: none;
  margin: 0;
  padding: 10px 0;
}

.search-item {
  display: flex;
  align-items: center;
  padding: 8px 15px;
  border-bottom: 1px solid #eee;
  transition: background 0.2s;
}

.search-item:last-child {
  border-bottom: none;
}

.search-item:hover {
  background: #f9f9f9;
}

.search-item a {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #34495e;
  width: 100%;
}

.search-item img, .search-item .search-icon svg {
  width: 40px;
  height: 40px;
  margin-right: 10px;
  flex-shrink: 0;
}

.search-title {
  font-weight: 500;
}

.no-results {
  padding: 10px;
  text-align: center;
  color: #999;
}

/* Show results */
#recipe-search:focus + #search-results,
#search-results:hover {
  display: block;
}
.menu {
    display: flex;
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.menu li {
    display: inline-block;
}

.menu li a {
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: #333;
    font-weight: 600;
}

.menu li a:hover {
    color: #d73b3e;
}

.menu-icon {
    display: none;
    font-size: 22px;
    cursor: pointer;
}

/* Responsive για mobile */
@media (max-width: 768px) {
    .menu {
        display: none;
        flex-direction: column;
        background: #fff;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        z-index: 1000;
    }
    .menu.active {
        display: flex;
    }
    .menu-icon {
        display: block;
    }
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.post-card {
    background: #fff;
    padding: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
}

.post-image img {
    width: 100%;
    border-radius: 6px;
}

.post-placeholder {
    width: 100%;
    height: 150px;
    background: #f0f0f0;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 50px;
    color: #ccc;
    border-radius: 6px;
    position: relative;
}

.badge.vegan {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #27ae60;
    color: #fff;
    padding: 3px 6px;
    font-size: 12px;
    border-radius: 4px;
}

.post-content h3 {
    margin: 10px 0 5px 0;
    font-size: 18px;
}

.post-content p {
    font-size: 14px;
    color: #555;
}

