
/* PressFly enhanced theme system */
:root {
    --pf-primary: #2563eb;
    --pf-primary-soft: rgba(37, 99, 235, .12);
    --pf-accent: #f59e0b;
    --pf-surface: #ffffff;
    --pf-surface-2: #f8fafc;
    --pf-border: #e5e7eb;
    --pf-text: #111827;
    --pf-muted: #6b7280;
    --pf-radius: 18px;
    --pf-shadow: 0 14px 35px rgba(15, 23, 42, .08);
}

body.pf-theme-classic-flat,
body.pf-theme-modern-flat {
    background: var(--pf-surface-2);
    color: var(--pf-text);
}

body.pf-theme-modern-flat {
    --pf-primary: #7c3aed;
    --pf-primary-soft: rgba(124, 58, 237, .12);
    --pf-accent: #06b6d4;
    --pf-radius: 22px;
    --pf-shadow: 0 20px 45px rgba(17, 24, 39, .10);
}

body.pf-layout-full .container {
    max-width: 100%;
    padding-left: 28px;
    padding-right: 28px;
}

@media (max-width: 767.98px) {
    body.pf-layout-full .container {
        padding-left: 14px;
        padding-right: 14px;
    }
}

.pf-header-glass .navbar-main {
    backdrop-filter: blur(16px);
    background: rgba(255,255,255,.92) !important;
    box-shadow: 0 10px 30px rgba(15,23,42,.08);
}

.pf-header-soft .navbar-main {
    box-shadow: 0 8px 24px rgba(15,23,42,.06);
}

.pf-cards-rounded .card,
.pf-cards-rounded .article,
.pf-cards-rounded .post,
.pf-cards-rounded .widget,
.pf-cards-rounded .sidebar .widget {
    border-radius: var(--pf-radius) !important;
}

.pf-cards-shadow .card,
.pf-cards-shadow .article,
.pf-cards-shadow .post,
.pf-cards-shadow .widget,
.pf-cards-shadow .sidebar .widget {
    box-shadow: var(--pf-shadow) !important;
    border: 1px solid rgba(226,232,240,.8) !important;
}

/* Account/login menu */
.pf-auth-link {
    border-radius: 999px;
    font-weight: 700;
    display: inline-flex !important;
    align-items: center;
    gap: 7px;
    padding: .48rem .85rem !important;
}

.pf-auth-login {
    color: var(--pf-primary) !important;
    background: var(--pf-primary-soft);
}

.pf-auth-register {
    color: #fff !important;
    background: var(--pf-primary);
    box-shadow: 0 10px 25px rgba(37,99,235,.20);
}

.pf-account-toggle {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    border-radius: 999px;
    padding: .35rem .75rem !important;
    background: rgba(15, 23, 42, .04);
    color: var(--pf-text) !important;
}

.pf-account-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    overflow: hidden;
    display: inline-flex;
    background: var(--pf-primary-soft);
}

.pf-account-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pf-account-dropdown {
    min-width: 255px;
    padding: 10px;
    border: 1px solid var(--pf-border);
    border-radius: 18px;
    box-shadow: var(--pf-shadow);
}

.pf-account-dropdown .dropdown-item {
    border-radius: 12px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
}

.pf-account-dropdown .dropdown-item:hover {
    background: var(--pf-primary-soft);
    color: var(--pf-primary);
}

.pf-wallet-pill {
    margin-left: auto;
    background: #eef2ff;
    color: #3730a3;
    font-weight: 800;
    font-size: 12px;
    border-radius: 999px;
    padding: 3px 8px;
}

/* Breaking news */
.pf-breaking-news {
    margin: 14px 0 4px;
}

.pf-breaking-inner {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--pf-surface);
    border: 1px solid var(--pf-border);
    border-radius: var(--pf-radius);
    box-shadow: var(--pf-shadow);
    padding: 10px;
    overflow: hidden;
}

.pf-breaking-label {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #ef4444, #f97316);
    color: #fff;
    font-weight: 900;
    border-radius: 999px;
    padding: 9px 14px;
    white-space: nowrap;
}

.pf-breaking-items {
    display: flex;
    align-items: center;
    gap: 10px;
    overflow-x: auto;
    scrollbar-width: thin;
}

.pf-breaking-item {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--pf-text);
    background: var(--pf-surface-2);
    border: 1px solid rgba(226,232,240,.8);
    border-radius: 999px;
    padding: 8px 12px;
    font-weight: 700;
    transition: all .18s ease;
}

.pf-breaking-item:hover {
    color: var(--pf-primary);
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(15,23,42,.08);
}

.pf-breaking-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ef4444;
    box-shadow: 0 0 0 5px rgba(239,68,68,.12);
}

/* dark mode compatibility */
html.dark-mode-site body.pf-theme-classic-flat,
html.dark-mode-site body.pf-theme-modern-flat,
body.dark-mode-site.pf-theme-classic-flat,
body.dark-mode-site.pf-theme-modern-flat {
    --pf-surface: #111827;
    --pf-surface-2: #0b1120;
    --pf-border: #243145;
    --pf-text: #e5e7eb;
    --pf-muted: #9ca3af;
    background: #0b1120 !important;
    color: #e5e7eb !important;
}

html.dark-mode-site .pf-header-glass .navbar-main,
body.dark-mode-site .pf-header-glass .navbar-main {
    background: rgba(17, 24, 39, .90) !important;
}

html.dark-mode-site .pf-account-toggle,
body.dark-mode-site .pf-account-toggle {
    background: rgba(255,255,255,.06);
    color: #e5e7eb !important;
}

html.dark-mode-site .pf-account-dropdown,
body.dark-mode-site .pf-account-dropdown,
html.dark-mode-site .pf-breaking-inner,
body.dark-mode-site .pf-breaking-inner {
    background: #111827;
    border-color: #243145;
    color: #e5e7eb;
}

html.dark-mode-site .pf-account-dropdown .dropdown-item,
body.dark-mode-site .pf-account-dropdown .dropdown-item,
html.dark-mode-site .pf-breaking-item,
body.dark-mode-site .pf-breaking-item {
    color: #e5e7eb;
}

html.dark-mode-site .pf-breaking-item,
body.dark-mode-site .pf-breaking-item {
    background: #0f172a;
    border-color: #243145;
}

@media (max-width: 991.98px) {
    .pf-account-toggle,
    .pf-auth-link {
        margin-top: 6px;
        justify-content: flex-start;
    }

    .pf-breaking-inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .pf-breaking-items {
        width: 100%;
    }
}


/* Footer variants */
.pf-footer-contrast .footer {
    background: #0f172a;
    color: #e5e7eb;
}
.pf-footer-contrast .footer a {
    color: #bfdbfe;
}
.pf-footer-clean .footer {
    background: var(--pf-surface);
    border-top: 1px solid var(--pf-border);
}

/* Theme accent details */
.pf-theme-classic-flat .navbar-main .nav-link:hover,
.pf-theme-modern-flat .navbar-main .nav-link:hover {
    color: var(--pf-primary) !important;
}
.pf-theme-modern-flat .get-paid .nav-link {
    background: linear-gradient(135deg, var(--pf-primary), var(--pf-accent));
    color: #fff !important;
    border-radius: 999px;
    padding-left: 14px !important;
    padding-right: 14px !important;
}
.pf-theme-classic-flat .get-paid .nav-link {
    background: var(--pf-primary-soft);
    color: var(--pf-primary) !important;
    border-radius: 999px;
    padding-left: 14px !important;
    padding-right: 14px !important;
}
