/* Command & Conquer: Yuri's Revenge Theme CSS */

/* ==================== COLOR VARIABLES ==================== */
:root {
    /* Soviet Red Theme */
    --soviet-red: #cc0000;
    --soviet-red-dark: #990000;
    --soviet-red-light: #ff3333;
    
    /* Allied Blue Theme */
    --allied-blue: #0066cc;
    --allied-blue-dark: #004499;
    --allied-blue-light: #3388ff;
    
    /* Yuri Purple Theme */
    --yuri-purple: #6600cc;
    --yuri-purple-dark: #4d0099;
    --yuri-purple-light: #8833ff;
    
    /* Metal/Industrial Colors */
    --metal-dark: #2c3e50;
    --metal-medium: #34495e;
    --metal-light: #7f8c8d;
    --metal-chrome: #bdc3c7;
    
    /* Warning/Alert Colors */
    --warning-amber: #f39c12;
    --alert-red: #e74c3c;
    --success-green: #27ae60;
    
    /* Background Colors */
    --bg-primary: #1a1a1a;
    --bg-secondary: #2c2c2c;
    --bg-tertiary: #3c3c3c;
    
    /* Text Colors */
    --text-primary: #ecf0f1;
    --text-secondary: #bdc3c7;
    --text-muted: #7f8c8d;
    
    /* Effects */
    --glow-intensity: 0 0 10px;
    --border-glow: 0 0 5px;
}

/* ==================== BASE STYLES ==================== */
body {
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--metal-dark) 100%);
    color: var(--text-primary);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow-x: hidden;
}

.container-fluid {
    padding: 0 15px;
}

.row {
    margin: 0;
}
.text-muted{
	color:#7f8c8d !important;
}
/* ==================== NAVBAR ==================== */
.navbar-brand {
    font-weight: bold;
    background: linear-gradient(45deg, var(--soviet-red), #e2daea, var(--allied-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: var(--glow-intensity) var(--yuri-purple);
}

/* ==================== FORM CONTROLS ==================== */
.form-control,
.form-select {
    background: var(--bg-secondary);
    border: 1px solid var(--metal-medium);
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    background: var(--bg-tertiary);
    border-color: var(--yuri-purple);
    box-shadow: var(--border-glow) var(--yuri-purple);
    color: var(--text-primary);
}

/* ==================== CARDS ==================== */
.card {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--metal-dark) 100%);
    border: 1px solid var(--metal-medium);
    border-radius: 8px;
    color: var(--text-primary);
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* ==================== HERO SECTION ==================== */
.hero-section {
    background: linear-gradient(135deg, var(--metal-dark) 0%, var(--bg-primary) 50%, var(--yuri-purple-dark) 100%);
    color: var(--text-primary);
    padding: 4rem 0;
    border-radius: 0 0 20px 20px;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%23ffffff" stroke-width="0.1" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    position: relative;
    z-index: 1;
}

.hero-subtitle {
    font-size: 1.3rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

/* ==================== GAME CARDS ==================== */
.game-card {
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid var(--metal-medium);
    border-radius: 12px;
    height: 200px;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

/* Faction-specific game card themes */
.game-card.soviet {
    background: linear-gradient(135deg, var(--soviet-red-dark) 0%, var(--metal-dark) 100%);
    border-color: var(--soviet-red);
}

.game-card.allied {
    background: linear-gradient(135deg, var(--allied-blue-dark) 0%, var(--metal-dark) 100%);
    border-color: var(--allied-blue);
}

.game-card.yuri {
    background: linear-gradient(135deg, var(--yuri-purple-dark) 0%, var(--metal-dark) 100%);
    border-color: var(--yuri-purple);
}

.game-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.1) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
}

.game-card:hover::before {
    opacity: 1;
}

.game-card.soviet:hover {
    box-shadow: var(--glow-intensity) var(--soviet-red);
}

.game-card.allied:hover {
    box-shadow: var(--glow-intensity) var(--allied-blue);
}

.game-card.yuri:hover {
    box-shadow: var(--glow-intensity) var(--yuri-purple);
}

.game-card .card-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    text-align: center;
    position: relative;
    z-index: 1;
}

.game-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.9;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.8));
}

.game-card .card-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.game-card .card-text {
    opacity: 0.8;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6);
}

