/**
 * Recast Paywall Frontend Styles
 */

.recast-paywall-gated-content {
    position: relative;
    margin: 2em 0;
}

.recast-paywall-summary {
    margin-bottom: 2em;
    padding: 1.5em;
    background: #f8f9fa;
    border-left: 4px solid #007cba;
    border-radius: 0 4px 4px 0;
}

.recast-paywall-summary p:last-child {
    margin-bottom: 0;
}

.recast-paywall-cta {
    text-align: center;
    padding: 2em;
    background: #fff;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.recast-paywall-widget {
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.recast-paywall-loading {
    color: #666;
    font-style: italic;
}

.recast-paywall-section {
    position: relative;
    margin: 2em 0;
    padding: 1.5em;
    background: #f8f9fa;
    border: 2px dashed #ccc;
    border-radius: 8px;
}

.recast-paywall-section-content {
    margin-bottom: 1.5em;
}

.recast-paywall-section-cta {
    text-align: center;
    padding: 1.5em;
    background: #fff;
    border: 1px solid #e1e5e9;
    border-radius: 4px;
}

.recast-content-revealed {
    border: 2px solid #46b450;
    background: #f7fcf7;
}

.recast-content-revealed .recast-paywall-summary,
.recast-content-revealed .recast-paywall-cta,
.recast-content-revealed .recast-paywall-section-content,
.recast-content-revealed .recast-paywall-section-cta {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .recast-paywall-summary,
    .recast-paywall-cta,
    .recast-paywall-section {
        margin: 1em 0;
        padding: 1em;
    }
    
    .recast-paywall-widget {
        min-height: 150px;
    }
}

/* Loading states */
.recast-paywall-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100px;
}

.recast-paywall-loading::before {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #007cba;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Error states */
.recast-paywall-error {
    color: #dc3232;
    text-align: center;
    padding: 1em;
    background: #fef7f7;
    border: 1px solid #dc3232;
    border-radius: 4px;
}

/* Success states */
.recast-paywall-success {
    color: #46b450;
    text-align: center;
    padding: 1em;
    background: #f7fcf7;
    border: 1px solid #46b450;
    border-radius: 4px;
}
