/*
Theme Name: Newspaper Child
Theme URI: https://tagdiv.com
Description: Child theme for Newspaper
Author: alground
Author URI: https://www.alground.com/origin/
Template: newspaper
Version: 1.0.0
Text Domain: newspaper-child
*//*
Theme Name: Newspaper Child
Theme URI: https://tagdiv.com
Description: Child theme for Newspaper
Author: alground
Author URI: https://www.alground.com/origin/
Template: newspaper
Version: 1.0.0
Text Domain: newspaper-child
*/

/* ===== PMPro Modern Blur Paywall - FULL PAGE OVERLAY ===== */

/* Content wrapper */
.pmpro-blur-wrapper {
    position: relative;
    margin-bottom: 20px;
}

.pmpro-content-preview {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    margin-bottom: 20px;
}

.pmpro-blur-content {
    filter: blur(6px);
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.tds-s-page-sec-content h2.pmpro_section_title.pmpro_font-x-large {
    margin: 0;
    font-family: inherit;
    font-size: 1.429em;
    font-weight: 500;
    line-height: 1.2;
    color: #152bf7;
}

/* FULL PAGE OVERLAY - Covers entire viewport */
.pmpro-fullpage-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    max-width: 100vw !important;
    max-height: 100vh !important;
    margin: 0 !important;
    transform: none !important;
    z-index: 999999 !important;
    display: none !important; /* Hidden by default, shown via JS */
    align-items: center !important;
    justify-content: center !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    padding: 20px;
    box-sizing: border-box;
}

/* Force display flex when shown */
.pmpro-fullpage-overlay[style*="display: flex"] {
    display: flex !important;
}

/* Overlay backdrop - dark background with blur */
.pmpro-fullpage-overlay::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: -1;
    pointer-events: none;
}

/* Card container */
.pmpro-overlay-card {
    background: #ffffff;
    padding: 45px 40px;
    text-align: center;
    border-radius: 20px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.35);
    max-width: 480px;
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.9);
    animation: slideInUp 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    z-index: 1;
    margin: auto;
    box-sizing: border-box;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Premium icon */
.premium-icon {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: pulse 2s ease-in-out infinite;
}

.premium-icon img {
    width: 70px;
    height: 70px;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.15));
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Title */
.pmpro-blur-overlay h3,
.pmpro-fullpage-overlay h3 {
    font-size: 32px;
    font-weight: 800;
    margin: 0 0 12px 0;
    color: #111827;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

/* Subtitle */
.pmpro-subtitle {
    color: #6b7280;
    font-size: 16px;
    line-height: 1.5;
    margin: 0 0 28px 0;
    font-weight: 400;
}

/* Benefits list */
.benefits-list {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-radius: 14px;
    padding: 20px;
    margin-bottom: 28px;
    text-align: left;
    border: 2px solid #86efac;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #1f2937;
    font-size: 14px;
    padding: 8px 0;
    font-weight: 500;
    transition: transform 0.2s ease;
}

.benefit-item:hover {
    transform: translateX(4px);
}

.benefit-item svg {
    flex-shrink: 0;
}

/* Primary button */
.pmpro-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #fff !important;
    padding: 16px 38px;
    text-decoration: none !important;
    border-radius: 50px;
    font-weight: 700;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 30px rgba(239, 68, 68, 0.4);
    border: none;
    cursor: pointer;
    width: 100%;
    box-sizing: border-box;
}

.pmpro-btn-primary:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 15px 40px rgba(239, 68, 68, 0.5);
    color: #fff !important;
    text-decoration: none !important;
}

.pmpro-btn-primary:active {
    transform: translateY(0) scale(0.98);
}

.pmpro-btn-primary:visited {
    color: #fff !important;
}

.pmpro-btn-primary svg {
    transition: transform 0.3s ease;
}

.pmpro-btn-primary:hover svg {
    transform: translateX(4px);
}

/* Footer text */
.pmpro-footer-text {
    margin-top: 18px;
    font-size: 12px;
    color: #9ca3af;
    font-weight: 400;
}

/* Prevent body scroll when overlay is active */
body.pmpro-overlay-active,
html.pmpro-overlay-active {
    overflow: hidden !important;
    height: 100vh !important;
    position: fixed !important;
    width: 100% !important;
}

/* Hide scrollbar when overlay is active */
body:has(#pmpro-global-overlay[style*="display: flex"]) {
    overflow: hidden !important;
    height: 100vh !important;
}

html:has(#pmpro-global-overlay[style*="display: flex"]) {
    overflow: hidden !important;
}