/* ==================== MAP CARDS ==================== */
.map-card {
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    background: var(--bg-secondary);
    border: 1px solid var(--metal-medium);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.map-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.4);
    border-color: var(--yuri-purple);
}


.map-preview {
    height: 200px;
    width: 100%;
    object-fit: contain;
    object-position: center;
    background: linear-gradient(135deg, var(--metal-dark) 0%, var(--bg-primary) 100%);
    border-radius: 8px 8px 0 0;
}


.map-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.card .row .col-md-2 .map-preview {
    height: 120px;
    border-radius: 8px 0 0 8px;
}

.card .row .col-md-2 .map-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.map-preview-placeholder {
    height: 200px;
    width: 100%;
    background: linear-gradient(135deg, var(--bg-secondary), var(--metal-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    border: 2px dashed var(--metal-medium);
    border-radius: 8px 8px 0 0;
}

/* List view placeholder */
.card .row .col-md-2 .map-preview-placeholder {
    height: 120px;
    border-radius: 8px 0 0 8px;
}

/* Ensure images don't break out of containers */
.card-body img {
    max-width: 100%;
    height: auto;
}

/* Loading state for lazy images */
.map-preview.loading {
    background: linear-gradient(90deg, var(--bg-secondary) 25%, var(--metal-dark) 50%, var(--bg-secondary) 75%);
    background-size: 200% 100%;
    animation: loading-shimmer 1.5s infinite;
}

@keyframes loading-shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}
.map-preview-placeholder,
.no-preview {
    height: 200px;
    background: linear-gradient(135deg, var(--bg-secondary), var(--metal-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    border: 2px dashed var(--metal-medium);
}

.map-details {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* ==================== SEARCH & FILTERS ==================== */
.search-filters {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--metal-dark) 100%);
    border: 1px solid var(--metal-medium);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.filter-section {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--metal-medium);
}

.filter-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.advanced-toggle {
    color: var(--text-muted);
    text-decoration: none;
    cursor: pointer;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.advanced-toggle:hover {
    color: var(--yuri-purple-light);
}

/* ==================== BUTTONS ==================== */
.btn-primary {
    background: linear-gradient(135deg, var(--yuri-purple) 0%, var(--yuri-purple-dark) 100%);
    border: 1px solid var(--yuri-purple);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--yuri-purple-light) 0%, var(--yuri-purple) 100%);
    box-shadow: var(--border-glow) var(--yuri-purple);
    transform: translateY(-1px);
}

.player-count-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.player-count-btn {
    flex: 1;
    min-width: 60px;
    background: var(--bg-tertiary);
    border: 1px solid var(--metal-medium);
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.player-count-btn:hover {
    background: var(--metal-medium);
    border-color: var(--yuri-purple);
}

.player-count-btn.active {
    background: linear-gradient(135deg, var(--yuri-purple) 0%, var(--yuri-purple-dark) 100%);
    border-color: var(--yuri-purple);
    color: var(--text-primary);
    box-shadow: var(--border-glow) var(--yuri-purple);
}

.action-btn {
    background: linear-gradient(135deg, var(--success-green) 0%, #229954 100%);
    border: none;
    border-radius: 25px;
    color: white;
    font-weight: 600;
    padding: 12px 30px;
    margin: 0 10px 10px 0;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(39, 174, 96, 0.4);
    color: white;
}

.action-btn-secondary {
    background: linear-gradient(135deg, var(--metal-medium) 0%, var(--metal-dark) 100%);
}

.action-btn-secondary:hover {
    box-shadow: 0 8px 20px rgba(108, 117, 125, 0.4);
}

/* ==================== SEARCH RESULTS ==================== */
.player-search-mode {
    background: linear-gradient(135deg, var(--warning-amber) 0%, #e67e22 100%);
    border: 1px solid var(--warning-amber);
    border-radius: 8px;
    padding: 0.75rem;
    margin-bottom: 1rem;
    color: var(--bg-primary);
}

.mode-indicator {
    font-size: 0.85rem;
    font-weight: 600;
}

.search-summary {
    background: linear-gradient(135deg, var(--allied-blue-dark) 0%, var(--metal-dark) 100%);
    border-left: 4px solid var(--allied-blue);
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    color: var(--text-primary);
}

.sort-controls {
    background: var(--bg-secondary);
    border: 1px solid var(--metal-medium);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.no-results {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--text-muted);
    background: var(--bg-secondary);
    border-radius: 12px;
    border: 2px dashed var(--metal-medium);
}

.search-results-count {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* ==================== STATISTICS SECTION ==================== */
.stats-section {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--metal-dark) 100%);
    border: 1px solid var(--metal-medium);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    padding: 2rem;
    margin-top: 3rem;
}

.stats-title {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--text-primary);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.stat-card {
    background: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--metal-medium) 100%);
    border: 1px solid var(--metal-light);
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    height: 100%;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--border-glow) var(--yuri-purple);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--yuri-purple-light);
    display: block;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ==================== BADGES ==================== */
