/*
Theme Name: ClipStream Lite — Aftermore
Theme URI: https://example.com/clipstream-lite
Author: Your Name
Author URI: https://example.com
Description: Futuristic, WorldStar-style video feed theme with customizable colors and branding (AM icon, Aftermore logo). Built for speed and SEO.
Version: 1.1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: clipstream
Tags: grid-layout, custom-logo, featured-images, responsive-layout, custom-colors
*/

/* = CSS Variables (customizable via Customizer) = */
:root{
  --bg: #070a13;
  --surface: #0b0f19;
  --card: #0d1424;
  --border: #121a2d;
  --text: #e6ecff;
  --muted: #9fb0d1;
  --primary: #6ee7ff; /* cyan neon */
  --accent: #7c3cff;  /* purple neon */
  --pill: #0e1530;
  --glow: 0 0 24px rgba(124,60,255,0.35), 0 0 48px rgba(110,231,255,0.25);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin:0; font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; color:var(--text); background: radial-gradient(1200px 600px at 20% -10%, rgba(124,60,255,.12), transparent 60%), radial-gradient(800px 400px at 100% 10%, rgba(110,231,255,.10), transparent 50%), var(--bg); }
img { max-width:100%; height:auto; display:block; }
a { color:var(--primary); text-decoration:none; }
a:hover { text-decoration:underline; }

.site { display:flex; min-height:100vh; flex-direction:column; }
.site-main { flex:1 1 auto; }
.container { width:100%; max-width:1200px; margin:0 auto; padding:0 16px; }

/* Header (glass / neo-brutalist hybrid) */
.site-header { position:sticky; top:0; z-index:50; background:color-mix(in oklab, var(--surface) 80%, transparent); backdrop-filter: blur(10px); border-bottom:1px solid var(--border); }
.brand { display:flex; align-items:center; gap:12px; padding:12px 0; }
.brand .logo { width:40px; height:40px; border-radius:10px; background: linear-gradient(180deg, var(--accent), color-mix(in oklab, var(--accent) 40%, #000)); display:inline-flex; align-items:center; justify-content:center; font-weight:900; color:#fff; letter-spacing:0.5px; box-shadow: var(--glow); }
.brand .title { font-weight:900; letter-spacing:0.6px; text-transform:uppercase; background: linear-gradient(90deg, var(--primary), var(--accent)); -webkit-background-clip:text; background-clip:text; color:transparent; }

.nav { display:flex; gap:8px; align-items:center; margin-left:10px; }
.nav a { color:var(--muted); font-weight:700; padding:8px 10px; border-radius:10px; border:1px solid transparent; }
.nav a:hover, .nav .current-menu-item a { background:color-mix(in oklab, var(--card) 70%, transparent); color:var(--text); border-color:var(--border); box-shadow: var(--glow); }

/* Trending pills */
.trending { background:var(--surface); border-bottom:1px solid var(--border); }
.trending .items { display:flex; gap:12px; overflow:auto; padding:10px 0; }
.trending .pill { white-space:nowrap; color:var(--text); background:var(--pill); padding:6px 10px; border-radius:999px; font-size:14px; border:1px solid var(--border); }
.trending .pill:hover { box-shadow: var(--glow); }

/* Hero */
.hero { background:linear-gradient(180deg, color-mix(in oklab, var(--surface) 80%, transparent), var(--surface)); border-bottom:1px solid var(--border); }
.hero-grid { display:grid; grid-template-columns:2fr 1fr; gap:16px; padding:20px 0; }
.hero-card { border:1px solid var(--border); border-radius:20px; overflow:hidden; background:var(--card); box-shadow: var(--glow); }
.hero-card .content { padding:14px; }
.hero-card h2 { margin:8px 0 0; color:var(--text); font-size:20px; }
.hero-card p { margin:6px 0 0; color:var(--muted); font-size:14px; }

/* Grid */
.grid { display:grid; grid-template-columns:repeat(3, 1fr); gap:16px; }
.card { border:1px solid var(--border); border-radius:18px; overflow:hidden; background:var(--card); transition: transform .15s ease, box-shadow .15s ease; }
.card:hover { transform: translateY(-2px); box-shadow: var(--glow); }
.card .thumb { aspect-ratio:16/9; background:#0e1629; position:relative; }
.card .thumb .duration { position:absolute; bottom:8px; right:8px; font-size:12px; background:color-mix(in oklab, var(--surface) 75%, transparent); color:var(--text); padding:2px 6px; border-radius:6px; border:1px solid var(--border); }
.card .meta { padding:12px; }
.card h3 { margin:0; font-size:16px; color:var(--text); line-height:1.35; }
.card .byline { margin-top:6px; color:var(--muted); font-size:13px; }

/* Sidebar */
.sidebar { position:sticky; top:84px; }
.widget { background:var(--card); border:1px solid var(--border); border-radius:18px; padding:12px; margin-bottom:16px; box-shadow: var(--glow); }
.widget h3 { color:var(--text); margin:0 0 10px; font-size:15px; }

/* Footer */
.site-footer { border-top:1px solid var(--border); color:var(--muted); padding:24px 0; background:var(--surface); }

/* Buttons */
.btn { display:inline-flex; align-items:center; gap:8px; padding:10px 14px; border-radius:12px; border:1px solid var(--border); background:linear-gradient(180deg, var(--card), color-mix(in oklab, var(--card) 60%, #000)); color:var(--text); font-weight:800; text-transform:uppercase; letter-spacing:0.6px; box-shadow: var(--glow); }
.btn:hover { background:color-mix(in oklab, var(--card) 70%, #000); }

/* Pagination */
.pagination { display:flex; gap:8px; justify-content:center; margin:24px 0; }
.pagination a, .pagination span { padding:8px 12px; border:1px solid var(--border); color:var(--muted); border-radius:10px; background:var(--card); }
.pagination .current { background:linear-gradient(90deg, var(--primary), var(--accent)); color:#0b0f19; font-weight:900; }

/* Responsive */
@media (max-width: 1024px) { .grid { grid-template-columns:repeat(2,1fr); } .hero-grid { grid-template-columns:1fr; } }
@media (max-width: 640px) { .grid { grid-template-columns:1fr; } }

/* Media helpers */
.responsive-embed { position:relative; padding-bottom:56.25%; height:0; overflow:hidden; }
.responsive-embed iframe, .responsive-embed video { position:absolute; inset:0; width:100%; height:100%; border:0; }
.player { width:100%; height:auto; border:0; border-radius:14px; }
