/* ========================================
   MENU PAGE ENHANCEMENTS
   Pickup & Delivery Options
   ======================================== */

/* ========================================
   RESTAURANT STATUS CARD
   ======================================== */

.restaurant-status-card {
  background: var(--fg-bg-primary);
  border-radius: 20px;
  padding: 30px;
  margin: 40px auto;
  max-width: 800px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--fg-border-light);
  position: relative;
  overflow: hidden;
}

.restaurant-status-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 107, 53, 0.05) 0%, rgba(244, 208, 111, 0.05) 100%);
  z-index: 0;
}

.restaurant-status-card > * {
  position: relative;
  z-index: 1;
}

.restaurant-logo-section {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 25px;
}

.restaurant-logo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--fg-secondary-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2rem;
  font-weight: bold;
  box-shadow: 0 5px 15px rgba(255, 107, 53, 0.3);
}

.restaurant-info h2 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--fg-text-primary);
  margin: 0 0 5px 0;
}

.restaurant-rating {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.restaurant-rating .stars {
  display: flex;
  gap: 2px;
}

.restaurant-rating .stars i {
  color: var(--fg-secondary);
  font-size: 16px;
}

.restaurant-rating .review-count {
  color: var(--fg-text-secondary);
  font-size: 14px;
}

.restaurant-status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}

.restaurant-status .status-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--fg-success);
  animation: pulse 2s infinite;
}

.restaurant-status .status-text {
  color: var(--fg-success);
  font-weight: 600;
  font-size: 14px;
}

.restaurant-status.closed .status-indicator {
  background: var(--fg-error);
  animation: none;
}

.restaurant-status.closed .status-text {
  color: var(--fg-error);
}

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

/* ========================================
   ORDERING OPTIONS
   ======================================== */

.ordering-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 25px;
}

.ordering-option {
  background: var(--fg-bg-primary);
  border: 2px solid var(--fg-border-light);
  border-radius: 15px;
  padding: 25px;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.ordering-option:hover {
  border-color: var(--fg-secondary);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(255, 107, 53, 0.1);
}

.ordering-option.selected {
  border-color: var(--fg-secondary);
  background: rgba(255, 107, 53, 0.05);
  box-shadow: 0 10px 25px rgba(255, 107, 53, 0.2);
}

.ordering-option.selected::before {
  content: '✓';
  position: absolute;
  top: 15px;
  right: 15px;
  width: 25px;
  height: 25px;
  background: var(--fg-secondary-gradient);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 14px;
}

.ordering-option.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: var(--fg-bg-secondary);
}

.ordering-option.disabled:hover {
  transform: none;
  box-shadow: none;
  border-color: var(--fg-border-light);
}

.ordering-option-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--fg-secondary-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px;
  color: white;
  font-size: 24px;
}

.ordering-option.disabled .ordering-option-icon {
  background: var(--fg-text-secondary);
}

.ordering-option h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--fg-text-primary);
  margin: 0 0 10px 0;
}

.ordering-option p {
  color: var(--fg-text-secondary);
  font-size: 14px;
  margin: 0;
  line-height: 1.5;
}

/* ========================================
   OPERATING HOURS
   ======================================== */

.operating-hours {
  background: var(--fg-bg-secondary);
  border-radius: 15px;
  padding: 20px;
  margin-bottom: 25px;
}

.operating-hours h4 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--fg-text-primary);
  margin: 0 0 15px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.operating-hours h4 i {
  color: var(--fg-secondary);
}

.hours-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.hours-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--fg-border-light);
}

.hours-item:last-child {
  border-bottom: none;
}

.hours-item .day {
  font-weight: 600;
  color: var(--fg-text-primary);
}

.hours-item .time {
  color: var(--fg-text-secondary);
  font-size: 14px;
}

.hours-item .closed {
  color: var(--fg-error);
  font-weight: 600;
}

/* ========================================
   DELIVERY INFO
   ======================================== */

