/* ============================================
   MAPS PAGE STYLES - MARNYL Wiki
   Same style as main page - brutal & pink
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Custom Scrollbar - MARNYL Style */
::-webkit-scrollbar {
    width: 16px;
    height: 16px;
    border-radius: 0 !important;
}

::-webkit-scrollbar-track {
    background: #000;
    border-left: 4px solid #ff69b4;
    border-radius: 0 !important;
}

::-webkit-scrollbar-thumb {
    background: #ff69b4;
    border: 3px solid #000;
    border-radius: 0 !important;
}

::-webkit-scrollbar-thumb:hover {
    background: #fff;
}

* {
    scrollbar-width: auto;
    scrollbar-color: #ff69b4 #000;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #ff69b4;
    color: #000;
    min-height: 100vh;
}

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

/* Breadcrumb */
.breadcrumb {
    padding: 20px 0;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.breadcrumb a {
    color: #000;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb span {
    color: #000;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Main */
.main {
    padding: 20px 0;
}

.title {
    font-size: clamp(3rem, 8vw, 5rem);
    text-align: center;
    margin-bottom: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 6px;
    color: #000;
}

.subtitle {
    text-align: center;
    color: #000;
    margin-bottom: 40px;
    font-size: 1.2rem;
    font-weight: 600;
}

/* Maps Section */
.maps-section {
    margin-bottom: 60px;
}

.maps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.map-card {
    background: #fff;
    border: 4px solid #000;
    cursor: pointer;
    transition: all 0.15s ease;
    overflow: hidden;
}

.map-card:hover {
    transform: translate(-3px, -3px);
    box-shadow: 6px 6px 0 #000;
}

.map-preview {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: linear-gradient(135deg, #2a2a2a 0%, #444 100%);
    border-bottom: 3px solid #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-preview canvas {
    width: 100% !important;
    height: 100% !important;
}

.map-info {
    padding: 15px;
    text-align: center;
}

.map-info h3 {
    font-size: 1.1rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.map-info p {
    font-size: 0.85rem;
    color: #555;
}

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

    .title {
        font-size: 2.5rem;
        letter-spacing: 3px;
    }
}

@media (max-width: 600px) {
    .maps-grid {
        grid-template-columns: 1fr;
    }
}

/* Map Modal */
.map-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    padding: 20px;
    overflow-y: auto;
}

.map-modal.hidden {
    display: none;
}

.map-modal-content {
    background: #fff;
    border: 6px solid #000;
    max-width: 90vw;
    width: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    margin: auto;
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 2.5rem;
    cursor: pointer;
    color: #000;
    font-weight: 900;
    line-height: 1;
    z-index: 10;
}

.modal-close:hover {
    color: #ff69b4;
}

.modal-preview {
    width: 100%;
    height: 600px;
    background: #2a2a2a;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.modal-preview canvas {
    width: 100% !important;
    height: 100% !important;
}

.modal-info {
    padding: 25px;
    background: #ff69b4;
    border-top: 4px solid #000;
}

.modal-title-section {
    margin-bottom: 20px;
}

.modal-title-section h2 {
    font-size: 2rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 8px;
}

.modal-title-section p {
    font-size: 1.1rem;
    font-weight: 600;
}

.modal-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.stat-row {
    display: flex;
    flex-direction: column;
    padding: 15px;
    background: #fff;
    border: 3px solid #000;
}

.stat-label {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.stat-val {
    font-weight: 900;
    font-size: 1.2rem;
    color: #000;
}

@media (max-width: 768px) {
    .modal-preview {
        height: 400px;
    }

    .modal-stats {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 500px) {
    .modal-preview {
        height: 300px;
    }
}
