/*
Theme Name: Twenty Twenty-Five Child (AdFuz Demo)
Theme URI: https://demo-ad-fuz.vin
Description: Official showcase child theme for AdFuz and AdFuz Pro. Designed to display high-impact ad placements, sticky anchors, in-article widgets, and header leaderboards.
Author: AdFuz Team
Author URI: https://demo-ad-fuz.vin
Template: twentytwentyfive
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: twentytwentyfive-child
*/

/* --- AdFuz Demo Ad Slot Enhancements --- */
.adfuz-demo-placement-wrapper {
    position: relative;
    margin: 24px 0;
    clear: both;
}

.adfuz-demo-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 8px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #4b5563;
    background: #f3f4f6;
    border-radius: 4px;
    margin-bottom: 8px;
}

.adfuz-demo-badge::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    background: #10b981;
    border-radius: 50%;
}

/* Header Leaderboard Area */
.adfuz-demo-header-leaderboard {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 16px 0;
    background: #fafafa;
    border-bottom: 1px solid #e5e7eb;
}

/* Sticky Bottom Ad Container */
.adfuz-demo-sticky-bottom {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 99998;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 16px;
    border-top: 1px solid #e5e7eb;
    transition: transform 0.3s ease;
}

/* Demo Frontend Switcher Bar */
.adfuz-demo-frontend-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 99999;
    height: 42px;
    background: #0f172a;
    color: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    font-size: 13px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

body.admin-bar .adfuz-demo-frontend-bar {
    top: 32px;
}

.adfuz-demo-frontend-bar .demo-brand {
    font-weight: 700;
    color: #38bdf8;
    display: flex;
    align-items: center;
    gap: 8px;
}

.adfuz-demo-frontend-bar .demo-cta-btn {
    background: #2563eb;
    color: #ffffff;
    padding: 5px 12px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 12px;
    transition: background 0.2s;
}

.adfuz-demo-frontend-bar .demo-cta-btn:hover {
    background: #1d4ed8;
    color: #ffffff;
}

.adfuz-demo-frontend-bar .demo-discount-pill {
    background: rgba(234, 179, 8, 0.2);
    color: #fde047;
    border: 1px solid rgba(234, 179, 8, 0.4);
    padding: 2px 8px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 11px;
}

/* =========================================================================
   AdFuz Demo Showcase Front Page Layout (SaaS Magazine Design)
   ========================================================================= */

body.adfuz-demo-homepage {
    margin: 0;
    padding: 0;
    background-color: #f8fafc;
    color: #1e293b;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.adfuz-site-wrapper {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.adfuz-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
    box-sizing: border-box;
}

/* 1. Header & Navigation */
.adfuz-site-header {
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    position: sticky;
    top: 0;
    z-index: 9998;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

body.admin-bar .adfuz-site-header {
    top: 32px;
}

@media screen and (max-width: 782px) {
    body.admin-bar .adfuz-site-header {
        top: 46px;
    }
}

.adfuz-header-inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    box-sizing: border-box;
}

.adfuz-brand-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #0f172a;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.adfuz-brand-icon {
    font-size: 22px;
}

.adfuz-brand-accent {
    color: #2563eb;
    font-weight: 600;
}

.adfuz-brand-badge {
    background: #eff6ff;
    color: #2563eb;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 6px;
    border: 1px solid #bfdbfe;
    text-transform: uppercase;
}

.adfuz-header-nav {
    display: flex;
    align-items: center;
    gap: 24px;
}

.adfuz-nav-link {
    color: #64748b;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.15s ease;
}

.adfuz-nav-link:hover,
.adfuz-nav-link.active {
    color: #2563eb;
    font-weight: 600;
}

.adfuz-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.adfuz-header-btn-backend {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f1f5f9;
    color: #334155;
    text-decoration: none;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid #cbd5e1;
    transition: all 0.2s ease;
}

.adfuz-header-btn-backend:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.adfuz-header-btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #2563eb;
    color: #ffffff;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    transition: background 0.2s ease;
}

.adfuz-header-btn-cta:hover {
    background: #1d4ed8;
    color: #ffffff;
}

/* 2. Top Header Ad Area */
.adfuz-header-ad-section {
    padding: 20px 0 10px 0;
}

.adfuz-slot-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
    position: relative;
}

.adfuz-slot-meta-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px dashed #e2e8f0;
}

.adfuz-slot-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10b981;
}

.adfuz-slot-tag {
    margin-left: auto;
    background: #f1f5f9;
    color: #475569;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    text-transform: uppercase;
}

.adfuz-slot-content {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 90px;
    overflow: hidden;
}

.adfuz-slot-content.leaderboard-wrap {
    min-height: 90px;
}

.adfuz-slot-content.native-wrap {
    min-height: 250px;
}

.adfuz-slot-content.half-page-wrap {
    min-height: 600px;
}

