/*
 * 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;
    margin-bottom: 1rem;
}

.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: 18px 18px 16px 18px;
}

.pop360-card-title {
    font-size: 1.05em;
    font-weight: 400;
    margin: 0 0 8px 0;
    line-height: 1.3;
    color: #18181b;
}

/* Datum boven de titel */
.pop360-card-content .creation-date {
    font-size: 0.8em;
    color: #6b7280;
    margin-bottom: 6px;
    display: block;
}

.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;
}

/* Card meta row */
.pop360-card-meta-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
    margin-top: 12px;
    gap: 3px;
}

/* 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.65em;
    font-weight: 600;
    border-radius: 999px;
    padding: 3px 10px;
    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: #e73827;
    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: 16px 16px 14px 16px;

}
.pop360-card-vertical .pop360-card-title {
    font-size: 1em;
    margin-bottom: 6px;
}
.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: Tablet */
@media (max-width: 1024px) {
    .pop360-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Responsive: Mobile */
@media (max-width: 767px) {
    .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;
    }
   
}

/* ============================================
   FAVORITES BUTTON STYLING
   Ster-knop rechtsboven in de card-afbeelding
   ============================================ */

.pop360-favorite-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 10;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.pop360-favorite-btn:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.pop360-favorite-btn:focus {
    outline: 2px solid #f59e0b;
    outline-offset: 2px;
}

.pop360-favorite-icon {
    font-size: 20px;
    line-height: 1;
    color: #9ca3af;
    transition: color 0.2s ease, transform 0.2s ease;
}

/* Actieve staat - gouden gevulde ster */
.pop360-favorite-btn.active .pop360-favorite-icon {
    color: #f59e0b;
}

.pop360-favorite-btn:hover .pop360-favorite-icon {
    color: #f59e0b;
    transform: scale(1.1);
}

/* Loading staat */
.pop360-favorite-btn.pop360-favorite-loading {
    pointer-events: none;
    opacity: 0.7;
}

.pop360-favorite-btn.pop360-favorite-loading .pop360-favorite-icon {
    animation: pop360-favorite-pulse 0.6s ease-in-out infinite;
}

@keyframes pop360-favorite-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* Animatie bij toggle */
.pop360-favorite-btn.pop360-favorite-animated .pop360-favorite-icon {
    animation: pop360-favorite-pop 0.3s ease;
}

@keyframes pop360-favorite-pop {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

/* ============================================
   TOAST NOTIFICATIES
   ============================================ */

.pop360-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #1e293b;
    color: #fff;
    padding: 12px 24px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    z-index: 999999;
    opacity: 0;
    transition: all 0.3s ease;
}

.pop360-toast-visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.pop360-toast-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

.pop360-toast-success .pop360-toast-icon {
    background: #10b981;
    color: #fff;
}

.pop360-toast-error .pop360-toast-icon {
    background: #ef4444;
    color: #fff;
}

/* Responsive aanpassingen voor favorite button */
@media (max-width: 767px) {
    .pop360-favorite-btn {
        width: 32px;
        height: 32px;
        top: 8px;
        right: 8px;
    }
    
    .pop360-favorite-icon {
        font-size: 18px;
    }
    
    .pop360-toast {
        left: 16px;
        right: 16px;
        transform: translateX(0) translateY(100px);
        text-align: center;
        justify-content: center;
    }
    
    .pop360-toast-visible {
        transform: translateX(0) translateY(0);
    }
}
