/* EatingWithAngela.com — Static Site CSS
   Ported from original Mura theme, alignment issues fixed.
   Color palette:
     Teal:        #007f9a  #52C4D2
     Crimson:     #8E0438  #C50855
     Lime:        #A5C03C
     Light green: #DEF1A8
     Dark text:   #434343  #232323
*/

/* ── Reset / Base ────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background-color: #cdea7b;
}

body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background-color: #cdea7b;
  background-image: url(/assets/images/theme/bg-page.png);
  background-repeat: repeat;
  font-family: Arial, Helvetica, Verdana, sans-serif;
  font-size: 14px;
  color: #434343;
}

a { color: #007f9a; text-decoration: none; }
a:hover { color: #52C4D2; text-decoration: underline; }

hr {
  clear: both;
  height: 0;
  margin: 2em 0;
  border: none;
  border-top: 1px solid #ccc;
}

img { max-width: 100%; height: auto; }

/* ── Tables ──────────────────────────────────────────────────────────────── */
.content table { width: 100%; margin-top: 30px; }
th { border: 1px solid #777; color: #333; background: #A5C03C; padding: 6px; }
td { padding: 10px; border: 1px solid #d6d6d6; }
tr.alt td { background: #eee; }

/* ── Forms ───────────────────────────────────────────────────────────────── */
#primary form {
  padding: 2em;
  background: #DEF1A8;
  overflow: hidden;
  max-width: 504px;
  border: 1px solid #DEF1A8;
  border-radius: 10px;
}
#primary fieldset { border: none; padding: 0; }
#primary legend { font-size: 1.4em; font-weight: bold; color: #A5C03C; }
.submit, .buttons input {
  float: right;
  height: 2em;
  line-height: 2em;
  border: none;
  padding: 0 1em;
  font-size: 1em;
  font-weight: bold;
  color: #fff;
  background: #007f9a;
  border-radius: 10px;
  cursor: pointer;
}
.submit:hover { background: #52C4D2; }

/* Search form in header */
#searchForm { margin: 0; padding: 0; }
#searchForm fieldset { padding: 0; border: 0; text-align: right; }
#searchForm input.text { width: 160px; font-style: italic; padding: 2px 4px; }

/* ── Layout ──────────────────────────────────────────────────────────────── */
#container {
  width: 1000px;
  margin: 0 auto;
}

#innerWrapper {
  width: 875px;
  margin: 30px auto 0;
  padding: 20px 20px 0;
  background-color: #fff;
  text-align: left;
  overflow: hidden;
  border-radius: 10px 10px 0 0;
}

#content {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: 20px;
  padding-bottom: 20px;
  min-height: 404px;
}

/* script tags inside content (from layout chaining) must not flex */
#content > script { display: none; }

#primary {
  flex: 1 1 0;
  min-width: 0;
  color: #232323;
}

#right {
  flex: 0 0 180px;
  width: 180px;
  min-width: 180px;
}

/* ── Header ──────────────────────────────────────────────────────────────── */
#header {
  display: flex;
  align-items: flex-start;
  padding-bottom: 0;
}

#logo {
  display: block;
  flex: 0 0 316px;
  width: 316px;
  height: 73px;
  text-indent: -9999px;
  background: url(/assets/images/theme/eatingwithangela.png) no-repeat;
  margin: 0 0 20px;
}

#navWrapper {
  flex: 1 1 auto;
  padding: 2px 0 0 20px;
}

#navPrimary {
  list-style: none;
  margin: 15px 0 0;
  padding: 0;
  border-top: 1px solid #8E0438;
  border-bottom: 1px solid #8E0438;
  height: 30px;
  display: flex;
  align-items: center;
}

#navPrimary li { display: inline; }

#navPrimary a {
  display: inline-block;
  padding: 0 10px;
  line-height: 30px;
  font-size: 16px;
  color: #007F9A;
  text-decoration: none;
}

#navPrimary a:hover,
#navPrimary li.current a { color: #52C4D2; }

/* ── Footer ──────────────────────────────────────────────────────────────── */
#footerWrapper {
  margin: 0 auto 20px;
}

#footer {
  background-color: #52C4D2;
  width: 875px;
  margin: 0 auto;
  padding: 20px;
  min-height: 200px;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  border-radius: 0 0 10px 10px;
}

#footerCol1, #footerCol2 {
  flex: 1 1 200px;
}

#footer h3, #footer h4 {
  font-size: 16px;
  text-shadow: #fff 0 0 10px;
  color: #C50855;
  margin: 0 0 10px;
}

#footer p { font-size: .9em; color: #999; }
#footer a { color: #007f9a; }
#footer a:hover { color: #fff; }
#footer dd { margin-left: 10px; line-height: 1.5em; }

#copyright {
  flex: 1 1 100%;
  padding-top: 20px;
  text-align: center;
  font-size: 10px;
  color: #777;
  clear: both;
}

