/**
 * Home Page Styles - Bold Chula's Design
 * Integrated design with brand colors and visible branding
 */

.page-home {
  min-height: 100%;
  padding: 0;
  position: relative;
}

/* Background logo watermark */
.page-home::before {
  content: '';
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
  height: 300px;
  background-image: url('/images/Chulas-Logo-Primary-Black.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.04;
  pointer-events: none;
  z-index: -1;
}

/* Ensure content is clickable */
.page-home .home-scroll-content {
  position: relative;
  z-index: 1;
}

/* Logo spacer */
.logo-spacer {
  height: 40px;
}

/* ==========================================================================
   QUICK ACTIONS ROW - Join La Familia + Reserve Table
   ========================================================================== */

.quick-actions-row {
  display: flex;
  gap: 10px;
  margin: 0 16px 16px;
}

/* Join La Familia - Expanded Card with Perks */
.join-familia-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 16px;
  background: linear-gradient(135deg, rgba(214, 222, 35, 0.06) 0%, rgba(248, 160, 84, 0.04) 100%);
  border: 1.5px solid var(--color-chulas-lime);
  border-radius: 16px;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: 0 0 20px rgba(214, 222, 35, 0.12);
}

.join-familia-card:active {
  transform: scale(0.98);
  background: linear-gradient(135deg, rgba(214, 222, 35, 0.12) 0%, rgba(248, 160, 84, 0.08) 100%);
}

.familia-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.familia-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  background: linear-gradient(135deg, rgba(214, 222, 35, 0.25) 0%, rgba(248, 160, 84, 0.2) 100%);
  border: 1px solid rgba(214, 222, 35, 0.6);
  border-radius: 8px;
}

.familia-badge span {
  font-family: var(--font-display);
  font-size: 9px;
  font-weight: 800;
  color: var(--color-chulas-lime);
  letter-spacing: 0.1em;
  text-shadow: 0 0 10px var(--color-chulas-lime-glow);
}

.familia-card-header .join-title {
  flex: 1;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--color-text);
}

.familia-card-header .join-chevron {
  font-size: 18px;
  color: var(--color-chulas-lime);
  opacity: 0.8;
}

.familia-perks-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.familia-perk {
  display: flex;
  align-items: center;
  gap: 10px;
}

.familia-perk .perk-icon {
  font-size: 13px;
  width: 22px;
  text-align: center;
  flex-shrink: 0;
}

/* Vibrant Chulas-colored glows with grayscale imprint */
.familia-perk:nth-child(1) .perk-icon {
  filter: grayscale(100%) brightness(1.3)
    drop-shadow(0 0 4px rgb(248, 160, 84))
    drop-shadow(0 0 8px rgb(248, 160, 84))
    drop-shadow(0 0 12px rgba(248, 160, 84, 0.8));
}

.familia-perk:nth-child(2) .perk-icon {
  filter: grayscale(100%) brightness(1.3)
    drop-shadow(0 0 4px rgb(214, 222, 35))
    drop-shadow(0 0 8px rgb(214, 222, 35))
    drop-shadow(0 0 12px rgba(214, 222, 35, 0.8));
}

.familia-perk:nth-child(3) .perk-icon {
  filter: grayscale(100%) brightness(1.3)
    drop-shadow(0 0 4px rgb(240, 89, 96))
    drop-shadow(0 0 8px rgb(240, 89, 96))
    drop-shadow(0 0 12px rgba(240, 89, 96, 0.8));
}

.familia-perk:nth-child(4) .perk-icon {
  filter: grayscale(100%) brightness(1.3)
    drop-shadow(0 0 4px rgb(112, 96, 169))
    drop-shadow(0 0 8px rgb(112, 96, 169))
    drop-shadow(0 0 12px rgba(112, 96, 169, 0.8));
}

.familia-perk .perk-text {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 500;
  color: var(--color-text-secondary);
}

/* Reserve Button - Compact (stretches to match familia card height) */
.reserve-btn-compact {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 20px;
  background: rgba(240, 89, 96, 0.08);
  border: 1.5px solid var(--color-chulas-red);
  border-radius: 16px;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: 0 0 15px rgba(240, 89, 96, 0.15);
  min-width: 85px;
}

.reserve-btn-compact:active {
  transform: scale(0.98);
  background: rgba(240, 89, 96, 0.15);
}

.reserve-btn-compact .reserve-icon {
  font-size: 24px;
}

.reserve-btn-compact .reserve-text {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--color-chulas-red);
  text-align: center;
}

/* Reserve Button - Full Width (when authenticated) */
.quick-actions-row.authenticated {
  display: block;
}

.reserve-btn-full {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 24px;
  background: rgba(240, 89, 96, 0.08);
  border: 1.5px solid var(--color-chulas-red);
  border-radius: 14px;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: 0 0 20px rgba(240, 89, 96, 0.15);
}

