/* ============================================
   BitePlug - Index/Landing Page Styles
   ============================================ */

/* Hero Section */
.hero {
  position: relative;
  isolation: isolate;
  background: linear-gradient(135deg, #e85d28 0%, #d64419 100%);
  padding: 80px 24px 64px;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: url('../img/hero-food.jpg') center/cover no-repeat;
  opacity: 0.1;
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 40px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  color: #fff;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-left {
  max-width: 520px;
}

.hero-badge {
  display: inline-block;
  background: rgba(255, 255, 255, .14);
  backdrop-filter: blur(6px);
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: .25px;
  margin-bottom: 20px;
  font-size: 13px;
}

.hero h1 {
  font-family: Outfit, Inter, sans-serif;
  font-size: 48px;
  line-height: 1.1;
  margin-bottom: 16px;
  font-weight: 800;
}

.hero h1 .highlight {
  color: #FFD700;
  text-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.hero p {
  font-size: 18px;
  opacity: .92;
  margin-bottom: 24px;
  line-height: 1.6;
}

#heroCtas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.hero-cta-btn {
  background: #FFD700;
  border: none;
  color: #111827;
  padding: 16px 32px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 16px;
  box-shadow: 0 10px 25px rgba(255, 215, 0, 0.4);
  cursor: pointer;
  transition: all 0.3s;
}

.hero-cta-btn:hover {
  background: #FFC700;
  transform: translateY(-2px);
  box-shadow: 0 15px 30px rgba(255, 215, 0, 0.5);
}

.hero-secondary-btn {
  background: #FFFFFF;
  border: none;
  color: #111827;
  padding: 16px 32px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 16px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition: all 0.3s;
}

.hero-secondary-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.hero-note {
  font-size: 13px;
  opacity: .75;
}

.price-card {
  background: #FFFFFF;
  border-radius: 18px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
  padding: 24px;
  max-width: 340px;
  width: 100%;
  color: #111827;
}

.price-card-header {
  font-size: 13px;
  font-weight: 600;
  color: #6B7280;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.price-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 15px;
}

.price-row.strikethrough span:last-child {
  text-decoration: line-through;
  color: #9CA3AF;
}

.price-main {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 12px;
  padding-top: 8px;
  border-top: 1px solid #F3F4F6;
}

.price-main span:first-child {
  font-weight: 700;
  font-size: 16px;
}

.price-main span:last-child {
  font-size: 32px;
  font-weight: 800;
  color: var(--green);
}

.savings-badge {
  background: #ECFDF3;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 14px;
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.savings-badge span:last-child {
  font-weight: 700;
  color: #166534;
}

.price-card-note {
  font-size: 12px;
  color: #6B7280;
  line-height: 1.5;
}

/* Section Styles */
section {
  padding: 72px 0;
}

h2 {
  text-align: center;
  font-family: Outfit, Inter, sans-serif;
  font-size: 36px;
  margin-bottom: 40px;
  color: var(--brand);
  font-weight: 800;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.step-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.step-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(16, 24, 40, .12);
}

.step-icon {
  font-size: 40px;
  margin-bottom: 12px;
}

.step-card h3 {
  margin: 12px 0 8px;
  font-size: 20px;
  color: var(--brand);
  text-align: left;
}

.step-card p {
  color: var(--muted);
  line-height: 1.6;
  text-align: left;
}

/* College Carousel */
.carousel-section {
  background: #FFFFFF;
  padding: 56px 0;
  overflow: hidden;
  border-top: 1px solid #F3F4F6;
  border-bottom: 1px solid #F3F4F6;
}

.carousel-section h3 {
  text-align: center;
  font-family: Outfit, Inter, sans-serif;
  font-size: 28px;
  margin-bottom: 40px;
  color: var(--text);
  font-weight: 700;
}

.carousel-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
}

#collegeCarousel {
  display: flex;
  gap: 56px;
  animation: scroll 40s linear infinite;
  will-change: transform;
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

#collegeCarousel:hover {
  animation-play-state: paused;
}

.college-logo {
  flex-shrink: 0;
  width: 140px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: grayscale(100%);
  opacity: 0.5;
  transition: all 0.3s;
}

.college-logo:hover {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.08);
}

.college-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.college-logo img[src*="error"],
.college-logo img:not([src]) {
  display: none;
}

/* Testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.testimonial-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 24px;
  transition: transform 0.3s;
}

.testimonial-card:hover {
  transform: translateY(-3px);
}

.stars {
  color: #F59E0B;
  font-size: 18px;
  margin-bottom: 12px;
}

.testimonial-text {
  color: #374151;
  line-height: 1.7;
  margin-bottom: 12px;
  font-size: 15px;
}

.testimonial-author {
  color: #6B7280;
  font-size: 13px;
}

/* FAQ */
.faq {
  max-width: 900px;
  margin: 0 auto;
  padding: 72px 24px;
}

.faq h2 {
  margin-bottom: 48px;
}

