@import url('https://fonts.googleapis.com/css2?family=Allura&family=Great+Vibes&family=Tangerine:wght@400;700&display=swap');

html {
    box-sizing: border-box; 
    
}
*,
*:before,
*:after {
    box-sizing: inherit
}
body {
    margin: 0;
    background-image:url(../images/brown-texture2.png);
}

article,
aside,
details,
figcaption,
figure,
footer,
header,
main,
menu,
nav,
section {
    display: block;
}
summary {
    display: list-item
}

html,
body {
    line-height: 1.5;
}
html {
    overflow-x: hidden;
}
h1 {
    font-size: 36px
}
h2 {
    font-size: 30px
}
h3 {
    font-size: 24px
}
h4 {
    font-size: 20px
}
h5 {
    font-size: 18px
}
h6 {
    font-size: 16px
}
h1, h2, h3, h4, h5, h6 {
    margin: 0;
    font-family: "Tangerine", cursive;
  font-weight: 400;
  font-style: normal;
}
hr {
    border: 0;
    border-top: 1px solid var(--make-black);
}
a {
    color: inherit;
    text-decoration: none;
}

.tangerine-regular {
  font-family: "Tangerine", cursive;
  font-weight: 400;
  font-style: normal;
}
.great-vibes-regular {
  font-family: "Great Vibes", cursive;
  font-weight: 400;
  font-style: normal;
}
.lgbake-indent{
    text-indent: 2em; /* Em units are relative to the font size and good for responsive design */
}
.lgbake-content {
    margin: 0 auto;
}
/* Container to hold everything side-by-side */
.page-wrapper {
  display: flex;
  min-height: 100vh;
  max-width: 1200px;
  margin: 0 auto; /* This centers the wrapper on the page */
  overflow: hidden; /* Keeps the right border from vanishing if content is wide */
}

/* Base style for both sidebars */
.side-border {
  width: 100px; 
  flex-shrink: 0; 
  background-repeat: repeat-y; 
  /* Change 'contain' to '100% auto' to ensure it fills the width of the 100px div */
  background-size: cover; 
}

/* Specific images for each side */
.left-border {
    background-image: url('../images/lside-retro.png');
  background-position: right top;
    border-left:5px solid var(--main-color)
}

.right-border {
    background-image: url('../images/rside-retro.png');
  background-position: left top;
    border-right:5px solid var(--main-color)
}

/* Main body takes up the remaining space */
.lgbake-main-body {
  flex-grow: 1;
  overflow-x: hidden;
    background-color:var(--make-white)
}

#footer-placeholder {
    border-top: 5px solid var(--secondary-color-light);
}

.lgbake-banner {
    width: 100%;
    height: 250px;
    display: block;
    background-image: url("../images/lgbake-banner.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    /* 1. Add this to make it the reference point */
    position: relative; 
}

.lgbake-banner-title {
    /* 2. Position it absolutely */
    position: absolute;
    /* 3. Push the top-left corner to the dead center */
    top: 50%;
    left: 50%;
    /* 4. Pull it back by half its own width/height */
    transform: translate(-50%, -50%);
   font-size: clamp(2rem, 7vw, 4rem);
    
    /* Your existing styles */
    width: auto; /* Changed from 100% so it can actually "center" */
    max-height: 325px;
    text-align: center; 
}

/* The container for the two columns */
.lgbake-flex-row {
  display: flex;
  flex-wrap: wrap; /* Allows stacking on small screens */
  padding: 20px 0;
  width: 100%;
}

/* The individual columns */
.lgbake-flex-col {
  flex: 1;          /* Makes columns grow equally */
  min-width: 300px; /* Forces stack when screen is narrower than ~600px */
  padding: 15px;
  box-sizing: border-box;
}

/* Optional: Center text within columns for a cleaner look */
.lgbake-flex-col h2 {
  text-align: center;
}

.lgbake-row-container {
  display: flex;
  flex-direction: column; /* This forces the children to stack vertically */
  gap: 30px;              /* Spacing between the two rows */
  width: 100%;
  padding: 0px 0;
}

.lgbake-row-item {
  width: 100%;
  display: flex;
  flex-direction: column;   /* Keeps content stacking vertically inside the row */
  align-items: center;      /* Centers items horizontally */
  justify-content: center;  /* Centers items vertically (if the row has a set height) */
  text-align: center;       /* Ensures text specifically is centered */
}

.lgbake-row-item h2 {
  padding:10px       /* Ensures text specifically is centered */
}

.lgbake-menu-section {
    padding:15px;
}

.lgbake-menu-section h1{
   font-size:x-large
}

#social {
    display: flex;
    list-style-type: none;
    gap: 1rem;
    font-size: 1.5rem;
    padding: 0;
    margin: .5rem 0 0 .5rem;
}
#social a {
    color: var(--main-color)!important;
}
#social a:hover {
    color: var(--secondary-color)!important;
}

