/* about.css — "Haqida" / Yordam modali uchun uslublar.
   Naqsh stage-modal.css bilan bir xil oilada: to'q fon, blur overlay.
   Noutbuk/desktop'da oyna kenglikning 80%'ini, planshet/telefonda esa
   ekranning 100%'ini (to'liq ekran) egallaydi. */

.about-overlay {
    display: none;
    position: fixed;
    /* MUHIM: `inset:0` o'rniga alohida top/right/bottom/left ishlatilmoqda.
       Ba'zi eski mobil brauzer/WebView'larda (`inset` shorthand hali
       qo'llab-quvvatlanmaydigan) `inset:0` umuman ta'sir qilmay,
       overlay ekranni to'ldirmasdan, kontent oqimidagi joyida kichik
       holda qolib ketishi mumkin — bu aynan "telefonda ishlamayapti"
       kabi ko'rinadi. Aniq offsetlar hamma joyda ishlaydi. */
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(0, 0, 0, .85);
    backdrop-filter: blur(6px);
    /* .mobile-nav (style.css) ham z-index:9999 ishlatadi — DOM tartibiga
       ishonib qolmaslik uchun (dinamik qo'shiladigan overlay ba'zan
       kutilmagan joyda "ostda" qolib ketishi mumkin), aniq yuqoriroq
       qiymat beramiz. */
    z-index: 100002;
    align-items: center;
    justify-content: center;
}
.about-overlay.open { display: flex; }

.about-box {
    background: #111827;
    border-radius: 20px;
    width: 80%;
    max-width: 900px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .6);
    overflow: hidden;
}

/* Planshet va telefonlarda — to'liq ekran (100%) */
@media (max-width: 1024px) {
    .about-box {
        width: 100%;
        /* `100%` — ota elementning (overlay) balandligiga bog'liq bo'lib,
           agar u biror sababdan aniq (definite) bo'lmasa (masalan `inset`
           qo'llab-quvvatlanmasa), 100% ham 0'ga aylanib qolishi mumkin.
           `100vh`/`100dvh` esa har doim aniq qiymat beradi — mobil
           brauzer manzil paneli hisobga olingan `100dvh` afzal, uni
           qo'llab-quvvatlamaydigan brauzerlar uchun `100vh` fallback. */
        height: 100vh;
        height: 100dvh;
        max-height: 100vh;
        max-height: 100dvh;
        max-width: 100%;
        border-radius: 0;
    }
}

.about-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    flex-shrink: 0;
}
.about-header h2 {
    color: #fff;
    font-size: 28px;
    margin: 0;
}
.about-close-btn {
    background: #1f2937;
    color: #fff;
    border: none;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 16px;
    flex-shrink: 0;
}
.about-close-btn:hover { background: #374151; }

.about-body {
    overflow-y: auto;
    flex: 1;
}

.about-item { border-bottom: 1px solid rgba(255, 255, 255, .06); }
.about-item:last-child { border-bottom: none; }

.about-item-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 16px 20px;
    cursor: pointer;
    user-select: none;
    color: #fff;
    font-size: 25px;
    font-weight: 600;
    transition: background .15s;
}
.about-item-header:hover { background: rgba(255, 255, 255, .03); }

.about-item-arrow {
    flex-shrink: 0;
    font-size: 12px;
    color: #60a5fa;
    display: inline-block;
    transition: transform .25s ease;
}
/* Yopiq holat: △ (yuqoriga qaragan uchburchak) */
.about-item-arrow::before { content: "\25B3"; }
/* Ochiq holat: ◁ (chapga qaragan uchburchak) — 90° aylantirish orqali */
.about-item.open .about-item-arrow { transform: rotate(-90deg); }

.about-item-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
    color: #d1d5db;
    font-size: 20px;
    line-height: 1.75;
    padding: 0 20px;
}
.about-item.open .about-item-content {
    max-height: 1000px;
    padding: 0 20px 18px;
}

.about-item-content p { margin: 0 0 10px; }
.about-item-content p:last-child { margin-bottom: 0; }
.about-item-content ul { margin: 0 0 10px; padding-left: 18px; }
.about-item-content li { margin-bottom: 4px; }

.about-mini-heading {
    color: #60a5fa;
    font-size: 12.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    margin: 14px 0 6px;
}
.about-mini-heading:first-child { margin-top: 0; }
.about-mini-note {
    color: #6b7280;
    font-size: 20px;
    margin: -4px 0 8px;
    font-style: italic;
}

.about-shortcuts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2px 14px;
}
.about-kbd-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 3px 0;
    font-size: 18px;
    line-height: 1.3;
}
.about-kbd-row span:first-child {
    color: #9ca3af;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.about-kbd {
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 6px;
    padding: 1px 7px;
    font-size: 18px;
    color: #60a5fa;
    font-family: monospace;
    white-space: nowrap;
    flex-shrink: 0;
}

.about-telegram-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #2563eb;
    color: #fff;
    text-decoration: none;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 14.5px;
    font-weight: 600;
    margin-top: 8px;
    transition: background .15s;
}
.about-telegram-btn:hover { background: #1d4ed8; }