.delivery-info {
  background: var(--fg-bg-secondary);
  border-radius: 15px;
  padding: 20px;
  margin-bottom: 25px;
}

.delivery-info h4 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--fg-text-primary);
  margin: 0 0 15px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.delivery-info h4 i {
  color: var(--fg-secondary);
}

.delivery-details {
  display: grid;
  gap: 10px;
}

.delivery-detail {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
}

.delivery-detail .label {
  color: var(--fg-text-secondary);
  font-size: 14px;
}

.delivery-detail .value {
  color: var(--fg-text-primary);
  font-weight: 600;
  font-size: 14px;
}

.delivery-detail .free {
  color: var(--fg-success);
}

/* ========================================
   ACTION BUTTONS
   ======================================== */

.restaurant-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.restaurant-actions .ul-btn {
  min-width: 150px;
  padding: 15px 25px;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.3s ease;
  text-decoration: none;
}

.restaurant-actions .ul-btn-primary {
  background: var(--fg-primary);
  color: var(--fg-text-white);
  border: none;
}

.restaurant-actions .ul-btn-primary:hover {
  background: var(--fg-primary-light);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(58, 58, 58, 0.3);
}

.restaurant-actions .ul-btn-secondary {
  background: var(--fg-secondary-gradient);
  color: var(--fg-text-white);
  border: none;
}

.restaurant-actions .ul-btn-secondary:hover {
  background: var(--fg-secondary-gradient-hover);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 107, 53, 0.3);
}

.restaurant-actions .ul-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ========================================
   RESTAURANT CLOSED MESSAGE
   ======================================== */

.restaurant-closed-message {
  background: var(--fg-error-light);
  border: 2px solid var(--fg-error);
  border-radius: 15px;
  padding: 25px;
  text-align: center;
  margin: 20px 0;
}

.restaurant-closed-message .icon {
  font-size: 3rem;
  color: var(--fg-error);
  margin-bottom: 15px;
}

.restaurant-closed-message h3 {
  color: var(--fg-error);
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 10px 0;
}

.restaurant-closed-message p {
  color: var(--fg-text-secondary);
  margin: 0;
  line-height: 1.6;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 768px) {
  .restaurant-status-card {
    margin: 20px;
    padding: 25px;
  }
  
  .restaurant-logo-section {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }
  
  .ordering-options {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .hours-grid {
    grid-template-columns: 1fr;
  }
  
  .restaurant-actions {
    flex-direction: column;
  }
  
  .restaurant-actions .ul-btn {
    min-width: auto;
  }
}

@media (max-width: 480px) {
  .restaurant-status-card {
    margin: 10px;
    padding: 20px;
  }
  
  .restaurant-logo {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }
  
  .restaurant-info h2 {
    font-size: 1.5rem;
  }
  
  .ordering-option {
    padding: 20px;
  }
  
  .ordering-option-icon {
    width: 50px;
    height: 50px;
    font-size: 20px;
  }
}

/* ========================================
   ANIMATION ENHANCEMENTS
   ======================================== */

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

.restaurant-status-card {
  animation: slideInDown 0.6s ease-out;
}

.ordering-option {
  animation: slideInDown 0.6s ease-out;
}

.ordering-option:nth-child(2) {
  animation-delay: 0.1s;
}

/* ========================================
   ACCESSIBILITY IMPROVEMENTS
   ======================================== */

.ordering-option:focus {
  outline: 3px solid var(--fg-secondary-light);
  outline-offset: 2px;
}

.restaurant-actions .ul-btn:focus {
  outline: 3px solid var(--fg-secondary-light);
  outline-offset: 2px;
}

/* ========================================
   HIGH CONTRAST MODE
   ======================================== */

@media (prefers-contrast: high) {
  .restaurant-status-card {
    border: 3px solid var(--fg-text-primary);
  }
  
  .ordering-option {
    border: 3px solid var(--fg-text-primary);
  }
  
  .ordering-option.selected {
    border-color: var(--fg-secondary);
    background: var(--fg-bg-primary);
  }
}
