/* =====================================================================
   dendrologiya.cloud — İCTİMAİ BİTKİ SƏHİFƏSİ
   Yer: public_html/assets/public.css

   MOBİL ÜÇÜN QURULUB: ziyarətçi bağda, günəş altında, telefonla oxuyur.
   - yüksək kontrast (açıq havada oxunaqlılıq)
   - iri şrift (kiçik mətn günəşdə oxunmur)
   - iri toxunma sahələri
   - xarici şrift YOXDUR (mobil internetdə hər sorğu vaxt itkisidir)
   ===================================================================== */

:root {
    --ink:        #1d2b24;
    --ink-soft:   #55655c;
    --muted:      #7b8b83;
    --line:       #e2e6e3;
    --bg:         #f5f7f5;
    --card:       #ffffff;
    --green:      #1b4332;
    --green-soft: #eaf1ec;
    --red:        #a8412b;
    --red-bg:     #fdeee9;
    --amber:      #92400e;
    --amber-bg:   #fef3c7;
    --radius:     14px;
    --shadow:     0 1px 2px rgba(20, 35, 28, .05), 0 8px 24px rgba(20, 35, 28, .05);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font: 400 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
}

img, svg, video { max-width: 100%; display: block; }
a { color: var(--green); }

/* ---------------- Üst panel ---------------- */
.topbar {
    position: sticky; top: 0; z-index: 20;
    display: flex; align-items: center; gap: 10px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, .94);
    backdrop-filter: saturate(160%) blur(8px);
    border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; color: var(--ink); flex: 1; min-width: 0; }
.brand-logo { width: 34px; height: 34px; flex: none; }
.brand-text { font-weight: 650; font-size: 15px; letter-spacing: -.01em; }
.code-chip {
    flex: none; font-size: 12px; font-weight: 600; letter-spacing: .07em;
    color: var(--muted); background: var(--bg);
    border: 1px solid var(--line); border-radius: 20px; padding: 4px 10px;
}

/* ---------------- Səhifə ---------------- */
.page { max-width: 720px; margin: 0 auto; padding: 0 0 32px; }

/* ---------------- Media lenti ----------------
   Şəkil və videolar tək lentdə. Sürüşdürmə brauzerin öz scroll-snap
   mexanizmidir — JS-siz işləyir, telefonda təbii hiss olunur. */
