/* GIỚI HẠN PHẠM VI CSS ĐỂ KHÔNG XUNG ĐỘT VỚI CAFEF */
:root {
    --cyan: #14b8a6;
    --gold: #d4af37;
    --dark-bg: #0a0a0f;
    --panel-bg: rgba(15, 23, 42, 0.98);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --e-red: #e11d48;
}

#globe-interactive-container * { 
    margin: 0; padding: 0; box-sizing: border-box; 
}

#globe-interactive-container {
    position: relative; 
    width: 100%; 
    height: 100vh;
    min-height: 600px;
    max-height: 900px;
    background-color: var(--dark-bg);
    color: var(--text-main);
    overflow: hidden; 
    font-family: 'Merriweather', serif;
    display: block;
}

#header { 
    position: absolute; 
    top: 40px; 
    left: 40px; 
    z-index: 100; 
    max-width: 500px; 
    pointer-events: none;
}

.emagazine-label {
    display: none; /* Đã ẩn chữ eMagazine cho bản web và mobile */
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 25px; 
    text-shadow: 0 4px 15px rgba(0,0,0,0.9);
    letter-spacing: -1px;
}
.e-red { color: var(--e-red); }

#header h1 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700; 
    font-size: 2rem; 
    color: var(--cyan);
    text-transform: uppercase; 
    letter-spacing: 1px;
    margin-bottom: 12px; 
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
    line-height: 1.3;
}
#header p { font-size: 1.1rem; color: #cbd5e1; font-weight: 300; line-height: 1.5; text-shadow: 0 2px 5px rgba(0,0,0,0.8); }

/* Style cho phần Nguồn nằm góc dưới cùng bên phải */
.source-attribution {
    position: absolute;
    bottom: 30px; 
    right: 40px; 
    z-index: 100;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    color: #94a3b8;
    pointer-events: auto; 
    background: rgba(10, 10, 15, 0.4);
    padding: 8px 15px;
    border-radius: 4px;
    backdrop-filter: blur(5px);
}
.source-attribution a {
    color: var(--cyan);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}
.source-attribution a:hover {
    color: #ffffff;
    text-decoration: underline;
}

#globeViz {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 1;
}

.marker-label {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 14px;
    white-space: nowrap;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.9), -1px -1px 4px rgba(0,0,0,0.9);
}
.label-cyan { color: #f8fafc; }
.label-cyan:hover { color: var(--cyan); }
.label-red { color: #fca5a5; } /* Màu đỏ cho Hoàng Sa, Trường Sa */

#info-panel {
    position: absolute; 
    top: 0; right: -600px; 
    width: 450px; height: 100%;
    background: var(--panel-bg); backdrop-filter: blur(15px);
    border-left: 1px solid rgba(20, 184, 166, 0.3);
    z-index: 200; 
    transition: right 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    overflow-y: auto; box-shadow: -10px 0 30px rgba(0,0,0,0.8);
}
#info-panel.active { right: 0 !important; }

#close-btn {
    position: absolute; top: 15px; right: 20px;
    background: none; border: none;
    color: #fff; font-size: 2.5rem;
    cursor: pointer; z-index: 201;
}
#close-btn:hover { color: var(--cyan); }

#info-content { padding: 60px 30px 40px 30px; }
#info-content h2 { font-family: 'Montserrat', sans-serif; font-size: 1.6rem; color: var(--cyan); margin-bottom: 20px; line-height: 1.4; }

.project-meta-details {
    margin-bottom: 20px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    line-height: 1.7;
    color: #e2e8f0;
}
.project-meta-details p { margin-bottom: 6px; }
.project-meta-details strong { color: var(--cyan); font-weight: 600; }

.image-wrapper { width: 100%; border-radius: 8px; overflow: hidden; margin-bottom: 20px; border: 1px solid rgba(255,255,255,0.1); }
.image-wrapper img { width: 100%; height: auto; display: block; }
.desc-text { font-size: 1.05rem; line-height: 1.8; color: #cbd5e1; text-align: justify; }

/* Responsive Mobile */
@media (max-width: 768px) {
    #header {
        position: absolute !important; top: 120px !important; left: 0 !important; 
        width: 100% !important; max-width: 100% !important; padding: 0 20px !important; 
        background: transparent !important; pointer-events: none; text-align: center;
    }
    .emagazine-label { font-size: 2.2rem; margin-bottom: 20px; visibility: hidden !important; }
    #header h1 { font-size: 1.35rem; line-height: 1.4; margin-bottom: 10px; }
    #header p { font-size: 0.95rem; line-height: 1.4; }
    
    #globeViz { position: absolute !important; top: 0 !important; left: 0; width: 100%; height: 100% !important; }
    
    /* Đẩy nguồn lên một chút trên mobile để không bị đè */
    .source-attribution { 
        bottom: 80px; right: 15px; font-size: 0.8rem; padding: 6px 10px;
    }
    
    #info-panel { width: 100% !important; right: -100vw; }
}