/* ── Breadcrumb ──────────────────────────────────────────────────────────── */
#crumbList {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  font-size: 12px;
  color: #ccc;
}
#crumbList li { display: inline; }
#crumbList a:hover { text-decoration: underline; }

/* ── Sidebar ─────────────────────────────────────────────────────────────── */
.sidebar { min-height: 100px; }

.sidebar h3 {
  font-size: 14px;
  font-weight: bold;
  margin: 0 0 8px;
  color: #434343;
}

/* Calendar nav */
.mura-calendar table { width: 100%; border-collapse: collapse; margin: 0 0 1em; font-size: 12px; }
.mura-calendar th {
  background: #C50855;
  color: #fff;
  padding: 4px 2px;
  text-align: center;
  border: 1px solid #fff;
}
.mura-calendar th a { color: #fff; font-weight: bold; }
.mura-calendar th a:hover { color: #DEF1A8; }
.mura-calendar tr.dayofweek th { background: #A5C03C; color: #DEF1A8; }
.mura-calendar td {
  background: #DEF1A8;
  color: #A5C03C;
  text-align: center;
  padding: 3px;
  border: 1px solid #fff;
}
.mura-calendar td a { color: #007f9a; font-weight: bold; }
.mura-calendar td.today { background: #A5C03C; color: #fff; }
.mura-calendar td.no-post { color: #aaa; background: #f0f8e8; }
.mura-calendar td.has-post { background: #DEF1A8; }

/* Sidebar nav lists */
.navSecondary {
  list-style: none;
  margin: 0 0 2em;
  padding: 0;
}
.navSecondary li {
  margin: 0 0 .5em;
  padding: 0 0 .5em;
  border-bottom: 1px solid #d6d6d6;
  line-height: 1.2;
  font-size: 13px;
}
.navSecondary li:last-child { border: 0; padding-bottom: 0; }
.navSecondary li a { display: block; }
.navSecondary li.current a { font-weight: bold; color: #C50855; }

/* ── Blog Index ──────────────────────────────────────────────────────────── */
.svIndex dl {
  border-bottom: 4px dotted #E6E6E6;
  margin: 0 0 1.5em;
  padding: 0 0 1.5em;
  overflow: hidden;
}

.svIndex dd.image {
  float: left;
  margin: 0 12px 4px 0;
  width: 90px;
}

.svIndex dd.image img { display: block; width: 80px; height: 80px; object-fit: cover; }

dt.releaseDate, p.releaseDate {
  text-transform: uppercase;
  color: #777;
  font-size: .9em;
  margin-bottom: .5em;
}

.svIndex dt a { font-size: 1.1em; font-weight: bold; color: #232323; }
.svIndex dt a:hover { color: #007f9a; }
.svIndex dd.tags { color: #777; font-size: .85em; padding-bottom: 8px; }
.svIndex dd.summary { line-height: 1.4; }

.svIndex dl.moreResults { border: none; color: #C50855; }
.moreResults-nav { display: flex; justify-content: space-between; margin: 1em 0 2em; }
.moreResults-nav a {
  color: #007f9a;
  font-weight: bold;
  padding: 4px 10px;
  border: 1px solid #DEF1A8;
  border-radius: 4px;
  background: #f9fff0;
}
.moreResults-nav a:hover { background: #DEF1A8; text-decoration: none; }
.moreResults-nav .page-info { color: #777; font-size: .9em; align-self: center; }

/* ── Blog Post ───────────────────────────────────────────────────────────── */
.post-content { line-height: 1.6; }
.post-content p { margin: 0 0 1em; }
.post-content img { max-width: 100%; height: auto; margin: .5em 0; }

.post-meta {
  color: #777;
  font-size: .85em;
  margin: .5em 0 1.5em;
  border-bottom: 1px solid #e6e6e6;
  padding-bottom: .75em;
}
.post-meta a { color: #007f9a; }

.post-nav {
  display: flex;
  justify-content: space-between;
  margin: 2em 0;
  font-size: .9em;
  border-top: 4px dotted #E6E6E6;
  padding-top: 1em;
}
.post-nav a { color: #007f9a; }

/* ── Slideshow (home) ────────────────────────────────────────────────────── */
.featured-posts { margin-bottom: 2em; }

.slide {
  display: none;
  margin-bottom: 1em;
}
.slide.active { display: flex; gap: 16px; align-items: flex-start; }

.slide-image {
  flex: 0 0 296px;
  background-image: url(/assets/images/theme/photos.png);
  background-repeat: no-repeat;
  width: 296px;
  height: 344px;
}
.slide-image img {
  display: block;
  margin: 35px 35px 0 36px;
  width: 225px;
  height: 225px;
  object-fit: cover;
}

.slide-content { flex: 1 1 auto; padding: 18px 0 0 0; min-width: 0; }
.slide-date { color: #ccc; font-size: 10px; text-transform: uppercase; }
.slide-title { font-size: 16px; font-weight: bold; margin: 4px 0; }
.slide-title a { color: #fff; }
.slide-tags { color: #ccc; font-size: 11px; margin-bottom: 8px; }
.slide-summary { font-size: 13px; color: #ddd; line-height: 1.4; }

.svSlideshow {
  background: #232323;
  padding: 10px 16px 16px;
  border-radius: 4px;
  overflow: hidden;
}

.slide-pager {
  display: flex;
  gap: 6px;
  margin-top: 10px;
  padding-left: 312px;
}
.slide-pager button {
  width: 22px; height: 22px;
  border-radius: 3px;
  border: none;
  background: #007F99;
  color: #fff;
  cursor: pointer;
  font-size: 11px;
}
.slide-pager button.active,
.slide-pager button:hover { background: #8E0438; }

/* ── Recipe ──────────────────────────────────────────────────────────────── */
#recipe-meta-image {
  float: left;
  width: 224px;
  margin: 0 20px 20px 0;
}
#recipe-meta-image img { border: 1px solid #E6E6E6; width: 100%; }

#recipe-data {
  float: left;
  clear: left;
  margin-right: 20px;
}

#recipe-data .box {
  margin: 0 0 20px;
  padding: 10px;
  background-color: #DEF1A8;
  border: 1px solid #c8e88a;
  border-radius: 10px;
  color: #777;
  width: 158px;
}

#recipe-data h3, #recipe-data h4 { font-size: 14px; color: #A5C03C; margin: 0 0 4px; }
#recipe-data h5 { font-size: 12px; margin: 8px 0 2px; color: #555; }

#recipe-content { overflow: hidden; }

#recipe-ingredients ul {
  font-style: italic;
  list-style-type: none;
  margin: 1em 0 2em 1em;
}
#recipe-ingredients ul li.label { font-weight: bold; font-style: normal; }

.recipe-content-wrap { overflow: hidden; }

/* ── Photo Gallery ───────────────────────────────────────────────────────── */
.gallery-subtitle {
  font-size: .6em;
  font-weight: normal;
  color: #888;
  margin-left: .5em;
}

#svGallery { margin-top: 1.5em; }

#svGallery ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 6px;
}

#svGallery li {
  position: relative;
  overflow: hidden;
  background: #111;
  border-radius: 3px;
  cursor: pointer;
}

#svGallery li a { display: block; line-height: 0; }

#svGallery li img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  transition: transform .35s ease, opacity .35s ease;
}

#svGallery li:hover img {
  transform: scale(1.08);
  opacity: .6;
}

#svGallery li::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Ccircle cx='11' cy='11' r='7' stroke='white' stroke-width='2' fill='none'/%3E%3Cline x1='15.5' y1='15.5' x2='20' y2='20' stroke='white' stroke-width='2'/%3E%3Cline x1='8' y1='11' x2='14' y2='11' stroke='white' stroke-width='2'/%3E%3Cline x1='11' y1='8' x2='11' y2='14' stroke='white' stroke-width='2'/%3E%3C/svg%3E") center / 36px no-repeat;
  opacity: 0;
  transition: opacity .25s ease;
  pointer-events: none;
}

#svGallery li:hover::after { opacity: 1; }

/* ── Lightbox ────────────────────────────────────────────────────────────── */
#gallery-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  align-items: center;
  justify-content: center;
}
#gallery-modal.active { display: flex; }

.gl-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .92);
  cursor: zoom-out;
}

.gl-stage {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 88vw;
  max-height: 90vh;
}

.gl-img {
  display: block;
  max-width: 80vw;
  max-height: 80vh;
  object-fit: contain;
  border: 3px solid rgba(255,255,255,.15);
  border-radius: 3px;
  box-shadow: 0 8px 60px rgba(0,0,0,.9);
  opacity: 0;
  transition: opacity .25s ease;
}
.gl-img.loaded { opacity: 1; }

.gl-caption {
  margin-top: 12px;
  color: rgba(255,255,255,.65);
  font-size: 13px;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.gl-close,
.gl-prev,
.gl-next {
  position: fixed;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  font-size: 3rem;
  line-height: 1;
  opacity: .5;
  transition: opacity .2s, transform .2s;
  padding: 8px 16px;
  z-index: 2;
  user-select: none;
}
.gl-close:hover,
.gl-prev:hover,
.gl-next:hover { opacity: 1; }

.gl-close { top: 16px; right: 20px; font-size: 2.4rem; }
.gl-prev  { left: 12px;  top: 50%; transform: translateY(-50%); }
.gl-next  { right: 12px; top: 50%; transform: translateY(-50%); }
.gl-prev:hover { transform: translateY(-50%) translateX(-3px); }
.gl-next:hover { transform: translateY(-50%) translateX(3px); }

/* ── Utilities ───────────────────────────────────────────────────────────── */
.clearfix::after { content: ''; display: table; clear: both; }
p.releaseDate { margin: -5px 0 10px; }