.adfuz-slot-content.square-wrap {
    min-height: 250px;
}

/* 3. Hero Presentation Strip */
.adfuz-hero-section {
    padding: 16px 0 24px 0;
}

.adfuz-hero-card {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border-radius: 20px;
    padding: 40px 36px;
    color: #ffffff;
    text-align: center;
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.2);
}

.adfuz-hero-badge-row {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.adfuz-hero-pill-pro {
    background: rgba(59, 130, 246, 0.2);
    border: 1px solid rgba(96, 165, 250, 0.4);
    color: #93c5fd;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 9999px;
}

.adfuz-hero-pill-live {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(52, 211, 153, 0.4);
    color: #6ee7b7;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.adfuz-live-pulse {
    width: 6px;
    height: 6px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.3);
    animation: adfuzPulse 2s infinite;
}

@keyframes adfuzPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.9); }
}

.adfuz-hero-title {
    font-size: 32px;
    font-weight: 800;
    line-height: 1.25;
    margin: 0 0 14px 0;
    color: #ffffff;
    letter-spacing: -0.02em;
}

.adfuz-hero-subtitle {
    font-size: 16px;
    color: #94a3b8;
    max-width: 720px;
    margin: 0 auto 28px auto;
    line-height: 1.6;
}

.adfuz-hero-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.adfuz-hero-primary-btn {
    background: #2563eb;
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    padding: 12px 24px;
    border-radius: 10px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}

.adfuz-hero-primary-btn:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
    color: #ffffff;
}

.adfuz-hero-secondary-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    padding: 12px 20px;
    border-radius: 10px;
    transition: all 0.2s ease;
}

.adfuz-hero-secondary-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

/* 4. Publisher Content Grid & Layout */
.adfuz-main-content {
    padding: 24px 0 48px 0;
}

.adfuz-layout-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 32px;
    align-items: start;
}

.adfuz-content-column {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.adfuz-article-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.adfuz-article-card:hover {
    box-shadow: 0 8px 20px -4px rgba(0, 0, 0, 0.06);
}

.adfuz-article-card.featured {
    border-left: 4px solid #2563eb;
}

.adfuz-article-media-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.adfuz-article-tag {
    display: inline-block;
    background: #eff6ff;
    color: #2563eb;
    font-size: 12px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.adfuz-article-tag.green {
    background: #ecfdf5;
    color: #059669;
}

.adfuz-article-tag.purple {
    background: #f5f3ff;
    color: #7c3aed;
}

.adfuz-article-tag.amber {
    background: #fffbeb;
    color: #d97706;
}

.adfuz-article-readtime {
    font-size: 12px;
    color: #94a3b8;
    font-weight: 500;
}

.adfuz-article-title {
    font-size: 22px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.35;
    margin: 0 0 12px 0;
    letter-spacing: -0.01em;
}

.adfuz-article-excerpt {
    font-size: 14.5px;
    color: #475569;
    line-height: 1.65;
    margin: 0 0 20px 0;
}

.adfuz-article-author-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    color: #64748b;
    border-top: 1px solid #f1f5f9;
    padding-top: 14px;
}

.adfuz-author-name {
    font-weight: 600;
    color: #334155;
}

.adfuz-article-date {
    margin-left: auto;
    color: #94a3b8;
}

/* Sidebar Elements */
.adfuz-sidebar-column {
    display: flex;
    flex-direction: column;
    gap: 28px;
    position: sticky;
    top: 90px;
}

.adfuz-diag-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 22px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.adfuz-diag-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.adfuz-diag-icon {
    font-size: 24px;
}

.adfuz-diag-title {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}

.adfuz-diag-subtitle {
    font-size: 12px;
    color: #64748b;
    margin: 2px 0 0 0;
}

.adfuz-diag-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 14px;
    margin-bottom: 16px;
}

.adfuz-diag-item {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
}

.adfuz-diag-label {
    color: #64748b;
    font-weight: 500;
}

.adfuz-diag-val {
    color: #0f172a;
    font-weight: 700;
}

.adfuz-diag-val.green {
    color: #059669;
}

.adfuz-diag-btn {
    display: block;
    text-align: center;
    background: #f1f5f9;
    color: #2563eb;
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    transition: all 0.2s ease;
}

.adfuz-diag-btn:hover {
    background: #e2e8f0;
    color: #1d4ed8;
}

/* Conversion Test Card */
.adfuz-conv-test-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 22px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.adfuz-conv-test-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.adfuz-conv-icon {
    font-size: 24px;
}

.adfuz-conv-title {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}

.adfuz-conv-subtitle {
    font-size: 12px;
    color: #64748b;
    margin: 2px 0 0 0;
}

.adfuz-conv-desc {
    font-size: 13px;
    color: #64748b;
    margin: 0 0 16px 0;
    line-height: 1.5;
}

