/*
Theme Name: Gozbite na Nana
Template: generatepress
Version: 1.2.2
Description: Restored visual baseline for Gozbite na Nana.
*/

:root {
  --nana-burgundy: #8b2725;
  --nana-dark-burgundy: #421515;
  --nana-gold: rgba(241, 188, 105, .96);
  --nana-paper: #f0f0f0;
  --nana-ink: #222;
  --nana-red: #b7190a;
}

body {
  color: var(--nana-ink);
  background: var(--nana-burgundy);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.5;
}

.grid-container { max-width: 1130px; }

a { color: var(--nana-red); }
a:hover, a:focus { color: var(--nana-ink); }

.site-header { margin-bottom: 0; background: var(--nana-dark-burgundy); }

.site-header .inside-header {
  position: relative;
  display: grid;
  grid-template-columns: 920px 266px;
  align-items: center;
  gap: 17px;
  max-width: 1130px;
  min-height: 461px;
  padding: 20px 40px;
  justify-content: start;
  text-align: left;
}

.site-header .inside-header::before {
  content: "";
  display: block;
  grid-column: 1;
  grid-row: 1;
  width: 920px;
  height: 421px;
  background: url("assets/header-apple-rose.png") center / cover no-repeat;
}

.site-header .site-branding { grid-column: 2; grid-row: 1; width: 266px; min-width: 266px; height: 53px; text-align: left; }
.site-branding::after {
  content: "Готвенето е талант, но и история";
  display: block;
  color: #f0f0f0;
  font-size: 15px;
  line-height: 1.5;
}
.main-title { margin: 0; font-size: 25px; line-height: 1.2; font-weight: 700; }
.main-title a, .main-title a:hover { color: #f7f8f9; }
.site-description { display: none !important; }

#site-navigation { position: static; width: 100%; min-height: 60px; background: var(--nana-paper); }
#site-navigation .inside-navigation { max-width: 1130px; min-height: 60px; margin: 0 auto; padding: 0 20px; }
.main-navigation .main-nav ul li a { padding: 0 20px; color: var(--nana-ink); font-size: 15px; line-height: 60px; }
.main-navigation .main-nav ul li:hover > a,
.main-navigation .main-nav ul li:focus > a { color: #575760; background: #dbb8b8; }
.main-navigation .main-nav ul li[class*="current-menu-"] > a { color: #b2b2be; background: #767684; }

.site-content { gap: 0; max-width: 1130px; padding: 0; }
.content-area { width: 70%; }
.widget-area { width: 30%; }
.site-main { margin-right: 20px; }

.separate-containers .inside-article { padding: 40px; background: var(--nana-gold); }
.entry-title { font-size: 36px; line-height: 1.25; font-weight: 400; }
.entry-content { margin-top: 34px; }
.entry-content p { margin-bottom: 1.5em; }
.entry-content img { width: 100%; height: auto; }

.separate-containers .widget { margin-bottom: 20px; padding: 40px; background: var(--nana-paper); }
.widget-title { font-size: 23px; text-align: center; }
.wp-block-search__label { display: block; margin-bottom: 0; font-size: 17px; }
.wp-block-search__button { color: #fff; background: #55555e; }
.wp-calendar-table { width: 100%; text-align: center; }
.wp-calendar-table caption { margin-bottom: 8px; font-size: 17px; }
.wp-calendar-table th, .wp-calendar-table td { padding: .25em; border: 1px solid #ddd; }
.wp-block-latest-posts { margin: 0; }
.wp-block-latest-posts li { margin-bottom: 10px; }

.nana-counter { text-align: center; }
.nana-counter__title { display: block; margin-bottom: 8px; font-size: 23px; }
.nana-counter__number {
  display: block;
  padding: 12px 16px;
  border: 1px solid #d8d8d8;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,.12);
  font-family: Arial, sans-serif;
  font-size: 42px;
  line-height: 1.25;
}

.site-footer { color: #222; background: #dbcece; }
.site-info { padding: 20px; background: transparent; }
.site-info a { color: #801818; }

@media (max-width: 1200px) {
  .site-header .inside-header { grid-template-columns: minmax(0, 920px) 266px; }
  .site-header .inside-header::before { width: 100%; height: auto; aspect-ratio: 1841 / 843; }
}

@media (max-width: 768px) {
  .site-header .inside-header { display: flex; flex-direction: column; gap: 16px; min-height: 0; padding: 20px 30px; }
  .site-header .inside-header::before { order: 1; width: 100%; height: auto; }
  .site-branding { order: 2; width: 100%; text-align: center; }
  #site-navigation { min-height: auto; }
  #site-navigation .inside-navigation { min-height: auto; padding: 0; }
  .menu-toggle { width: 100%; color: #222; background: var(--nana-paper); }
  .main-navigation .main-nav ul li a { line-height: 50px; }
  .site-content { display: block; padding: 20px; }
  .content-area, .widget-area { width: 100%; }
  .site-main { margin-right: 0; }
  .separate-containers .inside-article, .separate-containers .widget { padding: 30px; }
  .entry-title { font-size: 36px; }
}

/* Warm, softer visual direction. */
:root {
  --nana-burgundy: #8f3f3a;
  --nana-dark-burgundy: #4e2524;
  --nana-gold: #f7e8ce;
  --nana-paper: #fff9f1;
  --nana-ink: #352b28;
  --nana-red: #b9513d;
  --nana-muted: #75645e;
  --nana-shadow: 0 10px 30px rgba(69, 31, 27, .13);
}

body { overflow-x: hidden; background: linear-gradient(180deg, #8f3f3a 0%, #843632 100%); }

.site-header { background: linear-gradient(135deg, #4e2524 0%, #582925 100%); }
.site-header .inside-header::before {
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(20, 7, 7, .24);
}
.wp-custom-logo .site-header .inside-header::before { display: none; }
.wp-custom-logo .site-logo {
  grid-column: 1;
  grid-row: 1;
  width: 920px;
  min-width: 920px;
  max-width: none;
  height: 421px;
}
.wp-custom-logo .site-logo .header-image {
  width: 920px;
  min-width: 920px;
  max-width: none;
  height: 421px;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: 0 12px 32px rgba(20, 7, 7, .24);
}
.site-branding::after { color: #ead9d2; }

#site-navigation {
  border-bottom: 1px solid rgba(78, 37, 36, .1);
  background: rgba(255, 249, 241, .98);
  box-shadow: 0 5px 18px rgba(69, 31, 27, .09);
}
#site-navigation .inside-navigation { min-height: 64px; }
.main-navigation .main-nav ul { gap: 5px; }
.main-navigation .main-nav ul li a {
  margin: 8px 0;
  border-radius: 10px;
  color: var(--nana-ink);
  line-height: 48px;
  transition: color .2s ease, background-color .2s ease;
}
.main-navigation .main-nav ul li:hover > a,
.main-navigation .main-nav ul li:focus > a {
  color: #6f302b;
  background: #f2ddd2;
}
.main-navigation .main-nav ul li[class*="current-menu-"] > a {
  color: #fffaf5;
  background: #b9513d;
}

.site-content {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(280px, 3fr);
  gap: 28px;
  padding-top: 34px;
  padding-bottom: 96px;
}
.site-content .content-area, .site-content .widget-area { width: 100%; }
.site-main { margin-right: 0; }

.separate-containers .inside-article {
  border: 1px solid rgba(122, 78, 54, .08);
  border-radius: 16px;
  background: var(--nana-gold);
  box-shadow: var(--nana-shadow);
}
.separate-containers .page-header {
  margin: 0 0 22px;
  padding: 0 4px 4px;
  border: 0;
  color: #fff8f2;
  background: transparent;
  box-shadow: none;
}
.separate-containers .page-header h1 {
  margin: 0;
  color: #fff8f2;
  font-size: 30px;
  line-height: 1.25;
  font-weight: 600;
}
.archive .inside-article .entry-title,
.blog .inside-article .entry-title,
.search-results .inside-article .entry-title {
  font-size: 30px;
  line-height: 1.3;
}
.entry-title { color: var(--nana-ink); }
.entry-content { color: #453733; }
.entry-content img {
  border-radius: 12px;
  box-shadow: 0 8px 22px rgba(69, 31, 27, .12);
}

.separate-containers .widget {
  border: 1px solid rgba(122, 78, 54, .09);
  border-radius: 14px;
  background: var(--nana-paper);
  box-shadow: 0 8px 24px rgba(69, 31, 27, .11);
}
.widget-area .widget { padding: 26px; }
.widget-area { font-size: 15px; line-height: 1.45; }
.wp-block-search__input {
  min-height: 40px;
  padding: 7px 9px;
  border: 1px solid #e4d6cb;
  border-radius: 9px;
  background: #fffdfa;
}
.wp-block-search__button {
  min-height: 40px;
  margin-left: 8px;
  padding: 7px 13px;
  border-radius: 9px;
  background: #6c4842;
}
.wp-block-search__button:hover { background: #b9513d; }
.wp-calendar-table { overflow: hidden; border-radius: 9px; font-size: 13px; line-height: 1.25; }
.wp-block-calendar caption { color: inherit; font-size: 15px; font-weight: 400; }
.wp-calendar-table th, .wp-calendar-table td { padding: 2px; }
.wp-calendar-table th { color: inherit; background: #f1e5db; font-weight: 400; }
.wp-calendar-table td { color: #40464d; background: transparent; font-weight: 400; }
.wp-calendar-table td a {
  color: #c6372a;
  background: transparent;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 2px;
}
.wp-calendar-table td a:hover { color: #8f2723; background: transparent; }
.wp-calendar-table #today {
  color: #40464d;
  background: transparent;
  box-shadow: none;
  font-weight: 400;
}
.wp-block-latest-posts { font-size: 15px; }
.wp-block-latest-posts a { color: #a94334; text-decoration-color: rgba(169, 67, 52, .35); }
.widget-area .widget:has(.nana-counter) { padding: 18px 22px; }
.widget-area .widget_counterecl { padding: 18px 22px; }
.widget_counterecl .widget-title { margin-bottom: 4px; font-size: 16px; }
.widget_counterecl .list-group { margin: 0; }
.widget_counterecl .list-group-item { padding: 5px 8px; border-color: #eaded5; border-radius: 10px; }
.widget_counterecl .counter-ecl-js,
.widget_counterecl .counter-ecl-js h2 { margin: 0; font-size: 26px !important; line-height: 1.25; }
.nana-counter__title { margin-bottom: 4px; font-size: 16px; }
.nana-counter__number {
  border-color: #eaded5;
  border-radius: 10px;
  color: #4e2524;
  padding: 5px 8px;
  font-size: 26px;
  box-shadow: inset 0 1px 0 #fff, 0 5px 14px rgba(69, 31, 27, .08);
}

.site-footer { background: #eadbd5; }
.site-info { padding: 9px 15px; color: var(--nana-muted); font-size: 13px; line-height: 1.3; }
.inside-site-info { min-height: 0; padding: 0; }

@media (max-width: 768px) {
  .site-header .inside-header::before { border-radius: 12px; }
  .wp-custom-logo .site-logo { order: 1; width: 100%; height: auto; }
  .wp-custom-logo .site-logo .header-image { width: 100%; height: auto; border-radius: 12px; }
  .site-content { display: block; padding: 22px 16px 58px; }
  .separate-containers .inside-article { border-radius: 14px; }
  .separate-containers .widget { border-radius: 12px; }
  .widget-area .widget { padding: 24px; }
  .separate-containers .page-header h1 { font-size: 26px; }
  .archive .inside-article .entry-title,
  .blog .inside-article .entry-title,
  .search-results .inside-article .entry-title { font-size: 27px; }
}

/* Keep the original site's custom-logo header stable on phones. */
@media (max-width: 768px) {
  .site-header .site-branding-container {
    display: block !important;
    width: 100% !important;
  }

  .site-header .inside-header {
    display: block !important;
    min-height: 0;
    height: auto;
    padding: 18px 20px;
  }

  .wp-custom-logo .site-logo {
    order: 1;
    display: block;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    float: none !important;
    clear: both !important;
    inline-size: 100% !important;
  }

  .wp-custom-logo .site-logo .header-image {
    display: block;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    border-radius: 12px;
  }

  .site-header .site-branding {
    order: 2;
    width: 100% !important;
    min-width: 0 !important;
    height: auto;
    text-align: center !important;
    margin-top: 12px !important;
    float: none !important;
    clear: both !important;
    inline-size: 100% !important;
  }

  .site-header .main-title {
    font-size: 24px;
    line-height: 1.2;
    white-space: nowrap;
  }

  .site-branding::after {
    margin-top: 3px;
    font-size: 14px;
    line-height: 1.4;
  }

  #site-navigation { clear: both; }
}