.faq-item {
  background: white;
  padding: 24px;
  margin-bottom: 16px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  border-left: 4px solid var(--brand);
  transition: box-shadow 0.3s;
}

.faq-item:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.faq-question {
  font-weight: 700;
  font-size: 17px;
  color: #111827;
  margin-bottom: 10px;
}

.faq-answer {
  color: #6B7280;
  line-height: 1.7;
}

/* Checkbox Group */
.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 8px 14px;
  background: #F9FAFB;
  border-radius: 8px;
  transition: background 0.2s;
}

.checkbox-label:hover {
  background: #F3F4F6;
}

.checkbox-label input {
  width: auto;
  cursor: pointer;
}

/* Google Login Button */
.google-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: white;
  color: #3C4043;
  padding: 14px 24px;
  border: 2px solid #DADCE0;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  transition: all 0.2s;
  text-decoration: none;
  font-family: inherit;
}

.google-btn:hover {
  background: #F8F9FA;
  border-color: #C5C9CC;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.google-btn img {
  width: 20px;
  height: 20px;
}

/* Auth Divider */
.auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 20px 0;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid #E5E7EB;
}

.auth-divider span {
  padding: 0 16px;
  color: #6B7280;
  font-size: 14px;
  font-weight: 500;
}

/* Chat Modal */
.chat-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  z-index: 2000;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(4px);
}

.chat-modal.active {
  display: flex;
}

.chat-container {
  background: white;
  width: 90%;
  max-width: 600px;
  height: 80vh;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.chat-header {
  background: var(--brand);
  color: white;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-header h3 {
  font-size: 18px;
  color: white;
  text-align: left;
  margin: 0;
}

.chat-header small {
  opacity: 0.9;
  font-size: 13px;
}

.chat-close {
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.chat-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.chat-messages {
  flex: 1;
  padding: 24px;
  overflow-y: auto;
  background: #F9FAFB;
}

.message {
  margin-bottom: 16px;
  padding: 14px 16px;
  border-radius: 12px;
  max-width: 75%;
  animation: messageSlideIn 0.3s ease-out;
}

@keyframes messageSlideIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.message.staff {
  background: #EEF2FF;
  margin-right: auto;
  border: 1px solid #E0E7FF;
}

.message.user {
  background: var(--brand);
  color: white;
  margin-left: auto;
}

.message-author {
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 6px;
  opacity: 0.9;
}

.message-content {
  font-size: 15px;
  line-height: 1.5;
}

.message-time {
  font-size: 11px;
  opacity: 0.7;
  margin-top: 6px;
}

.chat-input-area {
  padding: 20px;
  background: white;
  border-top: 1px solid #E5E7EB;
  display: flex;
  gap: 12px;
}

.chat-input {
  flex: 1;
  padding: 12px 18px;
  border: 2px solid #E5E7EB;
  border-radius: 25px;
  font-size: 15px;
  transition: border-color 0.2s;
}

.chat-input:focus {
  outline: none;
  border-color: var(--brand);
}

.chat-send {
  background: var(--brand);
  color: white;
  border: none;
  padding: 12px 28px;
  border-radius: 25px;
  cursor: pointer;
  font-weight: 700;
  transition: background 0.2s;
}

.chat-send:hover {
  background: var(--brand-dark);
}

/* Order History Styles */
.order-history-content {
  max-height: 500px;
  overflow-y: auto;
}

.order-card {
  background: var(--bg);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 16px;
  border-left: 4px solid var(--brand);
}

.order-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.order-number {
  font-weight: 700;
  font-size: 18px;
  color: var(--brand);
}

.order-status {
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.order-status.pending {
  background: #FEF3C7;
  color: #92400E;
}

.order-status.payment_received {
  background: #DBEAFE;
  color: #1E40AF;
}

.order-status.order_placed {
  background: #E0E7FF;
  color: #3730A3;
}

.order-status.delivered {
  background: #D1FAE5;
  color: #065F46;
}

.order-status.cancelled {
  background: #FEE2E2;
  color: #991B1B;
}

.order-details {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 8px;
}

.order-details strong {
  color: var(--text);
}

.order-date {
  font-size: 12px;
  color: var(--muted);
}

.no-orders {
  text-align: center;
  padding: 40px 20px;
  color: var(--muted);
}

.no-orders-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.view-chat-btn {
  background: var(--brand);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 12px;
  transition: all 0.2s;
  width: 100%;
}

.view-chat-btn:hover {
  background: var(--brand-dark);
  transform: translateY(-1px);
}

.view-chat-btn:disabled {
  background: #D1D5DB;
  color: #9CA3AF;
  cursor: not-allowed;
  transform: none;
}

/* Responsive - Mobile */
@media (max-width: 768px) {
  .hero {
    padding: 56px 20px 48px;
  }

  .hero h1 {
    font-size: 36px;
  }

  .hero p {
    font-size: 16px;
  }

  h2 {
    font-size: 28px;
  }
}
