/* Bros Pasta 2025 - Clean Modern Styles - Mobile First */
/* Modern, smooth, Apple/PlayStation-style design */

:root {
  --primary-color: #B22222;
  --primary-dark: #8B0000;
  --success-color: #2ecc71;
  --success-dark: #27ae60;
  --text-dark: #222;
  --text-medium: #666;
  --text-light: #999;
  --bg-light: #f8f9fa;
  --border-color: #eee;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* ===== MENU ITEMS - Modern Card Design ===== */
.menu-item {
  position: relative;
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
  transition: var(--transition-smooth);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.menu-item:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.menu-img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
  flex-shrink: 0;
}

.menu-item:hover .menu-img {
  transform: scale(1.08);
}

.item-details {
  padding: 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.item-name {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-dark);
  line-height: 1.3;
}

.item-ingredients {
  font-size: 0.95rem;
  color: var(--text-medium);
  margin-bottom: 16px;
  line-height: 1.5;
  font-style: italic;
}

.item-description {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 16px;
  line-height: 1.4;
}

.item-sizes,
.item-price {
  font-size: 1.15rem;
  color: var(--primary-color);
  margin-bottom: 18px;
  font-weight: 600;
}

/* ===== BUTTONS - Modern Green with Gradient ===== */
.add-btn {
  background: linear-gradient(135deg, var(--success-color) 0%, var(--success-dark) 100%);
  color: white;
  border: none;
  padding: 14px 36px;
  font-size: 1.05rem;
  border-radius: 12px;
  cursor: pointer;
  transition: var(--transition-smooth);
  margin: 16px auto 0;
  display: block;
  min-width: 180px;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.8px;
  box-shadow: 0 4px 12px rgba(46, 204, 113, 0.3);
  position: relative;
  overflow: hidden;
  margin-top: auto;
}

.add-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
}

/* Hover effect for desktop */
.add-btn:hover::before {
  left: 100%;
}

.add-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(46, 204, 113, 0.4);
}

.add-btn:active {
  transform: scale(0.98);
}

/* ===== MOBILE SHINE ANIMATION ===== */
@media (max-width: 768px) {
  .add-btn::before {
    animation: mobileShine 3s ease-in-out infinite;
    animation-delay: calc(var(--shine-delay, 0) * 0.1s);
  }
  
  @keyframes mobileShine {
    0%, 70% {
      left: -100%;
      opacity: 0;
    }
    75% {
      left: -100%;
      opacity: 1;
    }
    85% {
      left: 100%;
      opacity: 1;
    }
    90%, 100% {
      left: 100%;
      opacity: 0;
    }
  }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
  .menu-item {
    margin-bottom: 20px;
  }

  .menu-img {
    height: 220px;
  }
}

@media (min-width: 769px) {
  .category {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 32px;
    padding: 20px;
  }

  .menu-item {
    margin-bottom: 0;
  }

  .menu-img {
    height: 260px;
  }
}

/* ===== UNAVAILABLE ITEMS ===== */
.menu-item.unavailable {
  opacity: 0.6;
  position: relative;
}

.menu-item.unavailable::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.05);
  pointer-events: none;
}

.menu-item.unavailable .menu-img {
  filter: grayscale(70%) brightness(0.8);
}

.menu-item.unavailable .item-name,
.menu-item.unavailable .item-ingredients,
.menu-item.unavailable .item-description,
.menu-item.unavailable .item-sizes,
.menu-item.unavailable .item-price {
  color: #999;
}

.item-unavailable-message {
  color: var(--danger-color);
  font-weight: 600;
  font-size: 0.95rem;
  margin: 8px 0;
  padding: 8px 12px;
  background: rgba(205, 33, 42, 0.1);
  border-left: 3px solid var(--danger-color);
  border-radius: 4px;
}

.add-btn.disabled {
  background: #ccc;
  color: #666;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.add-btn.disabled:hover {
  background: #ccc;
  transform: none;
  box-shadow: none;
}

.add-btn.disabled::before {
  display: none;
}
