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

body, html {
  height: 100%;
  font-family: 'Poppins', sans-serif;
}

/* Header Styles */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #ff6468;
  padding: 15px 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-content a {
  text-decoration: none;
  color: white;
}

.header-logo {
  height: 40px;
  width: auto;
}

.header-title {
  color: white;
  font-size: 24px;
  font-weight: 700;
  margin: 0;
  letter-spacing: 1.5px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.highlight-cocktail {
    border: 3px solid #ff6468;
    background-color: #fff1f1;
    position: relative;
    transform: scale(1.02);
    box-shadow: 0 4px 15px rgba(255, 100, 104, 0.2);
}

.highlight-cocktail::before {
    content: "✨ Perfect Match";
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ff6468;
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: 600;
    z-index: 1;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.highlight-cocktail:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(255, 100, 104, 0.3);
}

.sidebar-toggle {
  background-color: white;
  color: #ff6468;
  border: none;
  padding: 10px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  font-size: 24px;
  line-height: 1;
}

.sidebar-toggle:hover {
  background-color: #fff1f1;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.filter-icon {
  font-size: 18px;
}

/* Sidebar Styles */
.sidebar {
  position: fixed;
  top: 0;
  right: -300px; /* Start off-screen */
  width: 300px;
  height: 100vh;
  background-color: white;
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
  transition: right 0.3s ease;
  z-index: 1001;
}

.sidebar.active {
  right: 0;
}

.sidebar-content {
  padding: 80px 20px 20px;
}

.sidebar-content h2 {
  color: #ff6468;
  margin-bottom: 20px;
  font-size: 24px;
}

.sidebar .filter-group {
  margin-bottom: 20px;
}

.sidebar .filter-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #333;
}

.sidebar .filter-group select {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
}

.sidebar #applyFilters {
  width: 100%;
  margin-top: 20px;
  padding: 12px;
  background-color: #ff6468;
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.sidebar #applyFilters:hover {
  background-color: #ff8a8d;
}

/* Overlay when sidebar is open */
.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
}

.sidebar-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Hauptcontainer: zwei Spalten */
.overlay {
  display: flex;
  height: 100vh;
  margin-top: 70px; /* Wieder hinzufügen für den Header */
}

/* Linke Hälfte – Inhalt und Suche */
.left-section {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 60px;
  color: white;
  height: 100vh;
}

.background-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(0.6) brightness(0.7);
  z-index: -1;
}

.container {
  max-width: 480px;
  width: 100%;
}

.left-section h1 {
  font-size: 42px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 10px;
}

.subtitle {
  font-size: 18px;
  opacity: 0.9;
  margin-bottom: 30px;
}

/* Suchfeld */
#searchSection label {
  font-weight: 600;
}

#searchSection select,
input[type="text"] {
  padding: 12px 16px;
  margin-top: 10px;
  margin-bottom: 15px;
  border: none;
  border-radius: 8px;
  width: 100%;
  font-size: 16px;
}

/* Button-Style */
#searchButton, 
#randomButton,
#applyFilters {
  padding: 12px 20px;
  background-color: white;
  color: #ff6468;
  border: none;
  border-radius: 12px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.25s ease;
}

#searchButton:hover, 
#randomButton:hover,
#applyFilters:hover {
  background-color: #ff8a8d;
  transform: translateY(-2px);
}

.or-text {
  margin: 20px 0 10px;
  font-style: italic;
  font-size: 20px;
  opacity: 0.85;
}

/* Rechte Hälfte – Bild */
.right-section {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #fff1f1;
  height: 100vh;
  padding: 0;
  margin: 0;
}

.right-section img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border: none;
  margin: 0;
  padding: 0;
}

/* Altersabfrage */
.popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.popup-content {
  background-color: white;
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.popup-content h2 {
  margin-bottom: 20px;
  color: #ff6468;
}

.popup-content button {
  margin: 10px;
  padding: 12px 24px;
  background-color: #ff6468;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
}

.popup-content button:hover {
  background-color: #ff8a8d;
}

/* Ergebnisse */
#resultsSection {
  padding: 30px;
  background-color: #ff6468;
  color: white;
}

