/* CafeBot styles — neon/LED theme */

:root {
  --color-bg: #08080f;
  --color-surface: #131320;
  --color-surface-raised: #191929;
  --color-text: #f5f5ff;
  --color-muted: #a9a6c9;
  --color-primary: #ff2ec4;
  --color-primary-dark: #d600a3;
  --color-accent: #00fff2;
  --color-accent-2: #39ff14;
  --color-border: #3a2a55;
  --radius: 12px;
  --container-width: 1100px;
  --font-display: "Orbitron", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", Helvetica, Arial, sans-serif;
  --glow-primary: 0 0 8px rgba(255, 46, 196, 0.85), 0 0 22px rgba(255, 46, 196, 0.5), 0 0 44px rgba(255, 46, 196, 0.25);
  --glow-accent: 0 0 8px rgba(0, 255, 242, 0.85), 0 0 22px rgba(0, 255, 242, 0.5), 0 0 44px rgba(0, 255, 242, 0.25);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.05rem;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
}

h1, h2, h3 {
  margin: 0 0 0.5em;
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--color-accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Demo banner */

.demo-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding: 0.5rem 1rem;
  background: #1a1505;
  border-bottom: 1px solid #4a3a00;
  font-size: 0.8rem;
  font-weight: 700;
  text-align: center;
}

.demo-banner-badge {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  background: #ffc800;
  color: #08080f;
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.7rem;
}

.demo-banner-text {
  color: #ffdd66;
  letter-spacing: 0.01em;
}

.demo-banner-link {
  color: #fff;
  text-decoration: underline;
  font-weight: 800;
}

.demo-banner-link:hover {
  color: var(--color-accent);
}

/* Header */

.site-header {
  background: rgba(8, 8, 15, 0.9);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  color: var(--color-primary);
  text-shadow: var(--glow-primary);
}

.logo:hover {
  text-decoration: none;
}

.nav-list {
  list-style: none;
  display: flex;
  gap: 1.75rem;
  margin: 0;
  padding: 0;
}

.nav-list a {
  color: var(--color-text);
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.nav-list a:hover {
  color: var(--color-accent);
  text-shadow: var(--glow-accent);
  text-decoration: none;
}

.nav-list a[aria-current="page"] {
  color: var(--color-primary);
  text-shadow: var(--glow-primary);
}

/* Hero */

.hero {
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(255, 46, 196, 0.28) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 80% 100%, rgba(0, 255, 242, 0.2) 0%, transparent 70%),
    linear-gradient(180deg, rgba(8, 8, 15, 0.88) 0%, rgba(8, 8, 15, 0.94) 60%, var(--color-bg) 100%),
    url("images/hero-cafe.jpg");
  background-size: cover;
  background-position: center;
  background-blend-mode: normal, normal, normal, luminosity;
  text-align: center;
  padding: 6.5rem 0;
}

.hero h1 {
  font-size: 3.75rem;
  color: #fff;
  text-shadow: var(--glow-primary);
}

.hero-subtitle {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--color-muted);
  max-width: 40rem;
  margin: 0 auto 2.5rem;
}

.btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary {
  background: var(--color-primary);
  color: #08080f;
  box-shadow: var(--glow-primary);
}

.btn-primary:hover {
  background: var(--color-accent);
  color: #08080f;
  box-shadow: var(--glow-accent);
  text-decoration: none;
  transform: translateY(-2px);
}

/* Quick links (home page) */

.quick-links {
  padding: 4rem 0;
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.quick-links-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.quick-link-card {
  display: block;
  padding: 1.75rem 1.5rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface-raised);
  text-align: center;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.quick-link-card:hover {
  border-color: var(--color-primary);
  box-shadow: var(--glow-primary);
  transform: translateY(-3px);
  text-decoration: none;
}

.quick-link-card h3 {
  margin-bottom: 0.4em;
  font-size: 1.15rem;
  color: #fff;
}

.quick-link-card p {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-muted);
}

/* About */

.about {
  position: relative;
  padding: 6rem 0;
  text-align: center;
  background:
    linear-gradient(180deg, var(--color-bg) 0%, rgba(8, 8, 15, 0.82) 15%, rgba(8, 8, 15, 0.82) 85%, var(--color-bg) 100%),
    url("images/cafe-storefront.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.about h2 {
  font-size: 2.25rem;
  color: var(--color-accent);
  text-shadow: var(--glow-accent);
}

.about p {
  max-width: 42rem;
  margin: 0 auto;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-text);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

/* Menu */

.menu {
  padding: 4.5rem 0;
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.menu h2 {
  text-align: center;
  margin-bottom: 2.5rem;
  font-size: 2.25rem;
  color: var(--color-primary);
  text-shadow: var(--glow-primary);
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.menu-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.75rem;
  background: var(--color-surface-raised);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.menu-card:hover {
  border-color: var(--color-accent);
  box-shadow: var(--glow-accent);
  transform: translateY(-3px);
}

.menu-card-name {
  font-size: 1.3rem;
  color: #fff;
}

.menu-card-price {
  color: var(--color-accent);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  margin-bottom: 0.5em;
}

.menu-card-description {
  color: var(--color-muted);
  font-weight: 500;
  margin-bottom: 0.75em;
}

.menu-card-options,
.menu-card-allergens {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-muted);
  margin: 0 0 0.3em;
}

.menu-card-allergens {
  color: var(--color-accent);
}

/* Offers */

.offers {
  padding: 4.5rem 0;
}

.offers-subtitle {
  text-align: center;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-muted);
  margin: 0 auto 2.5rem;
  max-width: 36rem;
}

.offers-loading {
  text-align: center;
  color: var(--color-muted);
}

.offers-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.offer-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.75rem;
  background: var(--color-surface-raised);
}

