/* ==========================================================================
   BURNING SUN RESTAURANT - UI COMPONENTS & INTERACTIVE ELEMENTS
   ========================================================================== */

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  white-space: nowrap;
  user-select: none;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--gradient-flame);
  color: #FFFFFF;
  box-shadow: 0 4px 18px rgba(242, 106, 33, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(242, 106, 33, 0.55);
  filter: brightness(1.08);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-outline {
  background: transparent;
  color: var(--color-cream-white);
  border: 1px solid var(--color-subtle-border);
  backdrop-filter: blur(8px);
}

.btn-outline:hover {
  border-color: var(--color-golden-amber);
  color: var(--color-golden-amber);
  background: rgba(245, 166, 35, 0.08);
  transform: translateY(-2px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--color-cream-white);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
}

.btn-sm {
  padding: 0.55rem 1.15rem;
  font-size: 0.8125rem;
}

.btn-lg {
  padding: 1.1rem 2.25rem;
  font-size: 1.05rem;
  border-radius: var(--radius-md);
}

.btn-full {
  width: 100%;
}

.btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  fill: currentColor;
  transition: transform var(--transition-fast);
}

.btn:hover svg {
  transform: translateX(3px);
}

/* ==========================================================================
   CARDS & FEATURE SECTIONS
   ========================================================================== */
.card-grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.card-grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.75rem;
}

.feature-card {
  background: var(--gradient-card);
  border: 1px solid var(--color-subtle-border);
  border-radius: var(--radius-md);
  padding: 2.25rem 1.75rem;
  transition: all var(--transition-smooth);
  position: relative;
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: var(--color-border-hover);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), 0 0 20px var(--color-orange-glow);
}

.feature-icon-wrapper {
  width: 58px;
  height: 58px;
  border-radius: var(--radius-sm);
  background: rgba(242, 106, 33, 0.12);
  border: 1px solid rgba(242, 106, 33, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.feature-icon-wrapper svg {
  width: 28px;
  height: 28px;
  fill: var(--color-golden-amber);
}

.feature-card-title {
  font-size: 1.35rem;
  margin-bottom: 0.85rem;
}

.feature-card-desc {
  color: var(--color-muted-text);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* Category Card */
.category-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4/5;
  border: 1px solid var(--color-subtle-border);
  group: pointer;
  display: block;
}

.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.category-card:hover img {
  transform: scale(1.08);
}

.category-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13,13,13,0.1) 0%, rgba(13,13,13,0.4) 50%, rgba(13,13,13,0.95) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.75rem;
  transition: background var(--transition-smooth);
}

.category-card:hover .category-overlay {
  background: linear-gradient(180deg, rgba(13,13,13,0.2) 0%, rgba(13,13,13,0.6) 40%, rgba(13,13,13,0.98) 100%);
}

.category-name {
  font-size: 1.5rem;
  margin-bottom: 0.35rem;
  color: var(--color-cream-white);
}

.category-desc {
  font-size: 0.875rem;
  color: var(--color-muted-text);
}

/* ==========================================================================
   FOOD CARD (POPULAR DISHES & MENU)
   ========================================================================== */
.food-card {
  background: var(--color-surface-card);
  border: 1px solid var(--color-subtle-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-smooth);
}

.food-card:hover {
  transform: translateY(-5px);
  border-color: var(--color-border-hover);
  box-shadow: 0 10px 28px rgba(0,0,0,0.45);
}

.food-card-image {
  position: relative;
  aspect-ratio: 16/11;
  overflow: hidden;
}

.food-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.food-card:hover .food-card-image img {
  transform: scale(1.06);
}

.food-card-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(13, 13, 13, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid var(--color-golden-amber);
  color: var(--color-golden-amber);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
}

.food-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.food-card-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 0.65rem;
}

.food-card-title {
  font-size: 1.25rem;
  font-family: var(--font-heading);
  color: var(--color-cream-white);
}

.food-card-price {
  font-family: var(--font-sans);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-burning-orange);
  white-space: nowrap;
}

.food-card-desc {
  font-size: 0.9125rem;
  color: var(--color-muted-text);
  line-height: 1.6;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.food-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag-dietary {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--color-cream-soft);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.tag-dietary.gf {
  border-color: rgba(52, 199, 89, 0.4);
  color: #6EE7B7;
}

.tag-dietary.chef {
  border-color: rgba(245, 166, 35, 0.4);
  color: var(--color-golden-amber);
}

/* ==========================================================================
   MENU FILTER TABS
   ========================================================================== */
.menu-filter-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 3.5rem;
}

.filter-btn {
  padding: 0.65rem 1.5rem;
  border-radius: var(--radius-full);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-muted-text);
  background: var(--color-surface-card);
  border: 1px solid var(--color-subtle-border);
  transition: all var(--transition-fast);
}

.filter-btn:hover {
  color: var(--color-cream-white);
  border-color: var(--color-golden-amber);
}

.filter-btn.active {
  background: var(--gradient-flame);
  color: #FFFFFF;
  border-color: transparent;
  box-shadow: 0 4px 16px rgba(242, 106, 33, 0.4);
}

/* ==========================================================================
   GALLERY & LIGHTBOX MODAL
   ========================================================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.5rem;
}

.gallery-card {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-subtle-border);
  cursor: pointer;
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.gallery-card:hover img {
  transform: scale(1.08);
}

.gallery-hover-overlay {
  position: absolute;
  inset: 0;
  background: rgba(13, 13, 13, 0.65);
  backdrop-filter: blur(3px);
  opacity: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.5rem;
  text-align: center;
  transition: opacity var(--transition-smooth);
}

.gallery-card:hover .gallery-hover-overlay {
  opacity: 1;
}

.gallery-hover-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gradient-flame);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFF;
  box-shadow: 0 4px 16px rgba(242, 106, 33, 0.5);
}

.gallery-hover-icon svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.gallery-hover-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: #FFF;
}

.gallery-hover-category {
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-golden-amber);
}

/* Lightbox Modal */
.lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(7, 7, 7, 0.95);
  backdrop-filter: blur(16px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  transition: opacity var(--transition-smooth);
}

