/* ==================== Design System ==================== */
:root {
    /* Fonts */
    --font-display: 'Fraunces', serif;
    --font-body: 'DM Sans', sans-serif;

    /* Easing */
    --ease-smooth: cubic-bezier(0.25, 0.1, 0.25, 1);
    --ease-snap: cubic-bezier(0.34, 1.56, 0.64, 1);

    /* Room Color Palettes - Warm Architectural Minimalism */
    /* Kitchen - Warm terracotta to cream */
    --kitchen-bg-start: #FFF8F0;
    --kitchen-bg-end: #F5E6D3;
    --kitchen-accent: #D4A574;
    --kitchen-text: #5D3A1A;

    /* Bedroom - Soft dawn lavender to warm peach */
    --bedroom-bg-start: #E8E0F0;
    --bedroom-bg-end: #FFE8DC;
    --bedroom-accent: #C9A8B8;
    --bedroom-text: #4A3A4A;

    /* Bathroom - Cool sage to mint */
    --bathroom-bg-start: #E8F4EA;
    --bathroom-bg-end: #C5D5CB;
    --bathroom-accent: #7BA387;
    --bathroom-text: #2D4A35;

    /* Office - Deep slate to charcoal with amber accents */
    --office-bg-start: #2D3436;
    --office-bg-end: #636E72;
    --office-accent: #F9A825;
    --office-text: #ECEFF1;

    /* Living Room - Rich burgundy to warm ivory */
    --living-bg-start: #FFF9F0;
    --living-bg-end: #F5EDE6;
    --living-accent: #722F37;
    --living-text: #4A2C2A;

    /* Base colors */
    --white: #FFFFFF;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
}

/* ==================== Reset & Base Styles ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background: #F5F5F5;
}

/* ==================== Typography ==================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
}

/* ==================== App Layout ==================== */
#app {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

/* ==================== Carousel System ==================== */
.carousel-container {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
}

.carousel-track {
    display: flex;
    height: 100%;
    width: 500vw; /* 5 rooms × 100vw */
    transition: transform 0.4s var(--ease-smooth);
    will-change: transform;
}

.carousel-track.dragging {
    transition: none;
}

.carousel-track.snapping {
    transition: transform 0.5s var(--ease-snap);
}

/* ==================== Room Cards ==================== */
.room-card {
    width: 100vw;
    height: 100vh;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    padding: 2rem;
    position: relative;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Room-specific gradients */
.room-card[data-room="kitchen"] {
    background: linear-gradient(135deg, var(--kitchen-bg-start) 0%, var(--kitchen-bg-end) 100%);
    color: var(--kitchen-text);
}

.room-card[data-room="bedroom"] {
    background: linear-gradient(135deg, var(--bedroom-bg-start) 0%, var(--bedroom-bg-end) 100%);
    color: var(--bedroom-text);
}

.room-card[data-room="bathroom"] {
    background: linear-gradient(135deg, var(--bathroom-bg-start) 0%, var(--bathroom-bg-end) 100%);
    color: var(--bathroom-text);
}

.room-card[data-room="office"] {
    background: linear-gradient(135deg, var(--office-bg-start) 0%, var(--office-bg-end) 100%);
    color: var(--office-text);
}

.room-card[data-room="living"] {
    background: linear-gradient(135deg, var(--living-bg-start) 0%, var(--living-bg-end) 100%);
    color: var(--living-text);
}

/* ==================== Room Header ==================== */
.room-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(0, 0, 0, 0.1);
}

.room-icon {
    font-size: 3rem;
    line-height: 1;
}

.room-name {
    font-size: 2.5rem;
    font-weight: 700;
}

/* ==================== Room Content Area ==================== */
.room-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Widget container styles */
.widget {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    transition: transform 0.2s var(--ease-smooth), box-shadow 0.2s var(--ease-smooth);
}

.widget:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ==================== Dot Indicators ==================== */
.dot-indicators {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.75rem;
    z-index: 100;
    background: rgba(255, 255, 255, 0.9);
    padding: 0.75rem 1.5rem;
    border-radius: 24px;
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(10px);
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.2);
    transition: all 0.3s var(--ease-smooth);
    cursor: pointer;
}

.dot:hover {
    background: rgba(0, 0, 0, 0.4);
    transform: scale(1.2);
}

.dot.active {
    background: rgba(0, 0, 0, 0.8);
    width: 28px;
    border-radius: 5px;
}

/* ==================== Responsive Design ==================== */
@media (max-width: 768px) {
    .room-card {
        padding: 1.5rem;
    }

    .room-name {
        font-size: 2rem;
    }

    .room-icon {
        font-size: 2.5rem;
    }

    .dot-indicators {
        bottom: 1.5rem;
        padding: 0.5rem 1rem;
        gap: 0.5rem;
    }

    .dot {
        width: 8px;
        height: 8px;
    }

    .dot.active {
        width: 24px;
    }
}

/* ==================== Touch Feedback ==================== */
.carousel-track {
    touch-action: pan-y;
    -webkit-user-select: none;
    user-select: none;
}

.room-card * {
    pointer-events: auto;
}

/* Prevent text selection during drag */
.dragging * {
    pointer-events: none;
    user-select: none;
}