.badge {
    white-space: normal;
    word-wrap: break-word;
    word-break: break-word;
    font-weight: 600;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.5);
}

.category-tag,
.game-badge,
.badge-game {
    font-size: 0.75rem;
    margin-right: 0.25rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

/* Faction-themed badges */
.badge-yr { 
    background: linear-gradient(135deg, var(--yuri-purple) 0%, var(--yuri-purple-dark) 100%);
    color: white;
}

.badge-ra { 
    background: linear-gradient(135deg, var(--allied-blue) 0%, var(--allied-blue-dark) 100%);
    color: white;
}

.badge-ts { 
    background: linear-gradient(135deg, var(--soviet-red) 0%, var(--soviet-red-dark) 100%);
    color: white;
}

/* ==================== TABLES ==================== */
.table {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.table th {
    border-top: none;
    border-bottom: 2px solid var(--metal-medium);
    font-weight: 600;
    color: var(--text-primary);
    min-width: 120px;
    white-space: nowrap;
    text-align: left;
    background: var(--bg-tertiary);
}

.table td {
    word-break: break-word;
    border-top: 1px solid var(--metal-medium);
    color: var(--text-secondary);
}

.table-hover tbody tr:hover {
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
}

/* ==================== RESPONSIVE DESIGN ==================== */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .game-card {
        height: 150px;
        margin-bottom: 1rem;
    }
    
    .game-icon {
        font-size: 2rem;
    }
    
    .game-card .card-title {
        font-size: 1.2rem;
    }
    
    .stats-section {
        padding: 1.5rem;
        margin-top: 2rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .search-filters {
        padding: 1rem;
    }
    
    .filter-section {
        padding-bottom: 0.75rem;
        margin-bottom: 1rem;
    }
    
    .table-responsive {
        font-size: 0.9rem;
    }
    
    .col-md-4 {
        padding: 0 15px;
    }
}

/* ==================== QUICK ACTIONS ==================== */
.quick-actions {
    text-align: center;
    margin-top: 3rem;
	z-index:10;
	position:relative;
}

/* ==================== LOADING SPINNER ==================== */
.loading-spinner {
    text-align: center;
    padding: 3rem 1rem;
}

.loading-spinner .spinner-border {
    width: 3rem;
    height: 3rem;
    border-color: var(--yuri-purple);
    border-right-color: transparent;
}

/* ==================== MAP SPECIFIC STYLES ==================== */
.map-info-card {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--metal-dark) 100%);
    border: 1px solid var(--metal-medium);
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
    margin-bottom: 20px;
    color: var(--text-primary);
}

.map-header {
    background: linear-gradient(135deg, var(--yuri-purple-dark) 0%, var(--metal-dark) 50%, var(--soviet-red-dark) 100%);
    color: var(--text-primary);
    border-radius: 15px 15px 0 0;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.map-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%23ffffff" stroke-width="0.1" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.2;
}

.map-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    position: relative;
    z-index: 1;
}

.map-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.map-stats {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--metal-medium);
    border-radius: 10px;
    padding: 1rem;
    position: relative;
    z-index: 1;
}