#recipe-display {
  width: 100%;
}

/* --- DETAIL PAGE: 2-ROW DASHBOARD (70/30 Split) --- */
.recipe-split-view {
  display: grid;
    /* Column 1: 70% for Content | Column 2: 30% for Image/Sidebar */
  grid-template-columns: 70% 30%; 
  background: var(--make-white);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  margin-top: 20px;
  min-height: 600px;
}

/* TOP ROW - LEFT: Title & Description (75%) */
.recipe-top {
  grid-column: 1;
  grid-row: 1;
  padding: 40px;
  background-color: #fff;
  border-bottom: 1px solid var(--main-color);
}

/* TOP ROW - RIGHT: Featured Image (25%) */
.recipe-left {
  grid-column: 2;
  grid-row: 1;
  border-bottom: 1px solid var(--main-color);
}

.recipe-left img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* BOTTOM ROW - LEFT: Instructions (75%) */
.recipe-right {
  grid-column: 1;
  grid-row: 2;
  padding: 40px;
  display: flex;
  flex-direction: column;
  background-color: var(--accent-color-light);
}

/* BOTTOM ROW - RIGHT: Ingredients (25%) */
.ingredients-column {
  grid-column: 2;
  grid-row: 2;
  padding: 30px 20px;
  background-color: var(--make-white);
  border-left: 1px solid var(--accent-color-light);
}

.ingredients-column h3 {
  font-family:auto;
}

/* --- TYPOGRAPHY & ELEMENTS --- */

.recipe-title {
  margin-top: 15px; /* Space after back button */
  color: var(--make-black);
  font-size: 2.2rem;
  font-family: 'Georgia', serif;
}

.recipe-intro {
  font-style: italic;
  color: #666;
  margin-bottom: 0;
  line-height: 1.6;
  border-left: 3px solid var(--accent-color);
  padding-left: 15px;
}

.instructions-section h3 {
  color: var(--main-color);
  margin-top: 0;
  font-size: 1.4rem;
  font-family: 'Georgia', serif;
}

.instruction-text {
  line-height: 1.8;
  color: var(--make-black);
  font-size: 1.05rem;
  margin-bottom:20px;
}

.ingredients-column h3 {
  color: var(--secondary-color);
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 1.5px;
  border-bottom: 2px solid var(--secondary-color-light);
  padding-bottom: 10px;
  margin-top: 0;
}

.ingredient-list {
  list-style: none;
  padding: 0;
  margin: 15px 0 0 0;
}

.ingredient-list li {
  padding: 10px 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  font-size: 0.95rem;
  color: var(--make-black);
}

.print-btn {
  margin: 0 auto;
  padding: 12px 24px;
  align-self: flex-start;
  background-color: var(--main-color);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: opacity 0.2s;
}

.print-btn:hover {
  opacity: 0.9;
}

