/* ==========================================================
   Affiliate Plugin for WooCommerce
   Documentation Stylesheet

   RTW Development
========================================================== */

/* ==========================================================
   Google Font
========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');


/* ==========================================================
   CSS Variables
========================================================== */

:root{

    --primary:#6C63FF;
    --primary-dark:#5A4FF5;
    --primary-light:#ECEBFF;

    --secondary:#4F8CFF;
    --secondary-light:#EEF5FF;

    --success:#22C55E;
    --warning:#F59E0B;
    --danger:#EF4444;

    --heading:#111827;
    --text:#4B5563;

    --border:#E5E7EB;

    --bg:#F7F9FC;

    --white:#FFFFFF;

    --radius-sm:8px;
    --radius:12px;
    --radius-lg:18px;

    --shadow-sm:0 2px 10px rgba(0,0,0,.04);

    --shadow:

        0 8px 30px rgba(17,24,39,.08);

    --shadow-lg:

        0 20px 60px rgba(17,24,39,.12);

    --transition:.30s ease;

}


/* ==========================================================
   Reset
========================================================== */

*,
*::before,
*::after{

    margin:0;
    padding:0;

    box-sizing:border-box;

}

html{

    scroll-behavior:smooth;

}

body{

    font-family:'Inter',sans-serif;

    background:var(--bg);

    color:var(--text);

    line-height:1.7;

    font-size:16px;

    overflow-x:hidden;

}


/* ==========================================================
   Typography
========================================================== */

h1,
h2,
h3,
h4,
h5,
h6{

    color:var(--heading);

    line-height:1.3;

    font-weight:700;

}

h1{

    font-size:56px;

}

h2{

    font-size:38px;

    margin-bottom:20px;

}

h3{

    font-size:24px;

}

h4{

    font-size:20px;

}

p{

    margin-bottom:20px;

}

a{

    color:inherit;

    text-decoration:none;

}

img{

    max-width:100%;

    display:block;

}


/* ==========================================================
   Container
========================================================== */

.container{

    width:min(1280px,92%);

    margin:auto;

}


/* ==========================================================
   Buttons
========================================================== */

.btn{

    display:inline-flex;

    align-items:center;

    gap:12px;

    padding:14px 28px;

    border-radius:50px;

    font-weight:600;

    transition:var(--transition);

    cursor:pointer;

}

.btn i{

    font-size:16px;

}

.btn-primary{

    background:var(--primary);

    color:#fff;

}

.btn-primary:hover{

    background:var(--primary-dark);

    transform:translateY(-3px);

    box-shadow:var(--shadow);

}

.btn-secondary{

    background:#fff;

    color:var(--heading);

    border:1px solid var(--border);

}

.btn-secondary:hover{

    transform:translateY(-3px);

    box-shadow:var(--shadow);

}

.btn-outline{

    border:2px solid var(--primary);

    color:var(--primary);

    background:transparent;

}

.btn-outline:hover{

    background:var(--primary);

    color:#fff;

}


/* ==========================================================
   Preloader
========================================================== */

.preloader{

    position:fixed;

    inset:0;

    background:#fff;

    display:flex;

    justify-content:center;

    align-items:center;

    z-index:9999;

}

.loader{

    width:60px;

    height:60px;

    border-radius:50%;

    border:5px solid #eee;

    border-top-color:var(--primary);

    animation:spin 1s linear infinite;

}

@keyframes spin{

    to{

        transform:rotate(360deg);

    }

}


/* ==========================================================
   Scroll Progress
========================================================== */

#scroll-progress{

    position:fixed;

    top:0;

    left:0;

    width:0;

    height:4px;

    background:linear-gradient(
        90deg,
        var(--primary),
        var(--secondary)
    );

    z-index:99999;

}


/* ==========================================================
   Mobile Menu Button
========================================================== */

.mobile-menu-btn{

    position:fixed;

    right:25px;

    bottom:25px;

    width:58px;

    height:58px;

    border:none;

    border-radius:50%;

    background:var(--primary);

    color:#fff;

    font-size:20px;

    cursor:pointer;

    display:none;

    z-index:999;

    box-shadow:var(--shadow-lg);

}
/* ==========================================================
   Top Header
========================================================== */

.top-header{

    position:sticky;

    top:0;

    left:0;

    width:100%;

    z-index:1000;

    background:rgba(255,255,255,.92);

    backdrop-filter:blur(16px);

    border-bottom:1px solid var(--border);

}

.top-header .container{

    display:flex;

    align-items:center;

    justify-content:space-between;

    min-height:82px;

}

.logo{

    display:flex;

    align-items:center;

    gap:16px;

}

