/* =================================================================
   Odekha — handcrafted responsive stylesheet (no build step)
   Travel + News theme · mobile-first · Bangla-friendly
   ================================================================= */

:root {
    --primary: #0f766e;          /* teal */
    --primary-dark: #115e59;
    --primary-light: #5eead4;
    --accent: #ea580c;           /* warm orange for news/breaking */
    --ink: #18212f;
    --muted: #64748b;
    --line: #e6e9ef;
    --bg: #ffffff;
    --surface: #f6f8fa;
    --surface-2: #eef2f6;
    --shadow: 0 1px 3px rgba(16,24,40,.06), 0 1px 2px rgba(16,24,40,.04);
    --shadow-lg: 0 10px 30px rgba(16,24,40,.10);
    --radius: 12px;
    --radius-sm: 8px;
    --maxw: 1180px;
    --font: "Hind Siliguri", "Noto Sans Bengali", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

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

body {
    margin: 0;
    font-family: var(--font);
    color: var(--ink);
    background: var(--bg);
    line-height: 1.6;
    font-size: 16px;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
    width: 100%;
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 16px;
}

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255,255,255,.92);
    backdrop-filter: saturate(180%) blur(8px);
    border-bottom: 1px solid var(--line);
}
.header-inner {
    display: flex;
    align-items: center;
    gap: 14px;
    height: 64px;
}
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand img { height: 38px; width: auto; }
.brand .brand-text { font-weight: 700; font-size: 1.25rem; color: var(--primary-dark); }

.main-nav { display: none; margin-left: 8px; gap: 4px; flex: 1; }
.main-nav a {
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    color: var(--ink);
    font-size: .95rem;
}
.main-nav a:hover, .main-nav a.active { background: var(--surface-2); color: var(--primary-dark); }

.header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }

.lang-switch { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.lang-switch a {
    padding: 5px 12px;
    font-size: .85rem;
    font-weight: 700;
    color: var(--muted);
}
.lang-switch a.active { background: var(--primary); color: #fff; }

.menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px; height: 42px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: #fff;
    cursor: pointer;
}
.menu-toggle svg { width: 22px; height: 22px; }

/* mobile drawer */
.mobile-nav {
    display: none;
    border-top: 1px solid var(--line);
    background: #fff;
    padding: 8px 0 14px;
}
.mobile-nav.open { display: block; }
.mobile-nav a {
    display: block;
    padding: 11px 16px;
    font-weight: 600;
    border-radius: var(--radius-sm);
}
.mobile-nav a:hover { background: var(--surface-2); }

/* ---------- Buttons & chips ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 16px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: .9rem;
    cursor: pointer;
    border: 1px solid transparent;
    transition: transform .05s ease, background .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--surface-2); }

.chip {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: .82rem;
    font-weight: 600;
    background: var(--surface-2);
    color: var(--muted);
    white-space: nowrap;
}
.chip.active { background: var(--primary); color: #fff; }

.source-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: .72rem;
    font-weight: 700;
    color: var(--accent);
    background: #fff4ed;
    padding: 2px 8px;
    border-radius: 999px;
}

/* ---------- Section heading ---------- */
.section { padding: 26px 0; }
.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    gap: 12px;
}
.section-head h2 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}
.section-head h2::before {
    content: "";
    width: 5px; height: 22px;
    background: var(--primary);
    border-radius: 3px;
}
.section-head .more-link { font-weight: 600; color: var(--primary); font-size: .9rem; }

/* ---------- Hero ---------- */
.hero {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: #fff;
    border-radius: var(--radius);
    padding: 30px 22px;
    margin: 18px 0 8px;
    position: relative;
    overflow: hidden;
}
.hero h1 { margin: 0 0 6px; font-size: 1.7rem; }
.hero p { margin: 0; opacity: .92; }

