/* ============================================================
   VIVID HORIZON — CINEMATIC GLOBE STYLES
   ============================================================ */

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

:root {
    --vh-navy: #293352;
    --vh-gold: #C29B6B;
    --vh-cobalt: #4A5D8F;
    --vh-charcoal: #1C1C1C;
    --vh-light: #F5F5F0;
    --vh-dark: #0a0e1a;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: 'Roboto Condensed', sans-serif;
    background: var(--vh-dark);
    color: white;
}

/* ===== NAVIGATION ===== */
.globe-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 24px 48px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    pointer-events: none;
}

.globe-nav > * {
    pointer-events: auto;
}

.nav-back {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--vh-gold);
    text-decoration: none;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    border: 1px solid rgba(194, 155, 107, 0.25);
    padding: 10px 24px;
    transition: all 0.3s ease;
    backdrop-filter: blur(12px);
    background: rgba(41, 51, 82, 0.3);
}

.nav-back:hover {
    background: var(--vh-gold);
    color: var(--vh-navy);
    border-color: var(--vh-gold);
}

.nav-label {
    font-size: 9px;
    font-weight: 700;
    color: rgba(194, 155, 107, 0.5);
    letter-spacing: 3px;
    text-transform: uppercase;
    padding: 8px 16px;
    border: 1px solid rgba(194, 155, 107, 0.15);
    backdrop-filter: blur(12px);
    background: rgba(41, 51, 82, 0.3);
}

/* ===== GLOBE CONTAINER ===== */
#globe-container {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease;
    cursor: grab;
}

#globe-container:active {
    cursor: grabbing;
}

#globe-container canvas {
    display: block;
    width: 100%;
    height: 100%;
}

/* ===== BACKGROUND ===== */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse at 30% 50%, rgba(20, 30, 55, 0.4) 0%, transparent 60%),
        radial-gradient(ellipse at 70% 60%, rgba(15, 22, 45, 0.5) 0%, transparent 50%),
        linear-gradient(180deg, #06090f 0%, #0a0e1a 40%, #0d1528 100%);
    z-index: -1;
}

/* ===== OVERLAY TITLE ===== */
.globe-overlay {
    position: fixed;
    bottom: 48px;
    left: 48px;
    z-index: 50;
    pointer-events: none;
    animation: overlayFadeIn 1.5s ease 0.5s both;
    transition: opacity 0.6s ease;
}

@keyframes overlayFadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.overlay-label {
    font-size: 9px;
    font-weight: 700;
    color: var(--vh-gold);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 12px;
    opacity: 0.7;
}

.overlay-title {
    font-family: 'Libre Baskerville', serif;
    font-size: 48px;
    font-weight: 700;
    color: white;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 0 4px 24px rgba(0, 0, 0, 0.6);
    opacity: 0.9;
}

.overlay-subtitle {
    font-family: 'Libre Baskerville', serif;
    font-size: 14px;
    font-weight: 400;
    font-style: italic;
    color: rgba(245, 245, 240, 0.5);
    margin-top: 12px;
}

/* ===== COUNTRY TOOLTIP ===== */
.country-tooltip {
    position: fixed;
    z-index: 80;
    pointer-events: none;
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 11px;
    font-weight: 700;
    color: var(--vh-gold);
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 8px 16px;
    background: rgba(10, 14, 26, 0.9);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(194, 155, 107, 0.3);
    transform: translate(-50%, 0);
    opacity: 0;
    transition: opacity 0.3s ease;
    white-space: nowrap;
}

.country-tooltip.visible {
    opacity: 1;
}

/* ===== INFO PANEL (legacy) ===== */
.info-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 420px;
    height: 100%;
    z-index: 90;
    background: rgba(10, 14, 26, 0.95);
    backdrop-filter: blur(30px);
    border-left: 1px solid rgba(194, 155, 107, 0.15);
    padding: 100px 48px 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transform: translateX(100%);
    opacity: 0;
    transition:
        transform 0.6s cubic-bezier(0.23, 1, 0.32, 1),
        opacity 0.4s ease;
    overflow-y: auto;
}

.info-panel.open {
    transform: translateX(0);
    opacity: 1;
}

.info-close {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 40px;
    height: 40px;
    background: none;
    border: 1px solid rgba(194, 155, 107, 0.2);
    color: rgba(255, 255, 255, 0.6);
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    line-height: 1;
}

.info-close:hover {
    color: white;
    border-color: var(--vh-gold);
    background: rgba(194, 155, 107, 0.1);
}

.info-label {
    font-size: 10px;
    font-weight: 700;
    color: var(--vh-gold);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 16px;
}

.info-title {
    font-family: 'Libre Baskerville', serif;
    font-size: 36px;
    font-weight: 700;
    color: white;
    line-height: 1.2;
    margin-bottom: 16px;
}

.info-divider {
    width: 40px;
    height: 2px;
    background: var(--vh-gold);
    margin-bottom: 28px;
}

.info-description {
    font-size: 14px;
    font-weight: 300;
    color: rgba(229, 229, 229, 0.85);
    line-height: 1.8;
    margin-bottom: 32px;
}

.info-bullets {
    list-style: none;
    margin-bottom: 40px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.info-bullets li {
    font-size: 13px;
    font-weight: 400;
    color: rgba(229, 229, 229, 0.75);
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
    gap: 12px;
    line-height: 1.4;
}

.info-bullets li::before {
    content: '';
    display: block;
    width: 4px;
    height: 4px;
    background: var(--vh-gold);
    border-radius: 50%;
    flex-shrink: 0;
}

.info-cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--vh-gold);
    color: var(--vh-navy);
    border: 1px solid var(--vh-gold);
    padding: 16px 32px;
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.info-cta:hover {
    background: transparent;
    color: var(--vh-gold);
}

