/* RankwellPress Pro bundle: pro-core */

/* --- pro.css --- */
/* ═══════════════════════════════════════════════════════════
   RankwellPress Pro — Base Styles
   File: assets/css/pro.css
   ═══════════════════════════════════════════════════════════ */

.rankwellpress-pro-hidden {
    display: none !important;
}

.rankwellpress-pro-sr-only {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}

.rankwellpress-pro-import-status {
    display: inline-block;
    margin-left: 12px;
    font-weight: 600;
}

.rankwellpress-pro-import-status.is-success {
    color: #00a32a;
}

.rankwellpress-pro-import-status.is-error {
    color: #d63638;
}

.rankwellpress-pro-notice {
    background: #f6f7f7;
    border-left: 4px solid #2271b1;
    margin: 16px 0;
    padding: 12px 16px;
    border-radius: 3px;
}

.rankwellpress-pro-notice--info {
    border-left-color: #2271b1;
    background: #f0f6fc;
}

.rankwellpress-pro-notice--warning {
    border-left-color: #dba617;
    background: #fcf9e8;
}

.rankwellpress-pro-notice p {
    margin: 0;
    font-size: 13px;
    line-height: 1.6;
}

/* --- premium/section-titles.css --- */
/* ═══════════════════════════════════════════════════════════
   RankwellPress Pro — Section Titles
   File: assets/css/premium/section-titles.css
   ═══════════════════════════════════════════════════════════
   Covers every section heading variant used across Pro:
     - Related Grid section title (single post)
     - Trending Now section title (single post)
     - Premium Posts / Editor's Picks / Top List / Faith Times
       widget titles (frosted-glass pill)
   ═══════════════════════════════════════════════════════════ */

/* =========================================================
   1. RELATED GRID — Section Title
   ========================================================= */

.rwp-premium-related__title {
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1.25;
    margin: 0 0 24px;
    color: #111827;
    display: flex;
    align-items: center;
    gap: 16px;
}

.rwp-premium-related__title::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--rw-border-light, #e5e7eb);
}

html[data-theme="dark"] .rwp-premium-related__title {
    color: #f8fafc;
}

html[data-theme="dark"] .rwp-premium-related__title::after {
    background: #334155;
}

@media (max-width: 600px) {
    .rwp-premium-related__title {
        font-size: 1.35rem;
        gap: 12px;
        margin-bottom: 20px;
    }
}

/* =========================================================
   2. TRENDING NOW — Section Title
   ========================================================= */

.rwp-premium-trending__title {
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1.25;
    margin: 0 0 24px;
    color: #111827;
    display: flex;
    align-items: center;
    gap: 12px;
}

