/* ==========================================================================
   ELORA Premium Gifting - Presentation Dashboard Stylesheet
   Contains: Global tokens, presentation frame, iPhone 16 mockup, and switcher layout
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,400&family=Inter:wght@300;400;500;600&display=swap');

/* --- Global Design Tokens --- */
:root {
  /* Brand Colors */
  --bg-primary: #FAF8F5;       /* Warm Soft Cream */
  --bg-secondary: #F3ECE3;     /* Muted Champagne Sand */
  --bg-tertiary: #EBE2D5;      /* Rich Travertine Sand */
  --text-dark: #1E1C1A;        /* Espresso Black */
  --text-muted: #5E5851;       /* Warm Charcoal */
  --color-accent: #C2826F;     /* Muted Terracotta Rose */
  --color-accent-hover: #AE6D5A;
  --color-sage: #4E6050;       /* Mossy Forest Green */
  --color-white: #FFFFFF;
  --border-subtle: rgba(30, 28, 26, 0.08);
  --border-strong: rgba(30, 28, 26, 0.15);
  
  /* Layout Fonts */
  --font-serif: 'Cormorant Garamond', serif;
  --font-sans: 'Inter', sans-serif;
  
  /* Shadow Systems */
  --shadow-sm: 0 2px 8px rgba(30, 28, 26, 0.04);
  --shadow-md: 0 8px 24px rgba(30, 28, 26, 0.08);
  --shadow-lg: 0 16px 48px rgba(30, 28, 26, 0.12);
  --shadow-device: 0 30px 60px rgba(0, 0, 0, 0.15), 0 0 0 12px #222222;
  
  /* Transitions */
  --transition-smooth: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  --transition-fast: all 0.2s ease;
}

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

