/* ============================================================
   tadbirlar.css — /user/css/tadbirlar.css  (kontent.css ustiga qo'shimcha)
   Tadbirlar ro'yxati (/tadbirlar) va tadbir sahifasi (/tadbirlar/tadbir/{id}).
============================================================ */

/* ── Kelgusi / o'tgan ─────────────────────────────────────── */
.tad-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.tad-tab {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 18px; border-radius: 999px;
    background: #fff; border: 1px solid #e3eaf6; color: #2c3e63;
    font-weight: 600; font-size: 14px; text-decoration: none;
    transition: background .15s, border-color .15s, color .15s;
}
.tad-tab b { background: #eef4fd; color: #0d47a1; border-radius: 999px; padding: 1px 9px; font-size: 12px; }
.tad-tab:hover { border-color: #FFD54F; color: #0d47a1; }
.tad-tab.active { background: #0d47a1; border-color: #0d47a1; color: #fff; }
.tad-tab.active b { background: #FFD54F; color: #0d47a1; }

/* ── Kartochka ────────────────────────────────────────────── */
.tad-card {
    display: flex; flex-direction: column; height: 100%;
    background: #fff; border: 1px solid #e3eaf6; border-radius: 14px; overflow: hidden;
    color: inherit; text-decoration: none;
    transition: transform .15s, box-shadow .15s, border-color .15s;
}
.tad-card:hover { transform: translateY(-3px); border-color: #FFD54F; box-shadow: 0 10px 26px rgba(21,102,183,.14); }
.tad-cover { position: relative; aspect-ratio: 16 / 9; background: linear-gradient(135deg, #0d47a1, #1976D2); overflow: hidden; }
.tad-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tad-noimg { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255,255,255,.35); font-size: 54px; }
.tad-date {
    position: absolute; left: 12px; top: 12px; min-width: 58px; padding: 6px 8px; text-align: center;
    background: #fff; border-radius: 10px; box-shadow: 0 4px 14px rgba(0,0,0,.18); line-height: 1.1;
}
.tad-date strong { display: block; font-size: 22px; color: #0d47a1; }
.tad-date span { display: block; font-size: 11px; font-weight: 700; text-transform: uppercase; color: #dc3545; }
.tad-date small { display: block; font-size: 10px; color: #7a8aa8; }
.tad-body { display: flex; flex-direction: column; gap: 10px; padding: 16px 18px 18px; flex: 1 1 auto; }
.tad-body h3 { font-size: 17px; line-height: 1.35; font-weight: 700; color: #0d47a1; margin: 0; overflow-wrap: anywhere; }
.tad-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: #5a6a88; }
.tad-meta i { color: #1566B7; margin-right: 4px; }
.tad-more { margin-top: auto; font-size: 13px; font-weight: 700; color: #1566B7; }

/* ── Tugmalar va sahifalash ───────────────────────────────── */
.btn-tad {
    display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px; border-radius: 10px;
    background: #0d47a1; color: #fff; font-weight: 600; font-size: 14px; text-decoration: none; transition: background .15s;
}
.btn-tad:hover { background: #1566B7; color: #fff; }
.tad-pager { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 36px; }
.tad-pageno { color: #5a6a88; font-weight: 600; }

/* ── Tadbir sahifasi ──────────────────────────────────────── */
.tad-hero { width: 100%; max-height: 420px; object-fit: cover; border-radius: 12px; margin-bottom: 22px; }
.tad-facts { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 10px; }
.tad-facts li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; background: #f4f8ff; border-radius: 10px; }
.tad-facts i { color: #1566B7; font-size: 18px; margin-top: 2px; }
.tad-facts b { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .4px; color: #7a8aa8; }
.sahifa-side li a small { color: #7a8aa8; }

/* ── Tungi rejim ──────────────────────────────────────────── */
body.dark .tad-tab, body.dark .tad-card { background: #1a2035; border-color: #243050; }
body.dark .tad-tab { color: #c5d3ef; }
body.dark .tad-tab b { background: #243050; color: #90caf9; }
body.dark .tad-tab.active { background: #1e3a5f; border-color: #1e3a5f; }
body.dark .tad-tab.active b { background: #FFD54F; color: #0d47a1; }
body.dark .tad-date { background: #1a2035; }
body.dark .tad-date strong { color: #90caf9; }
body.dark .tad-date small { color: #7a90b8; }
body.dark .tad-body h3 { color: #90caf9; }
body.dark .tad-meta, body.dark .tad-pageno { color: #9fb2d6; }
body.dark .tad-more { color: #6fb1f0; }
body.dark .tad-facts li { background: #141b2e; }
body.dark .tad-facts b { color: #7a90b8; }
body.dark .btn-tad { background: #1e3a5f; }
body.dark .btn-tad:hover { background: #2a4f80; }
