/*
 * Dress Maker: Atelier — 3D Haute Couture Bespoke Tailoring Experience
 * Modern, Responsive, Mobile-First Luxury Editorial Stylesheet
 */

:root {
  --bg-primary: #0a0c14;
  --bg-secondary: #121524;
  --bg-card: rgba(18, 22, 38, 0.85);
  --bg-card-hover: rgba(28, 36, 60, 0.95);
  --border-subtle: rgba(255, 255, 255, 0.09);
  --border-gold: rgba(212, 175, 55, 0.45);
  --gold-glow: #facc15;
  --gold-accent: #c5a059;
  --gold-dark: #b45309;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --accent-cyan: #38bdf8;
  --accent-rose: #f43f5e;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --font-editorial: "Playfair Display", "Georgia", "Times New Roman", serif;
  --font-ui: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  font-family: var(--font-ui);
  background-color: var(--bg-primary);
  color: var(--text-main);
  scroll-behavior: smooth;
  overscroll-behavior-y: none;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  background: radial-gradient(circle at 50% 12%, #182038 0%, #0a0c14 60%);
}

/* Top Navigation Bar */
.top-nav {
  height: 56px;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(10, 12, 20, 0.92);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 50;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.brand-icon {
  font-size: 1.35rem;
}

.brand-name {
  font-family: var(--font-editorial);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: 2px;
  color: #ffffff;
}

.brand-tld {
  color: var(--gold-accent);
  font-size: 0.85rem;
  font-weight: 700;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.nav-badge {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(197, 160, 89, 0.12);
  border: 1px solid rgba(197, 160, 89, 0.3);
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gold-accent);
  letter-spacing: 0.5px;
}

.btn-nav-fullscreen {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  color: #fff;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.2s;
}

.btn-nav-fullscreen:hover {
  background: rgba(197, 160, 89, 0.25);
  border-color: var(--gold-accent);
  color: #fef08a;
}

/* Hero Section: The Atelier Game Stage */
.hero-game-wrapper {
  padding: 0.85rem 1rem 1.25rem 1rem;
  max-width: 1240px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.challenge-header {
  text-align: center;
  margin-bottom: 0.75rem;
}

.theme-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(197, 160, 89, 0.15);
  border: 1px solid rgba(197, 160, 89, 0.4);
  color: #fef08a;
  padding: 0.25rem 0.85rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.main-h1 {
  font-family: var(--font-editorial);
  font-size: clamp(1.4rem, 3.8vw, 2.3rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
  margin-bottom: 0.25rem;
  text-shadow: 0 2px 12px rgba(0,0,0,0.6);
}

.h1-highlight {
  color: var(--gold-accent);
  font-style: italic;
}

.brief-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto;
}

/* 3D Atelier Game Frame Container */
.atelier-stage-box {
  width: 100%;
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-gold);
  background: #121315;
  box-shadow: 0 16px 45px rgba(0,0,0,0.7), 0 0 35px rgba(197, 160, 89, 0.15);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.atelier-stage-box::before {
  content: '';
  position: absolute;
  top: -50px;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 100px;
  background: radial-gradient(ellipse at center, rgba(197, 160, 89, 0.22) 0%, transparent 70%);
  pointer-events: none;
  z-index: 2;
}

/* 16:9 Aspect Ratio Game Canvas Viewport */
.game-viewport {
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 75vh;
  position: relative;
  background: #121315;
}

@media (max-width: 640px) {
  .game-viewport {
    aspect-ratio: 16 / 10;
    max-height: 70vh;
  }
}

.atelier-game-iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  background-color: #121315;
}

/* Fullscreen Mode on Viewport */
.atelier-stage-box:fullscreen,
.atelier-stage-box:-webkit-full-screen {
  width: 100vw !important;
  height: 100vh !important;
  max-height: 100vh !important;
  border-radius: 0 !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
  background: #121315 !important;
}

.atelier-stage-box:fullscreen .game-viewport,
.atelier-stage-box:-webkit-full-screen .game-viewport {
  width: 100vw !important;
  height: calc(100vh - 44px) !important;
  max-height: calc(100vh - 44px) !important;
}

/* Bottom Atelier Toolbar */
.atelier-toolbar {
  height: 48px;
  background: rgba(18, 19, 21, 0.95);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  z-index: 10;
}

.toolbar-left, .toolbar-right {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.toolbar-hint {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.toolbar-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: #fff;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.2s;
}

.toolbar-btn:hover {
  background: rgba(197, 160, 89, 0.2);
  border-color: var(--gold-accent);
  color: #fef08a;
}

.toolbar-btn.primary {
  background: linear-gradient(135deg, #c5a059 0%, #9a7635 100%);
  color: #000;
  border: none;
  font-weight: 700;
}

.toolbar-btn.primary:hover {
  filter: brightness(1.15);
  color: #000;
}

/* Mobile Rotation Advisory Banner (For portrait mobile users) */
.mobile-rotate-note {
  display: none;
  width: 100%;
  background: rgba(197, 160, 89, 0.12);
  border: 1px solid rgba(197, 160, 89, 0.3);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.75rem;
  font-size: 0.82rem;
  color: #fef08a;
  text-align: center;
  margin-top: 0.6rem;
}

@media (max-width: 768px) and (orientation: portrait) {
  .mobile-rotate-note {
    display: block;
  }
}

/* Ad Placement Banner (Non-intrusive) */
.ad-slot-wrapper {
  margin: 2.2rem auto;
  max-width: 970px;
  width: 100%;
  padding: 0 1rem;
}

.ad-banner-slot {
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed var(--border-subtle);
  border-radius: var(--radius-md);
  min-height: 90px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.75rem;
  text-align: center;
  padding: 1rem;
}

.ad-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #64748b;
  margin-bottom: 0.25rem;
}

/* Below-The-Fold SEO Masterclass Section */
.seo-content-section {
  max-width: 980px;
  margin: 1rem auto 4rem auto;
  padding: 0 1.25rem;
}

.seo-card {
  background: rgba(16, 20, 34, 0.8);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 1.75rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
}

.seo-card h2 {
  font-family: var(--font-editorial);
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  color: #ffffff;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0.6rem;
}

.seo-card p, .seo-card li {
  color: #cbd5e1;
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 0.85rem;
}

.seo-card ul, .seo-card ol {
  padding-left: 1.5rem;
  margin-bottom: 1.2rem;
}

/* 8 Bespoke Craftsmanship Stages Grid */
.stages-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: 1.5rem 0;
}

@media (min-width: 640px) {
  .stages-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .stages-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stage-step-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.1rem;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
}

.stage-step-card:hover {
  background: rgba(197, 160, 89, 0.06);
  border-color: rgba(197, 160, 89, 0.35);
  transform: translateY(-2px);
}

.stage-step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--gold-accent);
  color: #000;
  font-weight: 800;
  font-size: 0.8rem;
  margin-bottom: 0.6rem;
}

.stage-step-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.35rem;
}

.stage-step-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 0;
}

/* FAQ Items */
.faq-item {
  border-bottom: 1px solid var(--border-subtle);
  padding: 1.15rem 0;
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-question {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.4rem;
}

.faq-answer {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.65;
}

/* Toast Notifications */
#toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(40px);
  background: rgba(18, 22, 38, 0.96);
  border: 1px solid var(--border-gold);
  color: #fff;
  padding: 0.75rem 1.35rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0,0,0,0.6);
  pointer-events: none;
  opacity: 0;
  transition: all 0.25s ease;
  z-index: 1000;
  white-space: nowrap;
}

#toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* Site Footer */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 2.5rem 1.25rem;
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-muted);
  background: #06080e;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 0.85rem;
  flex-wrap: wrap;
}

.footer-link {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-link:hover {
  color: var(--gold-accent);
}
