﻿.globe-container {
    position: relative;
    width: 100%;
    height: calc(100vh - 120px);
    background: #07070d;
    overflow: hidden;
    margin-top: 80px;
}

.globe-toolbar {
    position: absolute;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 1rem;
    align-items: center;
    background: rgba(7, 7, 13, 0.8);
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(108, 43, 217, 0.3);
    backdrop-filter: blur(10px);
}

.globe-title {
    color: white;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.globe-pulse {
    width: 10px;
    height: 10px;
    background: #10b981;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

.globe-filters {
    display: flex;
    gap: 0.5rem;
}

.globe-select {
    background: #1a1a2e;
    color: white;
    border: 1px solid rgba(108, 43, 217, 0.3);
    border-radius: 6px;
    padding: 0.5rem;
    font-size: 0.85rem;
    cursor: pointer;
}

.globe-btn {
    background: linear-gradient(135deg, #6c2bd9, #1a6bff);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
}

    .globe-btn:hover {
        opacity: 0.8;
    }

.globe-btn-report {
    background: linear-gradient(135deg, #d4a017, #f97316); /* Gold to Orange */
    color: #712e00;
    border: none;
    border-radius: 6px;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

    .globe-btn-report:hover {
        opacity: 0.85;
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(212, 160, 23, 0.3);
    }

.globe-canvas {
    width: 100%;
    height: 100%;
    min-height: 300px; /* Ensure visible on mobile */
}

.globe-stats {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 2rem;
    background: rgba(7, 7, 13, 0.8);
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(108, 43, 217, 0.3);
    backdrop-filter: blur(10px);
}

.globe-stat {
    text-align: center;
}

    .globe-stat span {
        display: block;
        color: white;
        font-weight: 700;
        font-size: 1.25rem;
    }

    .globe-stat label {
        color: #a0aec0;
        font-size: 0.75rem;
        text-transform: uppercase;
        letter-spacing: 0.05em;
    }

/* Mobile responsive */
/* Mobile responsive */
@media (max-width: 768px) {
    .globe-container {
        height: calc(100vh - 100px);
        margin-top: 60px;
        min-height: 400px; /* Ensure minimum height */
    }

    .globe-canvas {
        min-height: 400px;
        height: calc(100vh - 200px); /* Account for toolbar and stats */
    }

    .globe-toolbar {
        top: 0.5rem;
        padding: 0.5rem;
        gap: 0.5rem;
        flex-direction: column;
        width: 90%;
        position: absolute;
        z-index: 10;
    }

    .globe-filters {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.3rem;
    }

    .globe-select {
        font-size: 0.7rem;
        padding: 0.3rem;
        max-width: 100px;
    }

    .globe-btn {
        font-size: 0.7rem;
        padding: 0.3rem 0.6rem;
    }

    .globe-stats {
        bottom: 0.5rem;
        gap: 0.75rem;
        padding: 0.4rem 0.75rem;
        width: 90%;
        justify-content: space-around;
    }

    .globe-stat span {
        font-size: 0.9rem;
    }

    .globe-stat label {
        font-size: 0.55rem;
    }

    .earthquake-info-panel {
        width: 85%;
        right: 7.5%;
        top: 130px;
        max-height: calc(100% - 250px);
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .globe-container {
        height: calc(100vh - 80px);
        margin-top: 50px;
        min-height: 350px;
    }

    .globe-canvas {
        min-height: 350px;
        height: calc(100vh - 180px);
    }

    .globe-title {
        font-size: 0.75rem;
    }

    .globe-toolbar {
        width: 95%;
        padding: 0.4rem;
        gap: 0.3rem;
    }

    .globe-filters {
        gap: 0.2rem;
    }

    .globe-select {
        font-size: 0.65rem;
        padding: 0.25rem;
        max-width: 80px;
    }

    .globe-btn {
        font-size: 0.65rem;
        padding: 0.25rem 0.5rem;
    }

    .globe-stats {
        gap: 0.5rem;
        padding: 0.3rem 0.5rem;
        width: 95%;
    }

    .globe-stat span {
        font-size: 0.8rem;
    }

    .globe-stat label {
        font-size: 0.5rem;
    }

    .earthquake-info-panel {
        width: 90%;
        right: 5%;
        top: 140px;
        max-height: calc(100% - 280px);
    }
}




/* Loading Overlay */
.globe-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 100;
    text-align: center;
    background: rgba(7, 7, 13, 0.9);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(108, 43, 217, 0.3);
}

.globe-loading-spinner {
    width: 40px;
    height: 40px;
    margin: 0 auto 1rem;
    border: 3px solid rgba(108, 43, 217, 0.3);
    border-top-color: #6c2bd9;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.globe-loading p {
    color: white;
    font-size: 0.85rem;
    margin: 0;
}

/* Earthquake Info Panel */
.earthquake-info-panel {
    position: absolute;
    top: 80px;
    right: 20px;
    width: 300px;
    max-height: calc(100% - 160px);
    background: rgba(7, 7, 13, 0.95);
    border-radius: 12px;
    border: 1px solid rgba(108, 43, 217, 0.3);
    padding: 1.5rem;
    z-index: 50;
    overflow-y: auto;
    backdrop-filter: blur(10px);
}

.earthquake-info-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

    .earthquake-info-header h3 {
        color: white;
        font-size: 1rem;
        margin: 0;
    }

.earthquake-info-close {
    background: none;
    border: none;
    color: #a0aec0;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
}

    .earthquake-info-close:hover {
        color: white;
    }

.earthquake-info-magnitude {
    text-align: center;
    margin-bottom: 0.5rem;
}

    .earthquake-info-magnitude span {
        font-size: 2.5rem;
        font-weight: 700;
        color: #d4a017;
    }

.earthquake-info-place {
    text-align: center;
    color: white;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.earthquake-info-details {
    margin-bottom: 1rem;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

    .info-row span:first-child {
        color: #a0aec0;
        font-size: 0.8rem;
    }

    .info-row span:last-child {
        color: white;
        font-size: 0.8rem;
        text-align: right;
    }

.earthquake-info-link {
    display: block;
    text-align: center;
    color: #6c2bd9;
    text-decoration: none;
    font-size: 0.85rem;
    padding: 0.5rem;
    border-radius: 6px;
    background: rgba(108, 43, 217, 0.1);
    transition: all 0.2s;
}

    .earthquake-info-link:hover {
        background: rgba(108, 43, 217, 0.2);
    }


/* Share Section */
.earthquake-share-section {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.share-label {
    color: #a0aec0;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
    text-align: center;
}

.share-buttons {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.05);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
}

    .share-btn:hover {
        background: rgba(255, 255, 255, 0.1);
        transform: translateY(-2px);
    }

    .share-btn span {
        font-size: 0.75rem;
    }

.share-twitter:hover {
    background: rgba(0, 0, 0, 0.8);
    border-color: rgba(255, 255, 255, 0.3);
}

.share-linkedin:hover {
    background: rgba(10, 102, 194, 0.3);
    border-color: #0a66c2;
}

.share-telegram:hover {
    background: rgba(0, 136, 204, 0.3);
    border-color: #0088cc;
}

.share-whatsapp:hover {
    background: rgba(37, 211, 102, 0.3);
    border-color: #25d366;
}