.stat-item {
    text-align: center;
    padding: 0.5rem;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: bold;
    display: block;
    color: var(--text-primary);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.stat-label {
    font-size: 0.85rem;
    opacity: 0.8;
    color: var(--text-secondary);
}

.briefing-box {
    background: var(--bg-primary);
    color: var(--success-green);
    font-family: 'Courier New', monospace;
    padding: 1.5rem;
    border-radius: 8px;
    border: 2px solid var(--metal-medium);
    white-space: pre-wrap;
    font-size: 0.9rem;
    line-height: 1.4;
    overflow-x: auto;
    max-height: 300px;
    overflow-y: auto;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
}

.map-image-container {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    background: var(--bg-secondary);
    border: 2px solid var(--metal-medium);
    transition: all 0.3s ease;
}

.map-image-container:hover {
    border-color: var(--yuri-purple);
    box-shadow: var(--border-glow) var(--yuri-purple);
}

.map-thumbnail {
    width: 100%;
    height: auto;
    cursor: pointer;
    transition: all 0.3s ease;
}

.map-thumbnail:hover {
    opacity: 0.9;
    transform: scale(1.02);
}

.no-image-placeholder {
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--metal-dark) 100%);
    color: var(--text-muted);
    font-size: 1.2rem;
}

.download-section {
    background: linear-gradient(135deg, var(--success-green) 0%, #1e7e34 100%);
    border: 1px solid var(--success-green);
    border-radius: 10px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    color: white;
}

.btn-download {
    background: linear-gradient(135deg, var(--allied-blue) 0%, var(--allied-blue-dark) 100%);
    border: none;
    border-radius: 25px;
    color: white;
    font-weight: 600;
    padding: 12px 24px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.btn-download:hover {
    transform: translateY(-2px);
    box-shadow: var(--glow-intensity) var(--allied-blue);
    color: white;
}

.copy-command {
    background: var(--bg-tertiary);
    border: 1px solid var(--metal-medium);
    border-radius: 8px;
    padding: 0.75rem;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

.copy-command code {
    color: var(--text-primary);
    background: transparent;
}

/* ==================== IMAGE VIEWER MODAL ==================== */
.image-viewer-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}

.image-viewer-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.image-viewer {
    position: absolute;
    cursor: grab;
    transition: transform 0.1s ease-out;
}

.image-viewer:active {
    cursor: grabbing;
}

.image-viewer img {
    max-width: none;
    max-height: none;
    user-select: none;
    pointer-events: none;
}

.image-controls {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    gap: 10px;
}

.image-control-btn {
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid var(--metal-medium);
    color: var(--text-primary);
    border-radius: 5px;
    padding: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.image-control-btn:hover {
    background: rgba(0, 0, 0, 0.9);
    border-color: var(--yuri-purple);
    box-shadow: var(--border-glow) var(--yuri-purple);
}

.image-info {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: rgba(0, 0, 0, 0.7);
    color: var(--text-primary);
    padding: 10px 15px;
    border-radius: 5px;
    font-family: monospace;
    font-size: 0.9rem;
    border: 1px solid var(--metal-medium);
}

.info-grid {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.5rem 1rem;
    align-items: center;
}

.info-label {
    font-weight: 600;
    color: var(--text-secondary);
    white-space: nowrap;
}

.info-value {
    word-break: break-word;
    color: var(--text-primary);
}

/* ==================== CATEGORY CARDS ==================== */
.category-card {
    cursor: pointer;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--metal-dark) 100%);
    border: 1px solid var(--metal-medium);
    color: var(--text-primary);
    border-radius: 12px;
    overflow: hidden;
}

.category-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    border-color: var(--yuri-purple);
}

.category-card.selected {
    border-color: var(--yuri-purple);
    box-shadow: var(--border-glow) var(--yuri-purple);
    background: linear-gradient(135deg, var(--yuri-purple-dark) 0%, var(--metal-dark) 100%);
}

