/* -----------------------------------
   GLOBAL PAGE / HEADER FIXES
----------------------------------- */

body{
    margin:0;
    padding:0;
    font-family: Arial, sans-serif;
    background:#f5f5f5;
    color:#222;
}


/* HEADER */

.site-header{
    background:white;
    border-bottom:1px solid #eaeaea;
    padding:14px 25px;
    position:sticky;
    top:0;
    z-index:1000;
    box-shadow:0 2px 8px rgba(0,0,0,0.04);
}

.header-inner{
    max-width:1250px;
    margin:auto;
    display:flex;
    justify-content:space-between;
    align-items:center;
    flex-wrap:wrap;
}

.logo-area{
    display:flex;
    align-items:center;
    gap:14px;
}

.logo-small{
    height:42px;
    width:auto;
}

.project-title{
    font-weight:300;
    font-size:18px;
    color:#222;
}

.header-nav{
    display:flex;
    align-items:center;
    flex-wrap:wrap;
}

.header-nav a{
    margin-left:22px;
    text-decoration:none;
    color:#555;
    font-weight:300;
    font-size:16px;
    transition:0.2s ease;
}

.header-nav a:hover{
    color:#2563eb;
}


.observatory-footnote {
  margin: 14px auto 0 auto;
  padding: 10px 14px;
  font-size: 0.70rem;
  line-height: 1.5;
  color: #4b5563;
  background: rgba(255, 255, 255, 0.72);
  border-radius: 10px;
  max-width: 700px;
  text-align: center;
}

/* HERO SECTION */

.insights-hero{
    background:linear-gradient(
        135deg,
        #ffffff,
        #f7fbff
    );
    padding:40px;
    border-radius:18px;
    margin-bottom:40px;
    box-shadow:0 6px 18px rgba(0,0,0,0.06);
    text-align:center;
}

.insights-hero h1{
    margin:0;
    font-size:30px;
    font-weight:500;
    color:#111;
    line-height:1.1;
}

.hero-subtitle{
    font-size:17px;
    color:#555;
    margin-top:18px;
    line-height:1.5;
    max-width:850px;
    margin-left:auto;
    margin-right:auto;
}

/* stats */
.hero-stats{
    display:flex;
    justify-content:center;
    gap:20px;
    flex-wrap:wrap;
    margin-top:30px;
}

.hero-stat{
    background:white;
    padding:20px 28px;
    border-radius:14px;
    min-width:160px;
    box-shadow:0 3px 12px rgba(0,0,0,0.05);
}

.hero-stat span{
    display:block;
    font-size:32px;
    font-weight:700;
    color:#2563eb;
}

.hero-stat label{
    display:block;
    margin-top:8px;
    color:#666;
    font-size:14px;
}

/* infographic */
.hero-infographic{
    margin-top:35px;
    text-align:center;
}

.hero-infographic img{
    width:100%;
    max-width:40px;
    height:auto;
    border-radius:12px;
}






/* -----------------------------
   INSIGHTS PAGE LAYOUT
------------------------------*/

.insights-wrapper{
    max-width:1200px;
    margin:auto;
    padding:40px 20px;
}

/* Top summary section */
.insights-top-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:30px;
    margin-top:30px;
    align-items:start;
}

/* Mobile */
@media (max-width:900px){
    .insights-top-grid{
        grid-template-columns:1fr;
    }
}

/* -----------------------------
   SUMMARY / GAUGE CARD
------------------------------*/

.summary-panel{
    margin-top:0;
}

.summary-card{
    background:white;
    padding:35px 40px;
    border-radius:12px;
    box-shadow:0 4px 14px rgba(0,0,0,0.08);
    text-align:center;
}

.summary-title{
    font-size:18px;
    font-weight:600;
    color:#555;
    margin-bottom:10px;
}

.gauge-container{
    display:flex;
    flex-direction:column;
    align-items:center;
    margin-bottom:10px;
}

.gauge{
    width:260px;
    height:140px;
    border-radius:260px 260px 0 0;
    background:linear-gradient(to right,#dc2626,#f59e0b,#16a34a);
    position:relative;
    overflow:hidden;
    margin-bottom:15px;
}

.needle{
    width:4px;
    height:95px;
    background:#111;
    position:absolute;
    left:50%;
    bottom:0;
    transform-origin:bottom center;
    transform:translateX(-50%) rotate(0deg);
    transition:transform 1s ease;
    z-index:10;
}

.center-dot{
    width:12px;
    height:12px;
    background:#222;
    border-radius:50%;
    position:absolute;
    bottom:6px;
    left:50%;
    transform:translateX(-50%);
    z-index:11;
}

.summary-score{
    font-size:42px;
    font-weight:700;
    color:#2563eb;
    margin-bottom:6px;
}

.summary-meta{
    font-size:14px;
    color:#777;
}

.summary-change{
    margin-top:8px;
    font-size:14px;
    font-weight:600;
}

.change-up{
    color:#16a34a;
}

.change-down{
    color:#dc2626;
}

.change-flat{
    color:#666;
}

/* Time buttons */
.summary-controls{
    margin-top:20px;
    display:flex;
    justify-content:center;
    gap:10px;
    flex-wrap:wrap;
}

.gauge-time-btn{
    padding:8px 14px;
    font-size:14px;
    border-radius:8px;
    border:1px solid #ccc;
    background:white;
    cursor:pointer;
    min-width:auto;
}

.gauge-time-btn.active{
    background:#2563eb;
    color:white;
    border-color:#2563eb;
}

/* -----------------------------
   MOOD REPORT CARD
------------------------------*/

.report-panel{
    background:white;
    padding:20px 30px 15px 30px;
    border-radius:12px;
    box-shadow:0 4px 14px rgba(0,0,0,0.08);
    margin-top:0;
    align-self:start;
}

.report-panel h2{
    margin-top:0;
    margin-bottom:10px;
    font-size:24px;
}

#moodReport{
    margin-top:0;
    padding-left:25px;
}

#moodReport li{
    margin-bottom:8px;
    font-size:15px;
    line-height:1.45;
    color:#333;
}

/* Illustration */
.report-illustration{
    margin-top:15px;
    text-align:center;
}

.report-illustration{
    margin-top:15px;
    text-align:center;
    width:100%;
    overflow:hidden;
}

.report-illustration img{
    width:100%;
    max-width:100%;
    height:auto;
    display:block;
    margin:0 auto;
    border-radius:8px;
    object-fit:contain;
}

/* -----------------------------
   CHART SECTION
------------------------------*/

.chart-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(400px,1fr));
    gap:40px;
    margin-top:40px;
}

.chart-card{
    background:white;
    padding:20px;
    border-radius:12px;
    box-shadow:0 4px 14px rgba(0,0,0,0.08);
}

.chart-card h3{
    margin-top:0;
}

/* -----------------------------
   SCORE SCALE NOTE
------------------------------*/

.score-scale-note{
    font-size:13px;
    color:#555;
    margin-bottom:10px;
    text-align:center;
}

.scale-red{
    color:#dc2626;
    font-weight:600;
}

.scale-yellow{
    color:#f59e0b;
    font-weight:600;
}

.scale-green{
    color:#16a34a;
    font-weight:600;
}

@media(max-width:768px){

  .insights-hero{
       padding:25px;
   }

   .insights-hero h1{
       font-size:25px;
   }

   .hero-subtitle{
       font-size:14px;
   }



    .report-panel{
        padding:18px;
    }

    .report-illustration img{
        width:100%;
        max-width:100%;
    }



}
