/* ==========================================================================
   Components CSS - Food Cards, Square Category Tabs & Supergallo UI
   ========================================================================== */

/* Tabbed Food Menu */
.food-tabs-container {
  margin-top: 40px;
}

.food-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 40px;
}

.food-tab-btn {
  padding: 12px 28px;
  background: var(--dark-card);
  color: var(--white);
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 0px !important;
  cursor: pointer;
  border: 1px solid rgba(255, 235, 59, 0.2);
  transition: all var(--transition-fast);
}

.food-tab-btn:hover,
.food-tab-btn.active {
  background: var(--cresta-red);
  color: var(--white);
  border-color: var(--pollastre-yellow);
  box-shadow: 0 4px 15px rgba(211, 47, 47, 0.5);
  transform: translateY(-2px);
}

/* Food Items Grid - No images version */
.food-items-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.food-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #ffffff;
  border-radius: 0px !important;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  position: relative;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  border: 1px solid #e0e0e0;
  padding: 15px;
  text-align: center;
}

.food-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.12);
  border-color: var(--braves-amber);
}

/* Hide image container since we removed images */
.food-item .thumb {
  display: none;
}

/* Food Details */
.food-info {
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex-grow: 1;
  text-align: center;
}

.food-info .title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--texto-black);
  margin-bottom: 8px;
}

.food-info .price {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--cresta-red);
}

/* Flash Badge Tag - Only for Especialitat */
.feature-flash {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #fff8e1;
  color: var(--cresta-red);
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 0px !important;
  border: 1px solid var(--braves-amber);
  z-index: 2;
  white-space: nowrap;
  pointer-events: none;
}

@media (max-width: 576px) {
  .feature-flash {
    top: 8px;
    right: 8px;
    font-size: 0.6rem;
    padding: 2px 0px;
  }
}

.food-item .title {
  display: block;
  word-break: break-word;
  overflow-wrap: break-word;
  max-width: 100%;
}

@media (max-width: 991px) {
  .food-items-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .food-tabs {
    gap: 8px;
  }
  .food-tab-btn {
    padding: 10px 16px;
    font-size: 0.85rem;
  }
  .food-info .title {
    font-size: 1rem;
  }
  .food-info .price {
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .food-tab-btn {
    padding: 8px 12px;
    font-size: 0.8rem;
  }
  .food-info .price {
    font-size: 1rem;
  }
}
