/**
 * The Lakehouse Pizza Bar & Grill — Core Component System
 * File: website_assets/lakehouse/v2/css/components.css
 */

/* ==========================================================================
   Luxury Button System
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  font-family: var(--font-sans);
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  transition: all var(--transition-normal);
  text-decoration: none;
  position: relative;
  overflow: hidden;
  user-select: none;
  white-space: nowrap;
}

.btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.6s var(--ease-luxury);
}

.btn:hover::after {
  left: 100%;
}

/* Primary Gold Button */
.btn-gold {
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold-primary) 50%, var(--gold-dark) 100%);
  color: #101012 !important;
  font-weight: 700;
  box-shadow: var(--shadow-gold);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold-hover);
  filter: brightness(1.08);
}

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

/* Secondary Gold Outline */
.btn-outline-gold {
  background: transparent;
  color: var(--text-primary) !important;
  border: 1px solid var(--gold-primary);
  backdrop-filter: blur(8px);
}

.btn-outline-gold:hover {
  background: var(--gold-primary) !important;
  color: #101012 !important;
  border-color: var(--gold-primary) !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}

/* Ghost Button */
.btn-ghost {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  border: 1px solid var(--border-card);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-primary);
  border-color: var(--border-subtle);
}

/* Button Sizes */
.btn-sm {
  padding: 8px 18px;
  font-size: var(--fs-tiny);
  letter-spacing: 0.06em;
}

.btn-lg {
  padding: 18px 36px;
  font-size: var(--fs-body);
}

.btn-block {
  width: 100%;
}

/* ==========================================================================
   3D Card & Glass Surface Primitives
   ========================================================================== */
.card-glass {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-subtle);
  transition: all var(--transition-normal);
  position: relative;
}

.card-glass:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-gold);
  box-shadow: var(--shadow-elevated), 0 0 20px var(--gold-glow);
}

/* 3D Perspective Card Wrapper */
.card-3d-wrap {
  perspective: var(--perspective-card);
}

.card-3d {
  transform-style: preserve-3d;
  transition: transform var(--transition-normal);
  will-change: transform;
}

/* ==========================================================================
   Food Card Component
   ========================================================================== */
.food-card {
  display: flex;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition-normal);
  position: relative;
  height: 100%;
}

.food-card:hover {
  border-color: var(--border-gold);
  transform: translateY(-4px);
  box-shadow: var(--shadow-elevated), 0 0 24px var(--gold-glow);
}

.food-card-img-wrap {
  width: 130px;
  min-width: 130px;
  max-width: 130px;
  position: relative;
  overflow: hidden;
  background: var(--bg-secondary);
}

.food-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

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

.food-card-body {
  padding: var(--space-sm) var(--space-md);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-grow: 1;
}

.food-card-category {
  font-size: var(--fs-tiny);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold-primary);
  margin-bottom: 4px;
  font-weight: 700;
}

.food-card-title {
  font-size: var(--fs-h4);
  font-family: var(--font-serif);
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
  line-height: 1.3;
}

.food-card-desc {
  font-size: var(--fs-small);
  color: var(--text-secondary);
  line-height: 1.45;
  margin-bottom: var(--space-sm);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.food-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-xs);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.food-price {
  font-size: var(--fs-body);
  font-weight: 700;
  color: var(--gold-light);
  font-family: var(--font-sans);
}

.food-price span {
  font-size: var(--fs-tiny);
  color: var(--text-muted);
  font-weight: 400;
  margin-right: 2px;
}

/* Mobile Food Card Stack */
@media (max-width: 576px) {
  .food-card {
    flex-direction: column;
  }
  .food-card-img-wrap {
    width: 100%;
    min-width: 100%;
    max-width: 100%;
    height: 190px;
  }
}

/* ==========================================================================
   Pill Badges & Tag Filters
   ========================================================================== */
.pill-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: var(--fs-tiny);
  font-weight: 600;
  letter-spacing: 0.04em;
  background: rgba(198, 154, 84, 0.12);
  color: var(--gold-primary);
  border: 1px solid var(--border-subtle);
}

/* Scroll To Top */
.scroll-top-btn {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-pill);
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  color: var(--gold-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-subtle);
}

.scroll-top-btn.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top-btn:hover {
  background: var(--gold-primary);
  color: #101012;
  box-shadow: var(--shadow-gold);
  transform: translateY(-3px);
}
