/* =====================================================
   CUACA TERKINI AWS - STAMET MALI
   Style by Bos 😎
===================================================== */

.aws-title{
    text-align:center;
    margin-bottom:14px;
}

.aws-title h2{
    color:#0E71A6;
    font-size:42px;
    font-weight:400;
    margin:0;
    line-height:1.1;
}

.aws-title p{
    margin:4px 0 0;
    color:#6c757d;
    font-size:16px;
}

.aws-update{
    background:#fff;
    border:1px solid #D8E2EC;
    border-radius:14px;
    padding:14px 18px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:16px;
    box-shadow:0 1px 3px rgba(0,0,0,.04);
}

.live-pill{
    display:flex;
    align-items:center;
    gap:6px;
    background:#FDECEC;
    color:#E11D48;
    padding:7px 14px;
    border-radius:30px;
    font-weight:700;
    font-size:13px;
}

.dot{
    width:8px;
    height:8px;
    background:#E11D48;
    border-radius:50%;
    display:inline-block;

    /* Animasi LIVE */
    animation: liveBlink 1s infinite;
}


/* ========================================
   ANIMASI LIVE
======================================== */

@keyframes liveBlink{

    0%{
        opacity:1;
        transform:scale(1);
        box-shadow:0 0 0 0 rgba(225,29,72,0.7);
    }

    50%{
        opacity:0.35;
        transform:scale(0.75);
        box-shadow:0 0 0 6px rgba(225,29,72,0);
    }

    100%{
        opacity:1;
        transform:scale(1);
        box-shadow:0 0 0 0 rgba(225,29,72,0);
    }

}

.aws-layout{
    display:grid;
    grid-template-columns:3fr 1.15fr;
    gap:16px;
}

.aws-cards{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:12px;
}

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

.card{
    background:#fff;
    border:1px solid #D8E2EC;
    border-radius:14px;
    padding:16px 10px;
    text-align:center;
    min-height:122px;
    box-shadow:0 1px 3px rgba(0,0,0,.04);
}

.svg-icon{
    width:48px;
    height:48px;
    margin:0 auto 8px;
}

.card span{
    display:block;
    font-size:13px;
    color:#666;
    line-height:1.3;
}

.card h3{
    margin:8px 0 0;
    font-size:18px;
    font-weight:700;
    color:#0E71A6;
}

/* ===== PANEL ANGIN ===== */

.wind-panel{
    background:#fff;
    border:1px solid #D8E2EC;
    border-radius:14px;
    padding:18px;
    text-align:center;
    box-shadow:0 1px 3px rgba(0,0,0,.04);
}

.wind-panel h3{
    margin:0 0 12px;
    color:#0E71A6;
    font-size:16px;
    font-weight:600;
}

/* ===== KOMPAS ===== */

.compass{
    width:155px;
    height:155px;
    border:5px solid #1976D2;
    border-radius:50%;
    margin:8px auto;
    position:relative;
    background:#fff;
}

.needle{
    position:absolute;
    width:62px;
    height:4px;
    background:#F5A000;
    left:15px;
    top:75px;
    transform-origin:62px 2px;
    transition:transform .8s ease;
    border-radius:2px;
}

.center{
    width:18px;
    height:18px;
    background:#1976D2;
    border-radius:50%;
    position:absolute;
    left:68px;
    top:68px;
}

.n,.e,.s,.w{
    position:absolute;
    font-size:13px;
    font-weight:bold;
    color:#222;
}

.n{ top:-20px; left:71px; }
.s{ bottom:-20px; left:71px; }
.e{ right:-16px; top:70px; }
.w{ left:-16px; top:70px; }

.deg{
    margin-top:8px;
    font-size:22px;
    font-weight:700;
    color:#0E71A6;
}

/* ===== RESPONSIVE ===== */

