/* ===== RESET (VERY IMPORTANT) ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
}

/* ===== BODY ===== */
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  background: #f5f5f5;
  color: #222;
  line-height: 1.5;
}

/* ===== HEADER =====*/
.site-header {
  position: sticky;
  top: 0;
  width: 100%;
  background: #f1f1f1;
  z-index: 999;
  border-bottom: 1px solid #e5e5e5;
}

.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.4);
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
  z-index: 9998;
}

.menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  position: relative;
}

.menu-btn {
  position: absolute;
  left: 12px;
  top: 10px;
}
/* MENU LIST */
.menu-btn {
  font-size: 22px;
  cursor: pointer;
  padding: 6px 10px;
  background: #f04e23;
  color: #fff;
  border-radius: 6px;
}

/* MENU PANEL */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  transform: translateX(-100%);
  width: 260px;
  height: 100%;
  background: #fff;
  z-index: 9999;
  transition: transform 0.3s ease;

  /* ✅ ADD THIS */
  padding: 20px 16px;
}
.mobile-menu.active {
  transform: translateX(0);
}

.menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
  margin-top: 20px;
}

.menu-list li {
  list-style: none;
}

.menu-list a {
  display: block;
  padding: 10px 12px;
  text-decoration: none;
  color: #333;
  font-size: 15px;
  border-radius: 6px;
}

.menu-list a:hover {
  background: #f2f2f2;
}
.menu-header {
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid #eee;
}

.menu-logo {
  display: block;
  font-weight: bold;
  font-size: 16px;
  color: #000;
  text-decoration: none;
}

.menu-tagline {
  font-size: 12px;
  color: #888;
  margin-top: 2px;
}
/* LOGO CENTER */
.logo-wrap {
  text-align: center;
}

.logo {
  font-weight: bold;
  font-size: 16px;
  color: #000;
  text-decoration: none;
}

.tagline {
  font-size: 11px;
  color: #888;
}
/* ===== GLOBAL ===== */
img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}
/* ===== MAIN TITLE ===== */
.title-wrap {
  padding: 16px;
  text-align: center;
}

.title-wrap h1 {
  font-size: 20px;
  line-height: 1.4;
}
@media (min-width: 768px) {
  .title-wrap h1 {
    font-size: 28px;
    max-width: 900px;
    margin: 0 auto;
  }
}
/* ===== MAIN CONTAINER ===== */
.container {
  max-width: 750px; /* better for readability */
  margin: 0 auto;
  padding: 12px;
}
.content-wrap > * {
  margin-bottom: 14px;
}

/* ===== CARD STYLE (MAIN WRAPPER) ===== */
.card {
  background: #fff;
  border-radius: 14px;
  padding: 12px;
  margin-bottom: 14px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

/* ===== TITLE ===== */
h1 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
}

/* ===== FEATURE IMAGE ===== */
.featured img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 12px;
}

/* ===== VIDEO ===== */
.video-block {
  margin-top: 10px;
}

.video-block iframe,
.video-block lite-youtube {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
}

/* ===== TOOLBAR ===== */
.video-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
}

/* LEFT SIDE */
.toolbar-left {
  display: flex;
  gap: 8px;
}

/* RIGHT SIDE */
.toolbar-right {
  display: flex;
  gap: 8px;
}

/* BUTTON STYLE */
.video-toolbar button {
  border: none;
  background: #f1f1f1;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 13px;
  cursor: pointer;
}

/* ACTIVE STATES */
button.active-like {
  background: #e7f0ff;
  color: #2979ff;
}

button.active-dislike {
  background: #ffeaea;
  color: #ff3b30;
}

/* ===== CONTENT ===== */
.content strong {
  color: #d97706;
  font-weight: 600;
}

/* PARAGRAPHS */
.content p {
  margin-bottom: 14px;
}

/* HEADINGS */
.content h1 {
  font-size: 20px;
  margin: 16px 0 10px;
}

.content h1 {
  display: none;
}

.content h2 {
  font-size: 18px;
  margin: 24px 0 12px;
  font-weight: 700;
  border-top: 1px solid #eee;
  padding-top: 16px;
}

.content h3 {
  font-size: 15px;
  font-weight: 600;
  margin: 16px 0 8px;
  padding: 6px 10px;
  background: #f3f3f3;
  border-radius: 6px;
}
.content h2:not(:first-of-type) {
  margin-top: 26px;
}
/* LISTS */
.content ul {
  padding-left: 20px;
  margin-bottom: 14px;
}

.content li {
  margin-bottom: 8px;
  line-height: 1.5;
}

/* INGREDIENT BLOCK */
.content h3 + ul {
  background: #fff;
  padding: 12px 12px 12px 25px;
  border-radius: 10px;
  border: 1px solid #eee;
}

/* STRONG TEXT */
.content strong {
  font-weight: 600;
  color: #e67e22;
}

/* ===== CTA BOX ===== */
.cta {
  background: #fff3cd;
  padding: 10px;
  border-radius: 10px;
  margin-top: 12px;
  font-size: 14px;
}

/* ===== PROGRESS ===== */
.progress {
  height: 6px;
  background: #eee;
  border-radius: 10px;
  overflow: hidden;
  margin-top: 10px;
}

.progress-bar {
  height: 100%;
  width: 60%;
  background: #4caf50;
}
/* ===== FIX LITE YOUTUBE ===== */
lite-youtube {
  display: block;
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%; /* 16:9 ratio */
  background-size: cover;
  background-position: center;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
}

/* youtube video */
.video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 ratio */
  border-radius: 12px;
  overflow: hidden;
  margin-top: 10px;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.active-like {
  background: #e7f0ff;
  color: #2979ff;
}

.active-dislike {
  background: #ffeaea;
  color: #ff3b30;
}
/* ===== RELATED WRAP ===== */
.related-wrap {
  max-width: 1100px;
  margin: 20px auto;
  margin-bottom: 30px;
  padding: 10px;
}
.related-item {
  display: block;
  text-decoration: none;
  color: #000;
}

.related-item img {
  width: 100%;
  border-radius: 10px;
}

.related-item h4 {
  font-size: 14px;
  margin-top: 6px;
}

/* GRID */
#related-posts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

/* TABLET */
@media (min-width: 768px) {
  #related-posts {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* DESKTOP */
@media (min-width: 1024px) {
  #related-posts {
    grid-template-columns: repeat(4, 1fr);
  }
}
/* ===== Fooetr ===== */
.site-footer {
  background: #fff;
  border-top: 1px solid #eee;
  margin-top: 30px;
}

.footer-inner {
  max-width: 750px;
  margin: 0 auto;
  padding: 16px;
  text-align: center;
  font-size: 13px;
  color: #777;
}
/* ===== MOBILE ===== */

@media (max-width: 480px) {
  .featured img {
    height: 180px;
  }

  h1 {
    font-size: 16px;
  }

  .video-toolbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .toolbar-right {
    width: 100%;
    justify-content: space-between;
  }
}