.category-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--yuri-purple-light);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.category-count {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

/* ==================== VIEW CONTROLS ==================== */
.view-controls {
    background: var(--bg-secondary);
    border: 1px solid var(--metal-medium);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.btn-view-all {
    background: linear-gradient(135deg, var(--allied-blue) 0%, var(--allied-blue-dark) 100%);
    border: none;
    color: white;
    border-radius: 20px;
    padding: 8px 20px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-view-all:hover {
    transform: translateY(-1px);
    box-shadow: var(--border-glow) var(--allied-blue);
    color: white;
}

.sort-filter {
    background: var(--bg-secondary);
    border: 1px solid var(--metal-medium);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

/* ==================== MAPS GRID ==================== */
.maps-grid {
    min-height: 200px;
}

/* ==================== PAGINATION ==================== */
.pagination {
    justify-content: center;
}

.pagination .page-item .page-link {
    background: var(--bg-secondary);
    border: 1px solid var(--metal-medium);
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.pagination .page-item .page-link:hover {
    background: var(--bg-tertiary);
    border-color: var(--yuri-purple);
    color: var(--text-primary);
}

.pagination .page-item.active .page-link {
    background: linear-gradient(135deg, var(--yuri-purple) 0%, var(--yuri-purple-dark) 100%);
    border-color: var(--yuri-purple);
    color: white;
    box-shadow: var(--border-glow) var(--yuri-purple);
}

.pagination .page-item.disabled .page-link {
    background: var(--bg-tertiary);
    border-color: var(--metal-light);
    color: var(--text-muted);
}

/* ==================== UTILITY CLASSES ==================== */
.text-glow {
    text-shadow: var(--glow-intensity) var(--yuri-purple);
}

.border-glow {
    box-shadow: var(--border-glow) var(--yuri-purple);
}

.soviet-theme {
    --primary-color: var(--soviet-red);
    --primary-dark: var(--soviet-red-dark);
    --primary-light: var(--soviet-red-light);
}

.allied-theme {
    --primary-color: var(--allied-blue);
    --primary-dark: var(--allied-blue-dark);
    --primary-light: var(--allied-blue-light);
}

.yuri-theme {
    --primary-color: var(--yuri-purple);
    --primary-dark: var(--yuri-purple-dark);
    --primary-light: var(--yuri-purple-light);
}
/* Add these styles to your public/css/style.css */

/* Confidence-based styling for map cards */
.map-card.high-confidence {
    border: 2px solid #28a745;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.1);
}

.map-card.medium-confidence {
    border: 2px solid #ffc107;
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.1);
}

.map-card.low-confidence {
    border: 2px solid #6c757d;
    opacity: 0.85;
}

/* Confidence indicator positioning */
.confidence-indicator {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 10;
    background: rgba(255, 255, 255, 0.9);
    padding: 2px 6px;
    border-radius: 12px;
    font-size: 12px;
}

/* Version badge styling */
.version-badge {
    font-size: 0.7em;
    padding: 2px 6px;
}

.version-badge-overlay {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 10;
}

/* Enhanced game badge */
.game-badge {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 123, 255, 0.9);
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.8em;
    font-weight: bold;
}

/* Quality score styling */
.quality-score {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8em;
}

.quality-score.high {
    color: #28a745;
}

.quality-score.medium {
    color: #ffc107;
}

.quality-score.low {
    color: #6c757d;
}

/* Hover effects for confidence cards */
.map-card.high-confidence:hover {
    border-color: #1e7e34;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.2);
}

.map-card.medium-confidence:hover {
    border-color: #e0a800;
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.2);
}

.map-card.low-confidence:hover {
    border-color: #495057;
    opacity: 1;
}

/* Version sorting indicators */
.version-latest {
    background: linear-gradient(45deg, #28a745, #20c997);
}

.version-outdated {
    background: linear-gradient(45deg, #ffc107, #fd7e14);
}

/* Search filter styles for confidence */
.confidence-filter {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 16px;
}

.confidence-filter h6 {
    margin-bottom: 8px;
    color: #495057;
}

.confidence-option {
    display: flex;
    align-items: center;
    margin-bottom: 6px;
}

.confidence-option input[type="checkbox"] {
    margin-right: 8px;
}

/* Map details page confidence display */
.map-confidence-display {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 16px;
}

.confidence-meter {
    width: 100%;
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}

.confidence-bar {
    height: 100%;
    transition: width 0.3s ease;
}

.confidence-bar.high {
    background: linear-gradient(to right, #28a745, #20c997);
}

.confidence-bar.medium {
    background: linear-gradient(to right, #ffc107, #fd7e14);
}

.confidence-bar.low {
    background: linear-gradient(to right, #6c757d, #495057);
}

/* Version comparison table */
.version-comparison-table {
    font-size: 0.9em;
}

.version-comparison-table .latest-version {
    background: rgba(40, 167, 69, 0.1);
    font-weight: bold;
}

.version-comparison-table .outdated-version {
    background: rgba(255, 193, 7, 0.1);
    opacity: 0.8;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .confidence-indicator {
        font-size: 10px;
        padding: 1px 4px;
    }
    
    .version-badge-overlay {
        font-size: 0.6em;
    }
    
    .game-badge {
        font-size: 0.7em;
        padding: 1px 6px;
    }
}