/**
 * Scripture Trading Cards - PNG Version
 * Simple CSS for displaying pre-generated card images
 */

.cards-page {
    background: linear-gradient(180deg, #1a1510 0%, #2d251c 100%);
    min-height: 100vh;
    padding: 120px 20px 60px;
}

.cards-page-header {
    text-align: center;
    margin-bottom: 60px;
}

.cards-page-header h1 {
    font-family: 'Cinzel', serif;
    font-size: 42px;
    color: #d4a854;
    letter-spacing: 8px;
    text-transform: uppercase;
    margin: 0 0 15px;
}

.cards-page-header .intro {
    font-family: 'Cormorant Garamond', serif;
    font-size: 20px;
    color: #a89070;
    font-style: italic;
}

/* Category Sections */
.category-section {
    margin-bottom: 80px;
}

.section-divider {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px 0;
}

.section-divider h2 {
    font-family: 'Cinzel', serif;
    font-size: 28px;
    color: #d4a854;
    letter-spacing: 6px;
    text-transform: uppercase;
    margin: 0 0 10px;
    display: inline-block;
    padding: 10px 40px;
    border-top: 1px solid #8b6914;
    border-bottom: 1px solid #8b6914;
}

.category-desc {
    font-family: 'Cormorant Garamond', serif;
    font-size: 18px;
    color: #a89070;
    font-style: italic;
    margin: 15px 0 0;
}

/* Cards Container */
.cards-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Card Pair */
.card-pair-png {
    display: flex;
    flex-direction: row;
    gap: 20px;
}

.card-image {
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.card-image:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
}

.card-image img {
    display: block;
    width: 280px;
    height: 420px;
    object-fit: cover;
}

.card-hover {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: #fff;
    text-align: center;
    padding: 30px 10px 15px;
    font-family: 'Cinzel', serif;
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card-image:hover .card-hover {
    opacity: 1;
}

/* Placeholder for missing cards */
.card-pair-png.missing .card-placeholder {
    width: 280px;
    height: 420px;
    background: linear-gradient(145deg, #2d251c, #3d352c);
    border: 2px dashed #8b6914;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #a89070;
}

.card-placeholder span {
    font-family: 'Cinzel', serif;
    font-size: 18px;
    margin-bottom: 10px;
}

.card-placeholder small {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 14px;
    opacity: 0.7;
}

/* No Cards Message */
.no-cards {
    text-align: center;
    padding: 80px 20px;
}

.no-cards h2 {
    font-family: 'Cinzel', serif;
    font-size: 32px;
    color: #d4a854;
    margin-bottom: 15px;
}

.no-cards p {
    font-family: 'Cormorant Garamond', serif;
    font-size: 18px;
    color: #a89070;
}

/* Lightbox */
.card-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 20px;
}

.card-lightbox.active {
    display: flex;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    background: none;
    border: none;
    color: #fff;
    font-size: 48px;
    cursor: pointer;
    z-index: 10001;
    line-height: 1;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.lightbox-close:hover {
    opacity: 1;
}

.lightbox-content {
    display: flex;
    gap: 30px;
    align-items: center;
    justify-content: center;
    max-width: 100%;
}

.lightbox-content img {
    max-height: 85vh;
    max-width: 45vw;
    border-radius: 12px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.8);
}

.lightbox-download {
    margin-top: 20px;
    display: flex;
    gap: 20px;
}

.lightbox-download a {
    display: inline-block;
    padding: 10px 25px;
    background: #8b6914;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-family: 'Cinzel', serif;
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: background 0.2s;
}

.lightbox-download a:hover {
    background: #a67c00;
}

/* Responsive */
@media (max-width: 1200px) {
    .card-image img {
        width: 240px;
        height: 360px;
    }
    
    .card-pair-png.missing .card-placeholder {
        width: 240px;
        height: 360px;
    }
}

@media (max-width: 900px) {
    .card-pair-png {
        flex-direction: column;
        align-items: center;
    }
    
    .lightbox-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .lightbox-content img {
        max-height: 40vh;
        max-width: 90vw;
    }
}

@media (max-width: 600px) {
    .cards-page {
        padding: 100px 10px 40px;
    }
    
    .cards-page-header h1 {
        font-size: 24px;
        letter-spacing: 4px;
    }
    
    .section-divider h2 {
        font-size: 20px;
        letter-spacing: 4px;
        padding: 8px 20px;
    }
    
    .card-image img {
        width: 280px;
        height: 420px;
    }
    
    .card-pair-png.missing .card-placeholder {
        width: 280px;
        height: 420px;
    }
    
    .cards-container {
        gap: 30px;
    }
}
