/* ============================================
   COMMUNITY MAP SECTION
   ============================================ */

.community-map-section {
    background: linear-gradient(135deg, #0a4d68 0%, #1a1a2e 100%);
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

html[data-theme="light"] .community-map-section {
    background: linear-gradient(135deg, #e3f2fd 0%, #f5f5f5 100%);
}

.community-map-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(45deg, rgba(53, 132, 228, 0.05) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(53, 132, 228, 0.05) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, rgba(53, 132, 228, 0.05) 75%),
        linear-gradient(-45deg, transparent 75%, rgba(53, 132, 228, 0.05) 75%);
    background-size: 50px 50px;
    background-position: 0 0, 0 25px, 25px -25px, -25px 0px;
    opacity: 0.3;
    pointer-events: none;
}

.community-map-header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    z-index: 1;
}

.community-map-header h2 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #ffffff 0%, #a0cfff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

html[data-theme="light"] .community-map-header h2 {
    background: linear-gradient(135deg, #1c71d8 0%, #3584e4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.community-tagline {
    font-size: 1.3rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

.world-map-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto 3rem;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: var(--border-radius);
    border: 1px solid rgba(53, 132, 228, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    overflow: visible;
}

html[data-theme="light"] .world-map-container {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(28, 113, 216, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.world-map {
    width: 100%;
    height: auto;
    aspect-ratio: 920 / 520;
    display: block;
    filter: drop-shadow(0 0 10px rgba(53, 132, 228, 0.3));
    overflow: visible;
}

.map-dot {
    fill: rgba(100, 180, 230, 0.5);
    transition: all 0.3s ease;
    transform-box: fill-box;
    transform-origin: center;
}

.map-dot.active {
    fill: #62a0ea;
    filter: drop-shadow(0 0 4px rgba(98, 160, 234, 0.9));
    transform: scale(1.3);
}

.map-dot.pulse {
    animation: dot-pulse 2s ease-in-out;
}

@keyframes dot-pulse {
    0%, 100% {
        fill: rgba(100, 180, 230, 0.5);
        transform: scale(1);
    }
    10% {
        fill: #ffffff;
        transform: scale(2);
        filter: drop-shadow(0 0 12px rgba(255, 255, 255, 1));
    }
    50% {
        fill: #62a0ea;
        transform: scale(1.8);
        filter: drop-shadow(0 0 10px rgba(98, 160, 234, 1));
    }
}

.map-overlay {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 800px;
}

.community-stats {
    display: flex;
    justify-content: space-around;
    gap: 2rem;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(53, 132, 228, 0.3);
}

html[data-theme="light"] .community-stats {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(28, 113, 216, 0.2);
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
}

.stat-icon {
    font-size: 2rem;
}

.stat-text {
    font-size: 0.95rem;
    font-weight: 500;
    text-align: center;
    opacity: 0.9;
}

.community-cta {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
    background: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: var(--border-radius);
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 4px 16px rgba(53, 132, 228, 0.3);
}

.cta-button:hover {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(53, 132, 228, 0.5);
}

.cta-button.secondary {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.3);
}

html[data-theme="light"] .cta-button.secondary {
    border-color: rgba(28, 113, 216, 0.4);
    color: var(--primary-color);
}

.cta-button.secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-color);
}

html[data-theme="light"] .cta-button.secondary:hover {
    background: rgba(28, 113, 216, 0.1);
}

/* Continent Dialog */
.continent-dialog {
    position: fixed;
    background: rgba(26, 26, 46, 0.98);
    border: 2px solid rgba(53, 132, 228, 0.6);
    border-radius: 12px;
    padding: 0;
    min-width: 300px;
    max-width: 400px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    z-index: 10000;
    animation: dialogFadeIn 0.2s ease-out;
}

@keyframes dialogFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.dialog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, rgba(53, 132, 228, 0.2) 0%, rgba(28, 113, 216, 0.1) 100%);
    border-bottom: 1px solid rgba(53, 132, 228, 0.3);
    border-radius: 10px 10px 0 0;
}

.dialog-header h3 {
    margin: 0;
    font-size: 1.3rem;
    color: #ffffff;
    font-weight: 600;
}

.dialog-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.dialog-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.dialog-content {
    padding: 1.25rem;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.stat-row:first-child {
    padding-top: 0;
}

.stat-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    font-weight: 500;
}

.stat-value {
    color: #62a0ea;
    font-size: 1rem;
    font-weight: 600;
}
