/* ===== components.css ===== */
/* Aesthetic Coffee Shop Components - Blue Theme */

/* ===== STATUS BADGES - Coffee Shop Style ===== */
.status-badge { 
  padding: 0.35rem 1rem; 
  border-radius: 100px; 
  font-size: 0.75rem; 
  font-weight: 600; 
  display: inline-block;
  white-space: nowrap;
  letter-spacing: 0.3px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  border: 1px solid transparent;
  transition: all 0.3s ease;
}

.status-badge:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Status Colors - Coffee Inspired */
.status-pending { 
  background: #fff3e0; 
  color: #b85e00; 
  border-left: 3px solid #ff9800;
}

.status-preparing { 
  background: #e3f2fd; 
  color: var(--primary-dark); 
  border-left: 3px solid var(--primary-color);
}

.status-ready { 
  background: #e8f5e9; 
  color: #1b5e20; 
  border-left: 3px solid #4caf50;
}

.status-delivered { 
  background: #e8f5e9; 
  color: #1b5e20; 
  border-left: 3px solid #2e7d32;
}

.status-cancelled { 
  background: #ffebee; 
  color: #b71c1c; 
  border-left: 3px solid #f44336;
}

/* ===== GRIDS - Coffee Shop Layout ===== */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.8rem;
  padding: 0.5rem;
}

/* ===== CATEGORY TABS - Coffee Shop Style ===== */
.category-tabs {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  padding: 0.75rem 0;
  margin-bottom: 2rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  position: relative;
}

.category-tabs::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
  opacity: 0.3;
}

.category-tabs::-webkit-scrollbar {
  display: none;
}

.category-tab {
  padding: 0.6rem 1.8rem;
  border-radius: 40px;
  border: 1.5px solid var(--border-light);
  background: white;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--dark-blue);
  box-shadow: 0 2px 5px rgba(0,0,0,0.03);
  position: relative;
  overflow: hidden;
}

.category-tab::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(30, 106, 208, 0.1);
  transform: translate(-50%, -50%);
  transition: width 0.5s, height 0.5s;
}

.category-tab:hover {
  border-color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 8px 15px rgba(30, 106, 208, 0.15);
}

.category-tab:hover::before {
  width: 200px;
  height: 200px;
}

.category-tab.active {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: white;
  border-color: var(--primary-dark);
  box-shadow: 0 10px 20px rgba(30, 106, 208, 0.3);
}

.category-tab.active::before {
  display: none;
}

/* ===== PAYMENT OPTIONS - Coffee Shop Style ===== */
.payment-option {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border: 2px solid var(--border-light);
  border-radius: 16px;
  padding: 1rem 0.75rem;
  background: white;
  position: relative;
  overflow: hidden;
}

.payment-option::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
  transform: translateY(-100%);
  transition: transform 0.3s ease;
}

.payment-option:hover {
  border-color: var(--primary-color);
  background-color: var(--primary-soft);
  transform: translateY(-3px);
  box-shadow: 0 12px 25px -8px rgba(30, 106, 208, 0.3);
}

.payment-option:hover::before {
  transform: translateY(0);
}

.payment-option.selected {
  border-color: var(--primary-color);
  background: linear-gradient(135deg, var(--primary-soft), white);
  box-shadow: 0 8px 20px rgba(30, 106, 208, 0.2);
}

.payment-option i {
  transition: transform 0.3s ease;
}

.payment-option:hover i {
  transform: scale(1.1);
}

/* ===== DELIVERY OPTIONS - Coffee Shop Style ===== */
.delivery-type-option {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border: 2px solid var(--border-light);
  border-radius: 16px;
  padding: 0.75rem;
  background: white;
  position: relative;
  overflow: hidden;
}

.delivery-type-option::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), transparent);
  transform: scaleX(0);
  transition: transform 0.3s ease;
  transform-origin: left;
}

.delivery-type-option:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 30px -10px rgba(30, 106, 208, 0.25);
  border-color: var(--primary-color);
}

.delivery-type-option:hover::after {
  transform: scaleX(1);
}

.delivery-type-option.selected {
  border-color: var(--primary-color);
  background: linear-gradient(135deg, var(--primary-soft), white);
  box-shadow: 0 10px 25px -5px rgba(30, 106, 208, 0.3);
}

/* ===== MENU ITEM CARD - Coffee Shop Style ===== */
.menu-item-card {
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 20px;
  background: white;
  border: 1px solid var(--border-light);
  padding: 1.25rem;
  position: relative;
  overflow: hidden;
}

.menu-item-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.menu-item-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 40px -15px rgba(30, 106, 208, 0.35);
  border-color: var(--primary-color);
}

.menu-item-card:hover::before {
  transform: scaleX(1);
}

/* ===== SCROLL ANIMATIONS - Enhanced ===== */
.scroll-fade-in,
.scroll-slide-up,
.scroll-slide-down,
.scroll-slide-left,
.scroll-slide-right,
.scroll-scale {
  opacity: 0;
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), 
              transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity, transform;
}

.scroll-fade-in.visible { 
  opacity: 1; 
  animation: fadeInSoft 0.8s ease-out;
}

.scroll-slide-up { 
  transform: translateY(60px); 
}

.scroll-slide-up.visible { 
  opacity: 1; 
  transform: translateY(0);
  animation: slideUpSoft 0.8s ease-out;
}

