/* ==========================================================================
   Global Clarity — Globe Page Styles
   ========================================================================== */

/* Dark immersive background for the globe section */
.globe-page-body {
    background: #0a0e27;
    min-height: 100vh;
}

/* Override sidebar background to match dark theme */
.globe-page-body #sidebar-wrapper {
    background: #111638;
}

/* Header area */
.globe-header {
    text-align: center;
    padding: 30px 15px 10px;
    position: relative;
    z-index: 10;
}

.globe-header h1 {
    font-family: "Inter", sans-serif;
    font-weight: 700;
    font-size: 2.2rem;
    color: #ffffff;
    margin-bottom: 6px;
    letter-spacing: -0.5px;
}

.globe-header .globe-subtitle {
    font-family: "Inter", sans-serif;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 0;
}

.globe-kicker {
    font-family: "Inter", sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    color: #00d4ff;
    letter-spacing: 2.2px;
    margin-bottom: 8px;
    text-transform: uppercase;
}

/* Stats bar */
.globe-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    padding: 16px 15px 8px;
    position: relative;
    z-index: 10;
    flex-wrap: wrap;
}

.globe-stat-item {
    text-align: center;
}

.globe-stat-value {
    font-family: "Inter", sans-serif;
    font-weight: 700;
    font-size: 2rem;
    color: #00d4ff;
    line-height: 1;
    display: block;
}

.globe-stat-label {
    font-family: "Inter", sans-serif;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.45);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-top: 4px;
    display: block;
}

/* Controls bar */
.globe-controls {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 12px 15px 0;
    position: relative;
    z-index: 10;
    flex-wrap: wrap;
}

.globe-range-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    font-family: "Inter", sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    padding: 6px 18px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.globe-range-btn:hover {
    background: rgba(0, 212, 255, 0.12);
    border-color: rgba(0, 212, 255, 0.3);
    color: #00d4ff;
}

.globe-range-btn.active {
    background: rgba(0, 212, 255, 0.15);
    border-color: #00d4ff;
    color: #00d4ff;
    box-shadow: 0 0 12px rgba(0, 212, 255, 0.2);
}

/* Globe container */
.globe-container {
    width: 100%;
    height: 60vh;
    min-height: 400px;
    max-height: 700px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

#globe-vis {
    position: absolute;
    inset: 0;
}

.globe-container canvas {
    outline: none;
    display: block;
}

/* Loading state */
.globe-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 5;
}

.globe-loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(0, 212, 255, 0.15);
    border-top-color: #00d4ff;
    border-radius: 50%;
    animation: globe-spin 0.8s linear infinite;
    margin: 0 auto 12px;
}

@keyframes globe-spin {
    to { transform: rotate(360deg); }
}

.globe-loading-text {
    font-family: "Inter", sans-serif;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
}

/* Empty state */
.globe-empty {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: min(320px, calc(100% - 40px));
    padding: 20px;
    display: none;
    z-index: 6;
    pointer-events: none;
}

.globe-empty-icon {
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.15);
    margin-bottom: 16px;
}

.globe-empty-text {
    font-family: "Inter", sans-serif;
    font-size: 1rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.68);
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.75);
}

/* Country list below globe */
.globe-country-list {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px 15px 60px;
    position: relative;
    z-index: 10;
}

.globe-country-list h3 {
    font-family: "Inter", sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 16px;
    text-align: center;
}

.globe-country-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    margin-bottom: 6px;
    transition: background 0.2s ease;
}

.globe-country-row:hover {
    background: rgba(0, 212, 255, 0.06);
}

.globe-country-name {
    font-family: "Inter", sans-serif;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

.globe-country-flag {
    margin-right: 8px;
    font-size: 1.1rem;
}

.globe-country-count {
    font-family: "Inter", sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: #00d4ff;
}

/* Page content wrapper override for dark bg */
.globe-page-body .page-content-wrapper {
    background: transparent;
}

/* Menu toggle icon override for dark page */
.globe-page-body #menu-toggle img {
    filter: brightness(0) invert(1);
}

/* Footer override */
.globe-page-body #copyright {
    color: rgba(255, 255, 255, 0.3);
}

.globe-page-body #copyright a {
    color: rgba(255, 255, 255, 0.4);
}

/* Landing page globe */
.globe-landing-section {
    background:
        radial-gradient(circle at 18% 12%, rgba(0, 212, 255, 0.2), transparent 28%),
        radial-gradient(circle at 82% 22%, rgba(70, 111, 255, 0.16), transparent 30%),
        linear-gradient(180deg, #060a21 0%, #0a0e27 52%, #111638 100%);
    color: #ffffff;
    overflow: hidden;
    position: relative;
}

.globe-landing-section::before {
    background:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 44px 44px;
    content: "";
    inset: 0;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.75), transparent 82%);
    -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.75), transparent 82%);
    pointer-events: none;
    position: absolute;
}

.globe-landing-shell {
    margin: 0 auto;
    max-width: 1180px;
    padding: 18px 15px 0;
    position: relative;
    z-index: 1;
}

.globe-landing-container {
    height: 58vh;
    margin-top: 8px;
    min-height: 360px;
}

.index-globe-page .intro-main-content-compact {
    padding-bottom: 48px;
    padding-top: 48px;
}

.index-globe-page .intro-main-content-compact .intro-section-heading {
    margin-bottom: 18px;
}

.index-globe-page .intro-main-content-compact .intro-text-spaced {
    margin: 0 auto 12px;
    max-width: 680px;
}

/* Responsive */
@media (max-width: 767.98px) {
    .globe-header h1 {
        font-size: 1.6rem;
    }

    .globe-stats {
        gap: 24px;
    }

    .globe-stat-value {
        font-size: 1.6rem;
    }

    .globe-container {
        height: 50vh;
        min-height: 300px;
    }

    .globe-landing-shell {
        padding-top: 8px;
    }

    .globe-landing-container {
        height: 46vh;
        min-height: 310px;
    }

    .index-globe-page .intro-main-content-compact {
        padding-top: 36px;
    }
}
