/* Website themes (Admin → Appearance → Website theme).
   Colours/radius/font come from the variables printed in <head> (includes/themes.php).
   This file only adds the shape & layout touches that differ per theme. */

.site-footer{background:var(--footer,#0f1222)}
.sec-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:10px}
.sec-row{display:flex;gap:14px;align-items:center;padding:10px;border:1px solid var(--border);border-radius:var(--radius);background:var(--surface)}
.sec-thumb{flex:none;width:84px;height:62px;border-radius:calc(var(--radius) * .6);overflow:hidden;background:var(--soft);display:grid;place-items:center;color:var(--primary);font-weight:800;font-size:1.4rem}
.sec-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.sec-title{color:var(--text);font-weight:600;line-height:1.35;display:block}
.sec-row .meta{padding-top:3px;margin-top:0}
.sec-scroll{display:flex;gap:16px;overflow-x:auto;scroll-snap-type:x mandatory;padding-bottom:8px;scrollbar-width:thin}
.sec-scroll>.card{flex:0 0 min(260px,78%);scroll-snap-align:start}
.home-sec .section-head{margin-top:30px}
.m-nav{display:none}

/* ---------- Dark ---------- */
body.theme-dark{color-scheme:dark}
.theme-dark .alert-success{background:#0f2a1b;border-color:#1c5b38;color:#7ee2a8}
.theme-dark .alert-error{background:#33130f;border-color:#6d2a22;color:#ff9d93}
.theme-dark .alert-info{background:#0e2336;border-color:#1f4a6e;color:#8ccbff}
.theme-dark .badge-published{background:#0f2a1b;color:#7ee2a8}.theme-dark .badge-pending{background:#33260c;color:#f5c26b}
.theme-dark .badge-rejected{background:#33130f;color:#ff9d93}.theme-dark .badge-draft{background:#262b45;color:#b9c0dc}
.theme-dark .card:hover{border-color:#3a4170}
.theme-dark .logo-img,.theme-dark .card-img img{filter:none}
.theme-dark .search input::placeholder{color:var(--muted)}
.theme-dark .prose a{color:var(--primary)}
.theme-dark .ad-slot.ad-on{background:var(--soft)}

/* ---------- Android (Material You) ---------- */
.theme-android .site-header{box-shadow:0 1px 3px rgba(0,0,0,.12);border-bottom:0;background:var(--soft)}
.theme-android .cat-nav{background:var(--soft);border-top:0}
.theme-android .cat-nav a{border-radius:12px;font-weight:600}
.theme-android .cat-nav a.active{background:#e8def8;color:#1d192b}
.theme-android .logo-mark{border-radius:50%}
.theme-android .search input{border:0;border-radius:28px;background:var(--bg);padding:12px 18px}
.theme-android .btn{border-radius:999px;padding-left:22px;padding-right:22px}
.theme-android .btn-sm{padding-left:16px;padding-right:16px}
.theme-android .btn-ghost{background:transparent;border-color:#79747e;color:var(--primary)}
.theme-android .card{border:0;background:var(--surface);box-shadow:var(--shadow)}
.theme-android .card:hover{border-color:transparent;box-shadow:0 2px 6px 2px rgba(0,0,0,.12)}
.theme-android .chip{border-radius:8px;background:#e8def8;color:#4a4458;text-transform:none;letter-spacing:0;font-size:.78rem}
.theme-android .hero,.theme-android .banners{border-radius:28px;border:0}
.theme-android .widget,.theme-android .article,.theme-android .sec-row{border:0;box-shadow:var(--shadow)}
.theme-android .avatar-btn img,.theme-android .avatar-btn span{border-radius:50%}
.theme-android .menu{border-radius:16px;border:0;box-shadow:0 4px 12px rgba(0,0,0,.18)}
.theme-android .tags a{border-radius:8px}
.theme-android .pager a,.theme-android .pager .current{border-radius:999px}

/* ---------- Newsprint ---------- */
.theme-news h1,.theme-news h2,.theme-news h3,.theme-news .logo{font-family:Georgia,"Noto Serif","Times New Roman",serif}
.theme-news .site-header{border-bottom:3px double var(--text)}
.theme-news .cat-nav a{text-transform:uppercase;letter-spacing:.8px;font-size:.78rem;font-weight:700;border-radius:2px}
.theme-news .btn,.theme-news .chip,.theme-news .search input,.theme-news .tags a{border-radius:2px}
.theme-news .logo-mark{border-radius:2px}
.theme-news .card{border:0;border-top:3px solid var(--text);border-radius:0;background:transparent}
.theme-news .section-title{border-bottom:2px solid var(--text);padding-bottom:6px}

/* ---------- Android-style bottom bar (phones) ---------- */
@media (max-width:760px){
  body.has-mnav{padding-bottom:76px}
  .m-nav{display:flex;position:fixed;left:0;right:0;bottom:0;z-index:70;background:var(--soft);border-top:1px solid var(--border);padding:8px 6px calc(8px + env(safe-area-inset-bottom,0px));justify-content:space-around;box-shadow:0 -2px 8px rgba(0,0,0,.08)}
  .m-nav a{display:flex;flex-direction:column;align-items:center;gap:3px;min-width:60px;color:var(--muted);font-size:.7rem;font-weight:600;text-decoration:none!important}
  .m-nav a svg{width:24px;height:24px;padding:4px 16px;box-sizing:content-box;border-radius:16px;transition:background .15s}
  .m-nav a.on{color:var(--text)}
  .m-nav a.on svg{background:color-mix(in srgb,var(--primary) 22%,transparent);color:var(--primary)}
  .has-mnav .cat-nav{display:none}
  .has-mnav .header-actions .btn-primary{display:none}
}
