/*
Theme Name: Masala Dabba
Theme URI: https://masaladabba.ru/
Author: Smyga
Author URI: https://masaladabba.ru/
Description: Кастомная тема для блога о специях, рецептах, культурах и вдохновении. Аутентичный дизайн, адаптивная вёрстка, лёгкий аромат кардамона :)
Version: 1.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: masala-dabba
Tags: spices, blog, minimal, responsive, culinary
*/

/* === Базовые стили === */
html {
  box-sizing: border-box;
}

*, *:before, *:after {
  box-sizing: inherit;
}

body {
  font-family: 'Lora', serif;
  background: #f9f7f4 url('/wp-content/themes/masaladabba/assets/bg2.webp') repeat;
  background-size: 300px auto;
  color: #222;
  line-height: 1.6;
}

a {
  color: #734c2f;
}

img.responsive-img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* === Контейнеры и сетка === */
.container {
  max-width: 1100px;
  margin: 10px auto;
  padding: 0 20px;
}

.content-sidebar-wrapper {
  display: flex;
  gap: 30px;
  align-items: flex-start;
}

.content-sidebar-wrapper.no-sidebar {
  display: block; /* отключаем flex/grid, если использовалось */
  max-width: 100%;
}
.no-sidebar .main-content-grey {
  width: 100%;
  max-width: 1100px;
  margin: 30px auto;
  padding: 2rem 1rem;
  background-image: url('/wp-content/themes/masaladabba/assets/crossword.png');
  border-radius:6px;
}

.no-sidebar .main-content {
  width: 100%;
  max-width: 1100px;
  margin: 30px auto;
  padding: 2rem 1rem;
}

.main-content {
  flex: 1 1 0;
  max-width: 700px;
  background: #fff;
  padding: 30px;
  box-shadow: 0 0 10px rgb(0 0 0 / 0.05);
  border-radius: 6px;
}

.sidebar {
  width: 300px;
  background: #f9f9f9;
  padding: 20px 12px 10px 12px;
  box-shadow: 0 0 10px rgb(0 0 0 / 0.03);
  border-radius: 6px;
  font-style: italic;
}

.sidebar-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 16px;
  margin-top: 10px;
}

.sidebar-cat-card {
  display: block;
  font-size: 1.2em;
  background: #fff;
  padding: 10px 12px;
  border-radius: 6px;
  text-decoration: none;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  transition: all 0.2s ease;
  font-weight: 500;
  text-align: center;
}

.sidebar-cat-card:hover {
  background-color: #f9f7f4;
  color: #000;
  transform: translateY(-3px);
  box-shadow: 0 9px 28px rgb(178 62 62 / 0.25);
}

/* === Шапка === */
header, .site-header {
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 1000;
  box-shadow: 0 1px 5px rgba(0,0,0,0.05);
}

