/* ==========================================================
   Abramad Mirror
   By: SysOps Team
========================================================== */

/* Same tokens as the docs site itself (app/app.css) — kept in sync so this
   embedded page reads as part of the docs UI instead of a bolted-on widget. */
:root{

    --primary:#0f62fe;
    --primary-hover:hsl(243, 77%, 42%);

    --success:#16A34A;

    /* --bg matches the docs page's own <main> background (--ui-bg-elevated),
       so the embed sits flush with no visible seam; --surface (cards) is one
       tier up (--ui-bg-accented) for contrast within the embed itself. */
    --bg:hsl(0, 0%, 100%);

    --surface:hsl(204, 14%, 93%);

    --border:hsl(204, 14%, 93%);

    --text:hsl(219, 13%, 31%);

    --muted:hsl(214, 9%, 53%);

    --notice:hsl(214, 100%, 58%, .08);

    --shadow:
        0 1px 2px rgba(15,23,42,.04);

    --radius:12px;

    --transition:.25s ease;

}

.dark{

    --primary:hsl(234, 100%, 72%);
    --primary-hover:hsl(231, 100%, 84%);

    --success:#22C55E;

    --bg:hsl(225, 16%, 20%);

    --surface:hsl(219, 13%, 31%);

    --border:hsl(221, 15%, 25%);

    --text:hsl(204, 14%, 93%);

    --muted:hsl(210, 12%, 73%);

    --notice:hsl(234, 100%, 72%, .12);

    --shadow:none;

}

*{

    margin:0;
    padding:0;
    box-sizing:border-box;

}

html{

    scroll-behavior:smooth;

}

body{

    direction:ltr;

    background:var(--bg);

    color:var(--text);

    font-family:
        fanoos,
        "Hamkaran-System",
        Tahoma,
        sans-serif;

}

.container{

    /* Full width of the iframe — the iframe itself already sits inside the
       docs page's own content column, so this aligns with the page title
       above it instead of adding its own extra side gutters. */
    width:100%;

    margin:auto;

}

a{

    color:inherit;

    text-decoration:none;

}

button,
select{

    font-family:inherit;

}


.header{

    background:white;

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

    position:sticky;

    top:0;

    z-index:100;

}

.header .container{

    display:grid;

    grid-template-columns:260px 1fr auto;

    align-items:center;

    gap:40px;

    height:82px;

}

.brand-link{

    display:flex;

    align-items:center;

    gap:14px;

}

.brand-logo{

    width:50px;

    height:50px;

    border-radius:14px;

    background:linear-gradient(
        135deg,
        #2563EB,
        #3B82F6
    );

    color:white;

    display:flex;

    justify-content:center;

    align-items:center;

    font-size:24px;

    font-weight:700;

}

.brand-title{

    direction:rtl;

}

.brand-title h1{

    font-size:22px;

}

.brand-title span{

    color:var(--muted);

    font-size:13px;

}

.top-nav{

    display:flex;

    justify-content:center;

    gap:34px;

    direction:rtl;

}

.top-nav a{

    color:var(--muted);

    transition:var(--transition);

}

.top-nav a:hover{

    color:var(--primary);

}

.status{

    display:flex;

    align-items:center;

    gap:8px;

    font-size:14px;

    color:var(--success);

}

.status-dot{

    width:10px;

    height:10px;

    border-radius:50%;

    background:var(--success);

}


.hero{

    /* Was 55px — the docs page's own header/title area already provides
       breathing room above the embed, so this only needs to clear it a bit. */
    margin:8px 0 40px;
    width: 100%;

}

.hero-content{

    direction:rtl;
    width: 100%;

}

.hero-badge{

    display:inline-flex;

    padding:7px 14px;

    border-radius:999px;

    background:#DBEAFE;

    color:#1E40AF;

    font-size:13px;

    margin-bottom:18px;

}

.hero h2{

    font-size:38px;

    margin-bottom:20px;

}

.hero p{

    color:var(--muted);

    font-size:18px;

    line-height:2.2;

    max-width:100%;

}


.repository-header{

    display:flex;

    align-items:center;

    justify-content:center;

    gap:12px;

    margin-bottom:10px;

}

.repository-header img{

    width:34px;

    height:34px;

}

.repository-header h3{

    margin:0;

}
.repository-tabs{

    display:grid;

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

    gap:20px;

    margin-bottom:35px;

}

.repository-card{

    background:var(--surface);
    border:1px solid var(--border);
    border-radius:var(--radius);
    padding:18px 22px;
    min-height:170px;
    cursor:pointer;
    transition:var(--transition);
    position:relative;
    overflow:hidden;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    direction:ltr;
    text-align:center;
    box-shadow:var(--shadow);
    width:100%;
    appearance:none;
    -webkit-appearance:none;

}

.repository-card:hover{

    transform:translateY(-3px);

    border-color:var(--primary);

}