.logo img{

    width:48px;

    height:48px;

    object-fit:contain;

}

.logo span{

    font-size:14px;

    color:var(--primary);

    font-weight:700;

    letter-spacing:.5px;

    text-transform:uppercase;

}

.header-actions{

    display:flex;

    align-items:center;

    gap:15px;

}


/* ==========================================================
   Hero Section
========================================================== */

.hero{

    position:relative;

    overflow:hidden;

    padding:90px 0;

    background:

    linear-gradient(
        135deg,
        #ffffff 0%,
        #f7f8ff 40%,
        #eef5ff 100%
    );

}

.hero::before{

    content:"";

    position:absolute;

    width:520px;

    height:520px;

    right:-180px;

    top:-220px;

    border-radius:50%;

    background:

    radial-gradient(
        circle,
        rgba(108,99,255,.12),
        transparent 70%
    );

}

.hero::after{

    content:"";

    position:absolute;

    width:380px;

    height:380px;

    left:-120px;

    bottom:-180px;

    border-radius:50%;

    background:

    radial-gradient(
        circle,
        rgba(79,140,255,.10),
        transparent 70%
    );

}

.hero-content{

    position:relative;

    z-index:5;

    max-width:860px;

}

.hero-badge{

    display:inline-flex;

    align-items:center;

    gap:8px;

    padding:10px 18px;

    border-radius:40px;

    background:var(--primary-light);

    color:var(--primary);

    font-weight:700;

    margin-bottom:25px;

}

.hero h1{

    margin-bottom:24px;

    font-size:58px;

    font-weight:800;

    line-height:1.15;

}

.hero h1 span{

    display:block;

    color:var(--primary);

    margin-top:12px;

}

.hero p{

    max-width:760px;

    font-size:19px;

    color:#5B6472;

}

.hero-buttons{

    display:flex;

    flex-wrap:wrap;

    gap:18px;

    margin-top:35px;

}

.hero-stats{

    margin-top:70px;

    display:grid;

    grid-template-columns:repeat(3,1fr);

    gap:28px;

}

.stat-card{

    background:#fff;

    padding:28px;

    border-radius:18px;

    box-shadow:var(--shadow);

    transition:var(--transition);

    border:1px solid rgba(108,99,255,.08);

}

.stat-card:hover{

    transform:translateY(-6px);

    box-shadow:var(--shadow-lg);

}

.stat-card i{

    width:58px;

    height:58px;

    display:flex;

    align-items:center;

    justify-content:center;

    border-radius:50%;

    margin-bottom:18px;

    font-size:24px;

    background:var(--primary-light);

    color:var(--primary);

}

.stat-card h4{

    margin-bottom:12px;

}

.stat-card p{

    margin:0;

    font-size:15px;

}


/* ==========================================================
   Documentation Layout
========================================================== */

.documentation-layout{

    display:grid;

    grid-template-columns:320px 1fr;

    gap:40px;

    max-width:1500px;

    margin:auto;

    padding:45px 30px 80px;

}


/* ==========================================================
   Sidebar
========================================================== */

.documentation-sidebar{

    position:sticky;

    top:100px;

    align-self:start;

    background:#fff;

    border-radius:22px;

    padding:30px;

    box-shadow:var(--shadow);

    border:1px solid var(--border);

    max-height:calc(100vh - 130px);

    overflow-y:auto;

}

.documentation-sidebar::-webkit-scrollbar{

    width:7px;

}

.documentation-sidebar::-webkit-scrollbar-thumb{

    background:#d7d9e0;

    border-radius:30px;

}

.sidebar-header{

    display:flex;

    align-items:center;

    justify-content:space-between;

    margin-bottom:24px;

}

.sidebar-header h3{

    font-size:22px;

}

.sidebar-close{

    display:none;

    background:none;

    border:none;

    font-size:22px;

    cursor:pointer;

}

.sidebar-search{

    position:relative;

    margin-bottom:28px;

}

.sidebar-search i{

    position:absolute;

    left:18px;

    top:50%;

    transform:translateY(-50%);

    color:#9AA3AF;

}

.sidebar-search input{

    width:100%;

    padding:15px 18px 15px 48px;

    border-radius:12px;

    border:1px solid var(--border);

    outline:none;

    font-size:15px;

    transition:var(--transition);

}

.sidebar-search input:focus{

    border-color:var(--primary);

    box-shadow:0 0 0 4px rgba(108,99,255,.08);

}

.sidebar-card{

    padding:18px;

    margin-bottom:18px;

    border-radius:14px;

    background:linear-gradient(
        145deg,
        #fafbff,
        #f3f6ff
    );

    border:1px solid rgba(108,99,255,.08);

}

