/*
Theme Name: Feedlite
Theme URI: https://example.com/feedlite
Author: Vision-Sumit (custom)
Author URI: https://example.com
Description: Lightweight news theme inspired by Feedzop (mobile-first, 1024px container). Clean HTML, minimal jQuery, ad-ready every 5 posts.
Version: 1.0.0
Requires at least: 6.6
Tested up to: 6.6
Requires PHP: 8.0
License: GPL-2.0-or-later
Text Domain: feedlite
*/

:root{ --container:1024px; --gap:12px; --text:#111; --muted:#666; --border:#eee; --pill:#f4f4f5; }
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font:16px/1.5 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial;color:var(--text);background:#fff}
a{color:inherit;text-decoration:none}
img{max-width:100%;height:auto}

.container{max-width:var(--container);margin:0 auto;padding:0 12px}
.header{position:sticky;top:0;background:#fff;border-bottom:1px solid var(--border);z-index:50}
.header__bar{display:flex;align-items:center;justify-content:space-between;padding:10px 0}
.header__logo{font-weight:700;font-size:18px}
.header__actions{display:flex;gap:10px;align-items:center}
.btn{display:inline-flex;align-items:center;gap:6px;border:1px solid var(--border);background:#fff;border-radius:999px;padding:8px 12px;font-size:14px}
.btn--pill{background:var(--pill)}
.pills{display:flex;gap:8px;padding:8px 0;border-bottom:1px solid var(--border)}
.pill{padding:6px 12px;border-radius:999px;border:1px solid var(--border);background:#fff;font-size:14px}
.pill.is-active{background:#111;color:#fff;border-color:#111}

.layout{display:grid;grid-template-columns:1fr;gap:20px;padding:14px 0}
@media(min-width:1100px){.layout{grid-template-columns:260px 1fr 260px}}

.card{display:grid;grid-template-columns:1fr 110px;gap:10px;padding:14px 0;border-bottom:1px solid var(--border)}
.card__meta{font-size:12px;color:var(--muted);margin-top:4px}
.card__thumb{width:110px;aspect-ratio:1/1;object-fit:cover;border-radius:8px;background:#f3f3f3}

.ad{border:1px dashed #ddd;padding:18px;border-radius:8px;text-align:center;color:#666;margin:12px 0}
.ad--infeed{background:#fafafa}

.sidebar{position:sticky;top:64px;height:fit-content}
.widget{border:1px solid var(--border);border-radius:12px;padding:12px;margin-bottom:12px}
.widget__title{font-weight:700;margin-bottom:8px}

.trending{list-style:none;padding:0;margin:0}
.trending li{display:flex;align-items:center;gap:6px;padding:6px 0;border-bottom:1px dashed var(--border)}
.trending li:last-child{border-bottom:none}
.trending .dot{width:6px;height:6px;border-radius:50%;background:#ff5a3c;display:inline-block}

.single .hero{margin:12px 0}
.keypoints{background:#f8f8f8;border:1px solid var(--border);border-radius:12px;padding:12px;margin:12px 0}
.keypoints li{margin:6px 16px}
.sharebar{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0}
.bookmark.is-bookmarked{color:#e91e63}
.readmore{cursor:pointer;text-decoration:underline}

.footer{border-top:1px solid var(--border);margin-top:24px}
.footer__top{display:flex;flex-wrap:wrap;gap:12px;padding:14px 0}
.footer__bottom{display:flex;justify-content:space-between;align-items:center;padding:14px 0;border-top:1px solid var(--border);font-size:13px;color:var(--muted)}
.modal{position:fixed;inset:0;background:rgba(0,0,0,.3);display:none;align-items:center;justify-content:center}
.modal__dialog{background:#fff;border-radius:12px;padding:16px;min-width:320px}
.modal.is-open{display:flex}


/* v1.1 refinements */
:root{ --red:#e53935; --light:#f5f5f5 }
.header__logo-badge{display:inline-flex;align-items:center;gap:8px}
.header__logo-badge .badge{background:var(--red);color:#fff;border-radius:6px;padding:4px 6px;font-weight:700}
.header .btn-login{background:var(--red);color:#fff;border-color:var(--red)}
.header{border-bottom:1px solid #eaeaea}

.sidebar .box{border-bottom:1px solid var(--border);padding:12px 8px}
.box__title{font-weight:700;margin-bottom:8px;color:#444}
.pills--stack{display:flex;flex-direction:column;gap:8px}
.pills--stack .pill{justify-content:flex-start;background:#f3f4f6;border-color:#e5e7eb}
.pills--stack .pill .flag{font-size:16px;margin-right:6px}

.you-links{display:flex;flex-direction:column;gap:8px}
.you-links a{display:flex;gap:8px;align-items:center;color:#333}
.you-links .ico{width:18px;text-align:center}

.trending li{position:relative;padding-left:18px}
.trending li:before{content:'↗';position:absolute;left:0;top:6px;color:var(--red);font-size:12px}

.ad--top{min-height:140px;display:flex;align-items:center;justify-content:center;background:#fafafa;border:1px dashed #ddd;border-radius:8px;margin:10px 0}

.section-heading{display:flex;align-items:center;justify-content:space-between;margin:12px 0}
.section-heading .seeall{color:var(--red);font-size:12px;text-transform:uppercase}

.scroller{display:grid;grid-auto-flow:column;grid-auto-columns:60%;gap:12px;overflow-x:auto;padding-bottom:6px}
@media(min-width:680px){.scroller{grid-auto-columns:33%}}
.scroller .mini-card{border:1px solid var(--border);border-radius:12px;overflow:hidden}
.mini-card__thumb{width:100%;aspect-ratio:16/9;object-fit:cover}
.mini-card__text{padding:8px;font-size:13px}

.card{grid-template-columns:1fr 90px}
.card__thumb{width:90px;border-radius:10px}
.card__meta{color:#8a8a8a}


/* v1.2 polish */
body{letter-spacing:.2px}
.card{padding:16px 0}
.card__title{font-size:16px;line-height:1.35;font-weight:600}
.meta-inline{font-size:12px;color:#8a8a8a}
.sep{margin:0 6px;color:#d0d0d0}
.right-ad{position:sticky;top:64px}
.right-ad .slot{min-height:280px;border:1px dashed #ddd;background:#fafafa;border-radius:8px;display:flex;align-items:center;justify-content:center;margin:12px 0}

.pagination{display:flex;gap:8px;flex-wrap:wrap;justify-content:center}
.pagination a, .pagination span{border:1px solid var(--border);padding:6px 10px;border-radius:6px}
.pagination .current{background:#111;color:#fff;border-color:#111}