.adfuz-conv-trigger-btn {
    width: 100%;
    background: #059669;
    color: #ffffff;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease;
    box-shadow: 0 2px 6px rgba(5, 150, 105, 0.25);
}

.adfuz-conv-trigger-btn:hover {
    background: #047857;
}

.adfuz-conv-result-box {
    margin-top: 14px;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
    padding: 12px;
    border-radius: 8px;
    font-size: 12.5px;
    line-height: 1.5;
}

/* 5. Feature Showcase Grid */
.adfuz-features-section {
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    padding: 60px 0;
}

.adfuz-section-header {
    text-align: center;
    margin-bottom: 44px;
}

.adfuz-section-pill {
    display: inline-block;
    background: #eff6ff;
    color: #2563eb;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}

.adfuz-section-title {
    font-size: 30px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 10px 0;
    letter-spacing: -0.02em;
}

.adfuz-section-subtitle {
    font-size: 16px;
    color: #64748b;
    margin: 0;
}

.adfuz-feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.adfuz-feature-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.adfuz-feature-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.06);
    background: #ffffff;
}

.adfuz-feature-icon-box {
    font-size: 28px;
    margin-bottom: 14px;
}

.adfuz-feature-card-title {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 10px 0;
}

.adfuz-feature-card-desc {
    font-size: 13.5px;
    color: #64748b;
    line-height: 1.6;
    margin: 0 0 16px 0;
    flex-grow: 1;
}

.adfuz-feature-link {
    color: #2563eb;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.adfuz-feature-link:hover {
    text-decoration: underline;
}

/* 6. Voucher Promo Banner */
.adfuz-voucher-section {
    padding: 48px 0;
}

.adfuz-voucher-card {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
    border-radius: 20px;
    padding: 36px 40px;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    box-shadow: 0 10px 30px -5px rgba(30, 58, 138, 0.4);
}

.adfuz-voucher-badge {
    background: #fef08a;
    color: #854d0e;
    font-size: 11px;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 9999px;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 10px;
}

.adfuz-voucher-title {
    font-size: 24px;
    font-weight: 800;
    margin: 0 0 8px 0;
    color: #ffffff;
}

.adfuz-voucher-desc {
    font-size: 14px;
    color: #bfdbfe;
    margin: 0;
    max-width: 520px;
}

.adfuz-voucher-right {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.adfuz-coupon-box {
    display: flex;
    align-items: center;
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    padding: 4px 4px 4px 14px;
}

.adfuz-coupon-code {
    font-family: monospace;
    font-size: 16px;
    font-weight: 800;
    color: #1e3a8a;
    letter-spacing: 0.05em;
    margin-right: 12px;
}

.adfuz-coupon-copy-btn {
    background: #2563eb;
    color: #ffffff;
    border: none;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease;
}

.adfuz-voucher-cta-btn {
    background: #ffffff;
    color: #1e3a8a;
    text-decoration: none;
    font-weight: 800;
    font-size: 14px;
    padding: 12px 22px;
    border-radius: 10px;
    white-space: nowrap;
    transition: transform 0.2s ease;
}

.adfuz-voucher-cta-btn:hover {
    transform: translateY(-2px);
    color: #1e3a8a;
}

/* 7. Footer */
.adfuz-site-footer {
    background: #0f172a;
    color: #94a3b8;
    padding: 32px 0;
    margin-top: auto;
    border-top: 1px solid #1e293b;
    font-size: 13px;
}

.adfuz-footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.adfuz-footer-brand {
    color: #f8fafc;
    margin: 0 0 4px 0;
}

.adfuz-footer-copy {
    margin: 0;
    color: #64748b;
}

.adfuz-footer-right {
    display: flex;
    gap: 18px;
}

.adfuz-footer-right a {
    color: #94a3b8;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.15s ease;
}

.adfuz-footer-right a:hover {
    color: #ffffff;
}

/* Responsive Adjustments */
@media (max-width: 960px) {
    .adfuz-layout-grid {
        grid-template-columns: 1fr;
    }
    .adfuz-sidebar-column {
        position: static;
    }
    .adfuz-feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .adfuz-voucher-card {
        flex-direction: column;
        text-align: center;
    }
    .adfuz-voucher-desc {
        margin: 0 auto;
    }
    .adfuz-voucher-right {
        flex-direction: column;
        width: 100%;
    }
    .adfuz-coupon-box {
        width: 100%;
        justify-content: space-between;
        box-sizing: border-box;
    }
    .adfuz-voucher-cta-btn {
        width: 100%;
        text-align: center;
        box-sizing: border-box;
    }
}

@media (max-width: 640px) {
    .adfuz-header-nav {
        display: none;
    }
    .adfuz-feature-grid {
        grid-template-columns: 1fr;
    }
    .adfuz-hero-title {
        font-size: 24px;
    }
    .adfuz-hero-card {
        padding: 28px 20px;
    }
}

