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

body {
    background: #0b1220;
    color: white;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    height: 100dvh;
    overflow: hidden;
}

:root{

    --glass-bg: rgba(30,48,74,.72);

    --glass-border: rgba(255,255,255,.08);

    --glass-radius: 24px;

    --glass-shadow: 0 8px 24px rgba(0,0,0,.20);

    --glass-blur: blur(18px);

}


.dashboard{
    display:flex;
    flex-direction:column;

    height:100%;

    padding:18px;

    overflow:hidden;
}

.topbar{
    display:grid;
    grid-template-columns:auto 1fr;
    align-items:center;

    gap:28px;

    padding:10px 22px;

    margin-bottom:16px;

  background:var(--glass-bg);

backdrop-filter:var(--glass-blur);

border:1px solid var(--glass-border);

border-radius:var(--glass-radius);

box-shadow:var(--glass-shadow);
}

#time{

    display:flex;
    align-items:flex-end;

}

#clock-time{

    font-size:58px;
    font-weight:700;
    line-height:1;

}

#clock-ampm{

    font-size:28px;
    font-weight:600;
    margin-left:6px;
    margin-bottom:5px;

}

#location{
    font-size:23px;
    color:#c7d8eb;
    line-height:1.05;
    margin-top:2px;
}

#temp{
    font-size:72px;
    text-align:right;
    font-weight:700;
}

#conditions{
    font-size:28px;
    color:#9fb3c8;
    text-align:right;
}

.content{
    flex:1;
    margin:8px 0;
    border-radius:30px;
    background:#162133;

    position:relative;
    overflow:hidden;
}

.placeholder{
    font-size:56px;
    color:#6fb6ff;
    letter-spacing:3px;
}
.radar-container{
    width:100%;
    height:100%;
    overflow:hidden;
    border-radius:24px;
}

#radarFrame {
    width: 100%;
    height: 100%;
    border: none;
}

.bottombar{
    display:flex;
    justify-content:space-around;
    align-items:center;

    padding:8px 24px;

    background:var(--glass-bg);
    backdrop-filter:var(--glass-blur);

    border:1px solid var(--glass-border);
    border-radius:var(--glass-radius);

    box-shadow:var(--glass-shadow);

    font-size:22px;
    color:#d5dce5;
}

#date {
    margin-top: 6px;
    font-size: 24px;
    color: #9fb3c8;
}
/* ===========================
   Content Stage
=========================== */

#content-stage{
    position:absolute;
    inset:0;
}

/* Every screen occupies the same space */

.screen {
    position: absolute;
    inset: 0;

    opacity: 0;
    visibility: hidden;

    transition:
        opacity .8s ease,
        visibility .8s ease;
}

/* Only the active screen is visible */

.screen.active {
    opacity: 1;
    visibility: visible;
}

/* Keep the radar filling the panel */

#radar-screen {
    width: 100%;
    height: 100%;
}
/* ===========================
   Forecast Strip
=========================== */

.forecast-strip{
    display:flex;

    justify-content:flex-end;

    align-items:center;

    gap:20px;

    width:100%;

    transition: opacity .6s ease;
}

.forecast-item{

    text-align:center;
    min-width:60px;
    padding:4px 18px;
    border-radius:16px;

}

.forecast-item.week-panel{

    background:rgba(255,255,255,.06);

}

.forecast-time{
    font-size:18px;
    color:#9fb3c8;
    margin-bottom:6px;
}

.forecast-icon{
    font-size:28px;
    margin-bottom:6px;
}

.forecast-temp{
    font-size:24px;
    font-weight:600;
}
.forecast-low{

    margin-top:2px;

    font-size:18px;

    color:#9fb3c8;

    font-weight:500;

    line-height:1;

    min-height:18px;

}



/* ===========================
   NOW CARD
=========================== */

.now-card{

    position:absolute;

    left:30px;
    bottom:30px;

    background:var(--glass-bg);

    backdrop-filter:var(--glass-blur);

    border:1px solid var(--glass-border);

    border-radius:var(--glass-radius);

    box-shadow:var(--glass-shadow);

    padding:18px 24px;

    min-width:170px;

    z-index:100;
}

.now-label{

    color:#9fb3c8;

    font-size:14px;

    letter-spacing:2px;

    margin-bottom:8px;
}

.now-card #temp{

    font-size:46px;

    font-weight:700;

    text-align:left;
}

.now-card #conditions{

    font-size:22px;

    color:#c7d5e4;

    text-align:left;
}
/* ===========================
   FULLSCREEN BUTTON
=========================== */

#fullscreen-btn{

    position:fixed;

    top:50%;
    left:50%;

    transform:translate(-50%,-50%);

    padding:18px 32px;

    background:rgba(0,0,0,.75);
    color:white;

    border:2px solid white;
    border-radius:18px;

    font-size:28px;
    font-weight:bold;

    z-index:99999;

    cursor:pointer;
}

#fullscreen-btn:hover{
    background:rgba(255,255,255,.18);
}

/*=========================
  WEEK AHEAD 
  legacy screen prototype keeping for now
==========================*/

.week-grid{

    display:grid;

    grid-template-columns:repeat(7,1fr);

    height:100%;

    padding:35px 20px;

    gap:10px;
}

.day-column{

    display:flex;

    flex-direction:column;

    justify-content:center;

    align-items:center;

    border-radius:22px;
}

.day-column.alt{

    background:rgba(255,255,255,.04);
}

.day-name{

    font-size:24px;

    color:#d9e5f2;

    margin-bottom:28px;

    font-weight:600;
}

.day-icon{

    font-size:44px;

    margin-bottom:28px;
}

.high-temp{

    font-size:42px;

    font-weight:700;

    line-height:1;
}

.low-temp{

    font-size:28px;

    color:#9fb3c8;

    margin-top:14px;
}

/*=========================
  WEEK SCREEN
  Legacy screen prototype keeping for now
==========================*/

.week-grid{

    display:grid;

    grid-template-columns:repeat(7,1fr);

    height:100%;

    padding:30px;

    gap:10px;
}

.day-column{

    display:flex;

    flex-direction:column;

    justify-content:flex-start;

    align-items:center;

    padding-top:85px;

    border-radius:20px;
}

.day-column.alt{

    background:rgba(255,255,255,.03);
}

.day-name{

    font-size:20px;

    font-weight:600;

    color:#c7d5e4;


    margin-bottom:20px;
}

.day-icon{

    font-size:52px;

    margin-bottom:20px;
}

.high-temp{

    font-size:42px;

    font-weight:700;

    line-height:1;
}

.low-temp{

    font-size:26px;

    color:#9fb3c8;

    margin-top:8px;
}