.site-header {
  border-bottom: 1px solid #eee;
  box-shadow: 0 2px 4px rgba(0,0,0,0.03);
  padding: 15px 0;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.branding {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo {
  font-size: 1.6rem;
  font-weight: bold;
  color: #222;
  text-decoration: none;
  filter: drop-shadow(1px 1px 3px rgba(0, 0, 0, 0.1));
}

.logo img {
  max-height: 200px;
}

.info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.site-title {
  font-size: 1.5rem;
  font-weight: bold;
  color: #6F4E37;
  font-style: italic;
  letter-spacing: 0.3px;
  opacity: 0.9;
}

.site-description {
  font-size: 1rem;
  color: #666;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(111, 78, 55, 0.2);
  line-height: 1.5;
  opacity: 0.8;
}

/* === Навигация === */
.main-nav .menu {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
}

.main-nav .menu li a {
  text-decoration: none;
  color: #444;
  font-size: 1rem;
  transition: color 0.2s ease;
}

.main-nav .menu li a:hover {
  color: #734c2f;
}

/* === Поиск === */
.search-inline-wrapper {
  display: flex;
  align-items: center;
  position: relative;
}

.search-inline-form {
  display: flex;
  align-items: center;
  overflow: hidden;
  border: 1px solid #ccc;
  border-radius: 30px;
  transition: width 0.4s ease, background 0.3s ease;
  width: 60px;
  background: white;
}

.search-inline-form.open {
  width: 220px;
  background: white;
}

.search-inline-input {
  border: none;
  outline: none;
  padding: 6px 10px;
  font-size: 14px;
  flex: 1;
  opacity: 0;
  width: 0;
  transition: opacity 0.3s ease, width 0.3s ease;
}

.search-inline-form.open .search-inline-input {
  opacity: 1;
  width: 100%;
}

.search-inline-submit {
  background: none;
  border: none;
  font-size: 18px;
  padding: 6px 10px;
  cursor: pointer;
  color: #333;
}

.search-sidebar {
  position: fixed;
  top: 0;
  right: -100%;
  width: 300px;
  height: 100%;
  background: #fff;
  box-shadow: -4px 0 12px rgba(0,0,0,0.2);
  padding: 20px;
  z-index: 1000;
  transition: right 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.search-sidebar.open {
  right: 0;
}

.search-sidebar .close-btn {
  align-self: flex-end;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #333;
}

.search-sidebar .search-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.search-sidebar .search-field {
  padding: 10px;
  font-size: 16px;
  border-radius: 6px;
  border: 1px solid #ccc;
}

.search-sidebar .search-submit {
  background: #f28a2e;
  color: white;
  border: none;
  padding: 10px;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
}

.search-sidebar .search-submit:hover {
  background: #d46e12;
}

/* === Контент === */
.post-title,
.archive-title {
  margin-bottom: 20px;
  font-size: 2rem;
  color: #222;
  border-bottom: 1px solid rgba(58, 46, 29, 0.1);
  padding-bottom: 10px;
}

.post-content h2, .h2, h2 {
  font-size: 1.6rem;
  color: #6F4E37;
  font-weight: 500;
  margin: 10px 0 25px 0;
  border-bottom: 1px dashed #E8C8A9;
  padding-bottom:10px;
}
.post-content h4, .h4, h4 {
  font-size: 1.3rem;
  color: #6F4E37;
  font-weight: 500;
  margin: 10px 0 25px 0;
  padding-bottom:10px;
}

.article h3, .h3, h3 {
  font-size: 1.4rem;
  font-weight: 500;
  color: #6F4E37;
  margin: 10px 0 25px 0;
}
.mustard-type h3::before{
    content: "» ";
    color: inherit;
    margin-right: 4px;
  }
.article h4, .h4, h4 {
  font-size: 1rem;
  font-weight: 500;
  color: #6F4E37;
  margin: 10px 0 25px 0;
}

.post-content p {
  margin-bottom: 16px;
  font-size: 1.1rem;
  line-height: 1.5;
  color: #2A2A2A;
}

.archive-item-title {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.archive-item-excerpt {
  font-size: 1.1rem;
  line-height: 1.5;
}

.archive-item {
  margin-bottom: 25px;
}

.post-thumbnail {
  margin-bottom: 20px;
}

.post-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
/* Изображения в статьях */
img.responsive-img {
  display: block;
  margin: 1.5rem auto;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  transition: transform 0.3s;
}
img.responsive-img:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

/* Заголовок растягивается, но не давит лайк */
.post-header .post-title {
  flex: 1;
  margin: 0;
  font-size: 2rem;
  line-height: 1.3;
}
/* Таблица из статьи */
.spice-comparison {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
  }

  .spice-card {
    border: 1px solid #ccc;
    border-radius: 12px;
    padding: 1rem;
    background-color: #fffdf5;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
  }

  .spice-card h3 {
    margin-top: 0;
    font-size: 1.2rem;
    color: #4a2e00;
  }

  .spice-card p {
    margin: 0.25rem 0;
    font-size: 0.95rem;
  }
/* Кнопка лайка — вертикально */
.post-like .like-button {
  background: none;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  color: #e63946;
  transition: transform 0.2s ease;
  padding: 0;
  min-width: 40px;
}

.post-like .like-button:hover {
  transform: scale(1.1);
}

.post-like .like-count {
  font-size: 0.8rem;
  font-weight: bold;
  color: #333;
}

/* Адаптация для мобильных */
@media (max-width: 600px) {
  .post-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .post-like .like-button {
    font-size: 2rem;
  }
}
/* === Хлебные крошки === */
.breadcrumb {
  line-height: 1.6;
}

.breadcrumb a {
  text-decoration: none;
  transition: color 0.2s ease;
}

.breadcrumb a:hover {
  color: #b66a16;
  text-decoration: underline;
}

.breadcrumb .breadcrumb_last {
  font-weight: 400;
}

.breadcrumb span span::after {
  margin: 0 0.5em;
  color: #c49c63;
}

.breadcrumb span span:last-child::after {
  content: "";
  margin: 0;
}


/* === Shorts === */
.term-description{
  border-bottom: 1px dashed #E8C8A9;
  margin-bottom: 30px;
}
.masala-alpha-list {
  list-style: none;
  padding-left: 0;
  columns: 2;
  padding-bottom: 20px;
  border-bottom: 1px dashed #E8C8A9;
}
.masala-alpha-list li {
  margin-bottom: 5px;
}
.masala-alpha-list a {
  color: #734c2f;
  text-decoration: none;
  font-size: 1.3em;
  font-style: italic;
}
.masala-alpha-list a:hover {
  text-decoration: underline;
}

/* === Виджеты === */
.widget {
  margin-bottom: 30px;
}

.widget-title {
  font-size: 1.2rem;
  margin-bottom: 15px;
  color: #222;
}

/* === Комментарии === */
.comments-area {
  margin-top: 60px;
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.comments-title {
  font-size: 1.6rem;
  margin-bottom: 30px;
  color: #6F4E37;
  border-bottom: 1px dashed rgba(111, 78, 55, 0.2);
  padding-bottom: 10px;
}

.comment-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.comment {
  margin-bottom: 30px;
  border-bottom: 1px dashed #eee;
  padding-bottom: 20px;
}

.comment-body {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.comment-author img {
  border-radius: 50%;
  width: 60px;
  height: 60px;
  object-fit: cover;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.comment-meta {
  margin-bottom: 10px;
}

.comment-author {
  font-weight: 600;
  color: #B54E28;
  font-size: 1.1rem;
}

.comment-time {
  font-size: 0.9rem;
  color: #999;
}

.comment-content {
  font-size: 1rem;
  color: #333;
  line-height: 1.6;
}

.comment-reply-link {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.9rem;
  color: #734c2f;
  text-decoration: none;
  transition: color 0.2s ease;
}

.comment-reply-link:hover {
  color: #000;
}

.comment-respond {
  margin-top: 50px;
  background: #FAF7F4;
  border: 1px solid #F0D9C5;
  border-radius: 12px;
  padding: 30px;
}

.comment-reply-title {
  font-size: 1.5rem;
  color: #6F4E37;
  margin-bottom: 20px;
  border-bottom: 1px dashed rgba(111, 78, 55, 0.2);
  padding-bottom: 10px;
}

.comment-form label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
  color: #555;
}

.comment-form input,
.comment-form textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 20px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fff;
  font-family: 'Lora', serif;
  font-size: 1rem;
}

.comment-form textarea {
  min-height: 150px;
  resize: vertical;
}

.comment-form input[type="submit"] {
  background: #B54E28;
  color: #fff;
  border: none;
  padding: 12px 24px;
  font-size: 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.comment-form input[type="submit"]:hover {
  background: #8c391d;
}
/* === Блок сравнения  === */
.mustard-types-comparison {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 20px;
}

.mustard-type {
  flex: 1 1 600px;
  padding: 16px;
  background: #fffdf5;
  border: 1px solid #ddd;
  border-radius: 8px;
}
/* === Блок Астропрогноз  === */
.page-header-flex {
    display: flex;
    align-items: center;
    gap: 20px; /* расстояние между миниатюрой и заголовком */
    margin-bottom: 20px;
}

.page-thumbnail img {
    max-width: 150px;
    height: auto;
    border-radius: 8px; /* по желанию — скругление */
}

.page-title {
    font-size: 2em;
    margin: 0;
}

/* 📱 Мобильная адаптация */
@media (max-width: 600px) {
    .page-header-flex {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .page-thumbnail img {
        max-width: 100%;
    }

    .page-title {
        font-size: 1.6em;
        margin-top: 10px;
    }
}
/* === Астрологический круг  === */
.zodiac-wrapper {
  max-width: 100%;
  /*margin: 60px auto;*/
}
.zodiac-asset{
	background-image: url('/wp-content/themes/masaladabba/assets/sun.webp');
	/*background-size: cover;*/
	background-position: 60% 50%;
	height:450px;
}

.zodiac-circle {
  position: relative;
  width: 400px;
  height: 400px;
  margin: 0 auto;
  border-radius: 50%;
  overflow: visible; /* Добавлено — важно! */
}

.zodiac-sign {
  position: absolute;
  top: 40%;
  left: 40%;
  transform: rotate(calc(30deg * var(--i))) translate(160px) rotate(calc(-30deg * var(--i)));
  transform-origin: center;
  z-index: 1; /* базовый уровень */
}

.zodiac-sign:hover {
  z-index: 10; /* на передний план при наведении */
}

.zodiac-sign img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  transition: transform 0.3s;
  cursor: pointer;
}

.zodiac-sign:hover img {
  transform: scale(1.5);
}

@media (max-width: 500px) {
	.zodiac-wrapper{}
	
	.zodiac-asset{
		background: #fff;
		height:310px;
	}
	
  .zodiac-circle {
    width: 300px;
    height: 300px;
  }

  .zodiac-sign img {
    width: 80px;
    height: 80px;
  }

  .zodiac-sign {
    transform: rotate(calc(30deg * var(--i))) translate(120px) rotate(calc(-30deg * var(--i)));
  }
}


/* === Блок статьи === */
.articles-highlight {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.article-card {
  background: #f9f7f4;
  border-radius: 12px;
  box-shadow: 0 3px 12px rgba(178, 62, 62, 0.1);
  overflow: hidden;
  transition: transform 0.25s ease;
}

.article-card:hover {
  transform: translateY(-6px);
}

.article-content {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding: 20px;
  text-decoration: none;
  color: inherit;
}

.article-content img {
  width: 250px;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
}

.article-text h3 {
  margin: 0 0 12px;
  font-size: 1.4rem;
  color: #6F4E37;
}

.article-text p {
  margin: 0;
  font-size: 1rem;
  color: #6b4a49;
  line-height: 1.5;
}

@media (max-width: 768px) {
  .article-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .article-content img {
    width: 100%;
    max-width: 400px;
  }

  .article-text h3 {
    font-size: 1.2rem;
  }
}
/* === Блок статьи в разеделе === */
.articles-cat-highlight {
  display: flex;
  flex-direction: column;
  gap: 10px; margin-bottom: 20px;
}

.article-cat-card {
  background: #f9f7f4;
  border-radius: 12px;
  box-shadow: 0 3px 12px rgba(178, 62, 62, 0.1);
  overflow: hidden;
  transition: transform 0.25s ease;
}

.article-cat-card:hover {
  transform: translateY(-6px);
}

.article-cat-content {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding: 20px;
  text-decoration: none;
  color: inherit;
}

.article-cat-content img {
  width: 200px;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
}

.article-cat-card h3 {
  margin: 10px 20px 0;
  font-size: 1.4rem;
  color: #6F4E37;
}
.article-cat-card a{text-decoration:none;}
.article-cat-text p {
  margin: 0;
  font-size: 1rem;
  color: #6b4a49;
  line-height: 1.5;
}

.sidebar-cat-highlight {
  display: flex;
  flex-direction: column;
  gap: 10px; margin-bottom: 20px;
}

.sidebar-cat-card {
  border-radius: 12px;
  box-shadow: 0 3px 12px rgba(178, 62, 62, 0.1);
  overflow: hidden;
  transition: transform 0.25s ease;
}

.sidebar-cat-card:hover {
  transform: translateY(-6px);
}

.sidebar-cat-content {
  display: flex;
  align-items: flex-start;
  padding: 10px;
  text-decoration: none;
  color: inherit;
}

.sidebar-cat-content img {
  width: 230px;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
}

.sidebar-cat-card h4 {
  font-size: 1rem;
  color: #6F4E37;
  margin: 10px 0 10px;
}
.sidebar-cat-card a{text-decoration:none;}
.sidebar-cat-text p {
  margin: 0;
  font-size: 1rem;
  color: #6b4a49;
  line-height: 1.5;
}

@media (max-width: 768px) {
  .article-cat-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .article-cat-content img {
    width: 100%;
    max-width: 400px;
  }

  .article-cat-text h3 {
    font-size: 1.2rem;
  }
}

/* === Блок разделы === */
.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  text-align: center;
}

.category-link {
  display: block; font-size: 1.2em; font-style: italic;
  padding: 14px;
  background: #f9f9f9;
  border-radius: 10px;
  box-shadow: 0 3px 8px rgba(178, 62, 62, 0.1);
  color: #6F4E37;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.3s ease, transform 0.2s ease;
}

.category-link:hover {
  background: #f9f7f4;
  transform: translateY(-3px);
  box-shadow: 0 9px 28px rgb(178 62 62 / 0.25);
}

@media (max-width: 1024px) {
  .category-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .category-grid {
    grid-template-columns: 1fr;
  }
}



/* === Блок гороскопы === */
#spice-horoscopes {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 15px;
  color: #4b2e2e;
  background: #f9f7f4; /* светлый тёплый фон */
  border-radius: 12px;
  box-shadow: 0 6px 20px rgb(178 62 62 / 0.1);
  text-align: center;
}

#spice-horoscopes h2 {
  color: #6F4E37; /* фирменный терракотовый */
}
#spice-horoscopes a {text-decoration: none;}
#spice-horoscopes p {
  margin-bottom: 10px;
  color: #6F4E37;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}

.horoscope-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px 22px;
}

.sign-card {
  background-image: url('/wp-content/themes/masaladabba/assets/crossword.png');
  border-radius: 14px;
  padding: 22px 18px;
  box-shadow: 0 3px 8px rgb(178 62 62 / 0.15);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.sign-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 9px 28px rgb(178 62 62 / 0.25);
}

.sign-icon {
  font-size: 3.7rem;
  color: #b23e3e;
  margin-bottom: 14px;
  user-select: none;
  font-weight: 900;
  letter-spacing: 0.03em;
}

.sign-card h3 {
  font-weight: 600;
  margin-bottom: 10px;
  color: #6F4E37;
}

.sign-card-footer {
  margin-top: auto; /* выталкивает кнопку вниз */
}

.sign-card-inner {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.sign-card p {
  font-size: 1rem;
  color: #6b4a49;
  line-height: 1.4;
	flex-grow: 1;
  min-height: 70px;
  margin-bottom: 0; /* убираем лишние отступы */
}

.btn {
  display: inline-block;
  margin-top: 16px;
  padding: 9px 22px;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 8px;
  background: #6F4E37;
  color: #fff;
  text-decoration: none;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.btn:hover {
  background: #6F4E37; color: #fff;
}

.btn-primary.all-signs {
  margin-top: 20px;
  padding: 14px 42px;
  font-size: 1.15rem;
  font-weight: 800;
  border-radius: 8px;
  background: #6F4E37;
  border-color: #6F4E37;
}

.btn-primary.all-signs:hover {
  background: #6F4E37;
}

/* Адаптив */
@media (max-width: 1024px) {
  .horoscope-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .horoscope-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .horoscope-grid {
    grid-template-columns: 1fr;
  }
}



/* === Рецепты === */
.recipe-block {
  font-family: 'Lora', serif;
  background-color: #f9f9f9;
  border: 1px solid #F0D9C5;
  border-radius: 12px;
  padding: 25px;
  margin: 30px 0;
  box-shadow: 0 4px 15px rgba(210, 150, 100, 0.08);
  position: relative;
  overflow: hidden;
}

.recipe-block::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 60px;
  height: 60px;
  background-image: url('spice-icon.svg');
  opacity: 0.05;
  background-repeat: no-repeat;
  background-position: center;
}

.recipe-block h3 {
  color: #B54E28;
  font-size: 22px;
  font-weight: 600;
  font-style: italic;
  margin: 20px 0 15px;
  padding-bottom: 8px;
  border-bottom: 1px dashed #E8C8A9;
  position: relative;
}

.recipe-ingredients {
  list-style-type: none;
  padding-left: 5px;
  margin: 20px 0;
}

.recipe-ingredients li {
  padding: 6px 0 6px 30px;
  position: relative;
  line-height: 1.5;
}

.recipe-ingredients li::before {
  content: "•";
  color: #D4A373;
  font-size: 24px;
  position: absolute;
  left: 5px;
  top: -2px;
}

.recipe-steps {
  list-style-type: none;
  padding-left: 5px;
  counter-reset: step-counter;
  margin: 25px 0;
}

.recipe-steps li {
  counter-increment: step-counter;
  padding: 10px 0 10px 40px;
  position: relative;
  line-height: 1.6;
}

.recipe-steps li::before {
  content: counter(step-counter);
  color: #fff;
  background-color: #D4A373;
  font-size: 14px;
  font-weight: bold;
  position: absolute;
  left: 5px;
  top: 8px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.recipe-note {
  font-style: italic;
  color: #7A6A5F;
  text-align: center;
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px dashed #E8C8A9;
}

/* === Примечания === */
.article-note {
  border-left: 5px solid;
  padding: 10px;
  margin: 0 0 20px 0;
  border-radius: 0 12px 12px 0;
  line-height: 1.7;
  box-shadow: 0 3px 10px rgba(0,0,0,0.04);
  position: relative;
  overflow: hidden;
  font-size: 17px;
  background-image: url('/wp-content/themes/masaladabba/assets/crossword.png');
  opacity: 0.98;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1);
}

.article-note:hover {
  transform: translateX(5px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.article-note::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: -1px;
  background: linear-gradient(to right, rgba(255,255,255,0.2), rgba(255,255,255,0));
  pointer-events: none;
}

.note-title {
  font-weight: 600;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.4rem;
}

.note-title::before {
  font-style: normal;
  filter: drop-shadow(1px 1px 2px rgba(0,0,0,0.1));
}

.note-fact {
  border-color: #B54E28;
  background-color: #FFF4F1;
  box-shadow: 0 4px 12px rgba(181, 78, 40, 0.1);
}

.note-fact .note-title::before { content: "🌶️"; }

.note-fact::after {
  content: "";
  position: absolute;
  bottom: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  background-image: url('spice-pattern.png');
  opacity: 0.1;
}

.note-info {
  border-color: #7A6A5F;
  background-color: #F8F5F2;
}

.note-info .note-title::before { content: "📜"; }

.note-tip {
  border-color: #6F9932;
  background-color: #F6FAEF;
}

.note-tip .note-title::before { content: "💡"; }

.note-qa {
  border-color: #D4A373;
  background-color: #FFF9F0;
}

.note-qa .note-title::before { content: "❓"; }

.note-discuss {
  border-color: #9E7C5E;
  background-color: #FAF7F4;
}

.note-discuss .note-title::before { content: "✍️"; }

/* === Сравнение корицы === */
.cinnamon-compare {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1px;
  background-color: #ddd;
  font-size: 0.95rem;
  margin: 20px 0;
}

.cinnamon-compare div {
  padding: 10px;
  background-color: #fff;
}

.cinnamon-compare .header {
  font-weight: bold;
  background-color: #f9f9f9;
  text-align: center;
}

/* === Подвал === */
.site-footer {
  background-color: #f9f7f4;
  border-top: 1px solid #eee;
  padding: 30px 0;
  text-align: center;
  font-size: 0.95rem;
  color: #555;
  margin-top: 60px;
}

.site-footer p {
  margin: 0;
}
/* === Пагинация === */

.pagination {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 2.5em 0;
}

.pagination a,
.pagination span {
  padding: 8px 14px;
  border: 1px solid #d3c9b0;
  border-radius: 6px;
  background-color: #faf5ea;
  color: #6b5e3c;
  text-decoration: none;
  box-shadow: 0 2px 4px rgba(187,176,148,0.3);
  transition: background-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.pagination a:hover {
  background-color: #d3c9b0;
  color: #3e3520;
  box-shadow: 0 4px 8px rgba(187,176,148,0.5);
}

.pagination .current {
  background-color: #734c2f;
  color: #faf5ea;
  border-color: #6b5e3c;
  font-weight: 600;
  cursor: default;
  box-shadow: 0 4px 8px rgba(107,94,60,0.6);
}


/* === Вспомогательные элементы === */
.back-to-top {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.9rem;
  color: #734c2f;
  text-decoration: none;
  transition: color 0.2s ease;
}

.back-to-top:hover {
  color: #000;
}

/* === Адаптация === */
@media (max-width: 768px) {
  /* Базовые стили */
  .logo{display:none;}
  .search-inline-wrapper{display:none;}
  
  /* Шапка */
  .site-header {
    position: static;
    padding: 6px 0;
  }
  
  .header-inner {
    padding: 0 12px;
  }
  
  .logo img {
    height: 28px;
    width: auto;
  }
  
  .branding {
    gap: 8px;
  }
  
  .site-title {
    font-size: 14px;
  }
  
  .site-description {
    font-size: 12px;
  }
  
  /* Контент */
  .content-sidebar-wrapper {
    flex-direction: column;
  }
  
  .main-content {
    max-width: 100%;
    padding: 20px;
  }
  
  .sidebar {
    width: 100%;
    margin-top: 40px;
  }
  
  .container {
    padding: 0 15px;
    margin: 20px auto;
  }
  
  /* Комментарии */
  .comments-area,
  .comment-respond {
    padding: 20px 15px;
    margin: 20px -10px;
  }
  
  .comment-author img {
    width: 50px;
    height: 50px;
  }
  
  /* Рецепты */
  .recipe-block {
    padding: 20px 15px;
    margin: 20px -15px;
    border-radius: 0;
  }
  
  /* Сравнение корицы */
  .cinnamon-compare {
    grid-template-columns: 1fr;
  }
  
  .cinnamon-compare .header {
    background-color: #eee;
    text-align: left;
  }
  
  /* Скрытие элементов */
  .desktop-only {
    display: none;
  }
  
  .mobile-only {
    display: inline-block;
  }
  
  /* Мобильное меню */
  .mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100%;
    background: #fff;
    z-index: 10000;
    transition: right 0.3s ease;
    padding: 20px;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
  }
  
  .mobile-menu.open {
    right: 0;
  }
  
  .mobile-menu .menu {
    list-style: none;
    padding: 0;
    margin: 0;
  }
  
  .mobile-menu .menu li {
    margin-bottom: 1rem;
  }
}

@media (max-width: 600px) {
  .search-sidebar {
    width: 100%;
  }
}