/*
Theme Name: آیه‌ها و داده‌ها
Theme URI: https://ayehavadadeha.ir
Author: Mohammad Kiani
Author URI: https://ayehavadadeha.ir
Description: قالب اختصاصی سایت آیه‌ها و داده‌ها
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: ayehavadadeha
*/

/* ===== ریست و پایه ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background: #0a0a0a;
    color: #fff;
    font-family: Vazirmatn, Tahoma, sans-serif;
    padding-bottom: 90px;
    padding-top: 72px;
    direction: rtl;
}

@media (max-width: 1150px) {
    body { padding-top: 64px; }
}

a { color: inherit; text-decoration: none; }

/* ===== هدر شیشه‌ای ===== */
#glass-header-root {
    position: fixed; top: 0; left: 0; right: 0;
    height: 72px; z-index: 99999;
    display: flex; align-items: center; justify-content: center;
    padding: 0 20px; direction: rtl;
    font-family: Vazirmatn, Tahoma;
    background: rgba(10,10,10,0.78);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.gh-inner {
    width: 100%; max-width: 1440px;
    display: flex; align-items: center; justify-content: space-between;
    gap: 16px;
}

.gh-logo {
    width: 58px; height: 58px;
    display: flex; align-items: center; justify-content: center;
    text-decoration: none;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 14px; overflow: hidden;
}

.gh-logo img { width: 90%; height: 90%; object-fit: contain; }

.gh-nav {
    display: flex; align-items: center; gap: 6px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    padding: 6px; border-radius: 100px;
    backdrop-filter: blur(12px);
}

.gh-nav-item { position: relative; }

.gh-nav-link {
    color: rgba(255,255,255,0.85);
    font-size: 13.5px; font-weight: 500;
    display: flex; align-items: center; gap: 5px;
    padding: 8px 14px; border-radius: 100px;
    cursor: pointer; text-decoration: none;
}

.gh-nav-link:hover { color: #fff; background: rgba(255,255,255,0.08); }

.gh-dd {
    position: absolute; top: calc(100% + 12px); right: 0;
    min-width: 280px; background: rgba(18,18,18,0.92);
    backdrop-filter: blur(32px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px; padding: 12px;
    opacity: 0; pointer-events: none;
    transform: translateY(12px) scale(0.96);
    transition: all .35s; z-index: 10;
}

.gh-nav-item:hover .gh-dd { opacity: 1; pointer-events: auto; transform: translateY(0) scale(1); }

.gh-dd a {
    display: block; padding: 11px 14px; border-radius: 12px;
    color: rgba(255,255,255,0.7);
    text-decoration: none; font-size: 13px;
}

.gh-dd a:hover { background: rgba(255,255,255,0.08); color: #fff; }

.gh-left { display: flex; align-items: center; gap: 10px; }

.gh-search {
    width: 42px; height: 42px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,0.8); cursor: pointer;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
}

.gh-search svg { width: 18px; height: 18px; }

.gh-btn-glass {
    background: rgba(255,255,255,0.08); color: #fff;
    padding: 0 18px; height: 42px; border-radius: 100px;
    font-size: 13.5px; border: 1px solid rgba(255,255,255,0.12);
    display: flex; align-items: center; gap: 6px;
    text-decoration: none;
}

.gh-btn-white {
    background: #fff; color: #000;
    padding: 0 22px; height: 42px; border-radius: 100px;
    font-weight: 800; font-size: 13.5px;
    display: flex; align-items: center; gap: 6px;
    text-decoration: none;
}

.gh-mid, .gh-ham { display: none; }
.gh-mob-search-prof { display: none; }

/* ===== موبایل ===== */
@media (max-width: 1150px) {
    #glass-header-root {
        height: 64px; padding: 0 16px;
        background: rgba(10,10,10,0.85);
    }
    .gh-nav, .gh-btn-glass, .gh-btn-white, .gh-search { display: none !important; }
    .gh-inner {
        display: grid !important;
        grid-template-columns: 50px 1fr 50px;
        align-items: center; gap: 0; direction: ltr;
    }
    .gh-right { grid-column: 1; justify-content: flex-start; display: flex; }
    .gh-mid { grid-column: 2; display: flex !important; justify-content: center; align-items: center; }
    .gh-left { grid-column: 3; justify-content: flex-end; display: flex; }
    .gh-logo {
        width: 46px; height: 46px;
        background: none !important; border: none !important;
        border-radius: 0 !important; backdrop-filter: none !important;
    }
    .gh-logo img { width: 100%; height: 100%; }
    .gh-ham {
        display: flex !important;
        width: 28px; height: 20px;
        background: none !important; border: none !important;
        border-radius: 0 !important;
        flex-direction: column; align-items: center; justify-content: space-between;
        gap: 0; cursor: pointer; padding: 2px 0;
    }
    .gh-ham span {
        width: 22px; height: 2.2px; background: #fff;
        border-radius: 2px; display: block; transition: all .25s;
    }
    .gh-ham.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .gh-ham.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
    .gh-ham.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
    .gh-mob-search-prof {
        display: flex !important;
        align-items: center; justify-content: center;
        cursor: pointer; width: 36px; height: 36px;
        border-radius: 50%; background: transparent;
        border: none; transition: all .2s;
    }
    .gh-mob-search-prof:hover { background: rgba(255,255,255,0.08); }
    .gh-mob-search-prof svg { width: 20px; height: 20px; color: #fff; opacity: 0.9; }
    .gh-search-expand {
        position: fixed; top: 64px; left: 0; right: 0;
        background: rgba(12,12,12,0.95);
        backdrop-filter: blur(24px);
        border-bottom: 1px solid rgba(255,255,255,0.06);
        padding: 12px 16px;
        transform: translateY(-100%); opacity: 0; pointer-events: none;
        transition: all .35s cubic-bezier(0.32,0.72,0,1);
        z-index: 99998; display: flex; gap: 10px;
    }
    .gh-search-expand.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
    .gh-search-expand input {
        flex: 1; background: rgba(255,255,255,0.06);
        border: 1px solid rgba(255,255,255,0.1);
        border-radius: 14px; padding: 12px 16px;
        color: #fff; font-family: Vazirmatn, Tahoma;
        font-size: 14px; outline: none;
    }
    .gh-search-expand input::placeholder { color: rgba(255,255,255,0.4); }
    .gh-search-expand button {
        background: #fff; color: #000; border: none;
        border-radius: 12px; padding: 0 18px;
        font-weight: 700; font-family: Vazirmatn; cursor: pointer;
    }
}

/* ===== دراور و اورلی ===== */
#glass-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(8px);
    z-index: 99998; display: none; opacity: 0;
    transition: opacity .35s;
}
#glass-overlay.open { display: block; opacity: 1; }

#glass-drawer {
    position: fixed; top: 0; right: 0; bottom: 0;
    width: 340px; max-width: 85vw;
    background: rgba(12,12,12,0.97);
    backdrop-filter: blur(40px);
    border-left: 1px solid rgba(255,255,255,0.08);
    z-index: 100000;
    transform: translateX(100%);
    transition: transform .45s cubic-bezier(0.32,0.72,0,1);
    overflow-y: auto; direction: rtl;
    font-family: Vazirmatn, Tahoma;
}
#glass-drawer.open { transform: translateX(0); }