.sidebar-card-title{

    display:block;

    color:var(--primary);

    font-size:13px;

    font-weight:700;

    text-transform:uppercase;

    letter-spacing:.5px;

    margin-bottom:8px;

}

.sidebar-card strong{

    display:block;

    margin-bottom:6px;

    color:var(--heading);

}

.sidebar-card small{

    display:block;

    color:var(--text);

    line-height:1.6;

}


/* ==========================================================
   Navigation
========================================================== */

.documentation-nav{

    margin-top:30px;

}

.nav-heading{

    display:block;

    margin:28px 0 14px;

    font-size:12px;

    font-weight:700;

    color:#9AA3AF;

    text-transform:uppercase;

    letter-spacing:1px;

}

.documentation-nav ul{

    list-style:none;

}

.documentation-nav li{

    margin-bottom:6px;

}

.documentation-nav a{

    display:flex;

    align-items:center;

    gap:14px;

    padding:12px 16px;

    border-radius:12px;

    transition:var(--transition);

    color:#4B5563;

    font-weight:500;

}

.documentation-nav a i{

    width:22px;

    text-align:center;

    color:var(--primary);

}

.documentation-nav a:hover{

    background:var(--primary-light);

    color:var(--primary);

}

.documentation-nav a.active{

    background:var(--primary);

    color:#fff;

}

.documentation-nav a.active i{

    color:#fff;

}
/* ==========================================================
   Main Content
========================================================== */

.documentation-content{

    min-width:0;

}

.documentation-breadcrumb{

    display:flex;

    align-items:center;

    gap:12px;

    margin-bottom:35px;

    color:#6B7280;

    font-size:14px;

}

.documentation-breadcrumb i{

    font-size:11px;

    color:#9CA3AF;

}

.documentation-breadcrumb a{

    color:inherit;

    text-decoration:none;

}

.documentation-breadcrumb a:hover,
.documentation-breadcrumb a:focus-visible{

    color:var(--primary);

    text-decoration:underline;

}


/* ==========================================================
   Documentation Sections
========================================================== */

.doc-section{

    background:#fff;

    border-radius:22px;

    padding:50px;

    margin-bottom:40px;

    border:1px solid var(--border);

    box-shadow:var(--shadow);

    scroll-margin-top:130px;

}

.section-header{

    margin-bottom:35px;

}

.section-badge{

    display:inline-flex;

    align-items:center;

    gap:10px;

    padding:8px 18px;

    background:var(--primary-light);

    color:var(--primary);

    border-radius:40px;

    font-size:13px;

    font-weight:700;

    margin-bottom:20px;

}

.section-header h2{

    margin-bottom:18px;

}

.section-header h2{

    display:flex;

    align-items:center;

    gap:10px;

}

.heading-copy-link{

    display:inline-flex;

    align-items:center;

    justify-content:center;

    width:30px;

    height:30px;

    border-radius:8px;

    color:var(--primary);

    font-size:14px;

    text-decoration:none;

    opacity:.72;

}

.heading-copy-link:hover,
.heading-copy-link:focus-visible{

    background:var(--primary-light);

    color:var(--primary);

    opacity:1;

}

.section-header p{

    max-width:900px;

    color:#64748B;

    font-size:17px;

}

/* ==========================================================
   Article Content
========================================================== */

.article-meta{

    display:flex;
    flex-wrap:wrap;
    gap:10px;
    padding:0;
    margin:0 0 34px;
    list-style:none;

}

.article-meta li{

    padding:9px 13px;
    border:1px solid var(--border);
    border-radius:10px;
    background:#F8FAFC;
    color:#475569;
    font-size:14px;

}

.article-meta strong{

    color:var(--dark);

}

.article-content{

    max-width:920px;

}

.article-content h3{

    margin:38px 0 14px;
    font-size:21px;
    color:var(--dark);

}

.article-content h3:first-child{

    margin-top:0;

}

.article-content p + p{

    margin-top:14px;

}

.navigation-path{

    display:inline-flex;
    padding:12px 16px;
    border-radius:10px;
    background:var(--primary-light);
    color:var(--primary);
    font-weight:600;
    font-size:14px;

}

.doc-checklist,
.doc-steps{

    padding-left:24px;
    color:#475569;

}

.doc-checklist li,
.doc-steps li{

    padding-left:8px;
    margin:12px 0;

}

.doc-checklist li::marker{

    color:var(--success);

}

.doc-steps li::marker{

    color:var(--primary);
    font-weight:800;

}

