/* Forge Maps page specific styles - Event Records inspired design */

/* === Background & Page Theme === */
body {
    font-family: "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
    min-height: 100vh;
    color: #ffffff;
    background: #0d0d0d;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background: linear-gradient(to bottom,
                rgba(0,0,0,0.3) 0%,
                rgba(0,0,0,0.7) 60%,
                rgba(0,0,0,0.9) 100%),
                url("../images/forge-maps/forgebackground.d5ef02d6e528.webp") center / cover no-repeat;
    background-attachment: fixed;
    filter: brightness(0.8) grayscale(0.2);
}

/* === SECTION LAYOUT === */
.title-section,
.map-stats-section,
.featured-map-section,
.maps-collection-section {
    width: 100vw;
    margin: 0;
    padding: 40px 0;
    background: rgba(13, 13, 13, 0.80);
    margin-left: calc(-50vw + 50%);
}

.title-section {
    height: calc(100vh - var(--nh-nav-h));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: transparent;
    padding: 0;
}

.map-stats-section,
.featured-map-section,
.maps-collection-section {
    background: rgba(13, 13, 13, 0.50);
}

.maps-collection-section {
    padding-bottom: 60px;
}

/* Override page padding */
.nh-page {
    padding: calc(var(--nh-nav-h)) 0 0 0 !important;
    width: 100vw !important;
    max-width: none !important;
}

/* === TITLES === */
.page-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 6rem;
    font-weight: 400;
    text-align: center;
    margin: 0;
    color: #ffffff;
    text-shadow: 
        2px 2px 4px rgba(0, 0, 0, 0.8),
        0 0 30px rgba(255, 255, 255, 0.1);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    padding: 0 20px;
}

.page-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    margin-top: 20px;
    font-weight: 300;
    letter-spacing: 1px;
}

.section-title {
    font-family: "Cinzel", serif;
    font-size: 2.5rem;
    font-weight: 600;
    margin: 0 0 30px 0;
    text-align: center;
    color: #ffffff;
    letter-spacing: 1px;
}

/* === STATS SECTION === */
.stats-summary {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.summary-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.stat-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.stat-card:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.stat-value {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* === FEATURED MAP SECTION === */
.featured-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: start;
}

.featured-media {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.main-media-viewer {
    position: relative;
    width: 100%;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}

.main-media-viewer::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 60%, rgba(0,0,0,0.5) 100%);
    pointer-events: none;
}

.main-media-viewer img,
.main-media-viewer iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.media-placeholder {
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.1rem;
    text-align: center;
}

.media-controls {
    padding: 20px;
    background: rgba(0, 0, 0, 0.35);
}

.thumbnails-container {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.thumbnail {
    flex: 0 0 80px;
    height: 60px;
    border: 2px solid transparent;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.thumbnail:hover {
    border-color: rgba(255, 255, 255, 0.5);
}

.thumbnail.active {
    border-color: #ffffff;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 6px;
    border-radius: 3px;
    font-size: 12px;
}

.media-navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.nav-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 18px;
}

.nav-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.2);
}

.nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.media-counter {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    min-width: 60px;
    text-align: center;
}

/* === FEATURED INFO === */
.featured-info {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 30px;
    backdrop-filter: blur(10px);
}

.map-header {
    margin-bottom: 20px;
}

.map-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 8px 0;
}

.map-category {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.map-description {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 25px;
}

.map-details {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.detail-row:last-child {
    margin-bottom: 0;
}

.detail-label {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.detail-value {
    color: #ffffff;
    font-weight: 500;
}

/* === MAPS COLLECTION === */
.maps-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.map-card {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    backdrop-filter: blur(10px);
}

.map-card:hover {
    background: rgba(0, 0, 0, 0.35);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.map-card.active {
    border-color: #ffffff;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.card-media {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.map-card:hover .card-media img {
    transform: scale(1.05);
}

.card-overlay {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
}

.card-content {
    padding: 20px;
}

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

.card-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
}

.card-category {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    padding: 3px 8px;
    border-radius: 8px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-description {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
}

.card-author {
    font-weight: 500;
}

.card-type {
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* === ANIMATIONS === */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.animate-on-scroll.animate-visible.animate-fade-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

.animate-on-scroll.animate-visible.animate-scale {
    animation: scaleIn 0.6s ease-out forwards;
}

.stagger-delay-1 { animation-delay: 0.1s; }
.stagger-delay-2 { animation-delay: 0.2s; }
.stagger-delay-3 { animation-delay: 0.3s; }
.stagger-delay-4 { animation-delay: 0.4s; }

/* === RESPONSIVE === */
@media (max-width: 1200px) {
    .page-title {
        font-size: 5rem;
    }
    
    .featured-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 900px) {
    .page-title {
        font-size: 4rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .summary-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .maps-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .title-section {
        padding: 40px 20px;
        height: auto;
        min-height: 60vh;
    }
    
    .page-title {
        font-size: 3rem;
        letter-spacing: 0.1em;
    }
    
    .page-subtitle {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .summary-cards {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .stat-card {
        padding: 20px;
    }
    
    .stat-value {
        font-size: 2rem;
    }
    
    .featured-container,
    .stats-summary,
    .maps-grid {
        padding: 0 20px;
    }
    
    .main-media-viewer {
        height: 250px;
    }
    
    .map-card {
        margin-bottom: 20px;
    }
    
    .card-media {
        height: 180px;
    }
    
    .featured-info {
        padding: 20px;
    }
    
    .map-title {
        font-size: 1.5rem;
    }
    
    .card-title {
        font-size: 1.2rem;
    }
}

@media (max-width: 400px) {
    .page-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .featured-container,
    .stats-summary,
    .maps-grid {
        padding: 0 15px;
    }
    
    .stat-card {
        padding: 15px;
    }
    
    .stat-value {
        font-size: 1.8rem;
    }
}

.thumbnails-container::-webkit-scrollbar {
    height: 8px;
}

.thumbnails-container::-webkit-scrollbar-track {
    background: #2C2C2C;
    border-radius: 4px;
}

.thumbnails-container::-webkit-scrollbar-thumb {
    background: #9F9F9F;
    border-radius: 4px;
}

.thumbnails-container::-webkit-scrollbar-thumb:hover {
    background: #AFAFAF;
}

.thumbnails-container {
    scrollbar-width: thin;
    scrollbar-color: #9F9F9F #2C2C2C;
} 