/* CJ's Street Treats - Custom Styles */

/* === BASE === */
:root {
  --warm-bg: #FFF8F0;
  --warm-bg-alt: #FFF1E0;
  --red-accent: #C0392B;
  --red-light: #E74C3C;
  --green-accent: #059669;
  --green-light: #34D399;
  --sakura: #FFB7C5;
  --sakura-light: #FFE0E8;
  --gold: #C5973E;
  --text-dark: #1a1a1a;
  --text-muted: #6b7280;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--warm-bg);
  color: var(--text-dark);
  margin: 0;
  -webkit-font-smoothing: antialiased;
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4 {
  font-family: 'DM Serif Display', Georgia, serif;
}

/* === NAVIGATION === */
.nav-main {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: all 0.3s ease;
  background: rgba(255, 248, 240, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.nav-main.scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}

.nav-link {
  position: relative;
  color: #374151;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.5rem 0;
  transition: color 0.2s;
}

.nav-link:hover { color: var(--red-accent); }

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--red-accent);
  transition: width 0.2s;
}

.nav-link:hover::after,
.nav-link.active::after { width: 100%; }

.nav-link.active { color: var(--red-accent); }

/* === HERO === */
.hero-section {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, #FFF8F0 0%, #FFE8D6 30%, #FFD5C2 60%, #FFB7C5 100%);
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 80%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(255, 183, 197, 0.3) 0%, transparent 70%);
  animation: float 8s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-30px) rotate(2deg); }
}

.hero-emoji {
  font-size: 4rem;
  display: inline-block;
  animation: bounce-gentle 3s ease-in-out infinite;
}

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

/* === PRODUCT CARDS === */
.product-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid rgba(0,0,0,0.04);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.1);
}

.product-emoji-container {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  position: relative;
  overflow: hidden;
}

.product-emoji-container.mochi {
  background: linear-gradient(135deg, #e8faf0, #dcf5e8, #c6f0d9);
}
.product-emoji-container.baked {
  background: linear-gradient(135deg, #fff4e6, #ffe8cc, #ffdbb3);
}
.product-emoji-container.treats {
  background: linear-gradient(135deg, #fce4ec, #f8bbd0, #f48fb1);
}
.product-emoji-container.gift {
  background: linear-gradient(135deg, #ede7f6, #d1c4e9, #b39ddb);
}

.product-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--red-accent);
  color: white;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 99px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.product-info {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-name {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.15rem;
  margin: 0 0 2px;
  color: var(--text-dark);
}

.product-subtitle {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0 0 8px;
}

.product-desc {
  font-size: 0.85rem;
  color: #555;
  line-height: 1.5;
  margin: 0 0 16px;
  flex: 1;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.product-price {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.3rem;
  color: var(--text-dark);
}

.btn-order {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--green-accent);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 99px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
  white-space: nowrap;
}

.btn-order:hover {
  background: #047857;
  transform: scale(1.02);
}

/* === CATEGORY FILTER === */
.category-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: 99px;
  border: 2px solid #e5e7eb;
  background: white;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  color: var(--text-muted);
  text-decoration: none;
}

.category-tab:hover {
  border-color: var(--red-accent);
  color: var(--red-accent);
}

.category-tab.active {
  background: var(--red-accent);
  border-color: var(--red-accent);
  color: white;
}

/* === SECTIONS === */
.section-warm { background-color: var(--warm-bg); }
.section-white { background-color: #ffffff; }
.section-cream { background-color: var(--warm-bg-alt); }
.section-sakura { background: linear-gradient(135deg, var(--sakura-light), #fff0f3, var(--warm-bg)); }

/* === FEATURE CARDS === */
.feature-card {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid rgba(0,0,0,0.04);
}

.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
}

/* === BUTTONS === */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--red-accent);
  color: white;
  border: none;
  padding: 14px 32px;
  border-radius: 99px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
}

.btn-primary:hover {
  background: var(--red-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(192, 57, 43, 0.3);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--text-dark);
  border: 2px solid var(--text-dark);
  padding: 12px 28px;
  border-radius: 99px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
}

.btn-secondary:hover {
  background: var(--text-dark);
  color: white;
}

/* === JAPANESE PATTERN DIVIDER === */
.pattern-divider {
  text-align: center;
  padding: 1rem 0;
  opacity: 0.3;
  font-size: 1.2rem;
  letter-spacing: 0.5rem;
}

/* === FOOTER === */
.footer {
  background: #1a1a1a;
  color: #aaa;
  padding: 4rem 0 2rem;
}

.footer a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.2s;
}

.footer a:hover { color: white; }

/* === SUCCESS PAGE === */
.success-container {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.success-icon {
  font-size: 5rem;
  margin-bottom: 1rem;
  animation: bounce-gentle 2s ease-in-out infinite;
}

/* === ABOUT PAGE === */
.about-hero {
  background: linear-gradient(135deg, #FFF8F0, #FFE8D6, #FFD5C2);
  padding: 8rem 0 4rem;
}

.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

@media (max-width: 768px) {
  .story-grid { grid-template-columns: 1fr; gap: 2rem; }
}

.story-visual {
  background: linear-gradient(135deg, var(--sakura-light), #fce4ec);
  border-radius: 24px;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 6rem;
}

/* === CONTACT PAGE === */
.contact-card {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  border: 1px solid rgba(0,0,0,0.04);
}

.map-container {
  border-radius: 16px;
  overflow: hidden;
  height: 400px;
  background: #e5e7eb;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* === MOBILE MENU === */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 248, 240, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 60;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.mobile-menu.open { display: flex; }

.mobile-menu a {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.8rem;
  color: var(--text-dark);
  text-decoration: none;
  transition: color 0.2s;
}

.mobile-menu a:hover { color: var(--red-accent); }

/* === RESPONSIVE === */
@media (max-width: 640px) {
  .hero-section { min-height: 80vh; }
  .hero-emoji { font-size: 3rem; }
  .product-emoji-container { height: 140px; font-size: 3.5rem; }
}

/* === ANIMATIONS === */
.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* === DECORATIVE === */
.japanese-circle {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 3px solid var(--sakura);
  position: absolute;
  opacity: 0.15;
}

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--warm-bg); }
::-webkit-scrollbar-thumb { background: #ccc; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #aaa; }