.recipe-share {
    margin: 1.25rem;
    text-align: center;
  }

  .recipe-share-icons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
  }

  .recipe-share-icons a {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #ffffff;
    background: var(--secondary-color);
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  .recipe-share-icons a:hover {
    transform: translateY(-2px);
    opacity: 0.9;
  }

.category-index-wrapper {
    max-width: 800px;
    padding: 0 20px;
    background: var(--make-white);
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.category-toc-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.category-link {
    display: flex;
    align-items: baseline;
    text-decoration: none;
    color: var(--make-black);
    font-size: 1.2rem;
    transition: color 0.2s;
}

.category-link:hover {
    color: var(--main-color);
}

.cat-name {
    font-weight: 600;
    flex-shrink: 0;
}

/* The Dot Leader Effect */
.cat-dots {
    flex-grow: 1;
    border-bottom: 2px dotted var(--accent-color-light);
    margin: 0 15px;
    position: relative;
    top: -4px;
}

.cat-count {
    color: var(--secondary-color);
    font-family: 'Georgia', serif;
    font-style: italic;
    font-size: 1rem;
    flex-shrink: 0;
}

.index-footer {
    margin-top: 50px;
    text-align: center;
}
/* --- End Recipe Class --- */


/* Calendar Events Blog */
.blog-section-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    width: 95%; /* Changed from max-width: auto for better filling */
    margin: 0 auto;
    box-sizing: border-box;
}

#post-container {
    display: flex;
    flex-wrap: wrap;       /* CRITICAL: Allows items to move to the next line */
    gap: 20px;
    justify-content: center;
    width: 100%;
}

/* Add this to control the individual blog posts inside the container */
#post-container > div {
    flex: 1;               /* Allows posts to grow equally */
    min-width: 300px;      /* CRITICAL: The "breakpoint" where they stack */
    max-width: 500px;      /* Prevents posts from getting too wide on huge screens */
    box-sizing: border-box;
}

/* Ensure the container doesn't force a grid layout when viewing a single post */
#post-container:has(.single-post-view) {
    display: block;
}

/* Fallback when :has() support is unavailable (set class via JS if needed) */
#post-container.single-post-layout {
    display: block;
}

/* Center the single post and constrain its width */
.single-post-view {
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
    text-align: left;
    padding: 20px;
}

/* Override generic card-column sizing when rendering a single full post */
#post-container > .single-post-view {
    flex: none;
    min-width: 0;
    max-width: 800px;
}

.post-card {
    max-width: 300px;
    width: 100%;
    border: 1px solid var(--make-white, #eee);
    overflow: hidden;
    border-radius: 8px;
    transition: transform 0.2s;
    margin: 0 auto;
    padding:10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.post-thumb {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.post-title-container {
    padding: 15px;
    background: var(--make-white, #fff);
    text-align: center;
}

.post-title-container h3 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--make-black, #333);
    text-decoration: none;
}

.post-title-container a {
    text-decoration: none;
}

/* Pagination Specific Styles */
.pagination-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 40px 0;
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 20px;
}

.pagination-btn {
    padding: 10px 20px;
    cursor: pointer;
    border: 1px solid #ccc;
    background: white;
    border-radius: 5px;
    transition: background 0.2s;
}

.pagination-btn:hover:not(:disabled) {
    background: #f0f0f0;
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.day-name {
  background: var(--make-white);
  padding: 10px;
  text-align: center;
  font-weight: bold;
  font-size: 0.8rem;
  color: var(--make-black);
}
.day {
  min-height: 80px;
  padding: 10px;
  border-right: 1px solid var(--make-black);
  border-bottom: 1px solid var(--make-black);
  position: relative;
  transition: background 0.2s;
}
.day:hover { 
    background: #f9f9f9; 
}

.current-day {
  background: #fff9c4 !important;
  font-weight: bold;
}
.event {
  display: block;
  font-size: 0.7rem;
  padding: 2px 5px;
  margin-top: 5px;
  background: var(--event-bg);
  color: var(--event-color);
  border-radius: 3px;
  border-left: 3px solid var(--event-color);
}
.event.busy {
  background: #ffebee;
  color: #c62828;
  border-left-color: #c62828;
}
/* Scoped styles to avoid clashing with your existing .event class */
.gevent-wrapper { 
    font-family: sans-serif; 
    line-height: 1.6; 
    color: var(--make-black); 
    max-width: 800px; 
    margin: 5px auto; 
}
        
.gevent-item { 
    border-bottom: 1px solid #eee;
    padding: 15px 0; 
}
.gevent-item:last-child { 
    border-bottom: none; 
}
        
.gevent-title { 
    margin: 0 0 5px 0; 
    font-size: 1em; 
}
.gevent-title a { 
    color: var(--make-black); 
    text-decoration: none; 
    font-weight: bold; 
}
.gevent-title a:hover { 
    text-decoration: underline; 
}
.gevent-desc { 
    font-size: 0.95em; 
    color: var(--make-black); 
}
        
.gevent-error { 
    color: #c0392b; 
    padding: 15px; 
    border: 1px solid #c0392b; 
}

/* Content Container & Pagination */
#content-container {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
    padding: 0 1.5rem;
}
/* --- End Blog Events --- */


.lgbake-image {
    width:100%;
    height:auto;
}
.lgbake-button {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none
}
.lgbake-button:disabled {
    cursor: not-allowed;
    opacity: 0.3
}

.lgbake-input {
    padding: 8px;
    display: block;
    border: none;
    border-bottom: 1px solid #ccc;
    width: 100%
}
/* LGBake top navigation layout */
.lgbake-nav-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    letter-spacing: 4px;
}

.lgbake-nav-social {
    display: flex;
    align-items: center;
}

/* Bane-style hamburger nav */
.custom-navbar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    position: relative;
}

