/* =========================================
   1. ZMIENNE I RESET
   ========================================= */
:root {
  --primary: #D62828;       /* Czerwień Sofra */
  --primary-dark: #b01c1c;
  --black: #1a1a1a;         /* Głęboka czerń */
  --dark-gray: #333333;
  --light-gray: #f4f4f4;
  --white: #ffffff;
  --text-color: #333333;
  --radius: 12px;           /* Zaokrąglenie rogów */
  --shadow: 0 8px 20px rgba(0,0,0,0.08);
  --transition: all 0.3s ease;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Open Sans', sans-serif;
  color: var(--text-color);
  background-color: var(--light-gray);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Typografia nagłówków */
h1, h2, h3, h4, .btn, .nav-links a, .menu-label, .category-title {
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  font-weight: 700;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* =========================================
   2. HEADER & NAWIGACJA
   ========================================= */
.header {
  background: var(--white);
  padding: 10px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

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

/* --- LOGO (BEZ KÓŁKA) --- */
.logo-wrapper {
  display: flex;
  align-items: center;
  width: auto;
  height: auto;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  padding: 5px 0; 
  flex-shrink: 0;
}

.logo-img {
  height: 65px; 
  width: auto;
  object-fit: contain;
}

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

/* Przycisk "Zamów" w nagłówku */
.btn-order-header {
  background-color: var(--primary);
  color: var(--white);
  padding: 8px 20px;
  border-radius: 50px;
  font-family: 'Oswald', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: var(--transition);
}

.btn-order-header:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
}

/* Burger Button */
.burger-btn {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 5px;
  z-index: 101;
}

.bar {
  width: 30px;
  height: 3px;
  background-color: var(--black);
  transition: var(--transition);
}

.burger-btn:hover .bar { background-color: var(--primary); }

/* --- SIDE MENU (Wysuwane) --- */
.side-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 300px;
  height: 100vh;
  background: var(--black);
  color: var(--white);
  z-index: 2000;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1);
  display: flex;
  flex-direction: column;
  padding: 30px;
}

.side-menu.active { transform: translateX(0); }

.menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  border-bottom: 1px solid #333;
  padding-bottom: 15px;
}

.menu-label { color: var(--primary); font-size: 1.2rem; letter-spacing: 2px; }

.close-btn {
  background: none;
  border: none;
  color: var(--white);
  font-size: 2.5rem;
  cursor: pointer;
  line-height: 0.5;
}

.menu-links a {
  display: block;
  font-family: 'Oswald', sans-serif;
  font-size: 1.4rem;
  color: var(--white);
  margin-bottom: 15px;
  transition: var(--transition);
}

.menu-links a:hover, .menu-links a.active {
  color: var(--primary);
  padding-left: 10px;
}

.overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.7); z-index: 1900;
  opacity: 0; visibility: hidden; transition: var(--transition);
  backdrop-filter: blur(3px);
}
.overlay.active { opacity: 1; visibility: visible; }

/* =========================================
   3. STRONA GŁÓWNA (index.html)
   ========================================= */

/* Hero Section */
.hero {
  position: relative;
  height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  background-color: var(--black);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.7)), 
              url('https://images.unsplash.com/photo-1594041680527-185d316236d6?ixlib=rb-1.2.1&auto=format&fit=crop&w=1920&q=80');
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.hero-content { position: relative; z-index: 1; }

.hero-subtitle {
  display: block;
  font-size: 1.1rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 10px;
  font-weight: 700;
  font-family: 'Oswald', sans-serif;
}

.hero h1 {
  font-size: 4rem;
  line-height: 1.1;
  margin-bottom: 30px;
  text-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.hero-btns { display: flex; gap: 15px; justify-content: center; }

/* Przyciski (Ogólne) */
.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: var(--radius);
  transition: var(--transition);
  border: 2px solid transparent;
  cursor: pointer;
  font-size: 1rem;
}

.btn-red { background: var(--primary); color: var(--white); }
.btn-red:hover { background: var(--primary-dark); }

.btn-white { background: transparent; color: var(--white); border-color: var(--white); }
.btn-white:hover { background: var(--white); color: var(--black); }

/* Kategorie (Kafelki na start) */
.categories { padding: 60px 0; }

.section-title { text-align: center; margin-bottom: 40px; }
.section-title h2 { font-size: 2.5rem; color: var(--black); }
.separator { width: 60px; height: 4px; background: var(--primary); margin: 10px auto; border-radius: 2px; }

