/* Map and Social Sidebar Layout */
.map-social-wrapper {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 24px;
    margin-top: 30px;
    height: auto;
    align-items: stretch;
}

.map-side,
.social-side {
    width: 100%;
    height: 100%;
}

/* Map Card - Consistent styling */
.map-card {
    margin-top: 0 !important;
    height: 100%;
    display: flex !important;
    flex-direction: column;
    padding: 24px !important;
    box-sizing: border-box;
    /* Warm gradient background matching site theme */
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-secondary) 100%);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
}

.map-container {
    flex-grow: 1;
    width: 100%;
    height: auto !important;
    min-height: 0 !important;
    border-radius: 16px;
    background: #000;
}

/* Social Sidebar Card - The Main Container */
.social-sidebar-card {
    height: 100%;
    padding: 24px !important;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    /* Same background as map card */
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-secondary) 100%);
    border: 1px solid var(--border-color);
    border-radius: 28px;
    box-shadow: 0 15px 35px var(--shadow-color);
}

/* Map Header Row - Matching Social Header Style */
.map-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    flex-shrink: 0;
}

.map-header-row h2 {
    font-size: 24px;
    font-weight: 800;
    margin: 0;
    color: var(--text-primary);
}

.map-header-icons {
    display: flex;
    align-items: center;
    gap: 12px;
}

.map-header-icons>i {
    font-size: 24px;
    color: var(--accent-color);
    opacity: 0.9;
}

/* Icon Link for External Map */
.map-icon-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 14px;
}

[data-theme="dark"] .map-icon-link {
    background: rgba(0, 0, 0, 0.2);
}

.map-icon-link:hover {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(249, 134, 82, 0.3);
}

.social-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-shrink: 0;
}

.social-header-row h3 {
    font-size: 20px;
    font-weight: 800;
    margin: 0;
    color: var(--text-primary);
    /* Make text generic color first, then gradient if needed. 
       Plain text usually looks cleaner on these cards. */
}

.social-header-row i {
    font-size: 20px;
    color: var(--accent-color);
    opacity: 0.9;
}

.social-sidebar-list {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
    gap: 12px;
}

/* 3D Tiles - Matching Server Status Style */
.social-tile {
    position: relative;
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-radius: 18px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);

    /* Exact match to .stat-item style */
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
    border: 1px solid var(--border-color);

    overflow: hidden;
    flex: 1;
    max-height: 80px;
}

[data-theme="dark"] .social-tile {
    /* Exact match to .stat-item dark mode */
    background: rgba(0, 0, 0, 0.2);
    box-shadow: none;
    /* Remove deep shadow to match stat items flat/glass look */
}

/* Icon Box */
.tile-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: white;
    margin-right: 14px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 2;
}

/* Brand Gradients remain the same */
.discord .tile-icon {
    background: linear-gradient(135deg, #5865F2, #4752C4);
}

.telegram .tile-icon {
    background: linear-gradient(135deg, #229ED9, #0088CC);
}

.tiktok .tile-icon {
    background: #000000;
    padding: 0;
    /* Remove padding to let logo use full space if needed */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tile-icon img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.youtube .tile-icon {
    background: linear-gradient(135deg, #FF0000, #CC0000);
}

.guide .tile-icon {
    background: #181c1f;
}

.support .tile-icon {
    background: #141a2a;
}

.tile-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    z-index: 2;
}

.tile-title {
    font-weight: 700;
    font-size: 15px;
    color: var(--text-primary);
    line-height: 1.2;
}

.tile-desc {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
}

.tile-arrow {
    font-size: 12px;
    color: var(--text-muted);
    opacity: 0.5;
    transition: transform 0.3s ease, color 0.3s ease;
    z-index: 2;
}

/* Hover Effects */
.social-tile:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow:
        0 8px 20px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    background: #ffffff;
}

[data-theme="dark"] .social-tile:hover {
    box-shadow:
        0 10px 25px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    background: var(--bg-secondary);
    /* Slightly lighter interaction state */
}

.social-tile:hover .tile-arrow {
    color: var(--accent-color);
    transform: translateX(3px);
    opacity: 1;
}

.social-tile:active {
    transform: scale(0.98);
}

/* Responsive */
@media (max-width: 992px) {
    .map-social-wrapper {
        grid-template-columns: 1fr;
        height: auto;
    }

    .social-sidebar-card {
        height: auto;
        min-height: auto;
    }

    .social-sidebar-list {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

@media (max-width: 576px) {
    .social-sidebar-list {
        grid-template-columns: 1fr;
    }
}

/* Feature Card - Universal container style */
.feature-card {
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-secondary) 100%);
    border: 1px solid var(--border-color);
    border-radius: 28px;
    box-shadow: 0 15px 35px var(--shadow-color);
    padding: 24px;
    box-sizing: border-box;
}

/* Section Header Row - Universal style for all sections */
.section-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-shrink: 0;
}

.section-header-row h3 {
    font-size: 24px;
    font-weight: 800;
    margin: 0;
    color: var(--text-primary);
}

.section-header-row i {
    font-size: 24px;
    color: var(--accent-color);
    opacity: 0.9;
}

/* Resources Section */
.resources-section {
    margin-top: 30px;
}

/* Roadmap Section */
.roadmap-section {
    margin-top: 30px;
}