/* Premium Post Reader Frontend CSS */

.ppr-locked-container {
    max-width: 800px;
    margin: 2em auto;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    background: #fff;
    border: 1px solid #eaeaea;
}

.ppr-preview-area {
    position: relative;
    padding: 2em;
    background: #fafafa;
    border-bottom: 1px dashed #ddd;
    color: #666;
}

.ppr-preview-content {
    line-height: 1.6;
}

.ppr-fade-out {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to bottom, rgba(250,250,250,0), rgba(250,250,250,1));
    pointer-events: none;
}

.ppr-locked-box {
    padding: 3em 2em;
    text-align: center;
    background: #fff;
}

.ppr-icon-lock {
    margin-bottom: 1em;
    color: #4a90e2;
}

.ppr-message {
    font-size: 1.1em;
    font-weight: 500;
    color: #333;
    margin-bottom: 1.5em;
}

.ppr-login-msg {
    margin-bottom: 1.5em;
    font-size: 0.9em;
    color: #777;
}

.ppr-login-msg a {
    color: #4a90e2;
    text-decoration: underline;
}

.ppr-purchase-action {
    display: flex;
    justify-content: center;
    align-items: center;
}

.ppr-button {
    display: inline-flex;
    align-items: center;
    background: #4a90e2;
    color: #fff;
    padding: 12px 24px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s ease;
    font-size: 1.1em;
}

.ppr-button:hover, .ppr-button:focus, .ppr-button:active {
    background: #357abd;
    color: #fff;
    text-decoration: none;
}

.ppr-price {
    margin-left: 10px;
    padding-left: 10px;
    border-left: 1px solid rgba(255,255,255,0.3);
    font-weight: normal;
}

/* Dark mode basic support */
@media (prefers-color-scheme: dark) {
    .ppr-locked-container, .ppr-locked-box {
        background: #1e1e1e;
        border-color: #333;
    }
    .ppr-preview-area {
        background: #1a1a1a;
        color: #aaa;
        border-bottom-color: #333;
    }
    .ppr-fade-out {
        background: linear-gradient(to bottom, rgba(26,26,26,0), rgba(26,26,26,1));
    }
    .ppr-message {
        color: #eee;
    }
}