/* ---------- Hero slider ---------- */
.hero-slider {
    position: relative;
    margin: 18px 0 8px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: #0b1220;
    aspect-ratio: 16 / 10;
}
.hero-slider .slides { position: absolute; inset: 0; }
.hero-slider .slide {
    position: absolute; inset: 0;
    opacity: 0; visibility: hidden;
    transition: opacity .6s ease;
}
.hero-slider .slide.is-active { opacity: 1; visibility: visible; z-index: 1; }
.hero-slider .slide-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-slider .slide-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(8,12,20,.92) 0%, rgba(8,12,20,.45) 45%, rgba(8,12,20,.08) 100%);
}
.hero-slider .slide-content {
    position: absolute; left: 0; right: 0; bottom: 0;
    padding: 18px 18px 22px;
    color: #fff;
    display: block;
}
.hero-slider .slide-tags { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.hero-slider .slide-source { background: var(--accent); color: #fff; }
.hero-slider .slide-cat { font-size: .72rem; font-weight: 700; background: rgba(255,255,255,.18); padding: 2px 9px; border-radius: 999px; }
.hero-slider .slide-time { font-size: .76rem; opacity: .85; }
.hero-slider .slide-content h2 {
    margin: 0; font-size: 1.15rem; line-height: 1.4; font-weight: 700;
    text-shadow: 0 1px 12px rgba(0,0,0,.4);
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.hero-slider .slider-arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    z-index: 3;
    width: 40px; height: 40px;
    border: none; border-radius: 50%;
    background: rgba(255,255,255,.85); color: #0b1220;
    font-size: 1.5rem; line-height: 1; cursor: pointer;
    display: none; align-items: center; justify-content: center;
    box-shadow: var(--shadow);
}
.hero-slider:hover .slider-arrow { display: inline-flex; }
.hero-slider .slider-arrow.prev { inset-inline-start: 12px; }
.hero-slider .slider-arrow.next { inset-inline-end: 12px; }
.hero-slider .slider-dots {
    position: absolute; bottom: 12px; inset-inline-end: 16px; z-index: 3;
    display: flex; gap: 6px;
}
.hero-slider .dot {
    width: 9px; height: 9px; border-radius: 50%; border: none; cursor: pointer; padding: 0;
    background: rgba(255,255,255,.45);
}
.hero-slider .dot.is-active { background: #fff; width: 22px; border-radius: 999px; }

/* ---------- Category strip ---------- */
.cat-strip {
    display: flex; gap: 8px; overflow-x: auto; padding: 14px 0 4px;
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.cat-strip::-webkit-scrollbar { display: none; }
.cat-strip .chip { flex-shrink: 0; }

.featured-band {
    background: linear-gradient(180deg, var(--surface), #fff);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 26px;
}

/* ---------- Home two-panel ---------- */
.home-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
}

/* ---------- News list (compact rows) ---------- */
.news-list { display: flex; flex-direction: column; gap: 12px; }
.news-row {
    display: flex;
    gap: 12px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 10px;
    box-shadow: var(--shadow);
    transition: box-shadow .15s ease, transform .1s ease;
}
.news-row:hover { box-shadow: var(--shadow-lg); transform: translateY(-1px); }
.news-row .thumb {
    width: 104px; height: 78px;
    flex-shrink: 0;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--surface-2);
}
.news-row .thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-row .body { min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.news-row h3 {
    margin: 0;
    font-size: .98rem;
    font-weight: 600;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.news-row .meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: .76rem; color: var(--muted); margin-top: auto; }

/* ---------- Cards (spots / grid news) ---------- */
.card-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}
.card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: box-shadow .15s ease, transform .1s ease;
    display: flex;
    flex-direction: column;
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.card .cover { aspect-ratio: 16/10; background: var(--surface-2); overflow: hidden; }
.card .cover img { width: 100%; height: 100%; object-fit: cover; }
.card .card-body { padding: 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card .card-body h3 { margin: 0; font-size: 1.05rem; font-weight: 700; line-height: 1.4; }
.card .card-body p {
    margin: 0; color: var(--muted); font-size: .9rem;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.card .card-meta { display: flex; align-items: center; gap: 8px; font-size: .78rem; color: var(--muted); margin-top: auto; }

/* ---------- Filter bar ---------- */
.filter-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }

.filter-group { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 6px; }
.filter-group .filter-label {
    flex-shrink: 0; padding: 6px 0;
    font-size: .8rem; font-weight: 700; color: var(--muted);
    min-width: 56px;
}
.filter-group .filter-bar { margin-bottom: 10px; }
@media (max-width: 560px) {
    .filter-group { flex-direction: column; gap: 4px; }
    .filter-group .filter-bar { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
    .filter-group .filter-bar::-webkit-scrollbar { display: none; }
    .filter-group .filter-bar .chip { flex-shrink: 0; }
}

/* ---------- Article detail ---------- */
.article {
    max-width: 760px;
    margin: 0 auto;
}
.article h1 { font-size: 1.7rem; line-height: 1.35; margin: 14px 0 10px; }
.article .article-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; color: var(--muted); font-size: .85rem; margin-bottom: 16px; }
.article .article-cover { border-radius: var(--radius); overflow: hidden; margin-bottom: 18px; }
.article .lead { font-size: 1.08rem; color: #334155; }
.article-body { font-size: 1.05rem; }
.article-body p { margin: 0 0 1em; }
.attribution {
    margin-top: 22px;
    padding: 16px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-left: 4px solid var(--accent);
    border-radius: var(--radius-sm);
}

/* ---------- Breadcrumb ---------- */
.crumb { font-size: .85rem; color: var(--muted); margin: 14px 0; }
.crumb a { color: var(--primary); }

/* ---------- Pagination ---------- */
.pagination { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; margin: 26px 0 0; padding: 0; list-style: none; }
.pagination a, .pagination span {
    min-width: 38px; height: 38px;
    display: inline-flex; align-items: center; justify-content: center;
    padding: 0 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    font-size: .9rem; font-weight: 600;
    background: #fff;
}
.pagination .active span { background: var(--primary); color: #fff; border-color: var(--primary); }
.pagination [aria-disabled="true"] span { opacity: .45; }

/* ---------- Empty state ---------- */
.empty {
    text-align: center;
    padding: 40px 16px;
    color: var(--muted);
    background: var(--surface);
    border: 1px dashed var(--line);
    border-radius: var(--radius);
}

/* ---------- Footer ---------- */
.site-footer {
    margin-top: 40px;
    background: #0b1220;
    color: #cbd5e1;
    padding: 30px 0 22px;
}
.site-footer .footer-top { display: flex; flex-direction: column; gap: 18px; }
.site-footer .footer-brand { display: flex; align-items: center; gap: 10px; }
.site-footer .footer-brand img { height: 34px; background: #fff; border-radius: 6px; padding: 3px; }
.site-footer .disclaimer { font-size: .85rem; line-height: 1.7; opacity: .8; max-width: 720px; }
.site-footer .footer-links { display: flex; gap: 16px; flex-wrap: wrap; }
.site-footer .footer-links a { color: #94a3b8; font-weight: 600; font-size: .9rem; }
.site-footer .footer-links a:hover { color: #fff; }
.site-footer .copy { margin-top: 20px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.1); font-size: .82rem; opacity: .7; }

/* =================================================================
   Responsive — tablet & up
   ================================================================= */
@media (min-width: 640px) {
    .card-grid { grid-template-columns: repeat(2, 1fr); }
    .hero h1 { font-size: 2rem; }
    .hero-slider { aspect-ratio: 21 / 9; }
    .hero-slider .slide-content { padding: 26px 28px 30px; }
    .hero-slider .slide-content h2 { font-size: 1.5rem; -webkit-line-clamp: 2; max-width: 80%; }
}

@media (min-width: 900px) {
    .main-nav { display: flex; }
    .menu-toggle { display: none; }
    .home-grid { grid-template-columns: 1.05fr .95fr; }
    .home-grid .spots-panel .card-grid { grid-template-columns: repeat(2, 1fr); }
    .card-grid.spots-full { grid-template-columns: repeat(3, 1fr); }
    .hero-slider { aspect-ratio: 2.6 / 1; }
    .hero-slider .slide-content h2 { font-size: 1.85rem; max-width: 70%; }
}

@media (min-width: 1100px) {
    .card-grid.spots-full { grid-template-columns: repeat(3, 1fr); }
}

/* =================================================================
   Admin panel
   ================================================================= */
.admin-body { background: var(--surface); min-height: 100vh; }
.admin-shell { display: grid; grid-template-columns: 1fr; min-height: 100vh; }
.admin-sidebar {
    background: #0b1220; color: #cbd5e1; padding: 18px 14px;
}
.admin-sidebar .brand { color: #fff; font-weight: 700; font-size: 1.2rem; margin-bottom: 18px; padding: 0 6px; }
.admin-sidebar nav { display: flex; flex-direction: column; gap: 4px; }
.admin-sidebar nav a {
    padding: 10px 12px; border-radius: var(--radius-sm); color: #cbd5e1; font-weight: 600; font-size: .92rem;
}
.admin-sidebar nav a:hover, .admin-sidebar nav a.active { background: rgba(255,255,255,.08); color: #fff; }
.admin-main { padding: 18px; }
.admin-topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; gap: 12px; flex-wrap: wrap; }
.admin-topbar h1 { margin: 0; font-size: 1.4rem; }

.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 22px; }
.stat-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.stat-card .num { font-size: 1.8rem; font-weight: 800; color: var(--primary-dark); }
.stat-card .lbl { color: var(--muted); font-size: .85rem; }

.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 18px; }
.panel h3 { margin: 0 0 12px; font-size: 1.05rem; }

.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th, .table td { text-align: start; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table th { color: var(--muted); font-weight: 700; font-size: .8rem; text-transform: uppercase; }
.table-wrap { overflow-x: auto; }

.form-row { display: flex; flex-direction: column; gap: 5px; margin-bottom: 14px; }
.form-row label { font-weight: 600; font-size: .88rem; }
.input, .textarea, .select {
    width: 100%; padding: 9px 11px; border: 1px solid var(--line);
    border-radius: var(--radius-sm); font: inherit; background: #fff;
}
.textarea { min-height: 90px; resize: vertical; }
.form-grid-2 { display: grid; grid-template-columns: 1fr; gap: 0 14px; }

.alert { padding: 11px 14px; border-radius: var(--radius-sm); margin-bottom: 16px; font-weight: 600; font-size: .9rem; }
.alert-success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.alert-error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

.badge { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: .75rem; font-weight: 700; }
.badge-on { background: #dcfce7; color: #166534; }
.badge-off { background: #fee2e2; color: #991b1b; }

.btn-sm { padding: 5px 10px; font-size: .8rem; }
.btn-danger { background: #dc2626; color: #fff; }
.inline-form { display: inline; }

/* login */
.login-wrap { min-height: 100vh; display: grid; place-items: center; background: var(--surface); padding: 16px; }
.login-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 28px; width: 100%; max-width: 380px; }
.login-card .brand-row { text-align: center; margin-bottom: 18px; }
.login-card .brand-row img { height: 46px; margin: 0 auto; }

@media (min-width: 860px) {
    .admin-shell { grid-template-columns: 248px 1fr; }
    .admin-main { padding: 26px 30px; }
    .stat-grid { grid-template-columns: repeat(4, 1fr); }
    .form-grid-2 { grid-template-columns: 1fr 1fr; }
}
