@import url('https://fonts.googleapis.com/css2?family=Bogue&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Crimson+Text:wght@400;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&display=swap');

:root {
  --cream: #f5f1e8;
  --tan: #d4a574;
  --brown-dark: #8b6f47;
  --brown-light: #c9a26e;
  --gold: #b8860b;
  --text-dark: #5c4033;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Crimson Text', 'Copperplate', serif;
  background-color: var(--cream);
  color: var(--text-dark);
  line-height: 1.6;
}

/* Header & Navigation */
header {
  background: #eddba9;
  border-bottom: 3px solid #a56d43;
  color: #5c4033;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.8rem;
  font-weight: bold;
  color: #a56d43;
  text-decoration: none;
  font-family: 'Bogue', serif;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-img {
  height: 40px;
  width: auto;
  object-fit: contain;
}

nav a {
  color: #5c4033;
  text-decoration: none;
  margin-left: 2rem;
  margin-right: 0.5rem;
  transition: all 0.3s ease;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: bold;
  font-family: 'Copperplate Gothic Roman Condensed', 'Copperplate', 'Garamond', serif;
  position: relative;
  padding-bottom: 0.25rem;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(to right, #b8860b, #d4a76a);
  transition: width 0.3s ease;
}

nav a:hover {
  color: var(--gold);
}

nav a:hover::after {
  width: 100%;
}

/* Hero Showcase Section - Theatrical Velvet */
.hero-showcase {
  background: linear-gradient(135deg, #6b2020 0%, #4a1414 50%, #6b2020 100%);
  color: #d4a76a;
  text-align: center;
  padding: 2.4rem;
  position: relative;
  overflow: hidden;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-showcase.hero-theatrical .curtain-left {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 15%;
  background: linear-gradient(to right, #1a0000, transparent);
  z-index: 0;
}

.hero-showcase.hero-theatrical .curtain-right {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 15%;
  background: linear-gradient(to left, #1a0000, transparent);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 3rem;
  max-width: 900px;
  margin: 0 auto;
}

.hero-image {
  width: 480px;
  height: 336px;
  border-radius: 8px;
  background-size: cover;
  background-position: center;
  border: 8px solid #d4a76a;
  box-shadow: 0 20px 60px rgba(212, 165, 116, 0.4), 0 0 40px rgba(184, 134, 11, 0.6), inset 0 0 20px rgba(0,0,0,0.3);
  flex-shrink: 0;
  transition: background-image 0.5s ease-in-out;
}

.hero-text-area {
  flex: 1;
}

.hero-icon {
  margin-bottom: 1rem;
  animation: float 3s ease-in-out infinite;
}

.hero-logo-img {
  height: 120px;
  width: auto;
  object-fit: contain;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.hero-showcase h1 {
  font-size: 3rem;
  font-family: 'Bogue', serif;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
  text-shadow: 0 0 20px rgba(212, 165, 116, 0.8);
  position: relative;
  z-index: 2;
  color: #d4a76a;
}

.hero-showcase h1::before {
  content: none;
}

.tagline {
  font-size: 1.5rem;
  font-family: 'Copperplate Gothic Roman Condensed', 'Copperplate', 'Copperplate Gothic', 'Garamond', serif;
  color: #d4a76a;
  font-style: normal;
  text-shadow: 0 0 15px rgba(212, 165, 116, 0.6);
  margin-bottom: 0;
  letter-spacing: 1px;
  font-weight: normal;
}

.decorative-line {
  width: 100px;
  height: 3px;
  background: var(--gold);
  margin: 1.5rem auto;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

main {
  background-color: var(--cream);
}

section {
  padding: 4rem 0;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Bogue', serif;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

section h2 {
  text-align: center;
  font-size: 2.5rem;
  color: var(--brown-dark);
  margin-bottom: 3rem;
  position: relative;
  padding-bottom: 1.5rem;
  z-index: 2;
}

section h2::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  max-width: 500px;
  height: 150px;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 500 200"><circle cx="80" cy="90" r="70" fill="%23c9a26e" opacity="0.4"/><circle cx="240" cy="110" r="80" fill="%238b6f47" opacity="0.3"/><circle cx="380" cy="80" r="60" fill="%23d4a574" opacity="0.35"/><circle cx="150" cy="160" r="50" fill="%23b8860b" opacity="0.25"/><circle cx="320" cy="150" r="55" fill="%23c9a26e" opacity="0.3"/><circle cx="420" cy="130" r="45" fill="%238b6f47" opacity="0.25"/></svg>');
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  z-index: -1;
}

section h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--gold);
  z-index: 3;
}

/* Menu Showcase Section */
.menu-showcase {
  background-color: var(--cream);
  padding: 4rem 0;
}

.menu-showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.menu-showcase-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border-left: 5px solid var(--gold);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.menu-showcase-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.menu-image {
  width: 100%;
  height: 250px;
  overflow: hidden;
  background: var(--brown-light);
  position: relative;
}

.menu-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.menu-showcase-card:hover .menu-image img {
  transform: scale(1.05);
}

.menu-info {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.menu-info h3 {
  color: var(--brown-dark);
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  text-transform: uppercase !important;
  font-family: 'Copperplate Gothic Roman Condensed', 'Copperplate', 'Garamond', serif;
  letter-spacing: 1px;
}

.menu-info p {
  color: #666;
  font-size: 0.95rem;
  margin-bottom: auto;
  line-height: 1.5;
}

.menu-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #eee;
}

.price {
  font-size: 1.8rem;
  color: var(--gold);
  font-family: 'Bogue', serif;
  font-weight: bold;
  text-transform: uppercase;
}

/* All Items Section */
.all-items-section {
  text-align: center;
  margin: 3rem 0;
}

.full-menu-list {
  background: white;
  border-radius: 8px;
  padding: 2rem;
  margin-top: 2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.menu-list-item {
  padding: 1.5rem;
  border-bottom: 1px solid #eee;
  text-align: left;
}

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

.item-name {
  font-family: 'Bogue', serif;
  font-size: 1.1rem;
  color: var(--brown-dark);
  font-weight: bold;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.item-desc {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.item-price {
  color: var(--gold);
  font-size: 1.2rem;
  font-family: 'Bogue', serif;
  font-weight: bold;
}

/* Buttons */
.btn {
  display: inline-block;
  background-color: var(--gold);
  color: var(--cream);
  padding: 0.75rem 2rem;
  text-decoration: none;
  border-radius: 5px;
  transition: all 0.3s;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  font-family: inherit;
}

.btn:hover {
  background-color: var(--brown-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
  background-color: var(--brown-light);
  color: var(--cream);
  padding: 0.75rem 2rem;
  text-decoration: none;
  border-radius: 5px;
  transition: all 0.3s;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  font-family: inherit;
  font-family: 'Bogue', serif;
  text-transform: uppercase;
}

.btn-secondary:hover {
  background-color: var(--brown-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* About Section */
.about-showcase {
  background: linear-gradient(135deg, #6b2020 0%, #4a1414 50%, #6b2020 100%);
  padding: 4rem 0;
}

.about-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--cream);
}

.about-image {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 8px;
  border: 8px solid #d4a76a;
  box-shadow: 0 20px 60px rgba(212, 165, 116, 0.4), 0 0 40px rgba(184, 134, 11, 0.6), inset 0 0 20px rgba(0,0,0,0.3);
  margin-top: 2rem;
}

/* Gallery Showcase */
.gallery-showcase {
  background-color: #faf8f3;
  padding: 4rem 0;
}

.gallery-showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.gallery-showcase-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  aspect-ratio: 1;
  background: var(--brown-light);
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.gallery-showcase-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(139, 111, 71, 0.9);
  color: var(--cream);
  padding: 1.5rem;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100%;
}

.gallery-showcase-item:hover img {
  transform: scale(1.05);
}

.gallery-showcase-item:hover .gallery-overlay {
  transform: translateY(0);
}

.gallery-overlay p {
  text-align: center;
  font-size: 1.1rem;
  font-family: 'Bogue', serif;
  text-transform: uppercase;
  font-weight: bold;
}

/* Contact Showcase */
.contact-showcase {
  background-color: var(--cream);
  padding: 4rem 0;
}

.info-showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.info-showcase-card {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border-top: 4px solid var(--gold);
  transition: all 0.3s ease;
}

.info-showcase-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
}

.info-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.info-showcase-card h3 {
  color: var(--brown-dark);
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.info-showcase-card p {
  color: #666;
  line-height: 1.8;
}

.info-showcase-card p a {
  color: var(--gold);
  text-decoration: none;
  transition: color 0.3s;
}

.info-showcase-card p a:hover {
  color: var(--brown-dark);
}

/* Footer */
footer {
  background: var(--brown-dark);
  color: var(--cream);
  text-align: center;
  padding: 2rem;
  margin-top: 4rem;
}

footer p {
  margin: 0.5rem 0;
}

.footer-admin {
  margin-top: 1rem;
  font-size: 0.85rem;
}

.footer-admin a {
  color: var(--gold);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-admin a:hover {
  color: var(--cream);
  text-decoration: underline;
}

.designed-by {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: rgba(245, 241, 232, 0.6);
  text-decoration: none;
  transition: color 0.3s;
  margin-top: 1rem;
}

.designed-by:hover {
  color: var(--cream);
}

.illucid-logo {
  height: 18px;
  width: auto;
  object-fit: contain;
  opacity: 0.7;
  filter: drop-shadow(0 0 1px rgba(245, 241, 232, 0.8)) drop-shadow(0 0 2px rgba(245, 241, 232, 0.4));
  transition: opacity 0.3s, filter 0.3s;
}

.designed-by:hover .illucid-logo {
  opacity: 1;
  filter: drop-shadow(0 0 2px rgba(245, 241, 232, 1)) drop-shadow(0 0 4px rgba(245, 241, 232, 0.5));
}

/* Admin Panel Styles */
.admin-container {
  max-width: 1000px;
  margin: 3rem auto;
  padding: 2rem;
}

.admin-panel {
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 2rem;
}

.admin-panel h2 {
  color: var(--brown-dark);
  border-bottom: 3px solid var(--gold);
  padding-bottom: 1rem;
  margin-bottom: 2rem;
}

.admin-tabs {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  border-bottom: 2px solid var(--brown-light);
}

.tab-btn {
  background: none;
  border: none;
  padding: 0.75rem 1.5rem;
  cursor: pointer;
  font-size: 1rem;
  color: var(--brown-dark);
  border-bottom: 3px solid transparent;
  transition: all 0.3s;
}

.tab-btn.active {
  border-bottom-color: var(--gold);
  color: var(--gold);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--brown-dark);
  font-weight: bold;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid var(--brown-light);
  border-radius: 5px;
  font-family: inherit;
  font-size: 1rem;
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 5px rgba(184, 134, 11, 0.3);
}

.item-list {
  margin-top: 2rem;
}

.item-card {
  background: var(--cream);
  padding: 1.5rem;
  border-left: 4px solid var(--gold);
  margin-bottom: 1rem;
  border-radius: 5px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.item-card-content h4 {
  color: var(--brown-dark);
  margin-bottom: 0.5rem;
}

.item-card-actions {
  display: flex;
  gap: 0.5rem;
}

.btn-small {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}

.btn-danger {
  background-color: #d9534f;
}

.btn-danger:hover {
  background-color: #c9302c;
}

/* Message alerts */
.message {
  padding: 1rem;
  margin-bottom: 1rem;
  border-radius: 5px;
  border-left: 4px solid;
}

.message.success {
  background-color: #d4edda;
  border-color: #28a745;
  color: #155724;
}

.message.error {
  background-color: #f8d7da;
  border-color: #dc3545;
  color: #721c24;
}

/* Shopping Cart */
.cart-button {
  position: relative !important;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

#cart-badge {
  position: absolute;
  top: -8px;
  right: -28px;
  background: #b8860b;
  color: white;
  border-radius: 4px;
  padding: 0.25rem 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: bold;
}

.cart-notification {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #28a745;
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  z-index: 1000;
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from { transform: translateX(400px); }
  to { transform: translateX(0); }
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.6);
  overflow-y: auto;
}

.modal-content {
  background: white;
  margin: 5% auto;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.3);
  max-width: 600px;
  position: relative;
}

.cart-modal-content {
  max-width: 500px;
}

.checkout-modal-content {
  max-width: 600px;
}

.close {
  position: absolute;
  right: 20px;
  top: 15px;
  font-size: 2rem;
  font-weight: bold;
  color: #999;
  cursor: pointer;
  transition: color 0.3s;
}

.close:hover {
  color: #000;
}

@media (max-width: 600px) {
  .modal-content {
    margin: 10% auto;
    padding: 1.5rem;
  }

  .close {
    right: 10px;
    top: 10px;
    font-size: 1.8rem;
  }
}

.modal-content h2 {
  color: var(--brown-dark);
  margin-bottom: 1.5rem;
  font-family: 'Bogue', serif;
  text-transform: uppercase;
}

/* Cart Items */
.cart-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid #eee;
  border-radius: 6px;
  margin-bottom: 1rem;
}

.item-details {
  flex: 1;
}

.item-details h4 {
  margin: 0 0 0.25rem 0;
  color: var(--brown-dark);
}

.item-details p {
  margin: 0;
  color: #666;
  font-size: 0.9rem;
}

.item-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.qty-btn {
  background: var(--brown-light);
  color: white;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.3s;
}

.qty-btn:hover {
  background: var(--brown-dark);
}

.item-controls input[type="number"] {
  width: 50px;
  padding: 0.5rem;
  border: 1px solid var(--brown-light);
  border-radius: 4px;
  text-align: center;
}

.item-price {
  min-width: 80px;
  text-align: right;
  font-weight: bold;
  color: var(--gold);
}

.remove-btn {
  background: #dc3545;
  color: white;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1.2rem;
  transition: background 0.3s;
}

.remove-btn:hover {
  background: #c82333;
}

/* Menu Add to Cart Button */
.menu-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #eee;
  gap: 1rem;
}

.btn-add-cart {
  background: var(--gold);
  color: white;
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
  font-family: inherit;
  transition: all 0.3s;
  text-transform: uppercase;
  font-weight: bold;
  flex-shrink: 0;
}

.btn-add-cart:hover {
  background: var(--brown-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* Responsive */
@media (max-width: 768px) {
  .hero-showcase {
    min-height: auto;
  }

  .hero-content {
    flex-direction: column;
    gap: 1.5rem;
    padding: 2rem 0;
  }

  .hero-image {
    width: 220px;
    height: 220px;
  }

  .hero-showcase h1 {
    font-size: 2rem;
  }

  .tagline {
    font-size: 1rem;
  }

  .hero-icon {
    font-size: 3rem;
  }

  nav a {
    margin-left: 1rem;
    font-size: 0.85rem;
  }

  .header-content {
    flex-direction: column;
    gap: 1rem;
  }

  nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }

  section {
    padding: 2rem 1rem;
  }

  section h2 {
    font-size: 1.8rem;
  }

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

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

  .item-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .admin-tabs {
    flex-wrap: wrap;
  }
}

@media (max-width: 480px) {
  .gallery-showcase-grid {
    grid-template-columns: 1fr;
  }

  section h2 {
    font-size: 1.5rem;
  }
}
