/*
 * SATAID Web
 * THAI Satellite Viewer - Compact Operational Header
 *
 * Goals:
 * - More vertical space for satellite imagery
 * - Brand on the left
 * - Main navigation aligned to the right
 * - Institutional subtitle on one line
 * - Preserve readability on standard desktop displays
 */


/* =========================================================
   STANDARD / LARGE DESKTOP
========================================================= */

@media (min-width: 1350px) {

    :root {
        --header-height: 74px;
    }

    .top-header {
        padding-left: 12px;
        padding-right: 16px;
        gap: 12px;
    }


    /* -----------------------------------------------------
       BRAND
    ----------------------------------------------------- */

    .brand-area {
        min-width: 335px;
        max-width: 350px;

        gap: 9px;
    }

    .brand-logo {
        width: 52px;
        height: 52px;
    }

    .brand-copy {
        min-width: 0;
    }

    .brand-title {
        font-size: 27px;
        line-height: 1;
        font-weight: 800;

        white-space: nowrap;
    }

    .brand-subtitle {
        margin-top: 4px;

        font-size: 12.5px;
        line-height: 1.1;
        font-weight: 650;

        white-space: nowrap;
    }


    /* -----------------------------------------------------
       MAIN NAVIGATION
    ----------------------------------------------------- */

    .main-navigation {
        flex: 1 1 auto;

        justify-content: flex-end;

        margin-left: auto;
        overflow: hidden;
    }

    .nav-link {
        flex: 0 0 auto;

        padding-left: 13px;
        padding-right: 13px;

        font-size: 16px;
        line-height: 1.15;
        font-weight: 700;
    }

    .nav-link.active {
        font-weight: 800;
    }
}


/* =========================================================
   LARGE DISPLAY
========================================================= */

@media (min-width: 1800px) {

    :root {
        --header-height: 80px;
    }

    .top-header {
        padding-left: 16px;
        padding-right: 20px;
    }

    .brand-area {
        min-width: 385px;
        max-width: 405px;
    }

    .brand-logo {
        width: 58px;
        height: 58px;
    }

    .brand-title {
        font-size: 30px;
    }

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

    .nav-link {
        padding-left: 17px;
        padding-right: 17px;

        font-size: 18px;
    }
}


/* =========================================================
   SATAID WEB - FINAL DESKTOP UI BALANCE
   - White text on blue
   - Safe right margins
   - Slightly smaller product title
========================================================= */

@media (min-width: 1350px) and (max-width: 1799px) {

    /* Header safe area */
    .top-header {
        padding-right: 28px;
    }

    /* Main navigation: pure white */
    .nav-link {
        color: #ffffff;
    }

    /* Product title balance */
    .product-title {
        font-size: 21px;
        line-height: 1.15;
        font-weight: 800;
    }

    /* Viewer toolbar safe area */
    .viewer-toolbar {
        padding-right: 24px;
    }

    .viewer-tools {
        padding-right: 2px;
    }
}


/* Large display */
@media (min-width: 1800px) {

    .top-header {
        padding-right: 32px;
    }

    .nav-link {
        color: #ffffff;
    }

    .viewer-toolbar {
        padding-right: 30px;
    }
}


/* =========================================================
   SATAID WEB - DATA FRESHNESS STATUS
========================================================= */

/* Delayed operational data */
.latest-status.delayed {
    color: #6b4300;
    background: #fff0d0;
    border-color: #be841c;
}

/* Operational data has stopped updating */
.latest-status.stale {
    color: #8b1e1e;
    background: #fde8e8;
    border-color: #c94a4a;
}

/* =========================================================
   COMPACT VIEWER TOOLBAR
   Reduce vertical space while preserving controls.
========================================================= */

@media (min-width: 1350px) {

    .viewer-toolbar {
        min-height: 68px;
        padding-top: 5px;
        padding-bottom: 5px;
    }

}


/* =========================================================
   DESKTOP MAIN NAVIGATION TYPOGRAPHY
========================================================= */

@media (min-width: 1350px) {

    .nav-link {
        font-size: 18px;
        font-weight: 700;
    }

}


/* =========================================================
   DESKTOP MAIN NAVIGATION TYPOGRAPHY
========================================================= */

@media (min-width: 1350px) {

    .nav-link {
        font-size: 20px;
        font-weight: 700;
    }

}


/* =========================================================
   DESKTOP MAIN NAVIGATION TYPOGRAPHY
========================================================= */

@media (min-width: 1350px) {

    .nav-link {
        font-size: 21px;
        font-weight: 700;
    }

}


/* =========================================================
   THAI INSTITUTIONAL HEADER
   Department / Subdivision readability
========================================================= */

@media (min-width: 1350px) {

    .brand-title {
        font-size: 27px;
        line-height: 1.05;
        font-weight: 800;
    }

    .brand-subtitle {
        font-size: 16px;
        line-height: 1.15;
        font-weight: 700;
        white-space: nowrap;
    }

}

@media (min-width: 1800px) {

    .brand-title {
        font-size: 30px;
    }

    .brand-subtitle {
        font-size: 17px;
    }

}

/* =========================================================
   VIEWER REGION TITLE BALANCE
========================================================= */

@media (min-width: 1350px) {

    .product-title {
        font-size: 19px;
        line-height: 1.15;
        font-weight: 800;
    }

}
