/**
 * Pokémon TCG Products – frontend styles
 * Past binnen je eigen thema
 */

.pkmn-products-page {
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.pkmn-products-container {
    width: 100%;
}

.pkmn-products-header {
    margin-bottom: 32px;
    text-align: center;
}

.pkmn-products-title {
    font-size: 2rem;
    margin: 0 0 8px 0;
    color: #333;
}

.pkmn-products-subtitle {
    font-size: 1rem;
    color: #666;
    margin: 0;
}

/* Gallery grid – flexbox responsive, 2 tegels op grote schermen */
.pkmn-products-gallery {
    margin-top: 24px;
}

.pkmn-products-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.pkmn-product-card {
    flex: 1 1 calc(50% - 12px);
    min-width: 0;
}

.pkmn-product-card a {
    display: block;
    text-decoration: none;
    color: inherit;
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.pkmn-product-card a:hover {
    border-color: #ffcb05;
    transform: translateY(-6px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.pkmn-product-image-wrap {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pkmn-product-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.pkmn-product-placeholder {
    font-size: 14px;
    color: #999;
}

.pkmn-product-title {
    display: block;
    padding: 16px;
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
}

/* Detail page – hero image bovenaan */
.pkmn-product-detail-hero {
    margin-bottom: 24px;
    border-radius: 12px;
    overflow: hidden;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pkmn-product-detail-image {
    width: 100%;
    max-height: 400px;
    object-fit: contain;
    display: block;
}

/* Detail page */
.pkmn-product-article {
    background: #fff;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
}

.pkmn-product-detail-header {
    margin-bottom: 24px;
}

.pkmn-product-detail-title {
    font-size: 2rem;
    margin: 0 0 12px 0;
    color: #333;
    line-height: 1.3;
}

.pkmn-product-launch-date {
    font-size: 1rem;
    color: #666;
}

.pkmn-product-detail-body {
    font-size: 1rem;
    line-height: 1.7;
    color: #333;
}

/* Afbeeldingen in productcontent – flexbox naast elkaar */
.pkmn-product-detail-body > div > div:has(img) {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    align-items: flex-start;
}

.pkmn-product-detail-body > div > div:has(img) > div {
    flex: 0 0 auto;
}

.pkmn-product-detail-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.pkmn-product-detail-body ul {
    margin: 16px 0;
    padding-left: 24px;
}

.pkmn-product-detail-body li {
    margin-bottom: 8px;
}

.pkmn-product-detail-footer {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #eee;
}

.pkmn-product-back-link {
    display: inline-block;
    padding: 10px 20px;
    background: #ffcb05;
    color: #121212;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: background 0.2s;
}

.pkmn-product-back-link:hover {
    background: #e6b800;
}

.pkmn-products-empty {
    flex: 1 1 100%;
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

/* Disclaimer – bronvermelding */
.pkmn-products-disclaimer {
    margin-top: 40px;
    padding: 20px 24px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    font-size: 0.875rem;
    color: #c00;
    line-height: 1.5;
    text-align: center;
}

.pkmn-products-disclaimer p {
    margin: 0 0 0.5em 0;
}

.pkmn-products-disclaimer p:last-child {
    margin-bottom: 0;
}

.pkmn-products-shortcode .pkmn-products-disclaimer {
    margin-top: 24px;
}

/* Jaar-paginering – gecentreerd bovenaan en onderaan */
.pkmn-products-year-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    padding: 12px 0;
}

.pkmn-products-year-nav--top {
    margin-bottom: 24px;
    border-bottom: 1px solid #e9ecef;
}

.pkmn-products-year-nav--bottom {
    margin-top: 40px;
    margin-bottom: 0;
}

.pkmn-year-link {
    display: inline-block;
    padding: 8px 16px;
    background: #f1f3f5;
    color: #333;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: background 0.2s, color 0.2s;
}

.pkmn-year-link:hover {
    background: #e9ecef;
}

.pkmn-year-link.is-active {
    background: #ffcb05;
    color: #121212;
}

/* Responsive */
@media (max-width: 1024px) {
    .pkmn-products-page {
        padding: 32px 20px;
    }

    .pkmn-products-grid {
        gap: 20px;
    }

    .pkmn-product-card {
        flex: 1 1 calc(50% - 10px);
    }
}

@media (max-width: 768px) {
    .pkmn-products-page {
        padding: 24px 16px;
    }

    .pkmn-products-title {
        font-size: 1.5rem;
    }

    .pkmn-products-grid {
        gap: 16px;
    }

    .pkmn-product-card {
        flex: 1 1 calc(50% - 8px);
    }

    .pkmn-product-article {
        padding: 24px 20px;
    }

    .pkmn-product-detail-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .pkmn-products-page {
        padding: 20px 12px;
    }

    .pkmn-products-grid {
        gap: 12px;
    }

    .pkmn-product-card {
        flex: 1 1 100%;
    }

    .pkmn-product-title {
        padding: 12px;
        font-size: 0.95rem;
    }
}

@media (max-width: 360px) {
    .pkmn-products-page {
        padding: 16px 10px;
    }

    .pkmn-products-grid {
        gap: 10px;
    }
}