.rwp-premium-trending__title::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 28px;
    flex-shrink: 0;
    background: linear-gradient(180deg,
        var(--rw-color-primary, #0d7c3e),
        color-mix(in srgb, var(--rw-color-primary, #0d7c3e) 10%, transparent));
    border-radius: var(--rwp-radius-pill, 999px);
}

html[data-theme="dark"] .rwp-premium-trending__title {
    color: #f8fafc;
}

@media (max-width: 600px) {
    .rwp-premium-trending__title {
        font-size: 1.35rem;
        gap: 10px;
        margin-bottom: 20px;
    }
    .rwp-premium-trending__title::before {
        height: 22px;
        width: 5px;
    }
}

/* =========================================================
   3. PREMIUM WIDGET — Frosted Glass Section Title Pill
   Used by: Premium Posts, Editor's Picks, Top List,
            Faith Times, and any other Pro widget header.
   ========================================================= */

.rwp-premium-widget__title {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 18px;
    padding: 8px 16px;
    font-size: 0.9rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--rw-color-primary, #0d7c3e);
    background: rgba(255, 255, 255, 0.65);
    border: 1px solid color-mix(in srgb, var(--rw-color-primary, #0d7c3e) 20%, transparent);
    border-radius: var(--rwp-radius-pill, 999px);
    backdrop-filter: blur(14px) saturate(180%);
    -webkit-backdrop-filter: blur(14px) saturate(180%);
    box-shadow: var(--rwp-shadow-sm, 0 2px 8px rgba(0, 0, 0, 0.05));
    line-height: 1.2;
}

.rwp-premium-widget__title::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 18px;
    flex-shrink: 0;
    background: linear-gradient(180deg,
        var(--rw-color-primary, #0d7c3e),
        color-mix(in srgb, var(--rw-color-primary, #0d7c3e) 30%, transparent));
    border-radius: var(--rwp-radius-pill, 999px);
}

@supports not (backdrop-filter: blur(1px)) {
    .rwp-premium-widget__title {
        background: rgba(255, 255, 255, 0.92);
    }
}

html[data-theme="dark"] .rwp-premium-widget__title {
    background: rgba(30, 41, 59, 0.65);
    color: var(--rw-color-primary, #4ade80);
    border-color: color-mix(in srgb, var(--rw-color-primary, #4ade80) 30%, transparent);
}

html[data-theme="dark"] .rwp-premium-widget__title::before {
    background: linear-gradient(180deg,
        var(--rw-color-primary, #4ade80),
        color-mix(in srgb, var(--rw-color-primary, #4ade80) 30%, transparent));
}

@supports not (backdrop-filter: blur(1px)) {
    html[data-theme="dark"] .rwp-premium-widget__title {
        background: rgba(30, 41, 59, 0.92);
    }
}

@media (max-width: 600px) {
    .rwp-premium-widget__title {
        font-size: 0.82rem;
        padding: 7px 14px;
        margin-bottom: 14px;
    }
    .rwp-premium-widget__title::before {
        height: 16px;
        width: 5px;
    }
}

/* =========================================================
   4. SIDEBAR CONTEXT — compact widget titles
   ========================================================= */

.widget .rwp-premium-widget__title {
    font-size: 0.82rem;
    padding: 7px 14px;
    margin-bottom: 16px;
}

.widget .rwp-premium-widget__title::before {
    height: 16px;
    width: 5px;
}

/* =========================================================
   5. FOOTER CONTEXT — subtle widget titles
   ========================================================= */

.rwp-footer-widgets .rwp-premium-widget__title,
.rwp-footer-widget-column .rwp-premium-widget__title {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.15);
}

.rwp-footer-widgets .rwp-premium-widget__title::before,
.rwp-footer-widget-column .rwp-premium-widget__title::before {
    background: linear-gradient(180deg,
        var(--rw-color-primary, #4ade80),
        color-mix(in srgb, var(--rw-color-primary, #4ade80) 30%, transparent));
}

@supports not (backdrop-filter: blur(1px)) {
    .rwp-footer-widgets .rwp-premium-widget__title,
    .rwp-footer-widget-column .rwp-premium-widget__title {
        background: rgba(255, 255, 255, 0.12);
    }
}

/* =========================================================
   6. REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
    .rwp-premium-related__title,
    .rwp-premium-trending__title,
    .rwp-premium-widget__title {
        transition: none !important;
    }
}

/* --- components/editor-buttons.css --- */
/* =========================================================
 * RankwellPress — Editor Buttons
 *
 * Styling for `.rwp-btn-*` classes added via the Gutenberg
 * editor or the classic editor. Rendered inside post content.
 *
 * @package RankwellPress
 * @since   3.4.0
 * ========================================================= */

.rwp-btn-large,
.rwp-btn-medium,
.rwp-btn-small,
.is-style-rwp-btn-large,
.is-style-rwp-btn-medium,
.is-style-rwp-btn-small {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    text-decoration: none !important;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    border-radius: 6px !important;
    margin: 15px 0 !important;
    transition: all 0.25s ease-in-out !important;
    cursor: pointer !important;
    box-sizing: border-box !important;
    border: none !important;
    position: relative !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15) !important;
}

/* Size variants */
.rwp-btn-small,
.is-style-rwp-btn-small {
    font-size: 13px !important;
    padding: 4px 10px !important;
}

.rwp-btn-medium,
.is-style-rwp-btn-medium {
    font-size: 16px !important;
    padding: 6px 14px !important;
}

.rwp-btn-large,
.is-style-rwp-btn-large {
    font-size: 20px !important;
    padding: 8px 18px !important;
}

/* Default background — only applied when user hasn't set one */
.rwp-btn-large:not(.has-background):not([style*="background"]),
.rwp-btn-medium:not(.has-background):not([style*="background"]),
.rwp-btn-small:not(.has-background):not([style*="background"]),
.is-style-rwp-btn-large:not(.has-background):not([style*="background"]),
.is-style-rwp-btn-medium:not(.has-background):not([style*="background"]),
.is-style-rwp-btn-small:not(.has-background):not([style*="background"]) {
    background-color: #c92a2a !important;
}

/* Default text color — only when user hasn't set one */
.rwp-btn-large:not(.has-text-color):not([style*="color"]),
.rwp-btn-medium:not(.has-text-color):not([style*="color"]),
.rwp-btn-small:not(.has-text-color):not([style*="color"]),
.is-style-rwp-btn-large:not(.has-text-color):not([style*="color"]),
.is-style-rwp-btn-medium:not(.has-text-color):not([style*="color"]),
.is-style-rwp-btn-small:not(.has-text-color):not([style*="color"]) {
    color: #ffffff !important;
}

/* Links inside buttons */
.rwp-btn-large a,
.rwp-btn-medium a,
.rwp-btn-small a,
.is-style-rwp-btn-large a,
.is-style-rwp-btn-medium a,
.is-style-rwp-btn-small a {
    color: inherit !important;
    text-decoration: none !important;
    font-weight: inherit !important;
    display: block !important;
}

/* Full-area click target — makes the whole button clickable */
body:not(.wp-admin) .rwp-btn-large a::before,
body:not(.wp-admin) .rwp-btn-medium a::before,
body:not(.wp-admin) .rwp-btn-small a::before,
body:not(.wp-admin) .is-style-rwp-btn-large a::before,
body:not(.wp-admin) .is-style-rwp-btn-medium a::before,
body:not(.wp-admin) .is-style-rwp-btn-small a::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 10;
}

/* Hover */
.rwp-btn-large:hover,
.rwp-btn-medium:hover,
.rwp-btn-small:hover,
.is-style-rwp-btn-large:hover,
.is-style-rwp-btn-medium:hover,
.is-style-rwp-btn-small:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25) !important;
    filter: brightness(1.1) !important;
}

/* Active */
.rwp-btn-large:active,
.rwp-btn-medium:active,
.rwp-btn-small:active,
.is-style-rwp-btn-large:active,
.is-style-rwp-btn-medium:active,
.is-style-rwp-btn-small:active {
    transform: translateY(1px) scale(0.98) !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2) !important;
}

/* Keyboard focus */
.rwp-btn-large:focus-visible,
.rwp-btn-medium:focus-visible,
.rwp-btn-small:focus-visible,
.is-style-rwp-btn-large:focus-visible,
.is-style-rwp-btn-medium:focus-visible,
.is-style-rwp-btn-small:focus-visible {
    outline: 3px solid #111111 !important;
    outline-offset: 3px !important;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .rwp-btn-large,
    .rwp-btn-medium,
    .rwp-btn-small,
    .is-style-rwp-btn-large,
    .is-style-rwp-btn-medium,
    .is-style-rwp-btn-small {
        transition: none !important;
    }
    .rwp-btn-large:hover,
    .rwp-btn-medium:hover,
    .rwp-btn-small:hover {
        transform: none !important;
    }
}
