/* Map Details Page Styles */
:root {
    --bg-primary: #0d0e11;
    --bg-secondary: #1a1d23;
    --bg-card: #252830;
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --accent: #667eea;
    --accent-hover: #764ba2;
    --border-color: #2d3139;
    --success: #10b981;
    --danger: #ef4444;
}

body {
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
}

.map-details-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.map-content-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

/* Breadcrumb */
.breadcrumb-nav {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 14px;
}

.back-btn:hover {
    background: var(--bg-card);
    color: var(--text-primary);
    transform: translateX(-5px);
    border-color: var(--accent);
}

/* Full width hero section override */
.server-hero-section {
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 0 !important;
}

.server-hero-section .container-fluid {
    padding-left: 0;
    padding-right: 0;
}

/* Map Hero Stats - Additional styling for server-hero-section */
.map-hero-stats {
    display: flex;
    gap: 24px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Status dot animation (if not already in stylesheet.css) */
@keyframes statusPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(67, 233, 123, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(67, 233, 123, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(67, 233, 123, 0);
    }
}

.hero-stat-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.hero-stat-value {
    color: #fff;
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.hero-stat-label {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Override some server-hero styles for maps */
.server-hero-section .server-title {
    font-size: 2.5rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.server-hero-section .server-game-badge {
    background: rgba(102, 126, 234, 0.2);
    border: 1px solid rgba(102, 126, 234, 0.4);
}

.server-hero-section .server-game-badge i {
    color: #667eea;
}

.server-hero-section .server-hero-right {
    display: flex;
    align-items: center;
}

.server-hero-section .btn-copy-ip {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 12px 24px;
    font-size: 1rem;
}

.server-hero-section .btn-copy-ip:hover {
    background: linear-gradient(135deg, #764ba2, #667eea);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

/* Additional responsive styles for server-hero-section on map page */
@media (max-width: 992px) {
    .server-hero-content {
        flex-direction: column;
        text-align: center;
    }
    
    .server-hero-left {
        width: 100%;
    }
    
    .map-hero-stats {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .map-hero-stats {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .hero-stat-value {
        font-size: 1.5rem;
    }
    
    .server-hero-section .server-title {
        font-size: 2rem;
    }
}


/* Servers Section */
.servers-section {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 30px;
    border: 1px solid var(--border-color);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.section-title {
    font-size: 24px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title i {
    color: var(--accent);
}

.server-count {
    background: var(--bg-card);
    color: var(--accent);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

/* Server List */
.servers-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.server-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.server-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: transparent;
    transition: background 0.3s ease;
}

.server-card:hover {
    transform: translateX(5px);
    border-color: var(--accent);
}

.server-card:hover::before {
    background: linear-gradient(180deg, var(--accent), var(--accent-hover));
}

.server-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.server-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.server-status {
    display: flex;
    align-items: center;
    gap: 10px;
}

.status-badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-online {
    background: rgba(16, 185, 129, 0.2);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-offline {
    background: rgba(239, 68, 68, 0.2);
    color: var(--danger);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.server-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 15px;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 14px;
}

.detail-item i {
    color: var(--accent);
    width: 16px;
    text-align: center;
}

.detail-item strong {
    color: var(--text-primary);
    margin-left: 4px;
}

.server-actions {
    display: flex;
    gap: 10px;
}

.action-btn {
    background: rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.3);
    color: var(--accent);
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.action-btn:hover {
    background: var(--accent);
    color: white;
    transform: translateY(-2px);
}

.action-btn.primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    border: none;
    color: white;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-icon {
    font-size: 64px;
    color: var(--border-color);
    margin-bottom: 20px;
}

.empty-title {
    font-size: 24px;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.empty-text {
    color: var(--text-secondary);
    font-size: 16px;
}

/* Loading State */
.loading-spinner {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid var(--border-color);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Player Bar */
.players-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.players-progress {
    flex: 1;
    height: 8px;
    background: var(--bg-secondary);
    border-radius: 4px;
    overflow: hidden;
}

.players-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--accent-hover));
    border-radius: 4px;
    transition: width 0.3s ease;
}

.players-text {
    font-size: 13px;
    color: var(--text-secondary);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .map-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .map-header {
        height: 350px;
    }
    
    .map-title {
        font-size: 24px;
    }
    
    .stat-value {
        font-size: 20px;
    }
    
    .map-header-content {
        padding: 20px;
    }
    
    .server-details {
        grid-template-columns: 1fr;
    }
    
    .map-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .stat-box {
        padding: 8px;
    }
    
    .game-badge {
        font-size: 12px;
        padding: 6px 12px;
    }
    
    .server-header {
        flex-direction: column;
        gap: 10px;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}
