/* Menu Accordion Styles */

/* Menu Header Section */
.menu-header-section {
  position: relative;
  padding: 200px 0 120px;
  background-color: var(--color-one);
  overflow: hidden;
}

.menu-header-section .image-layer {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 1;
}

.menu-header-section .image-layer:before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(17, 34, 32, 0.35) 0%, rgba(17, 34, 32, 0.7) 100%);
  z-index: 1;
}

.menu-header-section .auto-container {
  position: relative;
  z-index: 10;
}

.menu-header-section .content-box {
  position: relative;
  text-align: center;
}

.menu-header-section .title-box {
  position: relative;
}

.menu-header-section h1 {
  position: relative;
  font-family: var(--font-family-Fraunces);
  font-size: 48px;
  font-weight: 600;
  color: var(--main-color);
  margin: 0 0 15px 0;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-align: center;
  font-style: normal;
  text-shadow: 2px 1px 2px black;
  animation: fadeInUp 0.8s ease 0.2s both;
}

.menu-header-section .subtitle {
  position: relative;
  display: inline-block;
  font-family: var(--font-family-Fraunces);
  font-size: 24px;
  font-weight: 400;
  color: cornsilk;
  margin: 0 0 15px 0;
  text-transform: none;
  letter-spacing: 1px;
  text-align: center;
  font-style: normal;
  text-shadow: none;
  animation: fadeInUp 0.8s ease 0.4s both;
}

.menu-header-section .subtitle::before,
.menu-header-section .subtitle::after {
  display: none !important;
}

.menu-header-section .text {
  position: relative;
  font-size: 18px;
  color: var(--color-three);
  line-height: 1.6em;
  margin-top: 20px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  animation: fadeInUp 0.8s ease 0.8s both;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.menu-accordion-section {
  position: relative;
  padding: 80px 0 100px;
  background: var(--color-one);
}

.menu-accordion {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}

/* Accordion Item */
.accordion-item {
  position: relative;
  margin-bottom: 20px;
  background: var(--color-two);
  border: 2px dashed var(--white-color-opacity-four);
  border-radius: 0;
  overflow: hidden;
  transition: all 0.3s ease;
  border-top-right-radius: 30px;
  border-top-left-radius: 30px;
}

.accordion-item:last-child {
  margin-bottom: 0;
}

.accordion-item:hover {
  border-color: var(--color-four);
}

/* Accordion Header */
.accordion-header {
  position: relative;
  padding: 40px 40px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--color-two);
  transition: all 0.3s ease;
  user-select: none;
  background-size: cover;
  background-position: bottom;
  background-repeat: no-repeat;
  min-height: 150px;
}

/* Overlay за по-добра четимост на текста */
.accordion-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, rgba(17, 17, 17, 0.75) 0%, rgba(17, 17, 17, 0.4) 50%, rgba(17, 17, 17, 0.75) 100%);
  z-index: 0;
  transition: all 0.3s ease;
}

.accordion-header > * {
  position: relative;
  z-index: 1;
}

.accordion-header:hover::before {
  background: linear-gradient(90deg, rgba(17, 17, 17, 0.70) 0%, rgba(17, 17, 17, 0.3) 50%, rgba(17, 17, 17, 0.70) 100%);
}

.accordion-item.active .accordion-header {
  border-bottom: 1px solid var(--white-color-opacity-four);
}

.accordion-item.active .accordion-header::before {
  background: linear-gradient(90deg, rgba(230, 177, 95, 0.3) 0%, rgba(17, 17, 17, 0.5) 50%, rgba(230, 177, 95, 0.3) 100%);
}

/* Category Info */
.category-info {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 1;
}

.category-icon {
  display: none;
}

.category-details {
  flex: 1;
}

.category-name {
    font-family: var(--font-family-Fraunces);
    font-size: 2.6rem;
    font-weight: 600;
    color: rgba(248, 248, 248, 0.76);
    margin: 0 0 5px 0;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: inherit;
    font-family: sans-serif;
    font-style: italic;
    text-shadow: 2px 1px 2px black;
}

.category-description {
  font-size: 14px;
  color: var(--text-color);
  margin: 0;
  opacity: 0.8;
}

.category-count {
  font-size: 14px;
  color: var(--main-color);
  font-weight: 600;
  padding: 8px 16px;
  background: rgba(230, 177, 95, 0.1);
  border-radius: 20px;
  white-space: nowrap;
}

/* Accordion Toggle Icon */
.accordion-toggle {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 2px solid var(--main-color);
  border-radius: 50%;
  color: var(--main-color);
  font-size: 20px;
  transition: all 0.3s ease;
  flex-shrink: 0;
  margin-left: 20px;
}

.accordion-item.active .accordion-toggle {
  background: var(--main-color);
  color: var(--color-one);
  transform: rotate(180deg);
}

/* Accordion Content */
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease;
}

.accordion-item.active .accordion-content {
  max-height: 10000px;
}

.accordion-body {
  padding: 30px;
  background-color: var(--color-two);
  background-image: url(../images/background/menu-bg-paper.jpg);
  background-repeat: repeat;
  background-position: top center;
  background-size: cover;
  border-radius: 0 0 8px 8px;
}

