/*
 * Gedeelde grid/card CSS voor POP360 widgets (Tutorials, Podcasts, Getuigenissen)
 * Stijl gebaseerd op de referentie-afbeelding (moderne cards, afgeronde hoeken, schaduw, flexibele grid)
 * Gebruik deze classes in alle relevante widgets voor consistente styling
 */

.pop360-cards-grid {
    display: grid;
    grid-template-columns: repeat(var(--pop360-cards-columns, 3), 1fr);
    gap: var(--pop360-cards-gap, 24px);
    margin: 0;
    padding: 0;
}

.pop360-card {
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s, transform 0.2s;
    position: relative;
}

.pop360-card:hover {
    box-shadow: 0 8px 32px rgba(80, 36, 255, 0.10), 0 2px 12px rgba(0,0,0,0.08);
    transform: translateY(-4px) scale(1.01);
    z-index: 2;
}

.pop360-card-link {
    color: inherit;
@
}

.pop360-card-image {
    position: relative;
    aspect-ratio: 16/9;
    background: #f0f0f0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}



.pop360-card:hover .pop360-card-image img {
    transform: scale(1.04);
}

.pop360-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 24px 24px 20px 24px;
}

.pop360-card-title {
    font-size: 1.25em;
    font-weight: 700;
    margin: 0 0 10px 0;
    line-height: 1.3;
    color: #18181b;
}

.pop360-card-description {
    color: #444;
    font-size: 1em;
    line-height: 1.6;
    margin-bottom: 18px;
    flex: 1;
}



.pop360-card-badge {
    display: inline-block;
    background: #f3e8ff;
    color: #7c3aed;
    font-size: 0.92em;
    font-weight: 600;
    border-radius: 8px;
    padding: 2px 12px;
    margin-right: 8px;
}

.pop360-card-time {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #888;
    font-size: 0.95em;
}

.pop360-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5em;
    color: #d1d5db;
}

/* Soort-tag en toegangstag in kaart, zelfde formaat en direct naast elkaar */
.pop360-card-type-tag,
.pop360-card-access-tag {
    display: inline-block;
    font-size: 0.7em;
    font-weight: 600;
    border-radius: 999px;
    padding: 4px 14px;
    min-width: 0;
    line-height: 1.2;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: none;
    letter-spacing: 0.01em;
    transition: background 0.2s;
    margin: 0; /* Geen extra spacing */
}

.pop360-card-type-tag {
    background: linear-gradient(90deg, #f85032 0%, #e73827 100%);
    color: #fff;
}

.pop360-card-access-tag {
    background: #f3f4f6;
    color: #333;
}


/* Donkere overlay voor kaarten zonder toegang */
.pop360-card-image {
    position: relative;
}
.pop360-card-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7); /* Donker en doorzichtig */
    pointer-events: none;
    z-index: 2;
}

.pop360-card-image-overlay-lock {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 2.5em;
    opacity: 0.95;
    text-shadow: 0 2px 8px rgba(0,0,0,0.25);
    z-index: 3;
    pointer-events: none;
}

/* --- VERTICALE KAART LAYOUT --- */
.pop360-card-vertical {
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
    flex-direction: column !important;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    height: 100%;
}
.pop360-card-vertical .pop360-card-link {
    flex-direction: column !important;
}
.pop360-card-vertical .pop360-card-image {
    aspect-ratio: 16/10;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}
.pop360-card-vertical .pop360-card-content {
    padding: 22px 20px 18px 20px;

}
.pop360-card-vertical .pop360-card-title {
    font-size: 1.15em;
    margin-bottom: 8px;
}
.pop360-card-vertical .pop360-card-meta {
    justify-content: center;
    gap: 8px;
    margin-top: 14px;
}


/* --- HORIZONTALE KAART LAYOUT --- */
.pop360-card-horizontal {
    display: flex;
    max-height: 250px;
    flex-direction: row;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}
.pop360-card-horizontal .pop360-card-link {
    display: flex;
    flex-direction: row;
    width: 100%;

}
.pop360-card-horizontal .pop360-card-image {

    aspect-ratio: unset;
  
}
.pop360-card-horizontal .pop360-card-image img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    border-radius: 0;
}
.pop360-card-horizontal .pop360-card-content {
    width: 55%;
    padding: 40px 40px 32px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
}

.pop360-card-horizontal .pop360-card-meta {
    justify-content: flex-start;
    gap: 8px;
    margin-top: 18px;
}


/* Responsive Grid Breakpoints */
/* Tablet view: 2 columns */
@media (max-width: 1024px) {
    .pop360-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
}

/* Mobile view: 1 column & style adjustments */
@media (max-width: 768px) {
    .pop360-cards-grid {
        grid-template-columns: 1fr;
    }

    .pop360-card-horizontal,
    .pop360-card-horizontal .pop360-card-link {
        flex-direction: column;
        max-width: 100%;
    }
    .pop360-card-horizontal .pop360-card-image {
        width: 100%;
        min-width: 0;
        max-width: 100%;
        border-radius: 0;
        border-top-left-radius: 18px;
        border-top-right-radius: 18px;
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
    }
    .pop360-card-horizontal .pop360-card-content {
        width: 100%;
        padding: 18px 10px 14px 10px;
        text-align: center;
    }
    .pop360-card-vertical {
        max-width: 100%;
    }
    .pop360-card-vertical .pop360-card-content {
        padding: 14px 6px 12px 6px;
    }
   
}
