/* ==========================================================================
   Bếp Huế - Custom CSS Stylesheet
   ========================================================================== */

/* --- CSS Variables & Design System --- */
:root {
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Inter', sans-serif;

  /* HSL Warm Culinary Color Palette */
  --clr-primary: hsl(28, 80%, 48%);       /* Terracotta Orange / Mầu cam đất nung */
  --clr-primary-hover: hsl(28, 85%, 43%);
  --clr-secondary: hsl(38, 90%, 55%);     /* Imperial Yellow / Vàng kim Huế */
  --clr-dark: hsl(24, 15%, 8%);           /* Deep Charcoal / Nâu đen trầm */
  --clr-light: hsl(30, 20%, 96%);         /* Cream / Trắng kem */
  --clr-gray: hsl(24, 8%, 65%);
  --clr-success: hsl(142, 70%, 45%);      /* Pure green */
  
  --glass-bg: rgba(15, 12, 10, 0.75);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  
  --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --border-radius-lg: 24px;
  --border-radius-md: 12px;
}

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

body {
  font-family: var(--font-body);
  background-color: var(--clr-dark);
  color: var(--clr-light);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow-x: hidden;
  line-height: 1.6;
}

/* --- Background Image & Blur --- */
.bg-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1.05); /* Slight zoom to prevent white edges during animations */
  animation: slowZoom 40s infinite alternate ease-in-out;
}

.bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: radial-gradient(circle, rgba(15, 12, 10, 0.4) 0%, rgba(10, 8, 6, 0.85) 100%);
}

@keyframes slowZoom {
  0% { transform: scale(1.02) translate(0, 0); }
  100% { transform: scale(1.08) translate(-1%, -1%); }
}

/* --- Main Layout Wrapper --- */
.main-wrapper {
  width: 100%;
  max-width: 800px;
  padding: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1;
}

/* --- Premium Glassmorphic Card --- */
.content-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--glass-shadow);
  padding: 56px 48px;
  width: 100%;
  text-align: center;
  opacity: 0;
  transform: translateY(30px);
  animation: slideInUp 1.2s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes slideInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Brand Header Section --- */
.brand-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 40px;
}

.brand-logo-container {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--clr-primary) 0%, hsl(28, 90%, 35%) 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 16px;
  border: 2px solid var(--clr-secondary);
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.3);
  animation: pulseGlow 3s infinite alternate ease-in-out;
}

.brand-icon {
  font-size: 32px;
  color: var(--clr-light);
}

.brand-name {
  font-family: var(--font-heading);
  font-size: 38px;
  font-weight: 700;
  color: var(--clr-light);
  letter-spacing: 1.5px;
  line-height: 1.2;
}

.brand-tagline {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: var(--clr-secondary);
  margin-top: 6px;
  font-weight: 500;
}

@keyframes pulseGlow {
  0% { box-shadow: 0 0 15px rgba(245, 158, 11, 0.2); border-color: var(--clr-secondary); }
  100% { box-shadow: 0 0 30px rgba(245, 158, 11, 0.6); border-color: var(--clr-primary); }
}

/* --- Intro Section --- */
.intro-section {
  margin-bottom: 40px;
}

#main-title {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 600;
  color: var(--clr-light);
  margin-bottom: 16px;
  line-height: 1.3;
}

.intro-text {
  font-size: 16px;
  color: var(--clr-gray);
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.7;
  font-weight: 300;
}

/* --- Countdown Timer --- */
.countdown-section {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-bottom: 48px;
  background: rgba(255, 255, 255, 0.03);
  padding: 20px 32px;
  border-radius: var(--border-radius-md);
  border: 1px solid rgba(255, 255, 255, 0.05);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.timer-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 70px;
}

.timer-num {
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 700;
  color: var(--clr-secondary);
  line-height: 1;
}

.timer-label {
  font-size: 11px;
  text-transform: uppercase;
  color: var(--clr-gray);
  margin-top: 6px;
  letter-spacing: 1px;
}

.timer-divider {
  font-family: var(--font-heading);
  font-size: 28px;
  color: rgba(255, 255, 255, 0.2);
  transform: translateY(-8px);
}

.timer-live {
  font-family: var(--font-heading);
  font-size: 20px;
  color: var(--clr-secondary);
  font-style: italic;
}