#resultsSection h2 {
  font-size: 24px;
  margin-bottom: 10px;
  color: white;
}

#cocktailList {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}

#cocktailList li {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(5px);
}

#cocktailList li:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  background: rgba(255, 255, 255, 0.15);
}

.cocktail-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 12px 12px 0 0;
}

.cocktail-info {
  padding: 15px;
}

#cocktailList a {
  text-decoration: none;
  color: white;
  font-weight: 600;
  display: block;
}

#cocktailList a:hover {
  text-decoration: none;
}

.cocktail-name {
  font-size: 18px;
  margin-bottom: 8px;
  color: white;
}

.cocktail-category {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 5px;
}

.site-name {
  display: none;
}

/* Top Filter Bar */
#filterBar {
  display: none;
}

/* Responsive */
/* Removed all media queries for mobile devices */

/* Error Message Styles */
.error-message {
  background-color: #ffebee;
  color: #c62828;
  padding: 12px 16px;
  border-radius: 8px;
  margin: 10px 0;
  border: 1px solid #ef9a9a;
  display: none;
}

.error-message.show {
  display: block;
}

/* Recipe Page Styles */
.recipe-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px 20px 40px; /* Increased top padding to account for fixed header */
  background: linear-gradient(135deg, #fff1f1, #ffeaea);
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  position: relative;
  z-index: 1;
}

.recipe-header {
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  z-index: 2;
}

.recipe-header h1 {
  color: #ff6468;
  font-size: 3em;
  margin-bottom: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  animation: fadeInDown 0.6s ease;
}

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

.recipe-meta {
  display: flex;
  justify-content: center;
  gap: 20px;
  color: #666;
}

.recipe-meta span {
  background: #fff1f1;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.9em;
}

.recipe-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
  position: relative;
  z-index: 2;
}

.recipe-image img {
  width: 100%;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease;
}

.recipe-image img:hover {
  transform: scale(1.03);
}

.recipe-details {
  background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.ingredients-section, .instructions-section {
  margin-bottom: 30px;
}

.ingredients-section h2, .instructions-section h2 {
  color: #ff6468;
  margin-bottom: 15px;
}

#ingredientsList {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

#ingredientsList li {
  display: inline-block;
  margin: 6px;
  padding: 10px 16px;
  background-color: #ffe0e0;
  color: #a94442;
  border-radius: 30px;
  font-weight: 500;
  font-size: 0.95em;
  border: 1px solid #ffcccc;
}

.tip-box {
  background-color: #fff7f0;
  border-left: 6px solid #ffb347;
  padding: 16px;
  border-radius: 8px;
  margin-top: 20px;
  font-style: italic;
  color: #a25f00;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.btn-back {
  display: inline-block;
  padding: 12px 24px;
  background-color: #ff6468;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  transition: background-color 0.2s;
}

.btn-back:hover {
  background-color: #ff8a8d;
}

/* Loading Screen Styles */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #fff1f1, #ffeaea);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out;
}

.loading-screen.hidden {
    opacity: 0;
    pointer-events: none;
}

.loading-content {
    text-align: center;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #ff6468;
    border-top: 5px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

.loading-text {
    color: #ff6468;
    font-size: 1.2em;
    font-weight: 500;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulse {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

/* Custom Alert Styles */
.custom-alert {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: none;
    animation: slideIn 0.3s ease-out;
}

.custom-alert.show {
    display: block;
}

.alert-content {
    background: #fff;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 15px;
    border-left: 4px solid #ff6468;
}

.alert-message {
    color: #333;
    font-size: 1em;
}

.alert-close {
    background: none;
    border: none;
    color: #666;
    font-size: 1.5em;
    cursor: pointer;
    padding: 0 5px;
    transition: color 0.2s;
}

.alert-close:hover {
    color: #ff6468;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Rechte Hälfte auf Mobilgeräten ausblenden */
@media (max-width: 768px) {
  .right-section {
    display: none !important;
  }
}
