@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@500;700&family=Poppins:wght@400;500&display=swap');

:root {
  --bg-start: #121212;
  --bg-end: #1c1c1c;
  --primary: #e30613; /* kolor akcentu */
  --price-color: #ff5a5a; /* delikatniejszy niż intensywna czerwień */
  --text: #f5f5f5;
  --gray: #1a1a1a;
  --border: #2c2c2c;
  --desc: #cccccc;
}

html, body {
  height: 100%;
  margin: 0;
  font-family: 'Poppins', sans-serif;
  color: var(--text);
  background: linear-gradient(135deg, #181717, #323131);
  background-size: cover;
  background-attachment: fixed;
}

/* HEADER */
header {
  position: sticky; /* przyklejony nagłówek */
  top: 0;
  z-index: 100;
  padding: 1rem;
  text-align: center;
  background: rgba(18, 18, 18, 0.95);
  box-shadow: 0 4px 16px rgba(0,0,0,0.5);
}

.logo img {
  max-width: 180px;
  height: auto;
}

/* MENU */
.menu {
  max-width: 900px;
  margin: 2rem auto;
  padding: 0 1rem;
}

/* ACCORDION */
.accordion-item {
  margin-bottom: 1rem;
  border-radius: 6px;
  background: var(--gray);
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
  overflow: hidden;
}

.accordion-header {
  width: 100%;
  text-align: left;
  padding: 1rem;
  font-size: 1.1rem;
  font-weight: 700;
  font-family: 'Montserrat', sans-serif;
  background: rgba(20,20,20,0.95);
  border-top: 2px solid var(--primary);
  border-bottom: 1px solid var(--border);
  color: var(--text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.3s ease, color 0.3s ease;
}
  
.accordion-header:hover,
.accordion-header:focus {
  background: rgba(227,6,19,0.15);
  color: var(--primary);
  outline: none;
}

.arrow {
  display: inline-block;
  transition: transform 0.5s ease;
  font-size: 1.2rem;
}
.accordion-item.active .arrow {
  transform: rotate(180deg);
}

/* CONTENT */
.accordion-content {
  height: 0;
  overflow: hidden;
  transition: height 0.4s ease;
  padding: 0 1rem;
  box-sizing: border-box;
}
.accordion-item.active .accordion-content {
  padding: 0.5rem 1rem 1.5rem;
  background: rgba(227,6,19,0.1);
  opacity: 1;
}

/* MENU ITEMS */
.menu-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
  border-radius: 4px;
}

.menu-item .price {
  font-weight: bold;
  color: var(--price-color);
  margin-left: 1rem;
  white-space: nowrap;  /* cena nie zawija się */
}

.menu-item .desc {
  flex: 1 1 auto;   /* zajmuje całą lewą część */
  min-width: 0;     /* ważne dla prawidłowego zawijania tekstu */
}

/* FLAVOR (dominujący smak) */
.flavor {
  font-style: italic;
  font-weight: 600;
  background: linear-gradient(90deg, #ff6b6b, #ffb56b);
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  margin-top: 0.2rem;
}

/* OPIS POD NAZWĄ */
.name-desc {
  display: flex;
  flex-direction: column; /* układa nazwę i opis pionowo */
}

.name-desc .name {
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.25rem; /* mały odstęp między nazwą a opisem */
}

.name-desc .desc {
  color: var(--desc);
  font-size: 0.9rem;
  line-height: 1.3;
}

/* HOVER */
.menu-item:hover {
  background: rgba(227,6,19,0.15);
}

/* RESPONSYWNOŚĆ */
@media (max-width: 600px) {
  .menu-item {
    flex-direction: column;
    align-items: flex-start;
  }
  .menu-item .price {
    margin-left: 0;
    margin-top: 0.3rem;
  }
}

/* ICON */
.icon {
  width: 24px;
  height: 24px;
  vertical-align: middle;
  margin-right: 8px;
}