body {
  font-family: var(--font-sans);
  background-color: #ECE7E1;
  color: var(--text-dark);
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* --- Presentation Top Header --- */
.dashboard-header {
  height: 70px;
  background-color: var(--color-white);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 30px;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}

.dashboard-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dashboard-logo h1 {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.dashboard-logo .tag {
  background-color: var(--bg-secondary);
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 100px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* --- Viewport Controller Controls --- */
.dashboard-controls {
  display: flex;
  background-color: var(--bg-secondary);
  padding: 4px;
  border-radius: 100px;
  gap: 2px;
}

.control-btn {
  background: none;
  border: none;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  padding: 8px 18px;
  border-radius: 100px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition-fast);
}

.control-btn svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.control-btn:hover {
  color: var(--text-dark);
}

.control-btn.active {
  background-color: var(--color-white);
  color: var(--text-dark);
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

/* --- Stakeholder Meta Info --- */
.dashboard-meta {
  display: flex;
  align-items: center;
  gap: 15px;
}

.mrroses-backing {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.mrroses-dot {
  width: 6px;
  height: 6px;
  background-color: var(--color-accent);
  border-radius: 50%;
}

/* --- Main Dashboard View Area --- */
.dashboard-content {
  flex: 1;
  position: relative;
  overflow: hidden;
  background-color: #F4F1EC;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* --- View States --- */
.view-panel {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease;
  transform: scale(0.98);
}

.view-panel.active {
  opacity: 1;
  pointer-events: all;
  transform: scale(1);
}

/* --- State A: Desktop View (Full Responsive Canvas) --- */
.desktop-view-container {
  width: 100%;
  height: 100%;
  overflow-y: auto;
  background-color: var(--bg-primary);
}

/* --- State B: Mobile View (Simulated iPhone Frame) --- */
.mobile-view-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  padding: 40px;
}

/* Simulated Smartphone Bezel */
.phone-mockup-frame {
  width: 393px; /* iPhone 15/16 screen width standard */
  height: 852px; /* iPhone 15/16 screen height standard */
  background-color: var(--bg-primary);
  border-radius: 52px;
  box-shadow: var(--shadow-device);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 4px solid #111111;
}

/* iPhone Dynamic Island */
.phone-notch {
  position: absolute;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  width: 110px;
  height: 28px;
  background-color: #000000;
  border-radius: 100px;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 4px rgba(255,255,255,0.1);
}

.phone-notch::before {
  content: '';
  width: 10px;
  height: 10px;
  background-color: #101010;
  border-radius: 50%;
  position: absolute;
  right: 25px;
}

/* iPhone Status Bar */
.phone-status-bar {
  height: 48px;
  background-color: transparent;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 0 32px 8px 32px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-dark);
  z-index: 999;
  user-select: none;
  font-family: var(--font-sans);
}

.status-icons {
  display: flex;
  align-items: center;
  gap: 5px;
}

.status-icons svg {
  width: 16px;
  height: 16px;
}

/* Phone Screen Scrollable Content Window */
.phone-screen-content {
  flex: 1;
  overflow-y: scroll;
  overflow-x: hidden;
  position: relative;
  -webkit-overflow-scrolling: touch;
}

/* Hide scrollbar for simulated phone */
.phone-screen-content::-webkit-scrollbar {
  display: none;
}

.phone-screen-content {
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
}

/* iPhone Bottom Home Indicator Bar */
.phone-home-indicator {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 130px;
  height: 5px;
  background-color: rgba(30, 28, 26, 0.4);
  border-radius: 100px;
  z-index: 1000;
  pointer-events: none;
}

/* --- State C: Brand Identity Board --- */
.brand-board-container {
  width: 100%;
  height: 100%;
  overflow-y: auto;
  padding: 60px 8%;
  background-color: var(--bg-primary);
}

.brand-section-title {
  font-family: var(--font-serif);
  font-size: 42px;
  font-weight: 400;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.brand-subtitle {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 600px;
  line-height: 1.6;
}

.brand-row {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 60px;
  padding-bottom: 60px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 60px;
}

.brand-left h3 {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 400;
  letter-spacing: 0.5px;
  margin-bottom: 15px;
}

.brand-left p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Color Swatches Grid */
.color-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 20px;
}

.color-card {
  background-color: var(--color-white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-subtle);
}

.color-preview {
  height: 100px;
  width: 100%;
}

.color-meta {
  padding: 15px;
}

.color-name {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}

.color-hex {
  font-size: 11px;
  font-family: monospace;
  color: var(--text-muted);
  text-transform: uppercase;
}

.color-desc {
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 6px;
  line-height: 1.4;
}

/* Typography showcase */
.type-card {
  background-color: var(--color-white);
  padding: 30px;
  border-radius: 20px;
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.type-example-serif {
  font-family: var(--font-serif);
  font-size: 48px;
  font-weight: 400;
  line-height: 1.1;
  color: var(--text-dark);
}

.type-example-sans {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-muted);
}

.font-specs {
  display: flex;
  gap: 30px;
  border-top: 1px solid var(--border-subtle);
  padding-top: 20px;
}

.spec-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.spec-lbl {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.spec-val {
  font-size: 14px;
  font-weight: 500;
}

/* Concept Cards */
.concept-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.concept-card {
  background-color: var(--color-white);
  padding: 30px;
  border-radius: 20px;
  border: 1px solid var(--border-subtle);
}

.concept-card h4 {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 500;
  margin-bottom: 12px;
}

.concept-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* --- Mobile View Warning (if viewing presentation on phone) --- */
.presentation-mobile-warning {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--bg-primary);
  z-index: 10000;
  padding: 40px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.presentation-mobile-warning h2 {
  font-family: var(--font-serif);
  font-size: 28px;
  margin-bottom: 15px;
}

.presentation-mobile-warning p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 25px;
}

/* Responsive adjustment for mock screen sizing */
@media (max-width: 1024px) {
  .dashboard-controls {
    display: none;
  }
  .presentation-mobile-warning {
    display: flex;
  }
}