.info-cta::after {
    content: '\2192';
    font-size: 14px;
    transition: transform 0.3s ease;
}

.info-cta:hover::after {
    transform: translateX(4px);
}

/* ===== CITY VIEW OVERLAY ===== */
.city-overlay {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: #050508;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.8s cubic-bezier(0.23, 1, 0.32, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.city-overlay.visible {
    opacity: 1;
    pointer-events: auto;
}

.city-map-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.city-pulse-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

/* City info at bottom */
.city-info {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 10;
    animation: cityInfoFadeIn 1.2s ease 0.3s both;
}

@keyframes cityInfoFadeIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.city-name {
    font-family: 'Libre Baskerville', serif;
    font-size: 52px;
    font-weight: 700;
    color: var(--vh-gold);
    text-transform: uppercase;
    letter-spacing: 12px;
    line-height: 1;
    margin-bottom: 8px;
    text-shadow: 0 0 40px rgba(194, 155, 107, 0.3);
}

.city-country {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 13px;
    font-weight: 400;
    color: var(--vh-gold);
    text-transform: uppercase;
    letter-spacing: 6px;
    opacity: 0.6;
    margin-bottom: 16px;
}

.city-country::before,
.city-country::after {
    content: '\2014\2003';
}

.city-coords {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 11px;
    font-weight: 300;
    color: rgba(194, 155, 107, 0.4);
    letter-spacing: 2px;
    font-variant-numeric: tabular-nums;
}

/* Back to Globe button */
.back-to-globe {
    position: absolute;
    top: 32px;
    left: 32px;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 10px;
    background: none;
    border: 1px solid rgba(194, 155, 107, 0.25);
    color: var(--vh-gold);
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 12px 24px;
    cursor: pointer;
    backdrop-filter: blur(12px);
    transition: all 0.3s ease;
    animation: cityInfoFadeIn 1.2s ease 0.5s both;
}

.back-to-globe:hover {
    background: var(--vh-gold);
    color: var(--vh-dark);
    border-color: var(--vh-gold);
}

.back-icon {
    font-size: 16px;
    line-height: 1;
}

/* ===== CORNER DECORATIONS ===== */
.corner-decoration {
    position: fixed;
    z-index: 50;
    pointer-events: none;
}

.corner-tl {
    top: 100px;
    left: 48px;
    width: 20px;
    height: 20px;
    border-top: 1px solid rgba(194, 155, 107, 0.15);
    border-left: 1px solid rgba(194, 155, 107, 0.15);
}

.corner-br {
    bottom: 48px;
    right: 48px;
    width: 20px;
    height: 20px;
    border-bottom: 1px solid rgba(194, 155, 107, 0.15);
    border-right: 1px solid rgba(194, 155, 107, 0.15);
}

/* ===== COORDINATES DISPLAY ===== */
.coordinates {
    position: fixed;
    bottom: 48px;
    right: 80px;
    z-index: 50;
    pointer-events: none;
    text-align: right;
    animation: overlayFadeIn 1.5s ease 0.8s both;
    transition: opacity 0.6s ease;
}

.coord-label {
    font-size: 9px;
    font-weight: 700;
    color: rgba(194, 155, 107, 0.4);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 4px;
}

.coord-value {
    font-size: 12px;
    font-weight: 300;
    color: rgba(245, 245, 240, 0.3);
    letter-spacing: 1px;
    font-variant-numeric: tabular-nums;
}

/* ===== SCROLL BARS ===== */
.info-panel::-webkit-scrollbar {
    width: 3px;
}

.info-panel::-webkit-scrollbar-track {
    background: transparent;
}

.info-panel::-webkit-scrollbar-thumb {
    background: rgba(194, 155, 107, 0.3);
    border-radius: 2px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .overlay-title {
        font-size: 36px;
    }

    .info-panel {
        width: 360px;
        padding: 80px 36px 36px;
    }

    .city-name {
        font-size: 40px;
        letter-spacing: 8px;
    }
}

@media (max-width: 768px) {
    .globe-nav {
        padding: 16px 24px;
    }

    .globe-overlay {
        bottom: auto;
        top: 80px;
        left: 24px;
    }

    .overlay-title {
        font-size: 28px;
        letter-spacing: 2px;
    }

    .overlay-subtitle {
        font-size: 12px;
    }

    /* Mobile: info panel becomes bottom sheet */
    .info-panel {
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        height: auto;
        max-height: 65vh;
        border-left: none;
        border-top: 1px solid rgba(194, 155, 107, 0.15);
        padding: 32px 24px;
        transform: translateY(100%);
        justify-content: flex-start;
        border-radius: 0;
    }

    .info-panel.open {
        transform: translateY(0);
    }

    .info-close {
        top: 12px;
        right: 12px;
        width: 36px;
        height: 36px;
        font-size: 20px;
    }

    .info-title {
        font-size: 28px;
    }

    .info-description {
        font-size: 13px;
    }

    .city-name {
        font-size: 28px;
        letter-spacing: 6px;
    }

    .city-country {
        font-size: 11px;
        letter-spacing: 4px;
    }

    .city-info {
        bottom: 40px;
    }

    .back-to-globe {
        top: 20px;
        left: 20px;
        padding: 10px 18px;
        font-size: 10px;
    }

    .coordinates {
        display: none;
    }

    .corner-decoration {
        display: none;
    }
}

@media (max-width: 480px) {
    .overlay-title {
        font-size: 22px;
    }

    .info-panel {
        max-height: 70vh;
        padding: 28px 20px;
    }

    .info-title {
        font-size: 24px;
    }

    .city-name {
        font-size: 22px;
        letter-spacing: 4px;
    }
}