/* --- Signup Section & Input Form --- */
.signup-section {
  margin-bottom: 48px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.signup-callout {
  font-size: 14px;
  color: var(--clr-light);
  margin-bottom: 20px;
  font-weight: 400;
}

.signup-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.input-group {
  position: relative;
  width: 100%;
}

.input-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--clr-gray);
  font-size: 18px;
  transition: var(--transition-smooth);
}

.signup-form input[type="email"] {
  width: 100%;
  padding: 16px 20px 16px 52px;
  border-radius: var(--border-radius-md);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: var(--clr-light);
  font-size: 15px;
  font-family: var(--font-body);
  outline: none;
  transition: var(--transition-smooth);
}

.signup-form input[type="email"]::placeholder {
  color: var(--clr-gray);
}

.signup-form input[type="email"]:focus {
  border-color: var(--clr-primary);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 15px rgba(239, 90, 36, 0.15);
}

.signup-form input[type="email"]:focus + .input-icon {
  color: var(--clr-primary);
}

/* --- Premium Buttons --- */
.btn-primary {
  width: 100%;
  padding: 16px 28px;
  background: linear-gradient(135deg, var(--clr-primary) 0%, hsl(28, 90%, 40%) 100%);
  border: none;
  border-radius: var(--border-radius-md);
  color: var(--clr-light);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 15px rgba(239, 90, 36, 0.3);
  transition: var(--transition-smooth);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(239, 90, 36, 0.5);
  background: linear-gradient(135deg, hsl(28, 85%, 52%) 0%, var(--clr-primary) 100%);
}

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

.btn-primary.loading {
  opacity: 0.8;
  cursor: not-allowed;
}

.btn-icon {
  font-size: 14px;
  transition: var(--transition-smooth);
}

.btn-primary:hover .btn-icon {
  transform: translateX(4px) scale(1.1);
}

/* --- Footer & Social Section --- */
.footer-section {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 32px;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 24px;
}

.social-link-item {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--clr-light);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 18px;
  text-decoration: none;
  transition: var(--transition-smooth);
}

.social-link-item:hover {
  background: var(--clr-primary);
  border-color: var(--clr-primary);
  color: var(--clr-light);
  transform: translateY(-4px);
  box-shadow: 0 5px 15px rgba(239, 90, 36, 0.4);
}

.copyright-text {
  font-size: 12px;
  color: var(--clr-gray);
  letter-spacing: 0.5px;
}

/* --- Success Toast Notification --- */
.toast-notification {
  position: fixed;
  bottom: -100px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(20, 16, 14, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--clr-success);
  border-radius: var(--border-radius-md);
  padding: 16px 24px;
  z-index: 99;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  width: 90%;
  max-width: 450px;
}

.toast-notification.show {
  bottom: 40px;
}

.toast-content {
  display: flex;
  align-items: center;
  gap: 16px;
}

.toast-icon {
  font-size: 28px;
  color: var(--clr-success);
}

.toast-text-wrapper {
  display: flex;
  flex-direction: column;
}

.toast-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--clr-light);
  margin-bottom: 2px;
}

.toast-desc {
  font-size: 13px;
  color: var(--clr-gray);
}

/* --- Responsive Media Queries --- */
@media (max-width: 768px) {
  .content-card {
    padding: 40px 24px;
    border-radius: 16px;
  }
  
  .brand-name {
    font-size: 32px;
  }
  
  #main-title {
    font-size: 26px;
  }
  
  .intro-text {
    font-size: 14px;
  }
  
  .countdown-section {
    padding: 16px 20px;
    gap: 8px;
  }
  
  .timer-box {
    min-width: 60px;
  }
  
  .timer-num {
    font-size: 28px;
  }
}

@media (max-width: 480px) {
  .brand-logo-container {
    width: 60px;
    height: 60px;
  }
  
  .brand-icon {
    font-size: 26px;
  }
  
  .brand-tagline {
    font-size: 11px;
    letter-spacing: 3px;
  }

  .countdown-section {
    padding: 12px 14px;
    gap: 6px;
  }
  
  .timer-box {
    min-width: 50px;
  }
  
  .timer-num {
    font-size: 24px;
  }
  
  .timer-divider {
    font-size: 20px;
  }
  
  .signup-form input[type="email"],
  .btn-primary {
    padding: 14px 18px;
    font-size: 14px;
  }
  
  .signup-form input[type="email"] {
    padding-left: 48px;
  }
  
  .input-icon {
    left: 16px;
    font-size: 16px;
  }
  
  .social-link-item {
    width: 38px;
    height: 38px;
    font-size: 16px;
  }
}
