/* Design System Variables */
:root {
  --bg-primary: #FAF8F5;
  --bg-secondary: #FFFFFF;
  --text-main: #2C2926;
  --text-muted: #7A7571;
  --accent-wood: #D5B496;
  --accent-sage: #94A694;
  --accent-gold: #D4AF37;
  --border-color: rgba(44, 41, 38, 0.08);
  --glass-bg: rgba(255, 255, 255, 0.75);
  --glass-border: rgba(255, 255, 255, 0.6);
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 10px 10px -5px rgba(0, 0, 0, 0.03);
  --font-main: 'Outfit', sans-serif;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
}

/* Global Reset */
* {
  margin: 0;
  padding: 0;
  box-type: border-box;
  box-sizing: border-box;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-main);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
}

.page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 20px;
}

/* Header / Hero */
.hero {
  text-align: center;
  margin-bottom: 50px;
}

.avatar {
  width: 90px;
  height: 90px;
  background: var(--bg-secondary);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  box-shadow: var(--shadow-md);
  border: 4px solid var(--glass-border);
}

.avatar-icon {
  font-size: 42px;
}

.hero h1 {
  font-size: 3.2rem;
  font-weight: 800;
  letter-spacing: -1.5px;
  margin-bottom: 10px;
  color: var(--text-main);
  background: linear-gradient(135deg, var(--text-main) 60%, var(--accent-wood));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.tagline {
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 15px auto;
}

.meta {
  font-size: 0.95rem;
  color: var(--text-muted);
  background: var(--glass-bg);
  padding: 6px 16px;
  border-radius: 20px;
  display: inline-block;
  border: 1px solid var(--border-color);
  margin-bottom: 12px;
}

.disclosure {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-style: italic;
}

/* Staging Simulator Widget */
.staging-widget {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-lg);
  margin-bottom: 60px;
}

.widget-title {
  font-size: 1.75rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 8px;
}

.widget-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 30px;
}

.simulator-container {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 30px;
  align-items: start;
}

@media (max-width: 768px) {
  .simulator-container {
    grid-template-columns: 1fr;
  }
}

/* Room Canvas Area */
.room-canvas {
  width: 100%;
  aspect-ratio: 4/3;
  background: #EAE6DF;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: inset 0 2px 8px rgba(0,0,0,0.1), var(--shadow-sm);
  position: relative;
}

.wall-background {
  width: 100%;
  height: 100%;
  background-color: #E2DDD5; /* Warm grey/beige wall color */
  position: relative;
}

/* Staged Bed Elements */
.bed-headboard {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: var(--headboard-width, 70%);
  height: 80px;
  background: #C4A283; /* Light wood oak color */
  border-radius: 4px 4px 0 0;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  z-index: 10;
  transition: width 0.4s ease;
}

.bed-pillow-left, .bed-pillow-right {
  position: absolute;
  bottom: 65px;
  width: 25%;
  height: 40px;
  background: #FAF8F5;
  border-radius: 12px 12px 6px 6px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
  z-index: 11;
  transition: left 0.4s ease, right 0.4s ease;
}

.bed-pillow-left {
  left: calc(50% - var(--pillow-offset, 24%));
}

.bed-pillow-right {
  right: calc(50% - var(--pillow-offset, 24%));
}

.bed-sheets {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: var(--sheets-width, 76%);
  height: 70px;
  background: #ECE9E2;
  border-radius: 6px 6px 0 0;
  box-shadow: 0 -4px 12px rgba(0,0,0,0.05);
  z-index: 12;
  transition: width 0.4s ease;
}

.pendant-light {
  position: absolute;
  top: 0;
  left: 15%;
  width: 50px;
  height: 160px;
  z-index: 15;
  pointer-events: none;
}

.pendant-light::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 120px;
  background: #605B56;
}

.pendant-light::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 44px;
  height: 44px;
  background: #FCFAF6;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.05);
  box-shadow: 0 10px 20px rgba(255, 248, 220, 0.4), 0 4px 8px rgba(0,0,0,0.05);
}

/* Gallery Wall Dynamic Frames */
.gallery-wall {
  position: absolute;
  top: 15%;
  bottom: 35%;
  left: 10%;
  right: 10%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 5;
}

/* Frame Items styling */
.frame-item {
  border: 4px solid #1E1D1B; /* Solid thin black border */
  background: #FCFBF7;
  padding: 8px;
  box-shadow: 2px 4px 12px rgba(0,0,0,0.2), 0 1px 3px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: absolute;
  overflow: hidden;
}

.frame-art {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0.9;
  filter: contrast(1.05) brightness(0.98);
}

/* Controls Panel */
.controls-panel {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.control-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.control-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn-toggle-group {
  display: flex;
  gap: 10px;
}

.flex-wrap {
  flex-wrap: wrap;
}

.toggle-btn {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-family: var(--font-main);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-main);
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.toggle-btn:hover {
  background: #FAF8F5;
  border-color: #A8A29D;
}

.toggle-btn.active {
  background: var(--text-main);
  color: var(--bg-primary);
  border-color: var(--text-main);
  box-shadow: var(--shadow-md);
}

/* Recommendation Card */
.recommendation-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-md);
  margin-top: 10px;
  transition: all 0.3s ease;
}

.rec-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text-main);
}

.rec-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  min-height: 50px;
}

.affiliate-button {
  display: block;
  width: 100%;
  text-align: center;
  background: var(--accent-sage);
  color: var(--bg-primary);
  text-decoration: none;
  font-weight: 600;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  box-shadow: 0 4px 6px -1px rgba(148, 166, 148, 0.3);
}

.affiliate-button:hover {
  background: #849684;
  transform: translateY(-1px);
}

/* Main Content Area */
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.section {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.section-label {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-main);
  position: relative;
  padding-bottom: 6px;
}

.section-label::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--accent-wood);
  border-radius: 2px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

/* Affiliate Card */
.affiliate-card {
  display: flex;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  text-decoration: none;
  color: var(--text-main);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-sm);
}

.affiliate-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: #C4B5FD; /* Soft purple hue highlight */
}

.card-image-box {
  width: 100px;
  background: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid var(--border-color);
}

.card-emoji {
  font-size: 40px;
}

.card-details {
  flex: 1;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.card-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 4px;
  transition: color 0.2s ease;
}

.affiliate-card:hover .card-title {
  color: var(--accent-sage);
}

.card-description {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 10px;
}

.tag {
  display: inline-block;
  background: rgba(213, 180, 150, 0.15);
  color: #a4764b;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 12px;
  width: fit-content;
}

/* Footer */
.footer {
  text-align: center;
  padding: 60px 0 20px 0;
  margin-top: 60px;
  border-top: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer p:last-child {
  font-size: 0.75rem;
  line-height: 1.4;
  max-width: 700px;
  margin: 0 auto;
}