/* Responsive */
@media (max-width: 768px) {
    .pmpro-fullpage-overlay {
        padding: 15px;
    }
    
    .pmpro-overlay-card {
        padding: 35px 28px;
        max-width: 100%;
    }
    
    .pmpro-blur-overlay h3,
    .pmpro-fullpage-overlay h3 {
        font-size: 26px;
    }
    
    .pmpro-subtitle {
        font-size: 14px;
    }
    
    .premium-icon img {
        width: 60px;
        height: 60px;
    }
    
    .pmpro-btn-primary {
        padding: 15px 32px;
        font-size: 14px;
    }
    
    .benefits-list {
        padding: 18px;
    }
    
    .benefit-item {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .pmpro-fullpage-overlay {
        padding: 10px;
    }
    
    .pmpro-overlay-card {
        padding: 30px 22px;
        border-radius: 16px;
    }
    
    .pmpro-blur-overlay h3,
    .pmpro-fullpage-overlay h3 {
        font-size: 22px;
    }
    
    .benefits-list {
        padding: 16px;
    }
    
    .benefit-item {
        font-size: 12px;
        padding: 6px 0;
    }
}

/* ===== PMPro Account Page - Modern UI ===== */

/* Page container */
.pmpro-account .td-main-content {
    background: transparent;
}

/* Section spacing */
.pmpro_section {
    margin-bottom: 50px;
}

/* Section titles */
.pmpro_section_title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 24px;
    color: #111827;
    border-bottom: none;
    letter-spacing: -0.5px;
}

/* Card styling */
.pmpro_card {
    background: #ffffff;
    border: none;
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.pmpro_card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

/* Card title (Welcome section) */
.pmpro_card_title {
    display: flex;
    align-items: center;
    gap: 18px;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 24px;
    color: #111827;
    padding-bottom: 20px;
    border-bottom: 2px solid #f3f4f6;
}

/* Avatar */
.pmpro_card_title img.avatar {
    border-radius: 50%;
    width: 64px;
    height: 64px;
    border: 3px solid #ef4444;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* User info list */
.pmpro_list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pmpro_list_item {
    font-size: 16px;
    padding: 12px 0;
    color: #374151;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid #f3f4f6;
}

.pmpro_list_item:last-child {
    border-bottom: none;
}

.pmpro_list_item strong {
    color: #111827;
    font-weight: 600;
    min-width: 140px;
}

/* Actions area */
.pmpro_card_actions {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 2px solid #f3f4f6;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.pmpro_card_action_separator {
    display: none;
}

/* Action buttons - Modern style */
.pmpro_card_action a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    background: linear-gradient(135deg, #111827 0%, #1f2937 100%);
    color: #fff;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
    letter-spacing: 0.3px;
}

.pmpro_card_action a:hover {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(239, 68, 68, 0.3);
    color: #fff;
}

.pmpro_card_action a:active {
    transform: translateY(0);
}

/* Membership empty state */
#pmpro_account-membership-none {
    text-align: center;
    padding: 40px 20px;
}

#pmpro_account-membership-none p {
    font-size: 18px;
    color: #6b7280;
    margin-bottom: 24px;
}

/* CTA link */
#pmpro_account-membership-none a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 36px;
    border-radius: 50px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1);
    box-shadow: 0 10px 30px rgba(239, 68, 68, 0.3);
}

#pmpro_account-membership-none a:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    transform: translateY(-3px);
    box-shadow: 0 16px 40px rgba(239, 68, 68, 0.4);
}

/* Membership level badge */
.pmpro_account-membership-levelname {
    display: inline-block;
    padding: 8px 20px;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #fff;
    border-radius: 50px;
    font-weight: 700;
    font-size: 14px;
    margin-left: 12px;
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.3);
}

/* Invoices table */
.pmpro_invoice {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 20px;
}

.pmpro_invoice thead tr {
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
}

.pmpro_invoice th {
    padding: 16px;
    text-align: left;
    font-weight: 700;
    color: #111827;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #e5e7eb;
}

.pmpro_invoice td {
    padding: 16px;
    border-bottom: 1px solid #f3f4f6;
    color: #374151;
    font-size: 15px;
}

.pmpro_invoice tbody tr:hover {
    background: #f9fafb;
}

.pmpro_invoice a {
    color: #ef4444;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.pmpro_invoice a:hover {
    color: #dc2626;
    text-decoration: underline;
}

/* Links list */
.pmpro_account-links-container {
    background: linear-gradient(135deg, #f9fafb 0%, #ffffff 100%);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.pmpro_account-links-container ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pmpro_account-links-container li {
    margin-bottom: 12px;
}

.pmpro_account-links-container a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: #ffffff;
    border-radius: 12px;
    text-decoration: none;
    color: #111827;
    font-weight: 600;
    transition: all 0.2s ease;
    border: 2px solid #f3f4f6;
}

.pmpro_account-links-container a:hover {
    background: #111827;
    color: #fff;
    transform: translateX(4px);
    border-color: #111827;
}