/* ===== بنر هیرو ===== */
#custom-hero-banner { width: 100%; background: #000; line-height: 0; }
#custom-hero-banner img { width: 100%; height: auto; display: block; }

/* ===== کارت‌های مسیر رشد ===== */
.tr-block { padding: 20px 16px; background: #0a0a0a; }
.tr-track {
    display: flex; gap: 12px;
    overflow-x: auto; max-width: 1440px; margin: 0 auto;
}
.tr-track::-webkit-scrollbar { display: none; }
.tr-card {
    min-width: 160px; width: 160px;
    background: #141414; border: 1px solid #1a1a1a;
    border-radius: 18px; overflow: hidden;
    position: relative; flex-shrink: 0;
}
.tr-card img { width: 100%; height: 160px; object-fit: cover; }

/* ===== نوار پایین موبایل ===== */
#snapp-bottom-nav-root {
    position: fixed; bottom: 16px; left: 12px; right: 12px;
    height: 72px;
    background: rgba(10,10,10,0.92);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(201,168,106,0.18);
    border-radius: 22px;
    display: flex; justify-content: space-around; align-items: center;
    z-index: 999999;
    font-family: Vazirmatn, Tahoma, sans-serif;
    direction: rtl; padding: 0 6px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.5), 0 0 0 1px rgba(201,168,106,0.08) inset;
}

.sbn-item {
    flex: 1; display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: 3px; color: rgba(255,255,255,0.5);
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.34,1.56,0.64,1);
    padding: 6px 2px; border-radius: 14px;
    position: relative;
    -webkit-tap-highlight-color: transparent;
}

.sbn-item .sbn-icon {
    width: 28px; height: 28px;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; transition: all 0.25s;
}

.sbn-item .sbn-label { font-size: 10.5px; font-weight: 500; letter-spacing: 0.2px; }
.sbn-item.active { color: #c9a86a; }
.sbn-item.active .sbn-icon { transform: translateY(-2px) scale(1.1); }
.sbn-item.active .sbn-label { font-weight: 700; }
.sbn-item.active::after {
    content: ''; position: absolute; bottom: -2px;
    width: 18px; height: 3px; background: #c9a86a;
    border-radius: 10px; opacity: 0.9;
}
.sbn-item:active { transform: scale(0.92); }
.sbn-item:active .sbn-icon { transform: scale(0.9); }

body { padding-bottom: 110px !important; }

@media (min-width: 1024px) {
    #snapp-bottom-nav-root { display: none !important; }
    body { padding-bottom: 0 !important; }
}