/* PublishPro Frontend Styles */

/* --- Gradient Blur Effect --- */
.publishpro-fade-text {
    /* Using linear gradient mask to fade text properly */
    -webkit-mask-image: linear-gradient(to bottom, black 0%, transparent 80%);
    mask-image: linear-gradient(to bottom, black 0%, transparent 80%);
    opacity: 0.9;
    user-select: none;
    pointer-events: none;
    margin-bottom: 0px; 
}

/* --- Subscription Block (New Paywall Design) --- */
.publishpro-paywall-container {
    margin: 0 0 40px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #4a4a4a;
    clear: both;
}

.publishpro-paywall-intro {
    text-align: center;
    font-size: 16px;
    color: #6b7280;
    margin: 20px 0;
}

.publishpro-paywall-card {
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 30px;
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

.publishpro-paywall-btn {
    display: block;
    background-color: #47a6ab; /* Turquoise color from image */
    color: #ffffff;
    padding: 16px;
    border-radius: 4px;
    text-decoration: none;
    margin-bottom: 20px;
    transition: background 0.2s;
}

.publishpro-paywall-btn:hover {
    background-color: #3b8c91;
    color: #ffffff;
}

.publishpro-paywall-btn .btn-title {
    font-size: 20px;
    font-weight: bold;
    display: block;
    line-height: 1.2;
}

.publishpro-paywall-btn .btn-subtitle {
    font-size: 14px;
    display: block;
    margin-top: 5px;
}

.publishpro-paywall-login {
    font-size: 15px;
    color: #4a4a4a;
    margin-bottom: 25px;
}

.publishpro-paywall-login a {
    color: #e53e3e; /* Red color */
    font-weight: bold;
    text-decoration: none;
}

.publishpro-paywall-benefits {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
    display: inline-block;
}

.publishpro-paywall-benefits li {
    font-size: 15px;
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
}

.publishpro-paywall-benefits .tick {
    color: #48bb78; /* Green checkmark */
    margin-right: 10px;
    font-weight: bold;
}

.publishpro-paywall-methods {
    text-align: center;
    margin-top: 30px;
    font-weight: bold;
    font-size: 15px;
}

.publishpro-payment-logos {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 15px;
    align-items: center;
}

.publishpro-payment-logos span {
    font-size: 18px;
    font-weight: 800;
}

.logo-dana { color: #118ee9; }
.logo-gopay { color: #00aed6; }
.logo-ovo { color: #4c3494; font-weight: 900 !important; }
.logo-shopeepay { color: #ee4d2d; background: #fdf5f3; padding: 2px 5px; border-radius: 4px; font-size: 15px !important;}
.logo-qris { color: #000000; font-family: Impact, sans-serif; }
.logo-other { color: #4a4a4a; font-size: 14px !important; display: flex; align-items: center; gap: 5px; }
.other-icon { color: #e53e3e; font-size: 18px !important; }

/* --- Pricing Template UI (Premium Vertical Modern List) --- */
.publishpro-pricing-wrapper {
    max-width: 580px;
    margin: 0 auto;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.publishpro-pricing-header {
    text-align: center;
    margin-bottom: 30px;
}

.publishpro-pricing-header h2 {
    font-size: 1.35rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 10px;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.publishpro-pricing-header p {
    color: #64748b;
    font-size: 0.95rem;
    max-width: 500px;
    margin: 0 auto;
}

.publishpro-plan-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 25px;
}

.publishpro-plan-option {
    display: flex;
    align-items: center;
    border: 2px solid transparent;
    border-radius: 12px;
    padding: 16px 20px;
    cursor: pointer;
    background: #ffffff;
    box-shadow: 0 2px 4px -1px rgba(0,0,0,0.02), inset 0 0 0 1px #e2e8f0;
    position: relative;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.publishpro-plan-option:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px -5px rgba(0,0,0,0.06), inset 0 0 0 1px #cbd5e1;
}

.publishpro-plan-active {
    border-color: transparent !important;
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: 0 15px 35px -5px rgba(59, 130, 246, 0.15), inset 0 0 0 2px #3b82f6 !important;
    transform: scale(1.01) translateY(-2px);
}

.publishpro-plan-active::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 6px;
    height: 100%;
    background: linear-gradient(to bottom, #3b82f6, #8b5cf6);
    border-radius: 16px 0 0 16px;
}

.publishpro-plan-radio-wrap {
    position: relative;
    width: 22px;
    height: 22px;
    margin-right: 15px;
    flex-shrink: 0;
}

.publishpro-plan-radio-wrap input[type="radio"] {
    opacity: 0;
    position: absolute;
    width: 100%; height: 100%;
    cursor: pointer;
    z-index: 2;
    margin: 0;
}

.publishpro-radio-custom {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border: 2px solid #cbd5e1;
    border-radius: 50%;
    background: #f8fafc;
    transition: all 0.25s ease;
    box-sizing: border-box;
}

.publishpro-plan-active .publishpro-radio-custom {
    border-color: #3b82f6;
    background: #3b82f6;
}

.publishpro-plan-active .publishpro-radio-custom::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%) scale(1);
    width: 10px; height: 10px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    animation: publishproPopIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes publishproPopIn {
    0% { transform: translate(-50%, -50%) scale(0); opacity: 0; }
    100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

.publishpro-plan-info {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.publishpro-plan-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.publishpro-plan-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.01em;
}

.publishpro-plan-monthly {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 500;
}

.publishpro-plan-total-price {
    font-size: 1.15rem;
    font-weight: 800;
    color: #3b82f6; /* Modern Blue Accent */
    text-align: right;
    background: linear-gradient(90deg, #3b82f6, #6366f1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Gateway Form Selection */
.publishpro-pricing-gateway {
    margin: 15px 0 20px 0;
    background: #f8fafc;
    padding: 24px;
    border-radius: 16px;
    border: 1px dashed #cbd5e1;
}

.publishpro-pricing-gateway > label {
    display: block;
    font-weight: 800;
    margin-bottom: 16px;
    color: #0f172a;
    font-size: 1.05rem;
}

.publishpro-methods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 12px;
}

.publishpro-method-card {
    border: 2px solid transparent;
    background: #ffffff;
    border-radius: 10px;
    padding: 14px 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02), inset 0 0 0 1px #cbd5e1;
}

.publishpro-method-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    margin: 0;
}

.publishpro-method-card.active {
    border-color: transparent !important;
    background: linear-gradient(145deg, #ffffff 0%, #f0fdf4 100%);
    box-shadow: 0 4px 10px rgba(59, 130, 246, 0.1), inset 0 0 0 2px #3b82f6 !important;
    transform: translateY(-2px);
}

.publishpro-method-card:hover {
    box-shadow: 0 4px 10px rgba(0,0,0,0.05), inset 0 0 0 1px #94a3b8;
}

.method-logo {
    font-weight: 800;
    font-size: 1.15rem;
    letter-spacing: -0.03em;
    font-style: italic;
    text-transform: uppercase;
}

/* Glassmorphism Sticky Footer */
.publishpro-pricing-sticky-footer {
    position: sticky;
    bottom: 20px;
    margin: 30px auto 20px;
    max-width: 580px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 15px 25px;
    box-shadow: 0 15px 30px -10px rgba(0,0,0,0.1), 0 0 15px rgba(255,255,255,0.4) inset;
    z-index: 100;
}

.publishpro-sticky-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.publishpro-sticky-summary {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

#publishpro-summary-name {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

#publishpro-summary-price {
    font-size: 1.25rem;
    font-weight: 900;
    color: #0f172a;
    letter-spacing: -0.01em;
}

.publishpro-btn-checkout {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #ffffff;
    border: none;
    padding: 12px 28px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 6px 15px -4px rgba(37, 99, 235, 0.5);
    transition: all 0.3s ease;
    text-transform: capitalize;
}

.publishpro-btn-checkout:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px -4px rgba(37, 99, 235, 0.6);
}

.publishpro-btn-checkout:active {
    transform: translateY(1px);
}

@media (max-width: 600px) {
    .publishpro-pricing-sticky-footer {
        bottom: 10px;
        padding: 15px 20px;
        margin: 20px 10px 10px;
    }
    .publishpro-plan-info { flex-direction: column; align-items: flex-start; }
    .publishpro-plan-right { margin-top: 10px; text-align: left; }
    .publishpro-plan-total-price { text-align: left; }
    .publishpro-sticky-inner { flex-direction: column; gap: 20px; text-align: center;}
    .publishpro-btn-checkout { width: 100%; }
}


/* --- Frontend Auth Forms --- */
.publishpro-auth-wrap {
    max-width: 450px;
    margin: 40px auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.publishpro-auth-form {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.publishpro-auth-title {
    margin-top: 0;
    margin-bottom: 20px;
    text-align: center;
    font-size: 1.5rem;
    color: #1e293b;
}

.publishpro-auth-group {
    margin-bottom: 15px;
}

.publishpro-auth-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #475569;
    margin-bottom: 6px;
}

.publishpro-auth-group input[type="text"],
.publishpro-auth-group input[type="email"],
.publishpro-auth-group input[type="password"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    box-sizing: border-box;
}

.publishpro-auth-group input:focus {
    border-color: #3b82f6;
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.publishpro-btn-auth {
    display: block;
    width: 100%;
    background: #3b82f6;
    color: #fff;
    border: none;
    padding: 12px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 20px;
}

.publishpro-btn-auth:hover {
    background: #2563eb;
}

.publishpro-auth-links {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    font-size: 14px;
}

.publishpro-auth-links a {
    color: #3b82f6;
    text-decoration: none;
}

.publishpro-auth-links a:hover {
    text-decoration: underline;
}

.publishpro-auth-alert {
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 14px;
    text-align: center;
}

.publishpro-is-error {
    background: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fca5a5;
}

.publishpro-is-success {
    background: #dcfce3;
    color: #15803d;
    border: 1px solid #86efac;
}

/* --- Dashboard Layout --- */
.publishpro-dashboard-wrap {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #334155;
    max-width: 1200px;
    margin: 0 auto;
}

.publishpro-dashboard-title {
    margin-bottom: 25px;
    font-size: 1.8rem;
    color: #0f172a;
}

.publishpro-dashboard-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 30px;
    margin-top: 20px;
}

@media (max-width: 768px) {
    .publishpro-dashboard-layout {
        grid-template-columns: 1fr;
    }
}

.publishpro-d-sidebar {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px 15px;
    height: max-content;
}

.publishpro-d-tabs-nav {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.publishpro-d-tab {
    padding: 12px 18px;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.25s;
    display: flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    border: 1px solid transparent;
}

.publishpro-d-tab span {
    font-size: 1.25rem;
}

.publishpro-d-tab:hover {
    color: #0f172a;
    background: #ffffff;
    border-color: #e2e8f0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.publishpro-d-tab.active {
    color: #2563eb;
    background: #ffffff;
    border-color: #bfdbfe;
    box-shadow: 0 2px 5px rgba(59, 130, 246, 0.1);
}

.publishpro-d-tab-content {
    display: none;
    animation: publishpro-fade-in 0.3s ease;
}

.publishpro-d-tab-content.active {
    display: block;
}

@keyframes publishpro-fade-in {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.publishpro-dashboard-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 30px;
}

.publishpro-dashboard-card h3 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.2rem;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 10px;
}

.publishpro-status-box {
    padding: 15px 20px;
    border-radius: 6px;
    margin: 20px 0;
}

.publishpro-status-box h4 {
    margin: 0 0 5px 0;
    font-size: 1.1rem;
}

.publishpro-status-box p {
    margin: 0;
}

.status-active {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
}

.status-expired {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

/* Dashboard Invoice Table */
.publishpro-table-responsive {
    overflow-x: auto;
}

.publishpro-invoice-table {
    width: 100%;
    border-collapse: collapse;
}

.publishpro-invoice-table th, 
.publishpro-invoice-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.publishpro-invoice-table th {
    background: #f8fafc;
    font-weight: 600;
    color: #475569;
}

.publishpro-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.badge-success {
    background: #dcfce3;
    color: #166534;
}

.badge-warning {
    background: #fef9c3;
    color: #854d0e;
}