.reserve-btn-full:active {
  transform: scale(0.98);
  background: rgba(240, 89, 96, 0.15);
  box-shadow: 0 0 30px rgba(240, 89, 96, 0.25);
}

.reserve-btn-full .reserve-icon {
  font-size: 18px;
}

.reserve-btn-full .reserve-text {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--color-chulas-red);
}

.reserve-btn-full .reserve-chevron {
  font-size: 16px;
  color: var(--color-chulas-red);
  opacity: 0.7;
}

/* ==========================================================================
   FEATURED MENU - Menu item showcase
   ========================================================================== */

.featured-menu-card {
  margin: 0 16px;
  margin-bottom: 16px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.02);
  border: 1.5px solid var(--color-chulas-orange);
  border-radius: 20px;
  position: relative;
  box-shadow: 0 0 20px rgba(248, 160, 84, 0.15);
}

.featured-menu-card .section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.featured-menu-card .section-header h2 {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--color-text);
  letter-spacing: 0.02em;
}

.featured-menu-card .view-all {
  background: none;
  border: none;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--color-chulas-orange);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
}

.featured-menu-card .view-all span {
  font-size: 16px;
}

.featured-menu-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
}

.featured-menu-scroll::-webkit-scrollbar {
  display: none;
}

/* Featured Menu Item Card */
.featured-menu-item {
  position: relative;
  flex-shrink: 0;
  width: 150px;
  border-radius: 16px;
  overflow: hidden;
  scroll-snap-align: start;
  transition: all var(--transition-fast);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(248, 160, 84, 0.3);
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.featured-menu-item:active {
  transform: scale(0.98);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.featured-item-image {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-bottom: 1px solid rgba(248, 160, 84, 0.2);
}

.featured-item-placeholder {
  width: 100%;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(248, 160, 84, 0.15) 0%, rgba(248, 160, 84, 0.05) 100%);
  font-size: 40px;
  border-bottom: 1px solid rgba(248, 160, 84, 0.2);
}

.featured-item-category {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 4px 8px;
  background: rgba(0, 0, 0, 0.75);
  border: 1px solid rgba(248, 160, 84, 0.5);
  border-radius: 6px;
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 600;
  color: var(--color-chulas-orange);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.featured-item-info {
  padding: 12px;
  background: linear-gradient(180deg, rgba(30, 26, 27, 0.9) 0%, rgba(21, 18, 19, 1) 100%);
}

.featured-item-info h3 {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: bold;
  color: var(--color-text);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.featured-item-price {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--color-chulas-lime);
  text-shadow: 0 0 8px rgba(214, 222, 35, 0.3);
}

/* ==========================================================================
   WHAT'S HAPPENING SECTION
   ========================================================================== */

.events-section {
  padding: 0 16px;
  padding-bottom: 32px;
}

.events-section .section-header {
  margin-bottom: 16px;
}

.events-section .section-header h2 {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--color-text);
  letter-spacing: 0.02em;
}

.events-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Featured Event Card */
.featured-event-card {
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.02);
  border: 1.5px solid;
  cursor: pointer;
  transition: all var(--transition-normal);
}

.featured-event-card:active {
  transform: scale(0.99);
  background: rgba(255, 255, 255, 0.04);
}

.featured-event-card .event-image {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.featured-event-card .event-content {
  padding: 18px;
}

.featured-event-card .featured-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  color: var(--color-chulas-lime);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 10px;
}

.featured-event-card .featured-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--color-chulas-lime);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--color-chulas-lime);
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.featured-event-card h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: bold;
  color: var(--color-text);
  margin-bottom: 8px;
}

.featured-event-card .event-description {
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--color-text-secondary);
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
}

.featured-event-card .event-datetime {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
}

/* Regular Event Card */
.event-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1.5px solid;
  cursor: pointer;
  transition: all var(--transition-normal);
}

.event-card:active {
  background: rgba(255, 255, 255, 0.05);
  transform: scale(0.99);
}

.event-card .event-image {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
}

.event-card .event-icon {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}

.event-card .event-info {
  flex: 1;
  min-width: 0;
}

.event-card .event-info h4 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: bold;
  color: var(--color-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 3px;
}

.event-card .event-info .event-description {
  font-family: var(--font-display);
  font-size: 13px;
  color: var(--color-text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 3px;
  line-height: 1.3;
}

.event-card .event-info .event-datetime {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
}

.event-card .chevron {
  font-size: 16px;
  flex-shrink: 0;
}

/* Empty events state */
.events-section .empty-state,
.events-list:empty + .empty-state,
.page-home .no-events {
  text-align: center;
  padding: 32px 16px;
  color: var(--color-text-tertiary);
  font-family: var(--font-display);
  font-size: 14px;
}
