:root {
    --text-dark: #0A0A0A;
    --text-light: #F8F9FA;
    --font-mono: 'Space Mono', monospace;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: #000;
    font-family: var(--font-mono);
    user-select: none; 
}

/* WebGL Canvas */
#glcanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1;
    pointer-events: none; 
}

/* Capa de Interfaz */
.ui-layer {
    position: relative;
    z-index: 10;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 5vh 5vw;
    pointer-events: none;
}

header {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 50px;
    pointer-events: auto;
    mix-blend-mode: difference;
    color: #FFF;
}

.header-logo {
    width: 48px;
    height: 48px;
    display: block;
}

/* Contenedor Central */
.hero-content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    pointer-events: auto;
    color: #FFF;
    flex-grow: 1;
}

/* Apple Style Glass Status Badge with zoom */
.status-badge {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    position: absolute;
    top: 5vh;
    padding: 12px 28px;
    
    /* Apple Glass Style */
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 40px;
    color: #FFF;
    /* box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3), inset 0 1px 1px rgba(255,255,255,0.1);*/
    
    transition: background 3.0s ease, 
                border-color 3.0s ease, 
                color 3.0s ease,
                box-shadow 0.4s ease;
    cursor: default;
}

/* Thermostat Dial Button */
.dial-container {
    position: relative;
    width: 250px;
    height: 250px;
    background: none;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    outline: none;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    -webkit-tap-highlight-color: transparent;
    
    /* CSS Variables for GSAP animation */
    --dial-glow-start: rgba(255, 123, 0, 0.25);
    --dial-glow-end: rgba(255, 123, 0, 0);
    --dial-ring-start: #ff9f43;
    --dial-ring-end: #ff3c00;
    --dial-shadow: rgba(255, 60, 0, 0.35);
    --text-grad-start: #ff9f43;
    --text-grad-end: #ff3c00;
}

.dial-container:hover {
    transform: scale(1.03);
}

.dial-container:active {
    transform: scale(0.98);
}

/* Outer Glow */
.dial-outer-glow {
    position: absolute;
    width: 330px;
    height: 330px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--dial-glow-start) 0%, var(--dial-glow-end) 70%);
    z-index: 1;
    pointer-events: none;
}

/* Colored Rotating Dial Ring */
.dial-ring {
    position: absolute;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--dial-ring-start), var(--dial-ring-end));
    box-shadow: 0 8px 30px var(--dial-shadow);
    z-index: 2;
    animation: rotateGradient 12s linear infinite;
    pointer-events: none;
}

/* Rotation Animation for gradient */
@keyframes rotateGradient {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Central Dial Face (Premium Apple Solid White Style) */
.dial-face {
    position: absolute;
    width: 236px;
    height: 236px;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 50%, #ffffff 0%, #f7f7f7 100%);
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 
        inset 0 2px 3px rgba(255, 255, 255, 1), 
        inset 0 -4px 10px rgba(0, 0, 0, 0.08), 
        0 8px 20px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
}

/* Temperature text with matching gradient colors */
.temperature-display {
    font-family: var(--font-mono);
    font-size: 5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--text-grad-start), var(--text-grad-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.05em;
    margin-right: -0.1em;
    line-height: 1;
}

/* Footer styling */
footer {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 13px;
    color: #FFF;
    letter-spacing: 0.12em;
    mix-blend-mode: difference;
    pointer-events: auto;
    width: 100%;
}

.footer-info {
    max-width: 85%;
    line-height: 1.6;
    opacity: 0;
    text-align: center;
    margin: 0 auto;
    font-weight: 400;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    footer {
        font-size: 12px;
    }
    .footer-info {
        max-width: 100%;
    }
    .status-badge {
        font-size: 9px;
        letter-spacing: 0.18em;
        padding: 10px 20px;
        top: 2vh;
    }
}