.repository-card.active{

    border-color:var(--border);
    box-shadow:var(--shadow);

}

.repository-card.active::before{

    content:"";

    position:absolute;

    left:20px;

    right:20px;

    bottom:8px;

    height:3px;

    border-radius:999px;

    background:var(--primary);

}

.repository-icon{

    display:flex;
    justify-content:center;
    align-items:center;
/*    font-size:42px; */
    margin-bottom:12px;

}

.repository-icon img{

    width:64px;
    height:64px;

}
.repository-card h3{

    font-size:22px;

    margin-bottom:8px;

}

.repository-card span{

    color:var(--muted);

    font-size:14px;

}


.documentation-layout{

    display:grid;

    grid-template-columns:280px 1fr;

    gap:28px;

    margin-bottom:50px;

}

.sidebar{

    direction:rtl;

}

.sidebar-card{

    background:var(--surface);

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

    border-radius:var(--radius);

    padding:22px;

    margin-bottom:20px;

    box-shadow:var(--shadow);

}

.sidebar label{

    display:block;

    margin-bottom:10px;

    font-weight:600;

}

.sidebar select{

    width:100%;

    padding:13px;

    border-radius:10px;

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

    background:var(--surface);

    color:var(--text);

    font-size:15px;

}

.sidebar ul{

    margin-top:15px;

    padding-right:18px;

    color:var(--muted);

    line-height:2;

}

.documentation{

    background:var(--surface);

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

    border-radius:var(--radius);

    padding:35px;

    direction:rtl;

    box-shadow:var(--shadow);

    /* Grid items default to a content-based automatic minimum width, so a wide
       config block (e.g. Rocky Linux's multi-section .repo file) can force this
       track past its 1fr share even though .code-block itself scrolls. */
    min-width:0;

}

.documentation-header h2{

    margin-bottom:12px;

}

.documentation-header p{

    color:var(--muted);

    margin-bottom:30px;

}


.repository-address{

    display:flex;
    justify-content:space-between;
    align-items:center;
    background:var(--notice);
    border:1px solid var(--border);
    border-radius:14px;
    padding:20px;
    margin-bottom:24px;
    direction:ltr;

}

.address-title{

    display:block;

    font-size:13px;

    color:var(--muted);

    margin-bottom:8px;

}

#repositoryAddress{

    direction:ltr;

    font-family:monospace;

    font-size:15px;

}

.copy-address{

    border:none;

    background:var(--primary);

    color:white;

    padding:10px 16px;

    border-radius:10px;

    cursor:pointer;

}

.copy-address:hover{

    background:var(--primary-hover);

}


.notice{

    background:var(--notice);

    border-right:4px solid var(--primary);

    border-radius:14px;

    padding:20px;

    margin-bottom:30px;

}

.notice-title{

    font-weight:700;

    margin-bottom:10px;

}

.notice-text{

    color:var(--muted);

    line-height:2;

}


.doc-section{

    margin-bottom:38px;

}

.doc-section h3{

    margin-bottom:16px;

}

.file-path{

    direction:ltr;

    text-align:left;

    background:var(--bg);

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

    border-radius:12px;

    padding:16px;

    font-family:monospace;

}

.code-container{

    margin-top:15px;

}

.code-header{

    display:flex;

    justify-content:space-between;

    align-items:center;

    background:#0F172A;

    color:white;

    padding:12px 18px;

    border-radius:14px 14px 0 0;

}

.copy-code{

    background:white;

    color:#111827;

    border:none;

    padding:7px 14px;

    border-radius:8px;

    cursor:pointer;

}

.code-block{

    background:#111827;

    color:#F9FAFB;

    padding:22px;

    overflow:auto;

    border-radius:0 0 14px 14px;

    direction:ltr;

    text-align:left;

}

.code-block code{

    white-space:pre-wrap;

    font-family:Consolas,monospace;

    line-height:1.8;

}

.code-block *::selection{

    background:var(--primary);

    color:white;

}


.footer{

    background:white;

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

    margin-top:40px;

}

.footer .container{

    display:flex;

    justify-content:space-between;

    align-items:center;

    padding:30px 0;

    direction:rtl;

}

.footer p,
.footer span{

    color:var(--muted);

}

.footer-right{

    display:flex;

    gap:20px;

    align-items:center;

}


@media(max-width:960px){

    .header .container{

        grid-template-columns:1fr;

        height:auto;

        padding:18px 0;

        gap:20px;

    }

    .top-nav{

        flex-wrap:wrap;

    }

    .repository-tabs{

        grid-template-columns:1fr;

    }

    .documentation-layout{

        grid-template-columns:1fr;

    }

    .repository-address{
        flex-direction:column;
        gap:20px;
        align-items:flex-start;

    }

    .footer .container{

        flex-direction:column;

        gap:12px;

    }

}
