/* ============================================
   SIPO Integration — component styles
   Matches the Kebab & Curry Corner dark theme.
   ============================================ */

/* ---- Top status strip ---- */
.sipo-strip {
  width: 100%;
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  background: #29221d;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sipo-strip-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  max-width: 80rem;
  margin: 0 auto;
  padding: 0.6rem 1.25rem;
  text-align: center;
  flex-wrap: wrap;
}

.sipo-strip-dot {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 999px;
  background: #9ca3af;
  flex-shrink: 0;
  box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
}

.sipo-strip--open { background: linear-gradient(90deg, rgba(22, 101, 52, 0.95), rgba(21, 128, 61, 0.95)); }
.sipo-strip--open .sipo-strip-dot { background: #4ade80; animation: sipo-pulse 2s infinite; }

.sipo-strip--closed { background: linear-gradient(90deg, rgba(127, 29, 29, 0.95), rgba(153, 27, 27, 0.95)); }
.sipo-strip--closed .sipo-strip-dot { background: #f87171; }

@keyframes sipo-pulse {
  0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.6); }
  70% { box-shadow: 0 0 0 8px rgba(74, 222, 128, 0); }
  100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}

.sipo-strip-link {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 700;
  white-space: nowrap;
}
.sipo-strip-link:hover { color: #f0b44c; }

/* ---- Featured cards: footer with order link ---- */
.sipo-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
}
.sipo-card-foot .menu-tag { margin-top: 0; }

.sipo-order-link {
  flex-shrink: 0;
  color: #f0b44c;
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  transition: color 180ms ease, transform 180ms ease;
}
.sipo-order-link:hover { color: #e66a1f; transform: translateX(2px); }

.sipo-featured-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: rgba(248, 244, 239, 0.7);
  padding: 2rem 0;
}
.sipo-featured-empty a { color: #f0b44c; text-decoration: underline; }

/* fade-in for dynamically injected cards */
.sipo-fade {
  opacity: 0;
  transform: translateY(24px);
  animation: sipo-fade-in 600ms ease forwards;
}
@keyframes sipo-fade-in {
  to { opacity: 1; transform: translateY(0); }
}

/* ---- Opening hours list ---- */
.sipo-hours {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}
.sipo-hours-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.9rem;
  color: rgba(248, 244, 239, 0.72);
}
.sipo-hours-row.is-today {
  color: #f0b44c;
  font-weight: 700;
}
.sipo-hours-day { letter-spacing: 0.05em; }
.sipo-hours-time { text-align: right; }
.sipo-hours-time.is-closed { color: rgba(248, 244, 239, 0.4); }
.sipo-hours-note {
  margin: 0.65rem 0 0;
  font-size: 0.76rem;
  color: rgba(248, 244, 239, 0.45);
}

/* ---- Floating order button ---- */
.sipo-float {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  color: #1d130d;
  background: linear-gradient(120deg, #e66a1f 0%, #f0b44c 100%);
  box-shadow: 0 14px 34px rgba(230, 106, 31, 0.4);
  transition: transform 220ms ease, box-shadow 220ms ease;
  animation: sipo-float-in 500ms ease 800ms both;
}
.sipo-float svg { width: 1.2rem; height: 1.2rem; }
.sipo-float:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 18px 42px rgba(230, 106, 31, 0.5);
}

@keyframes sipo-float-in {
  from { opacity: 0; transform: translateY(20px) scale(0.9); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 640px) {
  .sipo-float { right: 1rem; bottom: 1rem; padding: 0.8rem 1.15rem; font-size: 0.9rem; }
}

@media (prefers-reduced-motion: reduce) {
  .sipo-strip--open .sipo-strip-dot,
  .sipo-fade,
  .sipo-float { animation: none !important; }
  .sipo-fade { opacity: 1; transform: none; }
}