.scroll-slide-down { 
  transform: translateY(-60px); 
}

.scroll-slide-down.visible { 
  opacity: 1; 
  transform: translateY(0);
  animation: slideDownSoft 0.8s ease-out;
}

.scroll-slide-left { 
  transform: translateX(60px); 
}

.scroll-slide-left.visible { 
  opacity: 1; 
  transform: translateX(0);
  animation: slideLeftSoft 0.8s ease-out;
}

.scroll-slide-right { 
  transform: translateX(-60px); 
}

.scroll-slide-right.visible { 
  opacity: 1; 
  transform: translateX(0);
  animation: slideRightSoft 0.8s ease-out;
}

.scroll-scale { 
  transform: scale(0.9); 
}

.scroll-scale.visible { 
  opacity: 1; 
  transform: scale(1);
  animation: scaleSoft 0.8s ease-out;
}

/* Animation Keyframes */
@keyframes fadeInSoft {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

@keyframes slideUpSoft {
  0% { opacity: 0; transform: translateY(60px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes slideDownSoft {
  0% { opacity: 0; transform: translateY(-60px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes slideLeftSoft {
  0% { opacity: 0; transform: translateX(60px); }
  100% { opacity: 1; transform: translateX(0); }
}

@keyframes slideRightSoft {
  0% { opacity: 0; transform: translateX(-60px); }
  100% { opacity: 1; transform: translateX(0); }
}

@keyframes scaleSoft {
  0% { opacity: 0; transform: scale(0.9); }
  100% { opacity: 1; transform: scale(1); }
}

/* ===== COFFEE SHOP SPECIFIC COMPONENTS ===== */

/* Coffee Bean Rating */
.coffee-rating {
  display: flex;
  gap: 4px;
  align-items: center;
}

.coffee-rating span {
  width: 20px;
  height: 20px;
  background: var(--primary-soft);
  border-radius: 50%;
  position: relative;
  transition: all 0.3s ease;
}

.coffee-rating span.filled {
  background: var(--primary-color);
  transform: scale(1.1);
}

.coffee-rating span.filled::after {
  content: '☕';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 10px;
  color: white;
}

/* Coffee Price Tag */
.price-tag {
  background: linear-gradient(135deg, var(--primary-soft), white);
  padding: 0.5rem 1.2rem;
  border-radius: 30px;
  font-weight: 700;
  color: var(--primary-dark);
  border: 1px solid var(--primary-light);
  box-shadow: 0 3px 10px rgba(30, 106, 208, 0.1);
  display: inline-block;
  position: relative;
}

.price-tag::before {
  content: '☕';
  position: absolute;
  left: -5px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  opacity: 0;
  transition: opacity 0.3s ease, left 0.3s ease;
}

.price-tag:hover::before {
  opacity: 0.5;
  left: -15px;
}

/* Coffee Quantity Selector */
.coffee-quantity {
  display: inline-flex;
  align-items: center;
  background: white;
  border: 1px solid var(--border-light);
  border-radius: 40px;
  padding: 0.25rem;
}

.coffee-quantity button {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: var(--primary-soft);
  color: var(--primary-color);
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.coffee-quantity button:hover {
  background: var(--primary-color);
  color: white;
  transform: scale(1.1);
}

.coffee-quantity span {
  min-width: 40px;
  text-align: center;
  font-weight: 600;
  color: var(--dark-blue);
}

/* Coffee Shop Divider */
.coffee-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 2rem 0;
}

.coffee-divider-line {
  height: 2px;
  flex: 1;
  background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
}

.coffee-divider-icon {
  color: var(--primary-color);
  font-size: 1.2rem;
  opacity: 0.7;
}

/* Coffee Badge */
.coffee-badge {
  background: var(--primary-soft);
  color: var(--primary-dark);
  padding: 0.4rem 1rem;
  border-radius: 30px;
  font-size: 0.8rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--primary-light);
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.coffee-badge i {
  font-size: 0.9rem;
}

/* Coffee Toast Notification */
.coffee-toast {
  background: white;
  border-left: 4px solid var(--primary-color);
  border-radius: 12px;
  padding: 1rem 1.5rem;
  box-shadow: 0 15px 30px rgba(30, 106, 208, 0.2);
  display: flex;
  align-items: center;
  gap: 12px;
  animation: slideInRight 0.5s ease-out;
}

.coffee-toast-icon {
  width: 40px;
  height: 40px;
  background: var(--primary-soft);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  font-size: 1.2rem;
}

/* ===== RESPONSIVE ADJUSTMENTS ===== */
@media (max-width: 768px) {
  .menu-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.2rem;
  }
  
  .category-tab {
    padding: 0.5rem 1.2rem;
    font-size: 0.85rem;
  }
  
  .payment-option,
  .delivery-type-option {
    padding: 0.6rem;
  }
}

@media (max-width: 480px) {
  .menu-grid {
    grid-template-columns: 1fr;
  }
  
  .category-tabs {
    gap: 0.4rem;
  }
  
  .category-tab {
    padding: 0.4rem 1rem;
    font-size: 0.8rem;
  }
}

/* ===== PRINT STYLES ===== */
@media print {
  .category-tabs,
  .payment-option,
  .delivery-type-option {
    display: none;
  }
}