/**
 * Candle Note-style Paywall Component Styles
 */

/* Fadeout effect before paywall */
.candle-paywall-fadeout {
    position: relative;
    margin-top: -80px;
    height: 80px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.95) 80%, #ffffff 100%);
    pointer-events: none;
    z-index: 10;
}

/* Main Paywall CTA Box */
.candle-paywall-box {
    position: relative;
    max-width: 680px;
    margin: 40px auto;
    padding: 36px 30px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.06), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
    text-align: center;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Hiragino Sans", "Meiryo", sans-serif;
    box-sizing: border-box;
    z-index: 20;
}

.candle-paywall-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: #f1f5f9;
    color: #475569;
    font-size: 13px;
    font-weight: 700;
    border-radius: 30px;
    margin-bottom: 16px;
    letter-spacing: 0.05em;
}

.candle-paywall-badge .candle-lock-icon {
    font-size: 14px;
}

.candle-paywall-title {
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 10px;
    line-height: 1.4;
}

.candle-paywall-desc {
    font-size: 14px;
    line-height: 1.6;
    color: #64748b;
    margin: 0 0 24px;
}

.candle-paywall-price-wrap {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
    margin-bottom: 24px;
}

.candle-paywall-currency {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
}

.candle-paywall-price {
    font-size: 34px;
    font-weight: 900;
    color: #0f172a;
    letter-spacing: -0.02em;
    line-height: 1;
}

.candle-paywall-tax {
    font-size: 12px;
    color: #94a3b8;
    margin-left: 4px;
}

/* Purchase Action Button */
.candle-paywall-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    max-width: 400px;
    margin: 0 auto 18px;
    padding: 16px 28px;
    background: #0f172a;
    color: #ffffff !important;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none !important;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.25);
    transition: all 0.2s ease;
    cursor: pointer;
    box-sizing: border-box;
}

.candle-paywall-btn:hover {
    background: #1e293b;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.35);
    color: #ffffff !important;
}

.candle-paywall-btn:active {
    transform: translateY(0);
}

.candle-paywall-btn-arrow {
    font-size: 14px;
    transition: transform 0.2s ease;
}

.candle-paywall-btn:hover .candle-paywall-btn-arrow {
    transform: translateX(3px);
}

/* Login Guidance */
.candle-paywall-login-notice {
    font-size: 13px;
    color: #64748b;
    margin-top: 14px;
    border-top: 1px dashed #e2e8f0;
    padding-top: 16px;
}

.candle-paywall-login-link {
    color: #0284c7;
    font-weight: 700;
    text-decoration: underline;
}

.candle-paywall-login-link:hover {
    color: #0369a1;
}

/* Paid Content Anchor Marker */
#paid-content,
#paywall-content {
    scroll-margin-top: 80px;
}

.candle-paid-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    margin: 30px 0;
    background: #f0fdf4;
    border-left: 4px solid #22c55e;
    border-radius: 4px;
    font-size: 13px;
    color: #15803d;
    font-weight: 700;
}

/* Gutenberg Editor Divider Styling */
.wp-block-candle-paywall {
    margin: 30px 0;
    padding: 16px;
    background: #f8fafc;
    border: 2px dashed #94a3b8;
    border-radius: 8px;
    text-align: center;
    color: #475569;
    font-weight: bold;
}

/* Admin Preview Notice Styling */
.candle-admin-preview-notice {
    margin: 40px auto 16px;
    max-width: 680px;
    padding: 14px 20px;
    background: #faf5ff;
    border: 1px solid #e9d5ff;
    border-left: 5px solid #a855f7;
    border-radius: 8px;
    font-size: 13px;
    color: #581c87;
    line-height: 1.5;
    box-sizing: border-box;
}

.candle-admin-preview-header {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.candle-admin-badge {
    display: inline-block;
    padding: 3px 8px;
    background: #7e22ce;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    border-radius: 4px;
    letter-spacing: 0.05em;
}