.nav-checkbox {
    display: none;
}

.nav-hamburger {
    display: block;
    width: 30px;
    cursor: pointer;
    z-index: 100;
    position: relative;
    padding-left: 10px;
}

.nav-hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--main-color, #222);
    margin-bottom: 5px;
    transition: all 0.3s ease-in-out;
}

.nav-hamburger span:last-child {
    margin-bottom: 0;
}

.nav-menu {
    position: fixed;
    top: 0;
    right: -400px;
    width: 300px;
    height: 100vh;
    background-color: var(--main-color, #1a1a1a);
    z-index: 9999;
    transition: right 0.4s cubic-bezier(0.77, 0.2, 0.05, 1);
    padding: 40px 20px;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.7);
    display: block !important;
}

.nav-checkbox:checked ~ .nav-menu {
    right: 0;
}

.nav-close {
    display: block;
    text-align: right;
    /* color: var(--make-white, #fff); */
    font-size: 1rem;
    cursor: pointer;
    margin-bottom: 40px;
    font-family: "Tangerine", cursive;
    letter-spacing: 1px;
}

.nav-close i {
    margin-left: 10px;
    /* color: var(--accent-color, #cc3300); */
}

.nav-close:hover {
    color: var(--accent-color, #cc3300);
}

.nav-list {
    list-style: none;
    padding: 0;
    margin-left: 10px;
    display: flex;
    flex-direction: column;
}

.nav-item {
    margin-bottom: 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 12px;
}

.nav-item a {
    /* color: var(--make-white, #fff); */
    text-decoration: none;
    font-size: 1.25rem;
    transition: 0.3s;
}

.nav-item a:hover {
    color: var(--accent-color, #fedec7);
    padding-left: 10px;
}

.lgbake-top {
    position: relative;
    width: 100%;
    z-index: 1;
}

.lgbake-top {
    top: 0;
}

.lgbake-top::after {
    content: "";
    display: table;
    clear: both;
}

.lgbake-round {
    border-radius: 4px
}
.lgbake-card {
    box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12);
}
.lgbake-opacity-min {
    opacity: 0.75
}
.lgbake-xlarge {
    font-size: 28px !important
}
.lgbake-center {
    text-align: center !important;

}
.lgbake-section {
    margin-top: 16px !important;
    margin-bottom: 16px !important
}
.lgbake-padding {
    padding: 8px 16px !important
}
.lgbake-padding-16 {
    padding-top: 16px !important;
    padding-bottom: 16px !important
}
.lgbake-padding-32 {
    padding-top: 32px !important;
    padding-bottom: 32px !important;
}
.lgbake-button:hover {
    color: #000 !important;
    background-color: #ccc !important
}
.lgbake-accent-light {
    background-color: var(--accent-color-light)!important;
}
.lgbake-main-hover:hover {
    color: var(--main-color)!important;
}

.lgbake-light-grey,
.lgbake-light-grey {
    color: #000 !important;
    background-color: #f1f1f1 !important
}
.lgbake-text-grey,
.lgbake-text-grey {
    color: #757575 !important
}