/* Mobile optimization */
@media (max-width: 768px) {
    .pmpro_card {
        padding: 24px;
        border-radius: 16px;
    }
    
    .pmpro_section_title {
        font-size: 24px;
    }
    
    .pmpro_card_title {
        font-size: 20px;
        gap: 14px;
    }
    
    .pmpro_card_title img.avatar {
        width: 56px;
        height: 56px;
    }

    .pmpro_card_actions {
        flex-direction: column;
    }

    .pmpro_card_action a {
        width: 100%;
        justify-content: center;
        text-align: center;
    }
    
    .pmpro_invoice {
        font-size: 13px;
    }
    
    .pmpro_invoice th,
    .pmpro_invoice td {
        padding: 12px 8px;
    }
}

@media (max-width: 480px) {
    .pmpro_card {
        padding: 20px;
    }
    
    .pmpro_list_item {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    
    .pmpro_list_item strong {
        min-width: auto;
    }
}

/* ===== PMPro Modern Blur Paywall - FULL PAGE OVERLAY ===== */

/* Content wrapper */
.pmpro-blur-wrapper {
    position: relative;
}

.pmpro-content-preview {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    margin-bottom: 20px;
}

.pmpro-blur-content {
    filter: blur(6px);
    pointer-events: none;
    user-select: none;
}

/* FULL PAGE OVERLAY - Covers entire viewport */
.pmpro-fullpage-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    transform: none !important;
    z-index: 999999 !important;
    display: none; /* Hidden by default, shown via JS */
    align-items: center;
    justify-content: center;
    overflow-y: auto;
    padding: 20px;
}

/* Overlay backdrop */
.pmpro-fullpage-overlay::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: -1;
}

/* Card container */
.pmpro-overlay-card {
    background: #ffffff;
    padding: 45px 40px;
    text-align: center;
    border-radius: 20px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.35);
    max-width: 480px;
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.9);
    animation: slideInUp 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    margin: auto;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Premium icon */
.premium-icon {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    animation: pulse 2s ease-in-out infinite;
}

.premium-icon img {
    width: 70px;
    height: 70px;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.15));
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Title */
.pmpro-blur-overlay h3 {
    font-size: 32px;
    font-weight: 800;
    margin: 0 0 12px 0;
    color: #111827;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

/* Subtitle */
.pmpro-subtitle {
    color: #6b7280;
    font-size: 16px;
    line-height: 1.5;
    margin: 0 0 28px 0;
    font-weight: 400;
}

/* Benefits list */
.benefits-list {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-radius: 14px;
    padding: 20px;
    margin-bottom: 28px;
    text-align: left;
    border: 2px solid #86efac;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #1f2937;
    font-size: 14px;
    padding: 8px 0;
    font-weight: 500;
    transition: transform 0.2s ease;
}

.benefit-item:hover {
    transform: translateX(4px);
}

.benefit-item svg {
    flex-shrink: 0;
}

/* Primary button */
.pmpro-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #fff !important;
    padding: 16px 38px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 30px rgba(239, 68, 68, 0.4);
    border: none;
    cursor: pointer;
    width: 100%;
}

.pmpro-btn-primary:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 15px 40px rgba(239, 68, 68, 0.5);
    color: #fff !important;
}

.pmpro-btn-primary:active {
    transform: translateY(0) scale(0.98);
}

.pmpro-btn-primary svg {
    transition: transform 0.3s ease;
}

.pmpro-btn-primary:hover svg {
    transform: translateX(4px);
}

/* Footer text */
.pmpro-footer-text {
    margin-top: 18px;
    font-size: 12px;
    color: #9ca3af;
    font-weight: 400;
}

/* Prevent body scroll when overlay is active */
body.pmpro-overlay-active {
    overflow: hidden !important;
    height: 100vh !important;
}

/* Responsive */
@media (max-width: 768px) {
    .pmpro-fullpage-overlay {
        padding: 15px;
    }
    
    .pmpro-overlay-card {
        padding: 35px 28px;
        max-width: 100%;
    }
    
    .pmpro-blur-overlay h3 {
        font-size: 26px;
    }
    
    .pmpro-subtitle {
        font-size: 14px;
    }
    
    .premium-icon img {
        width: 60px;
        height: 60px;
    }
    
    .pmpro-btn-primary {
        padding: 15px 32px;
        font-size: 14px;
    }
    
    .benefits-list {
        padding: 18px;
    }
    
    .benefit-item {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .pmpro-fullpage-overlay {
        padding: 10px;
    }
    
    .pmpro-overlay-card {
        padding: 30px 22px;
        border-radius: 16px;
    }
    
    .pmpro-blur-overlay h3 {
        font-size: 22px;
    }
    
    .benefits-list {
        padding: 16px;
    }
    
    .benefit-item {
        font-size: 12px;
        padding: 6px 0;
    }
}

