/* Premium Gating - Patreon Style Grid Layout */

.pg-grid-container {
    margin: 60px 0;
    padding: 0;
}

.pg-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    padding: 0;
    margin: 0;
}

/* ============ CARD STYLES ============ */

.pg-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.pg-card-accessible {
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.pg-card-accessible:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

/* Image Container */
.pg-card-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    position: relative;
}

.pg-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    display: block;
}

.pg-card-accessible:hover .pg-card-image img {
    transform: scale(1.08);
}

/* Card Content */
.pg-card-content {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.pg-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 12px 0;
    color: #1a202c;
    line-height: 1.4;
    letter-spacing: -0.3px;
}

.pg-card p {
    font-size: 14px;
    color: #718096;
    margin: 0;
    flex-grow: 1;
    line-height: 1.5;
}

/* ============ LOCKED CARD STYLES ============ */

.pg-card-locked {
    position: relative;
    min-height: 340px;
    display: flex;
    flex-direction: column;
}

.pg-card-locked .pg-card-image {
    position: relative;
}

.pg-card-locked .pg-card-image img {
    filter: blur(10px);
    opacity: 0.7;
}

.pg-card-lock {
    font-size: 56px;
    text-align: center;
    margin-bottom: 12px;
    line-height: 1;
}

.pg-card-locked .pg-card-content {
    text-align: center;
    justify-content: center;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.98) 0%, rgba(245,245,250,0.98) 100%);
    backdrop-filter: blur(10px);
    border-radius: 12px;
}

.pg-card-locked h3 {
    color: #2d3748;
    font-size: 16px;
}

.pg-card-locked p {
    color: #a0aec0;
    font-size: 13px;
    font-weight: 500;
}

/* ============ RESPONSIVE ============ */

@media (max-width: 1400px) {
    .pg-cards-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
    }
}

@media (max-width: 1024px) {
    .pg-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .pg-card-image {
        height: 180px;
    }
}

@media (max-width: 768px) {
    .pg-cards-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .pg-card-image {
        height: 200px;
    }
    
    .pg-card-content {
        padding: 18px;
    }
    
    .pg-card h3 {
        font-size: 16px;
    }
}

/* ============ POST PAYWALL ============ */

.pg-post-paywall {
    position: relative;
    min-height: 500px;
    margin: 40px 0;
    border-radius: 8px;
    overflow: hidden;
}

.pg-post-blur {
    filter: blur(10px);
    opacity: 0.6;
    user-select: none;
    pointer-events: none;
    padding: 40px;
}

.pg-overlay-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.97) 0%, rgba(245,245,250,0.97) 100%);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.pg-paywall-card {
    background: white;
    border-radius: 16px;
    padding: 50px 40px;
    max-width: 520px;
    width: 100%;
    text-align: center;
    box-shadow: 0 25px 75px rgba(0,0,0,0.25);
}

.pg-paywall-card .pg-lock {
    font-size: 64px;
    margin-bottom: 20px;
    line-height: 1;
}

.pg-paywall-card h2 {
    font-size: 28px;
    font-weight: 700;
    color: #1a202c;
    margin: 0 0 15px 0;
}

.pg-paywall-card p {
    color: #4a5568;
    font-size: 15px;
    line-height: 1.6;
    margin: 0 0 30px 0;
}

.pg-subscribe-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 16px 40px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
}

.pg-subscribe-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}