.related-articles{

    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(230px,1fr));
    gap:12px;

}

.related-articles a{

    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    padding:15px 17px;
    border:1px solid var(--border);
    border-radius:12px;
    background:#F8FAFC;
    color:var(--dark);
    font-weight:600;

}

.related-articles a:hover{

    color:var(--primary);
    border-color:var(--primary);

}

.related-articles i{

    color:var(--primary);

}

.article-pagination{

    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:16px;
    margin-top:30px;
    padding-top:24px;
    border-top:1px solid var(--border);

}

.article-pagination a{

    display:flex;
    align-items:center;
    gap:9px;
    color:var(--primary);
    font-size:14px;
    font-weight:700;

}

.article-pagination a:last-child{

    margin-left:auto;
    text-align:right;

}

.video-unavailable{

    display:flex;
    align-items:center;
    gap:10px;
    padding:16px 18px;
    border-radius:12px;
    background:#F8FAFC;
    border:1px dashed #CBD5E1;
    color:#64748B;
    font-size:14px;

}

.video-unavailable i{

    color:var(--primary);

}

.table-wrap{

    overflow-x:auto;
    margin:28px 0;
    border:1px solid var(--border);
    border-radius:14px;

}

.doc-table{

    width:100%;
    min-width:650px;
    border-collapse:collapse;
    text-align:left;

}

.doc-table th,
.doc-table td{

    padding:16px 18px;
    border-bottom:1px solid var(--border);
    vertical-align:top;

}

.doc-table thead th{

    background:#F8FAFC;
    color:var(--dark);
    font-size:14px;

}

.doc-table tbody th{

    color:var(--dark);
    font-size:14px;

}

.doc-table tbody tr:last-child th,
.doc-table tbody tr:last-child td{

    border-bottom:0;

}

@media(max-width:768px){

    .article-pagination{

        align-items:stretch;
        flex-direction:column;

    }

    .article-pagination a:last-child{

        margin-left:0;
        text-align:left;

    }

}


/* ==========================================================
   Feature Cards
========================================================== */

.feature-grid{

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(260px,1fr));

    gap:25px;

}

.feature-card{

    background:#fff;

    padding:30px;

    border-radius:18px;

    border:1px solid var(--border);

    transition:var(--transition);

}

.feature-card:hover{

    transform:translateY(-8px);

    box-shadow:var(--shadow-lg);

}

.feature-card i{

    width:64px;

    height:64px;

    display:flex;

    align-items:center;

    justify-content:center;

    border-radius:16px;

    margin-bottom:22px;

    background:var(--primary-light);

    color:var(--primary);

    font-size:28px;

}

.feature-card h3{

    margin-bottom:12px;

}

.feature-card p{

    margin:0;

}


/* ==========================================================
   Quick Links
========================================================== */

.quick-links{

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));

    gap:22px;

}

.quick-links a{

    display:flex;

    align-items:center;

    gap:18px;

    padding:24px;

    background:#fff;

    border-radius:18px;

    border:1px solid var(--border);

    transition:.3s;

}

.quick-links a:hover{

    transform:translateY(-6px);

    box-shadow:var(--shadow);

}

.quick-links i{

    width:54px;

    height:54px;

    display:flex;

    align-items:center;

    justify-content:center;

    border-radius:14px;

    background:var(--primary-light);

    color:var(--primary);

    font-size:22px;

}

.quick-links span{

    font-weight:600;

}


/* ==========================================================
   Overview List
========================================================== */

.overview-list{

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(260px,1fr));

    gap:18px;

}

.overview-list div{

    display:flex;

    align-items:center;

    gap:14px;

    padding:18px 22px;

    border-radius:14px;

    background:#F8FAFC;

    border:1px solid var(--border);

}

.overview-list i{

    color:var(--success);

}


/* ==========================================================
   FAQ Accordion
========================================================== */

.faq-accordion{

    display:grid;
    gap:14px;
    margin:24px 0 32px;

}

.faq-accordion details{

    border:1px solid var(--border);
    border-radius:14px;
    background:#FFFFFF;
    overflow:hidden;

}

.faq-accordion summary{

    cursor:pointer;
    list-style:none;
    padding:18px 54px 18px 22px;
    position:relative;
    font-weight:700;
    color:var(--dark);

}

.faq-accordion summary::-webkit-details-marker{

    display:none;

}

.faq-accordion summary::after{

    content:"+";
    position:absolute;
    right:22px;
    top:50%;
    transform:translateY(-50%);
    color:var(--primary);
    font-size:24px;
    font-weight:500;

}

.faq-accordion details[open] summary::after{

    content:"−";

}