.media { position: relative; background: #16241e; }

.mstrip {
    /* position: relative — slaydların offsetLeft dəyəri məhz LENTƏ görə
       ölçülsün; JS aktiv slaydı və sürüşdürmə hədəfini bununla hesablayır. */
    position: relative;
    display: flex; overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.mstrip::-webkit-scrollbar { display: none; }

.mslide {
    position: relative; flex: 0 0 100%; scroll-snap-align: center;
    display: block; margin: 0; padding: 0; border: 0;
    background: #16241e; aspect-ratio: 4 / 3; overflow: hidden;
    cursor: zoom-in; -webkit-tap-highlight-color: transparent;
}
.mslide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mslide:focus-visible { outline: 3px solid #fff; outline-offset: -3px; }
.mblank { display: block; width: 100%; height: 100%; background: linear-gradient(160deg, #2f6b4f, #16241e); }

.mslide.is-video { cursor: pointer; }
.mplay {
    position: absolute; inset: 0; margin: auto;
    width: 70px; height: 70px; border-radius: 50%;
    background: rgba(255, 255, 255, .93);
    display: grid; place-items: center;
    box-shadow: 0 6px 24px rgba(0, 0, 0, .35);
    transition: transform .15s;
}
.mslide:active .mplay { transform: scale(.94); }
.mplay svg { width: 32px; height: 32px; fill: var(--green); margin-left: 4px; }

.mdur {
    position: absolute; right: 10px; top: 10px;
    background: rgba(15, 22, 18, .82); color: #fff;
    font-size: 12px; padding: 3px 8px; border-radius: 5px;
}
.mtag {
    position: absolute; left: 10px; bottom: 10px; max-width: calc(100% - 20px);
    background: rgba(15, 22, 18, .78); color: #fff;
    font-size: 12px; padding: 3px 9px; border-radius: 5px;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* Oxlar — barmaqla sürüşdürməyən masaüstü istifadəçi üçün */
.marrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 38px; height: 38px; border: 0; border-radius: 50%;
    background: rgba(255, 255, 255, .88); cursor: pointer;
    display: none; place-items: center; z-index: 2;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .25);
}
.marrow svg { width: 20px; height: 20px; fill: none; stroke: #16241e; stroke-width: 2.2;
              stroke-linecap: round; stroke-linejoin: round; }
.marrow.is-prev { left: 10px; }
.marrow.is-next { right: 10px; }
@media (hover: hover) and (min-width: 640px) { .marrow { display: grid; } }

.mdots {
    position: absolute; left: 0; right: 0; bottom: 10px;
    display: flex; justify-content: center; gap: 6px; z-index: 2; pointer-events: none;
}
.mdot {
    width: 7px; height: 7px; border-radius: 50%;
    background: rgba(255, 255, 255, .45); transition: background .2s, width .2s;
}
.mdot.is-on { background: #fff; width: 20px; border-radius: 4px; }

.mhint { margin: 9px 16px 0; font-size: 12.5px; color: var(--muted); text-align: center; }

@media (min-width: 640px) {
    .media { margin: 16px 16px 0; border-radius: var(--radius); overflow: hidden; }
    .mslide { aspect-ratio: 16 / 9; }
}

/* ---------------- Böyük baxış (modal) ---------------- */
body.lb-open { overflow: hidden; }

.lb {
    position: fixed; inset: 0; z-index: 90;
    background: rgba(9, 14, 11, .96);
    display: flex; flex-direction: column;
    padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom);
    animation: lbIn .18s ease-out;
}
.lb[hidden] { display: none; }
@keyframes lbIn { from { opacity: 0; } to { opacity: 1; } }

.lb-bar {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 14px; flex: none;
}
.lb-count { color: rgba(255, 255, 255, .72); font-size: 13.5px; font-variant-numeric: tabular-nums; }
.lb-x {
    width: 38px; height: 38px; border: 0; border-radius: 50%;
    background: rgba(255, 255, 255, .12); cursor: pointer; display: grid; place-items: center;
}
.lb-x svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; }
.lb-x:hover { background: rgba(255, 255, 255, .2); }

.lb-stage {
    flex: 1; min-height: 0; display: grid; place-items: center; padding: 0 12px;
}
.lb-stage img, .lb-stage video {
    max-width: 100%; max-height: 100%; display: block;
    border-radius: 6px; background: #000;
}

.lb-cap {
    flex: none; margin: 0; padding: 12px 18px calc(12px + env(safe-area-inset-bottom));
    color: rgba(255, 255, 255, .8); font-size: 13.5px; text-align: center;
}

.lb-nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 44px; height: 44px; border: 0; border-radius: 50%;
    background: rgba(255, 255, 255, .12); cursor: pointer;
    display: grid; place-items: center;
}
.lb-nav svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 2.2;
              stroke-linecap: round; stroke-linejoin: round; }
.lb-nav:hover { background: rgba(255, 255, 255, .22); }
.lb-nav[hidden] { display: none; }
.lb-nav.is-prev { left: 8px; }
.lb-nav.is-next { right: 8px; }
/* Telefonda oxlar barmağın altında qalmasın — sürüşdürmə var */
@media (max-width: 560px) { .lb-nav { width: 38px; height: 38px; opacity: .75; } }

/* ---------------- Zəhərlilik xəbərdarlığı ---------------- */
.warn-box {
    display: flex; gap: 12px; align-items: flex-start;
    margin: 16px; padding: 14px 15px;
    background: var(--red-bg); border: 1px solid #f2cec4;
    border-left: 4px solid var(--red); border-radius: var(--radius);
}
.warn-box svg { width: 24px; height: 24px; flex: none; fill: var(--red); margin-top: 1px; }
.warn-box strong { display: block; color: var(--red); font-size: 16px; margin-bottom: 3px; }
.warn-box p { margin: 0; font-size: 15px; line-height: 1.55; color: #7c3520; }

/* ---------------- Ad bloku ---------------- */
.title-block { padding: 18px 16px 4px; }
.title-block h1 {
    margin: 0 0 4px; font-size: 28px; line-height: 1.18;
    font-weight: 700; letter-spacing: -.02em;
}
.title-block .sci { margin: 0 0 2px; color: var(--ink-soft); font-size: 16px; }
.title-block .alt { margin: 6px 0 0; color: var(--muted); font-size: 14px; }

.badges { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.badge {
    font-size: 13px; font-weight: 600; padding: 5px 11px; border-radius: 20px;
    background: var(--green-soft); color: var(--green);
}
.badge.ok     { background: #dcf0e2; color: #1b4332; }
.badge.warn   { background: var(--amber-bg); color: var(--amber); }
.badge.danger { background: var(--red-bg); color: var(--red); }

/* ---------------- Giriş mətni ---------------- */
.intro { padding: 4px 16px 0; font-size: 17.5px; line-height: 1.65; }
.intro p { margin: 12px 0; }

/* ---------------- Kartlar ---------------- */
.card {
    background: var(--card); margin: 16px;
    padding: 16px 16px 18px; border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.card h2 {
    margin: 0 0 12px; font-size: 19px; font-weight: 650; letter-spacing: -.01em;
    color: var(--green);
}
.card h2.mt { margin-top: 20px; }
.card .body { font-size: 16.5px; line-height: 1.65; }
.card .body p  { margin: 10px 0; }
.card .body ul { margin: 8px 0; padding-left: 20px; }
.card .body li { margin: 7px 0; }
.card .body strong { font-weight: 650; }

/* Bölmə üslubları */
.sec-warning { border-left: 4px solid var(--red);   background: var(--red-bg); }
.sec-warning h2 { color: var(--red); }
.sec-info    { border-left: 4px solid #3b6ea5; }
.sec-info h2 { color: #2c5580; }
.sec-success { border-left: 4px solid #2f6b4f; }

.summary { background: var(--green-soft); box-shadow: none; }

/* ---------------- Faktlar ---------------- */
.facts { margin: 0; display: grid; gap: 0; }
.facts > div {
    display: flex; justify-content: space-between; gap: 14px;
    padding: 10px 0; border-bottom: 1px solid var(--line);
}
.facts > div:last-child { border-bottom: none; }
.facts dt { color: var(--ink-soft); font-size: 15px; flex: none; }
.facts dd { margin: 0; font-weight: 600; text-align: right; font-size: 15.5px; }

/* ---------------- Siyahılar ---------------- */
.taglist { list-style: none; margin: 0; padding: 0; }
.taglist li {
    padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 16px;
}
.taglist li:last-child { border-bottom: none; }
.taglist small { color: var(--muted); font-size: 14px; }

/* ---------------- Alt hissə ---------------- */
.foot {
    text-align: center; padding: 28px 20px 40px; color: var(--muted); font-size: 14px;
    border-top: 1px solid var(--line); margin-top: 8px;
}
.foot .brand-logo { width: 46px; height: 46px; margin: 0 auto 10px; }
.foot p { margin: 3px 0; }
.foot strong { color: var(--ink); font-size: 16px; }
.foot .muted { font-size: 13px; line-height: 1.6; margin-top: 8px; }
.foot a { display: inline-block; margin-top: 12px; font-weight: 600; }

/* =====================================================================
   MESAJ SƏHİFƏSİ (kod tanınmadı / hazırlanır)
   ===================================================================== */
.msg-page { display: grid; place-items: center; min-height: 100vh; padding: 24px; }
.msg { text-align: center; max-width: 380px; }
.msg .logo { width: 78px; height: 78px; margin: 0 auto 18px; }
.msg h1 { font-size: 23px; margin: 0 0 10px; font-weight: 700; }
.msg p { margin: 0 0 8px; color: var(--ink-soft); font-size: 16.5px; line-height: 1.6; }
.msg-hint {
    font-size: 14px !important; color: var(--muted) !important;
    background: #fff; border: 1px solid var(--line); border-radius: 10px;
    padding: 8px 12px; display: inline-block; margin-top: 6px !important;
}
.msg-btn {
    display: inline-block; margin-top: 20px; padding: 12px 22px;
    background: var(--green); color: #fff; text-decoration: none;
    border-radius: 10px; font-weight: 600; font-size: 15.5px;
}

/* ---------------- Böyük ekran ---------------- */
@media (min-width: 640px) {
    body { font-size: 17.5px; }
    .title-block h1 { font-size: 34px; }
    .page { padding-bottom: 40px; }
}

@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; }
}

/* =====================================================================
   RAST GƏLİNDİYİ YERLƏR — səhifənin ən başında, media-dan da əvvəl.
   QR-ı oxuyan ziyarətçi çox vaxt ağacın yanında dayanır; «bu növ harada
   bitir» sualı mətnin dərinliyində yox, ilk baxışda görünməlidir.
   ===================================================================== */
.where-bar {
    /* Hər şey bir sətirdə axsın; yer çatmayanda yalnız rozetlər aşağı keçsin.
       Etiketə `flex: 1 1 100%` VERMƏ — o, sətri tam tutur və nişanı da,
       rozeti də ayrı-ayrı sətirlərə itələyir (mobildə pis görünürdü). */
    display: flex; align-items: center; flex-wrap: wrap; gap: 5px 7px;
    padding: 10px 16px;
    background: #f2f7f3;
    border-bottom: 1px solid #dde8e0;
    font-size: 14px;
}
.where-icon { width: 16px; height: 16px; color: #2d6a4f; flex: none; }
.where-label {
    /* İfadə uzundur — böyük hərflə yazılsa sətir sıxılır və oxunmur.
       nowrap: ifadənin özü ortadan qırılmasın. */
    font-size: 13px; font-weight: 600; color: #5c6b63; white-space: nowrap;
}
.where-label::after { content: ':'; }
.where-list { display: flex; flex-wrap: wrap; gap: 5px; min-width: 0; }
.where-tag {
    padding: 2px 10px; border-radius: 20px;
    background: #fff; border: 1px solid #cfe0d5; color: #1b4332;
    font-weight: 600; font-size: 13px; white-space: nowrap;
}
@media (max-width: 400px) {
    /* Ən dar telefonlarda etiketi bir az kiçildirik ki, rozet yanında qalsın */
    .where-bar { padding: 9px 13px; }
    .where-label { font-size: 12.5px; }
    .where-tag { font-size: 12.5px; padding: 2px 9px; }
}


/* =====================================================================
   23.10.2026 ƏLAVƏLƏR — paylaş düyməsi, digər bitkilər, ictimai kataloq
   ===================================================================== */

/* ---------------- Paylaş (topbar) ---------------- */
.share-btn {
    flex: none; width: 38px; height: 38px; border-radius: 50%;
    border: 1px solid var(--line); background: #fff; color: var(--green);
    display: grid; place-items: center; cursor: pointer; padding: 0;
}
.share-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; }
.share-btn:active { background: var(--green-soft); }
.share-btn.is-done { background: var(--green); color: #fff; border-color: var(--green); }

/* ---------------- Digər bitkilər (səhifənin altı) ---------------- */
.more { padding: 8px 16px 0; }
.more h2 { font-size: 15px; font-weight: 650; color: var(--ink-soft); margin: 14px 0 10px; letter-spacing: .01em; }
.more-grid { display: grid; gap: 10px; }
.more-card {
    display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink);
    background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 10px;
}
.more-card img, .more-blank { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; flex: none; }
.more-blank { background: linear-gradient(160deg, #2f6b4f, #16241e); display: block; }
.more-text { display: flex; flex-direction: column; min-width: 0; }
.more-text small { font-size: 12px; color: var(--muted); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.more-text strong { font-size: 16px; font-weight: 650; line-height: 1.3; }
.more-text em { font-size: 13.5px; color: var(--ink-soft); }
.more-all {
    display: flex; align-items: center; justify-content: center; gap: 9px;
    margin-top: 12px; padding: 14px; border-radius: 12px;
    background: var(--green); color: #fff; text-decoration: none; font-weight: 600; font-size: 16px;
}
.more-all svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; }
@media (min-width: 640px) { .more-grid { grid-template-columns: 1fr 1fr; } }

/* ---------------- Kataloq səhifəsi ---------------- */
.cat-head { padding: 18px 16px 6px; }
.cat-head h1 { margin: 0 0 6px; font-size: 26px; letter-spacing: -.01em; }
.cat-head p { margin: 0 0 14px; color: var(--ink-soft); font-size: 15.5px; line-height: 1.55; }

.cat-search {
    display: flex; align-items: center; gap: 8px;
    background: #fff; border: 1.5px solid var(--line); border-radius: 12px; padding: 4px 6px 4px 12px;
}
.cat-search:focus-within { border-color: var(--green); box-shadow: 0 0 0 4px rgba(27, 67, 50, .12); }
.cat-search svg { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; }
.cat-search input {
    flex: 1; min-width: 0; border: 0; outline: 0; background: transparent;
    font: inherit; font-size: 16px; padding: 9px 0; color: var(--ink);
}
.cat-search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.cat-go {
    flex: none; border: 0; background: var(--green); color: #fff; font: inherit; font-weight: 600;
    font-size: 14.5px; padding: 9px 14px; border-radius: 9px; cursor: pointer;
}

.cat-chips {
    display: flex; gap: 7px; overflow-x: auto; -webkit-overflow-scrolling: touch;
    scrollbar-width: none; margin: 12px -16px 0; padding: 2px 16px 6px;
}
.cat-chips::-webkit-scrollbar { display: none; }
.chip {
    flex: none; padding: 7px 13px; border-radius: 20px; text-decoration: none;
    background: #fff; border: 1px solid var(--line); color: var(--ink); font-size: 14px; font-weight: 600;
    white-space: nowrap;
}
.chip small { color: var(--muted); font-weight: 500; font-size: 12.5px; }
.chip.is-on { background: var(--green); border-color: var(--green); color: #fff; }
.chip.is-on small { color: rgba(255, 255, 255, .75); }

.cat-empty { margin: 20px 16px; padding: 18px; text-align: center; background: #fff; border-radius: var(--radius); color: var(--ink-soft); font-size: 15.5px; }
.cat-empty[hidden] { display: none; }

.cat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 10px 16px 0; }
.cat-card {
    display: flex; flex-direction: column; text-decoration: none; color: var(--ink);
    background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden;
}
.cat-card[hidden] { display: none; }
.cat-card:active { transform: scale(.985); }
.cat-img { position: relative; display: block; aspect-ratio: 4 / 3; background: #16241e; overflow: hidden; }
.cat-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cat-blank { display: grid; place-items: center; width: 100%; height: 100%; background: linear-gradient(160deg, #2f6b4f, #16241e); }
.cat-blank svg { width: 36px; height: 36px; fill: none; stroke: rgba(255, 255, 255, .55); stroke-width: 1.6; stroke-linecap: round; }
.cat-vid {
    position: absolute; left: 8px; bottom: 8px; width: 26px; height: 26px; border-radius: 50%;
    background: rgba(255, 255, 255, .92); display: grid; place-items: center;
}
.cat-vid svg { width: 14px; height: 14px; fill: var(--green); margin-left: 2px; }
.cat-code {
    position: absolute; right: 8px; top: 8px; font-size: 11px; font-weight: 700; letter-spacing: .06em;
    background: rgba(0, 0, 0, .45); color: #fff; padding: 3px 7px; border-radius: 20px;
}
.cat-body { display: flex; flex-direction: column; gap: 2px; padding: 10px 11px 12px; }
.cat-body strong { font-size: 15.5px; font-weight: 650; line-height: 1.25; }
.cat-body em { font-size: 13px; color: var(--ink-soft); }
.cat-body small { font-size: 12px; color: var(--muted); }
.cat-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.cat-tags .badge { font-size: 11.5px; padding: 2px 8px; }

@media (min-width: 640px) {
    .cat-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
    .cat-head h1 { font-size: 32px; }
}
@media (max-width: 360px) {
    .cat-grid { gap: 10px; padding: 10px 12px 0; }
    .cat-body strong { font-size: 14.5px; }
}