.offer-status {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.75em;
}

.offer-status--active {
  background: rgba(57, 255, 20, 0.12);
  color: var(--color-accent-2);
  box-shadow: 0 0 10px rgba(57, 255, 20, 0.5);
}

.offer-status--upcoming {
  background: rgba(255, 200, 0, 0.12);
  color: #ffc800;
  box-shadow: 0 0 10px rgba(255, 200, 0, 0.4);
}

.offer-status--inactive {
  background: rgba(169, 166, 201, 0.1);
  color: var(--color-muted);
}

.offer-name {
  font-size: 1.2rem;
  color: #fff;
  margin-bottom: 0.4em;
}

.offer-rule {
  color: var(--color-muted);
  font-weight: 500;
  margin-bottom: 0.5em;
}

.offer-schedule {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: 0;
}

/* Hours & Location */

.hours-location {
  padding: 4.5rem 0;
}

.hours-location h2 {
  font-size: 1.9rem;
  color: var(--color-accent);
  text-shadow: var(--glow-accent);
}

.hours-location-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.hours-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.hours-list li {
  display: flex;
  justify-content: space-between;
  padding: 0.7rem 0;
  font-weight: 700;
  border-bottom: 1px solid var(--color-border);
}

address {
  font-style: normal;
  font-weight: 600;
  color: var(--color-muted);
}

/* Footer */

.site-footer {
  background: #030307;
  color: var(--color-muted);
  padding: 1.75rem 0;
  border-top: 1px solid var(--color-border);
}

.footer-inner {
  text-align: center;
}

.footer-inner p {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
}

.footer-inner p.photo-credit {
  margin-top: 0.4rem;
  font-size: 0.75rem;
  font-weight: 400;
  color: #6b6884;
}

.photo-credit a {
  color: #6b6884;
  text-decoration: underline;
}

/* Chat Widget */

.chat-widget {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
}

.chat-toggle {
  width: 3.75rem;
  height: 3.75rem;
  border-radius: 50%;
  border: none;
  background: var(--color-primary);
  color: #08080f;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--glow-primary);
  transition: transform 0.15s ease;
}

.chat-toggle:hover {
  transform: scale(1.06);
}

.chat-window {
  width: 340px;
  max-width: calc(100vw - 3rem);
  height: 440px;
  max-height: calc(100vh - 7rem);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--glow-primary), 0 8px 24px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: chat-slide-up 0.2s ease-out;
}

.chat-window[hidden] {
  display: none;
}

@keyframes chat-slide-up {
  from {
    opacity: 0;
    transform: translateY(1rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.chat-header {
  background: var(--color-surface-raised);
  border-bottom: 1px solid var(--color-border);
  color: var(--color-primary);
  text-shadow: var(--glow-primary);
  padding: 0.9rem 1.1rem;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.chat-close {
  background: none;
  border: none;
  color: var(--color-text);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  text-shadow: none;
}

.chat-close:hover {
  color: var(--color-accent);
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.chat-bubble {
  max-width: 82%;
  padding: 0.65rem 0.9rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.45;
  word-wrap: break-word;
  white-space: pre-wrap;
}

.chat-bubble-user {
  align-self: flex-end;
  background: var(--color-primary);
  color: #08080f;
  font-weight: 700;
  border-bottom-right-radius: 2px;
}

.chat-bubble-bot {
  align-self: flex-start;
  background: var(--color-surface-raised);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  border-bottom-left-radius: 2px;
}

.chat-input-row {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem;
  border-top: 1px solid var(--color-border);
  flex-shrink: 0;
  background: var(--color-surface-raised);
}

.chat-input {
  flex: 1;
  min-width: 0;
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-bg);
  color: var(--color-text);
  font-size: 0.95rem;
  font-family: inherit;
}

.chat-input::placeholder {
  color: var(--color-muted);
}

.chat-input:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: -1px;
}

.chat-send {
  border: none;
  background: var(--color-primary);
  color: #08080f;
  padding: 0.6rem 1.1rem;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  cursor: pointer;
  flex-shrink: 0;
}

.chat-send:hover {
  background: var(--color-accent);
}

/* Responsive */

@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    gap: 0.75rem;
  }

  .nav-list {
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero {
    padding: 4rem 0;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .menu-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hours-location-inner {
    grid-template-columns: 1fr;
  }

  .quick-links-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2.1rem;
  }

  .menu-grid {
    grid-template-columns: 1fr;
  }

  .quick-links-grid {
    grid-template-columns: 1fr;
  }

  .chat-widget {
    right: 1rem;
    bottom: 1rem;
  }

  .chat-window {
    width: calc(100vw - 2rem);
    height: calc(100vh - 6rem);
  }
}
