/* AURA Smartwatch Studio & Interactive Web Watch CSS */

:root {
    --bg-main: #0d1015;
    --text-main: #f4ede2;
    --aura-blue: #91bdf5;
    --aura-coral: #cf8a68;
    --aura-green: #adc68d;
    --aura-card: #161922;
    --font-family: -apple-system, BlinkMacSystemFont, "SF Pro", "Segoe UI", Roboto, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    user-select: none;
    -webkit-user-select: none;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: var(--font-family);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    isolation: isolate !important;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.watch-studio-wrapper {
    width: 100%;
    max-width: 1080px;
    padding: 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.studio-header {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.back-link {
    color: var(--aura-blue);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    align-self: flex-start;
}

.back-link:hover {
    text-decoration: underline;
}

.device-selector {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.selector-label {
    font-size: 0.85rem;
    color: #8c93a0;
}

.device-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.device-pill {
    background: #1b1f27;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #d1d5db;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.device-pill:hover {
    border-color: var(--aura-blue);
}

.device-pill.active {
    background: var(--aura-blue);
    color: #111318;
    font-weight: 600;
    border-color: var(--aura-blue);
}

/* Hardware Watch Case Styling */
.watch-stage {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1.5rem 0;
}

.hardware-casing {
    position: relative;
    background: #232730;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), inset 0 0 10px rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Apple Watch Form Factor (Square Rounded Rect) */
.hardware-casing.device-apple {
    width: 290px;
    height: 350px;
    border-radius: 64px;
    border: 4px solid #3a3f4d;
}

.hardware-casing.device-apple .screen-bezel {
    width: 250px;
    height: 310px;
    border-radius: 46px;
}

/* Wear OS / Galaxy Watch / Pixel Watch Form Factor (Circular) */
.hardware-casing.device-wearos {
    width: 320px;
    height: 320px;
    border-radius: 50%;
    border: 6px solid #2e333e;
}

.hardware-casing.device-wearos .screen-bezel {
    width: 280px;
    height: 280px;
    border-radius: 50%;
}

/* Garmin Form Factor (Rugged Circular with 5 Screws) */
.hardware-casing.device-garmin {
    width: 330px;
    height: 330px;
    border-radius: 50%;
    border: 8px solid #474f5f;
    box-shadow: 0 0 0 2px #1f232b, 0 25px 60px rgba(0,0,0,0.9);
}

.hardware-casing.device-garmin .screen-bezel {
    width: 270px;
    height: 270px;
    border-radius: 50%;
}

/* Huawei Form Factor (Octagonal Bezel) */
.hardware-casing.device-huawei {
    width: 320px;
    height: 320px;
    border-radius: 28%;
    border: 6px solid #363c48;
}

.hardware-casing.device-huawei .screen-bezel {
    width: 280px;
    height: 280px;
    border-radius: 50%;
}

/* Digital Crown */
.hardware-crown {
    position: absolute;
    right: -14px;
    top: 60px;
    width: 12px;
    height: 38px;
    background: linear-gradient(180deg, #505666, #2d313b);
    border-radius: 4px;
    border: 1px solid #6b7280;
    cursor: pointer;
}

.hardware-button {
    position: absolute;
    right: -8px;
    width: 6px;
    height: 30px;
    background: #3a3f4d;
    border-radius: 2px;
}

.hardware-button.top-btn {
    top: 25px;
}

.hardware-button.bottom-btn {
    bottom: 60px;
}

/* Screen Glass */
.screen-bezel {
    background: #000000;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.9);
}

.watch-os-screen {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    background: #111318;
}

.watch-status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 18px 0;
    font-size: 11px;
    font-weight: 600;
    color: #9ca3af;
    z-index: 10;
}

/* Pages Track & Swipe */
.watch-pages-track {
    flex: 1;
    display: flex;
    width: 400%;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.watch-page {
    width: 25%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 14px 18px;
    text-align: center;
    box-sizing: border-box;
}

/* Page 1: Readiness */
.readiness-gauge-container {
    position: relative;
    width: 110px;
    height: 110px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.gauge-svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.gauge-track {
    fill: none;
    stroke: rgba(255, 255, 255, 0.1);
    stroke-width: 9;
}

.gauge-fill {
    fill: none;
    stroke: var(--aura-green);
    stroke-width: 9;
    stroke-linecap: round;
    stroke-dasharray: 314;
    stroke-dashoffset: 40;
    transition: stroke-dashoffset 0.8s ease;
}

.gauge-center-text {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.readiness-number {
    font-size: 34px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1;
    font-variant-numeric: tabular-nums !important;
}

.readiness-label {
    font-size: 8px;
    font-weight: 700;
    color: var(--aura-blue);
    letter-spacing: 0.5px;
    margin-top: 2px;
}

.zone-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(255, 255, 255, 0.08);
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    color: #ffffff;
    margin-top: 6px;
}

.zone-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--aura-green);
}

.btn-micro-calm {
    margin-top: 8px;
    background: rgba(145, 189, 245, 0.15);
    border: 1px solid rgba(145, 189, 245, 0.3);
    color: var(--aura-blue);
    padding: 5px 12px;
    border-radius: 14px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: transform 0.1s ease;
}

.btn-micro-calm:active {
    transform: scale(0.96);
}

/* Page 2: Lumi AI */
.lumi-orb-container {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: radial-gradient(circle at center, var(--aura-blue), #1b1f27);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    animation: pulseOrb 2.5s infinite ease-in-out;
}

@keyframes pulseOrb {
    0%, 100% { transform: scale(1); box-shadow: 0 0 12px rgba(145, 189, 245, 0.4); }
    50% { transform: scale(1.1); box-shadow: 0 0 22px rgba(145, 189, 245, 0.8); }
}

.lumi-wrist-dialog {
    font-size: 10px;
    line-height: 1.35;
    background: rgba(255, 255, 255, 0.06);
    padding: 6px 10px;
    border-radius: 8px;
    margin: 6px 0;
    color: #e5e7eb;
}

.btn-voice-trigger {
    background: var(--aura-coral);
    color: #ffffff;
    border: none;
    padding: 5px 14px;
    border-radius: 14px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.1s ease;
}

.btn-voice-trigger:active {
    transform: scale(0.96);
}

.quick-intents {
    display: flex;
    gap: 6px;
    margin-top: 6px;
}

.quick-chip {
    background: #1f232b;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #d1d5db;
    font-size: 9px;
    padding: 2px 8px;
    border-radius: 8px;
    cursor: pointer;
}

/* Page 3: Focus Timer */
.focus-title {
    font-size: 11px;
    color: var(--aura-blue);
    font-weight: 600;
}

.focus-timer-digits {
    font-size: 32px;
    font-weight: 800;
    font-family: monospace;
    color: var(--aura-green);
    margin: 4px 0;
    font-variant-numeric: tabular-nums !important;
}

.timer-controls {
    display: flex;
    gap: 12px;
    margin: 4px 0;
}

.timer-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: #282e3b;
    color: #ffffff;
    font-size: 14px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: transform 0.1s ease;
}

.timer-btn:active {
    transform: scale(0.96);
}

.timer-btn.btn-success {
    background: rgba(173, 198, 141, 0.3);
    color: var(--aura-green);
}

.focus-subtask {
    font-size: 9px;
    color: #9ca3af;
    max-width: 140px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Page 4: Sensors */
.sensors-header {
    font-size: 11px;
    color: #9ca3af;
    font-weight: 600;
    margin-bottom: 6px;
}

.sensors-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    width: 100%;
}

.sensor-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 6px 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.sensor-val {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    font-variant-numeric: tabular-nums !important;
}

.sensor-unit {
    font-size: 8px;
    color: #9ca3af;
}

/* Page Indicator Dots */
.page-dots {
    display: flex;
    justify-content: center;
    gap: 4px;
    padding-bottom: 6px;
}

.dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    cursor: pointer;
}

.dot.active {
    background: var(--aura-blue);
    width: 8px;
    border-radius: 4px;
}

/* Footer Explainer Deck */
.studio-footer {
    width: 100%;
    margin-top: 1rem;
}

.feature-deck {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.feature-col {
    background: var(--aura-card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 1.2rem;
}

.feature-col h3 {
    font-size: 1.05rem;
    margin-bottom: 0.4rem;
    color: #ffffff;
}

.feature-col p {
    font-size: 0.85rem;
    color: #9ca3af;
    line-height: 1.45;
}