.grid-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.cat-card {
  position: relative;
  height: 250px;
  border-radius: var(--radius);
  overflow: hidden;
  display: block;
  box-shadow: var(--shadow);
}

.cat-img {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s ease;
}

.cat-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; width: 100%; height: 60%;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
}

.cat-label {
  position: absolute;
  bottom: 20px; left: 20px;
  color: var(--white);
  font-size: 1.5rem;
  z-index: 2;
  letter-spacing: 1px;
}

.cat-card:hover .cat-img { transform: scale(1.1); }

/* Sekcja O nas */
.about { background: var(--white); padding: 80px 0; }
.about-flex { display: flex; align-items: center; gap: 50px; }
.about-text { flex: 1; }
.about-img { flex: 1; }
.about-img img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }


/* =========================================
   4. SEKCJA AKTUALNOŚCI (index.html)
   ========================================= */
.news { padding-bottom: 60px; }

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.news-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}
.news-card:hover { transform: translateY(-5px); }

.news-img-wrapper { height: 220px; overflow: hidden; }
.news-img-wrapper img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.news-card:hover .news-img-wrapper img { transform: scale(1.05); }

.news-body {
  padding: 25px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.news-date {
  font-size: 0.85rem;
  color: var(--primary);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 8px;
  display: block;
}

.news-body h3 {
  font-size: 1.4rem;
  margin-bottom: 10px;
  color: var(--black);
  line-height: 1.3;
}

.news-body p {
  color: #666;
  font-size: 0.95rem;
  margin-bottom: 20px;
  line-height: 1.5;
}

.btn-link {
  margin-top: auto;
  color: var(--black);
  font-weight: 700;
  text-decoration: none;
  font-family: 'Oswald', sans-serif;
  transition: 0.3s;
}
.btn-link:hover { color: var(--primary); padding-left: 5px; }

/* Wyróżniona karta (Facebook) */
.highlight-news {
  background-color: #f9f9f9;
  border: 1px dashed #ccc;
  justify-content: center;
}
.highlight-news .news-body.centered {
  text-align: center;
  align-items: center;
  justify-content: center;
}
.btn-sm { padding: 10px 25px; font-size: 0.9rem; }

/* Karta Godzin */
.hours-card {
  border-top: 4px solid var(--primary);
  justify-content: center;
}
.hours-body { padding: 30px; width: 100%; }
.hours-body h3 {
  text-align: center; font-size: 1.5rem; margin-bottom: 25px; color: var(--black);
  display: flex; align-items: center; justify-content: center; gap: 10px;
}
.hours-row {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: 12px; font-size: 1rem; color: #444;
}
.hours-row .day { font-weight: 600; }
.hours-row .dots {
  flex-grow: 1; border-bottom: 2px dotted #ccc; margin: 0 10px 5px 10px;
}
.hours-row .time { font-weight: 700; color: var(--black); }
.hours-row.closed .time { color: var(--primary); text-transform: uppercase; }
.hours-note { text-align: center; margin-top: 20px; font-size: 0.9rem; color: #888; font-style: italic; }


/* =========================================
   5. STRONA MENU (menu.html) - ZMIANY
   ========================================= */

.menu-page { padding-bottom: 60px; }
.page-title { text-align: center; padding: 40px 0; }
.page-title h1 { font-size: 3rem; margin-bottom: 10px; color: var(--black); }
.page-title p { color: #666; font-size: 1.1rem; }

/* Sticky Filters (Pasek filtrów - ZAWIJANY) */
.filter-container {
  position: -webkit-sticky;
  position: sticky;
  top: 85px; 
  z-index: 90;
  background: var(--light-gray);
  padding: 15px 0;
  margin-bottom: 20px;
  border-bottom: 1px solid #ddd;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

/* ZMIANA: Zamiast paska przewijanego, robimy flex-wrap (zawijanie) */
.filter-scroll {
  display: flex;
  flex-wrap: wrap; /* To sprawia, że przyciski spadają do nowej linii */
  justify-content: center; /* Wyśrodkowanie przycisków */
  gap: 10px;
  padding: 0 10px;
}

/* Wygląd przycisków filtrów */
.filter-btn {
  white-space: nowrap;
  padding: 8px 16px;
  border: 1px solid #ccc;
  background: var(--white);
  border-radius: 20px;
  font-family: 'Oswald', sans-serif;
  font-size: 0.85rem; /* Troszkę mniejsza czcionka, żeby więcej weszło */
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--dark-gray);
  flex-grow: 0;
}

.filter-btn:hover { border-color: var(--primary); color: var(--primary); }

.filter-btn.active {
  background: var(--primary); color: var(--white);
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(214, 40, 40, 0.4);
}
.filter-btn.btn-alcohol { border-color: var(--black); color: var(--black); }
.filter-btn.btn-alcohol.active { background: var(--black); color: var(--white); }

/* Kategorie w Menu */
.menu-category { 
  margin-bottom: 60px; 
  scroll-margin-top: 200px; /* Zwiększony margines, bo pasek filtrów jest wyższy */
}
.category-title {
  font-size: 2rem;
  margin-bottom: 25px;
  padding-left: 15px;
  border-left: 5px solid var(--primary);
  color: var(--black);
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
}

/* Karta Dania */
.menu-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}
.menu-card:hover { transform: translateY(-5px); }

.card-image {
  height: 200px;
  background: #eee;
  overflow: hidden;
  position: relative;
}
.card-image img {
  width: 100%; height: 100%; object-fit: cover; transition: 0.5s;
}
.menu-card:hover .card-image img { transform: scale(1.05); }

/* --- ZAŚLEPKA "BRAK ZDJĘCIA" (Sofra w tle) --- */
.no-photo-box {
  width: 100%; height: 200px;
  background-color: var(--black);
  display: flex; flex-direction: column;
  justify-content: center; align-items: center;
  position: relative; overflow: hidden;
}
.no-photo-box::before {
  content: 'SOFRA';
  position: absolute;
  font-family: 'Oswald', sans-serif; font-size: 5rem; font-weight: 700;
  color: rgba(255, 255, 255, 0.05);
  transform: rotate(-25deg); pointer-events: none;
}
.no-photo-content { z-index: 2; text-align: center; color: #fff; }
.no-photo-icon { font-size: 2.5rem; margin-bottom: 5px; display: block; }
.no-photo-text {
  font-family: 'Oswald', sans-serif; text-transform: uppercase;
  letter-spacing: 2px; font-size: 0.8rem; opacity: 0.8;
}

.card-content {
  padding: 20px;
  display: flex; flex-direction: column; flex-grow: 1;
}

.card-content h3 { font-size: 1.2rem; margin-bottom: 10px; line-height: 1.3; color: var(--black); }
.desc { font-size: 0.9rem; color: #666; margin-bottom: 10px; flex-grow: 1; }
.allergens { font-size: 0.75rem; color: #999; margin-bottom: 15px; font-style: italic; }

.card-footer {
  display: flex;
  justify-content: center; /* Wyśrodkowanie ceny */
  align-items: center;
  margin-top: auto;
  padding-top: 15px;
  border-top: 1px solid #f0f0f0;
}

.price {
  font-family: 'Oswald', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary);
}

/* Ukrycie plusa */
.add-btn { display: none; }

/* Ostrzeżenie o alkoholu */
.alcohol-warning {
  background: #fff3cd; border: 1px solid #ffeeba; color: #856404;
  padding: 15px; border-radius: var(--radius); margin-bottom: 20px; text-align: center;
}

/* Age Gate Modal */
.age-gate {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.85); backdrop-filter: blur(5px); z-index: 2000;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: var(--transition);
}
.age-gate.active { opacity: 1; pointer-events: auto; }
.age-gate-box {
  background: var(--white); padding: 40px; border-radius: var(--radius);
  text-align: center; max-width: 400px; width: 90%;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}
.age-gate-box .icon { font-size: 3rem; margin-bottom: 15px; }
.age-gate-box h2 { margin-bottom: 10px; color: var(--black); }
.age-gate-box p { margin-bottom: 25px; color: #555; }
.age-actions { display: flex; gap: 10px; justify-content: center; }

/* =========================================
   6. STRONA GALERII (galeria.html)
   ========================================= */
.gallery-page { padding-bottom: 80px; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.gallery-item {
  position: relative; height: 300px;
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); cursor: pointer; background-color: #000;
}

.gallery-img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s ease, opacity 0.3s ease; display: block;
}

.gallery-overlay {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(214, 40, 40, 0.4);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.3s ease;
}
.gallery-overlay .icon {
  font-size: 2rem; color: var(--white); transform: scale(0); transition: transform 0.3s ease;
}
.gallery-item:hover .gallery-img { transform: scale(1.1); opacity: 0.8; }
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-item:hover .gallery-overlay .icon { transform: scale(1); }

/* Lightbox */
.lightbox {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.95); z-index: 3000;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity 0.3s ease; padding: 20px;
}
.lightbox.active { opacity: 1; pointer-events: auto; }
.lightbox img {
  max-width: 90%; max-height: 90vh;
  border-radius: var(--radius); box-shadow: 0 0 30px rgba(0,0,0,0.8);
  border: 2px solid var(--primary);
}
.lightbox-close {
  position: absolute; top: 20px; right: 30px;
  background: transparent; color: var(--white); border: none;
  font-size: 3rem; cursor: pointer; transition: 0.3s;
}
.lightbox-close:hover { color: var(--primary); transform: scale(1.1); }

/* =========================================
   7. STRONA ZAMÓWIENIA (zamowienie.html)
   ========================================= */
.order-hero {
  background: var(--black); color: var(--white);
  padding: 60px 0 40px; text-align: center;
  border-bottom: 5px solid var(--primary);
}
.order-hero h1 { font-size: 2.5rem; margin-bottom: 10px; line-height: 1.2; }
.order-hero p { color: #ccc; font-size: 1.1rem; }

.order-content { padding: 40px 20px; }

.order-section {
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 40px; margin-bottom: 40px;
}
.highlight-section { border: 2px solid var(--primary); }

.order-flex {
  display: flex; align-items: center; justify-content: space-between; gap: 30px;
}

.order-text h2 { font-size: 2rem; margin-bottom: 15px; color: var(--black); }
.order-info-list { margin-top: 20px; list-style: disc; padding-left: 20px; color: #555; }
.order-info-list li { margin-bottom: 8px; }

/* Duży przycisk telefonu */
.btn-big-phone {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background-color: var(--primary); color: var(--white);
  padding: 20px 40px; border-radius: 50px;
  text-decoration: none; font-family: 'Oswald', sans-serif;
  text-transform: uppercase; font-weight: 600; font-size: 1rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 10px 25px rgba(214, 40, 40, 0.4); white-space: nowrap;
}
.btn-big-phone .phone-number {
  font-size: 2rem; font-weight: 700; margin-top: 5px; letter-spacing: 1px;
}
.btn-big-phone:hover {
  background-color: var(--primary-dark); transform: translateY(-5px) scale(1.02);
  box-shadow: 0 15px 35px rgba(214, 40, 40, 0.5);
}

.section-divider {
  text-align: center; margin: 40px 0; position: relative;
}
.section-divider::before {
  content: ''; position: absolute; top: 50%; left: 0; width: 100%; height: 1px; background: #ddd; z-index: 1;
}
.section-divider span {
  background: var(--light-gray); padding: 0 20px; position: relative; z-index: 2;
  color: #888; font-weight: 700; font-size: 0.9rem; font-family: 'Oswald', sans-serif;
}

.delivery-zones { text-align: center; max-width: 800px; margin: 0 auto; }
.delivery-zones h3 { font-size: 1.8rem; margin-bottom: 10px; color: var(--black); }
.delivery-zones p { margin-bottom: 20px; color: #555; }
.map-placeholder iframe { border-radius: var(--radius); box-shadow: var(--shadow); }

/* =========================================
   8. STOPKA
   ========================================= */
.footer {
  background: var(--black); color: #777; padding: 40px 0;
  text-align: center; font-size: 0.9rem;
}

/* =========================================
   9. RESPONSYWNOŚĆ (MOBILE)
   ========================================= */
@media (max-width: 768px) {
  .hero h1 { font-size: 2.5rem; }
  .about-flex { flex-direction: column; }
  .menu-grid { grid-template-columns: 1fr; }
  .card-image { height: 180px; }
  .filter-container { top: 60px; }
  .btn-order-header { padding: 6px 12px; font-size: 0.8rem; }
  .order-flex { flex-direction: column; text-align: center; }
  .order-info-list { text-align: left; display: inline-block; }
  .btn-big-phone { width: 100%; }
  .btn-big-phone .phone-number { font-size: 1.6rem; }
}