.faq-answer{

    border-top:1px solid var(--border);
    padding:18px 22px 22px;
    color:#4B5563;

}

.faq-answer p{

    margin:0;

}

.faq-answer a{

    font-weight:700;

}


/* ==========================================================
   Screenshot
========================================================== */

.doc-image{

    margin:35px 0;

    border-radius:18px;

    overflow:hidden;

    border:1px solid var(--border);

    box-shadow:var(--shadow);

}

.doc-image img{

    width:100%;

    height:auto;

    display:block;

}

/* Keep full-interface screenshots readable without enlarging them to the
   full documentation column. */
.doc-image--screen{

    max-width:860px;

    margin-left:auto;

    margin-right:auto;

    background:#F9FAFB;

}

.doc-image--screen img{

    object-fit:contain;

}

.doc-caption{

    background:#F9FAFB;

    padding:18px 25px;

    font-size:14px;

    color:#6B7280;

}


/* ==========================================================
   Info Boxes
========================================================== */

.notice{

    display:flex;

    gap:18px;

    padding:22px 25px;

    border-radius:16px;

    margin:30px 0;

    border-left:5px solid;

}

.notice i{

    font-size:24px;

    margin-top:3px;

}

.notice-info{

    background:#EEF6FF;

    border-color:#3B82F6;

}

.notice-info i{

    color:#3B82F6;

}

.notice-success{

    background:#ECFDF5;

    border-color:#10B981;

}

.notice-success i{

    color:#10B981;

}

.notice-warning{

    background:#FFF7ED;

    border-color:#F59E0B;

}

.notice-warning i{

    color:#F59E0B;

}

.notice-danger{

    background:#FEF2F2;

    border-color:#EF4444;

}

.notice-danger i{

    color:#EF4444;

}


/* ==========================================================
   Code Block
========================================================== */

.code-block{

    position:relative;

    margin:30px 0;

    border-radius:16px;

    overflow:hidden;

    background:#111827;

}

.code-header{

    display:flex;

    justify-content:space-between;

    align-items:center;

    padding:14px 22px;

    background:#1F2937;

    color:#fff;

}

.copy-btn{

    border:none;

    background:var(--primary);

    color:#fff;

    padding:8px 16px;

    border-radius:8px;

    cursor:pointer;

}

.code-block pre{

    overflow:auto;

    padding:30px;

    color:#E5E7EB;

    font-size:15px;

    line-height:1.7;

}


/* ==========================================================
   Footer
========================================================== */

.documentation-footer{

    margin-top:60px;

    background:#111827;

    color:#fff;

    border-radius:22px;

    padding:55px;

    text-align:center;

}

.footer-links{

    display:flex;

    justify-content:center;

    gap:28px;

    flex-wrap:wrap;

    margin:30px 0;

}

.footer-links a{

    color:#D1D5DB;

}

.footer-links a:hover{

    color:#fff;

}

.copyright{

    margin-top:25px;

    color:#9CA3AF;

    font-size:14px;

}


/* ==========================================================
   Responsive
========================================================== */

@media(max-width:1200px){

.documentation-layout{

grid-template-columns:1fr;

}

.documentation-sidebar{

position:relative;

top:0;

max-height:none;

}

}

@media(max-width:768px){

.hero{

padding:70px 0;

}

.hero h1{

font-size:38px;

}

.hero-stats{

grid-template-columns:1fr;

}

.doc-section{

padding:30px;

}

.header-actions{

display:none;

}

.mobile-menu-btn{

display:flex;

align-items:center;

justify-content:center;

}

.feature-grid,
.quick-links,
.overview-list{

grid-template-columns:1fr;

}

.documentation-footer{

padding:35px 25px;

}

}
/* ===========================================
Back To Top
=========================================== */

.back-to-top{

position:fixed;

right:30px;

bottom:30px;

width:55px;

height:55px;

border:none;

border-radius:50%;

background:var(--primary);

color:#fff;

cursor:pointer;

font-size:18px;

opacity:0;

visibility:hidden;

transition:.3s;

box-shadow:var(--shadow-lg);

z-index:9999;

}

.back-to-top.show{

opacity:1;

visibility:visible;

}

.back-to-top:hover{

transform:translateY(-4px);

background:var(--primary-dark);

}

/* ===========================================
Mobile Sidebar
=========================================== */

@media(max-width:1200px){

.documentation-sidebar{

position:fixed;

left:-360px;

top:0;

height:100vh;

width:320px;

z-index:9999;

transition:.35s;

border-radius:0;

}

.documentation-sidebar.open{

left:0;

}

.sidebar-close{

display:block;

}

}