.lightbox-modal.active {
  display: flex;
  opacity: 1;
}

.lightbox-content-wrapper {
  position: relative;
  max-width: 1080px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-img {
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
  border: 1px solid var(--color-subtle-border);
}

.lightbox-caption {
  margin-top: 1.25rem;
  text-align: center;
  color: var(--color-cream-white);
  font-size: 1.05rem;
}

.lightbox-close-btn {
  position: absolute;
  top: -45px;
  right: 0;
  width: 40px;
  height: 40px;
  color: var(--color-cream-white);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  transition: all var(--transition-fast);
}

.lightbox-close-btn:hover {
  background: var(--color-burning-orange);
}

.lightbox-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(20, 20, 20, 0.8);
  border: 1px solid var(--color-subtle-border);
  color: #FFF;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.lightbox-nav-btn:hover {
  background: var(--color-burning-orange);
  border-color: transparent;
}

.lightbox-prev {
  left: -70px;
}

.lightbox-next {
  right: -70px;
}

/* ==========================================================================
   FORMS (RESERVATIONS & CONTACT)
   ========================================================================== */
.form-card {
  background: var(--color-surface-card);
  border: 1px solid var(--color-subtle-border);
  border-radius: var(--radius-lg);
  padding: 3rem 2.5rem;
  box-shadow: var(--shadow-md);
  position: relative;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.form-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-cream-soft);
  display: flex;
  justify-content: space-between;
}

.form-label .required-star {
  color: var(--color-burning-orange);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.85rem 1.15rem;
  background: rgba(13, 13, 13, 0.7);
  border: 1px solid var(--color-subtle-border);
  border-radius: var(--radius-sm);
  color: var(--color-cream-white);
  transition: all var(--transition-fast);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-golden-amber);
  box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.2);
  background: rgba(20, 20, 20, 0.95);
}

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

.form-select option {
  background: #1A1A1A;
  color: #FFF;
}

.form-disclaimer {
  padding: 1.25rem;
  background: rgba(245, 166, 35, 0.07);
  border: 1px solid rgba(245, 166, 35, 0.25);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  color: var(--color-cream-soft);
  line-height: 1.6;
  margin-bottom: 1.75rem;
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}

.form-disclaimer svg {
  width: 22px;
  height: 22px;
  fill: var(--color-golden-amber);
  flex-shrink: 0;
  margin-top: 0.1rem;
}

/* Success Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2500;
  background: rgba(5, 5, 5, 0.9);
  backdrop-filter: blur(12px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

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

.modal-dialog {
  background: var(--color-surface-card);
  border: 1px solid var(--color-golden-amber);
  border-radius: var(--radius-lg);
  max-width: 540px;
  width: 100%;
  padding: 2.75rem 2.25rem;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0,0,0,0.8), 0 0 30px var(--color-orange-glow);
}

.modal-icon-circle {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(52, 199, 89, 0.15);
  border: 2px solid #34C759;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: #34C759;
}

.modal-icon-circle svg {
  width: 36px;
  height: 36px;
  fill: currentColor;
}

/* ==========================================================================
   FAQ ACCORDION
   ========================================================================== */
.faq-accordion-container {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-width: 860px;
  margin: 0 auto;
}

.faq-item {
  background: var(--color-surface-card);
  border: 1px solid var(--color-subtle-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition-fast);
}

.faq-item.active {
  border-color: var(--color-golden-amber);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.faq-header {
  width: 100%;
  padding: 1.4rem 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  background: none;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--color-cream-white);
  transition: color var(--transition-fast);
}

.faq-header:hover {
  color: var(--color-burning-orange);
}

.faq-chevron {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  fill: var(--color-golden-amber);
  transition: transform var(--transition-smooth);
}

.faq-item.active .faq-chevron {
  transform: rotate(180deg);
}

.faq-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-smooth);
}

.faq-body-inner {
  padding: 0 1.75rem 1.5rem;
  color: var(--color-muted-text);
  font-size: 0.95rem;
  line-height: 1.7;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: 0.25rem;
  padding-top: 1.25rem;
}

/* ==========================================================================
   CONTACT DETAILS & HOURS TABLE
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
}

.contact-info-card {
  background: var(--color-surface-card);
  border: 1px solid var(--color-subtle-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
}

.contact-tile {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.contact-tile:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.contact-tile-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-sm);
  background: rgba(242, 106, 33, 0.12);
  border: 1px solid rgba(242, 106, 33, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-tile-icon svg {
  width: 24px;
  height: 24px;
  fill: var(--color-golden-amber);
}

.hours-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

.hours-table tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

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

.hours-table td {
  padding: 0.85rem 0;
  font-size: 0.9375rem;
}

.hours-day {
  color: var(--color-cream-white);
  font-weight: 500;
}

.hours-time {
  text-align: right;
  color: var(--color-golden-amber);
  font-weight: 600;
}

.map-wrapper {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-subtle-border);
  aspect-ratio: 16/9;
  width: 100%;
}

.map-wrapper iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: contrast(1.1) brightness(0.9);
}

/* ==========================================================================
   RESPONSIVE OVERRIDES
   ========================================================================== */
@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .form-grid-2 {
    grid-template-columns: 1fr;
    gap: 0;
  }
  
  .lightbox-nav-btn {
    display: none;
  }
}