/* Menu Items Grid */
.menu-items-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Menu Item Card - стил като dish-block */
.menu-item-card {
  position: relative;
  display: flex;
  gap: 15px;
  padding: 20px;
  margin-bottom: 20px;
  background: transparent;
  border: 1px solid var(--white-color-opacity-four);
  border-radius: 8px;
  transition: all 0.3s ease;
  align-items: flex-start;
}

.menu-item-card:last-child {
  margin-bottom: 0;
}

.menu-item-card:hover {
  border-color: var(--main-color);
  box-shadow: 0 2px 8px rgba(230, 177, 95, 0.2);
}

/* Item Image */
.item-image {
  width: 120px;
  height: 120px;
  flex-shrink: 0;
  border-radius: 0;
  overflow: hidden;
  background: transparent;
}

.item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  display: block;
}

.menu-item-card:hover .item-image img {
  transform: scale(1.05);
}

/* Item Details */
.item-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.item-header {
  flex: 1;
}

.item-name {
  font-family: var(--font-family-Fraunces);
  font-size: 18px;
  font-weight: 700;
  color: var(--white-color);
  margin: 0 0 10px 0;
  line-height: 1.3;
}

.item-description {
  font-size: 13px;
  color: var(--color-three);
  margin: 0;
  line-height: 1.5;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.item-footer {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 8px;
  border-top: 1px dashed var(--white-color-opacity-three);
}

.item-weight {
  font-size: 13px;
  color: var(--main-color);
}

.item-prices {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.item-price-bgn {
  font-size: 15px;
  font-weight: 700;
  color: var(--main-color);
  white-space: nowrap;
}

.item-price-eur {
  font-size: 15px;
  font-weight: 700;
  color: var(--main-color);
  white-space: nowrap;
}

/* Empty State */
.empty-category {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-color);
  opacity: 0.6;
}

/* Responsive */
@media (max-width: 991px) {
  .menu-accordion-section {
    padding: 80px 0;
  }

  .accordion-header {
    padding: 20px;
  }

  .category-name {
    font-size: 2.6rem;
  }

  .category-icon {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }

  .menu-items-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .menu-accordion-section {
    padding: 60px 0;
  }

  .accordion-header {
    padding: 20px 15px;
    flex-wrap: wrap;
    min-height: 100px;
  }

  .accordion-header::before {
    background: linear-gradient(135deg, rgba(17, 17, 17, 0.85) 0%, rgba(17, 17, 17, 0.75) 100%);
  }

  .accordion-header:hover::before {
    background: linear-gradient(135deg, rgba(17, 17, 17, 0.80) 0%, rgba(17, 17, 17, 0.70) 100%);
  }

  .accordion-item.active .accordion-header::before {
    background: linear-gradient(135deg, rgba(230, 177, 95, 0.25) 0%, rgba(17, 17, 17, 0.75) 100%);
  }

  .category-info {
    gap: 15px;
    flex: 1 1 100%;
  }

  .category-name {
    font-size: 1.9rem;
    text-shadow: 2px 1px 2px black;
  }

  .category-description {
    font-size: 13px;
  }

  .category-count {
    font-size: 0.8rem;
    padding: 0px 4px;
  }

  .accordion-toggle {
    width: 35px;
    height: 35px;
    font-size: 18px;
    margin-left: 0;
    margin-top: 10px;
  }

  .accordion-body {
    padding: 20px 15px;
  }

  .menu-item-card {
    flex-direction: row;
    padding: 15px;
    margin-bottom: 15px;
    gap: 12px;
  }

  .item-image {
    width: 100px;
    height: 100px;
  }

  .item-name {
    font-size: 16px;
    margin: 0 0 8px 0;
  }

  .item-description {
    font-size: 12px;
  }

  .item-footer {
    flex-direction: row;
    align-items: center;
    gap: 8px;
    padding-top: 6px;
  }

  .item-weight {
    font-size: 0.8rem;
    font-weight: 600;
    font-style: italic;
  }

  .item-prices {
    gap: 8px;
    margin-left: auto;
  }

  .item-price-bgn {
    font-size: 0.8rem;
    font-weight: 700;
    font-style: italic;
  }

  .item-price-eur {
    font-size: 0.8rem;
    font-weight: 700;
    font-style: italic;
  }

  /* Menu Header Responsive */
  .menu-header-section {
    padding: 150px 0 80px;
  }

  .menu-header-section h1 {
    font-size: 36px;
  }

  .menu-header-section .subtitle {
    font-size: 20px;
  }

  .menu-header-section .text {
    font-size: 16px;
    padding: 0 20px;
  }
}

/* Extra small devices (phones, less than 600px) */
@media only screen and (max-width: 599px) {
  .menu-header-section {
    padding: 80px 0 30px;
    min-height: auto;
    max-height: 20vh;
    display: flex;
    align-items: center;
  }

  .menu-header-section .content-box {
    padding: 0;
  }

  .menu-header-section h1 {
    font-size: 1.2rem;
    margin: 8px 0;
    letter-spacing: 3.5px;
    border-top: 1px dashed;
    border-bottom: 1px dashed;
    border-radius: 7px;
  }

  .menu-header-section .subtitle {
    font-size: 0.95rem;
    letter-spacing: 2px;
  }

  .menu-header-section .text {
    display: none;
  }

  .menu-accordion-section {
    padding: 40px 0 80px;
  }
}