@media (max-width:768px){

    .aws-title h2{
        font-size:30px;
    }

    .aws-layout{
        grid-template-columns:1fr;
    }

    .aws-cards{
        grid-template-columns:repeat(2,1fr);
    }

    .aws-update{
        flex-direction:column;
        align-items:flex-start;
        gap:10px;
    }

    .card{
        min-height:110px;
    }

    .card h3{
        font-size:16px;
    }
	}

 /* ===== KOMPAS BMKG ===== */

.compass-svg{
    width:100%;
    max-width:240px;
    display:block;
    margin:auto;
}

.compass-text text{
    fill:#FFFFFF !important;
    color:#FFFFFF;
    font-family:Arial, Helvetica, sans-serif;
    font-size:11px;
    font-weight:bold;
    text-anchor:middle;
    dominant-baseline:middle;
}

.deg{
    margin-top:10px;
    font-size:22px;
    font-weight:700;
    color:#0E71A6;
}

/* ========================================
   PRESSURE PANEL
======================================== */

.pressure-card{
    padding:10px 12px;
    text-align:left;
    min-height:122px;
}


.pressure-header{
    color:#666;
    font-size:18px;
    font-weight:700;

    display:flex;
    align-items:center;
    gap:6px;

    margin-bottom:6px;
}

.pressure-header-icon{
    width:30px;
    height:32px;
    flex:none;
}


/* CONTENT */

.pressure-content{
    display:grid;
    grid-template-columns:1.05fr 1fr;
    gap:6px;
    height:82px;
}


/* ========================================
   PRESSURE UTAMA
======================================== */

.pressure-main{
    border:1px solid #E2E6EB;
    border-radius:7px;

    padding:5px 8px;

    display:flex;
    flex-direction:column;
    justify-content:center;
}

.pressure-label{
    font-size:12px;
    color:#777;
}

.pressure-value{
    font-size:30px;
    line-height:1.05;

    font-weight:700;
    color:#253746;

    text-align:center;

    margin-top:2px;
}

.pressure-unit{
    font-size:10px;
    color:#888;
    text-align:right;
}


/* ========================================
   QFF / QFE / QNH
======================================== */

.pressure-qcodes{
    display:flex;
    flex-direction:column;
    gap:8px;
}

.q-row{
    height:24px;

    border:1px solid #E2E6EB;
    border-radius:6px;

    display:grid;
    grid-template-columns:35px 1fr 25px;

    align-items:center;

    padding:0 7px;

    background:#fff;
}

.q-row span{
    display:block;

    font-size:12px;
    color:#555;
}

.q-row strong{
    font-size:14px;
    color:#666E;

    text-align:right;
}

.q-row small{
    font-size:9px;
    color:#777;

    text-align:right;
}


/* ========================================
   RESPONSIVE PRESSURE
======================================== */

@media(max-width:768px){

    .pressure-content{
        grid-template-columns:1.05fr 1fr;
    }

    .pressure-value{
        font-size:25px;
    }

    .q-row strong{
        font-size:13px;
    }

}
/* ===== RESPONSIVE ===== */

@media(max-width:768px){

    .aws-layout{
        grid-template-columns:1fr;
    }

    .aws-cards{
        grid-template-columns:repeat(2,1fr);
    }

    .aws-title h2{
        font-size:30px;
    }

}

/* ========================================
   JAM DIGITAL WITA
======================================== */

.aws-clock{
    color:#444;
    font-size:14px;
    white-space:nowrap;
}

.aws-clock span{
    color:#0E71A6;
    font-weight:700;
    font-family:Arial, sans-serif;
}


/* ========================================
   ANIMASI LIVE
======================================== */

.live-pill .dot{
    width:8px;
    height:8px;
    background:#E11D48;
    border-radius:50%;
    display:inline-block;
    animation:awsLiveBlink 1.2s infinite;
}

@keyframes awsLiveBlink{

    0%{
        opacity:1;
        box-shadow:0 0 0 0 rgba(225,29,72,.6);
    }

    50%{
        opacity:.35;
        box-shadow:0 0 0 5px rgba(225,29,72,0);
    }

    100%{
        opacity:1;
        box-shadow:0 0 0 0 rgba(225,29,72,0);
    }

}

}