/*
Theme Name: BaddiesEast Custom
Theme URI: https://baddieseast.ws
Author: BaddiesEast
Author URI: https://baddieseast.ws
Description: A lightweight custom classic WordPress theme for a Baddies franchise episode catalog and guide site. Clean light design, dense episode poster grids, compact show hubs, cast pages and TVEpisode schema. No builders, no frameworks, no jQuery, no external fonts.
Version: 1.2.0
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: baddieseast-custom
Tags: light, two-columns, custom-menu, featured-images, threaded-comments
*/

/* ============ Reset / base ============ */
*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  background:#ffffff;
  color:#16181d;
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
  font-size:16px;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}
img{max-width:100%;height:auto;display:block}
a{color:#ff2e88;text-decoration:none}
a:hover{text-decoration:underline}
h1,h2,h3,h4{line-height:1.25;margin:0 0 .5em;font-weight:800;letter-spacing:-.01em;color:#16181d}
h1{font-size:clamp(1.6rem,4vw,2.4rem)}
h2{font-size:clamp(1.3rem,3vw,1.8rem)}
h3{font-size:1.1rem}
p{margin:0 0 1em}
ul,ol{margin:0 0 1em;padding-left:1.3em}
table{border-collapse:collapse;width:100%}
.screen-reader-text{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.wrap{max-width:1280px;margin:0 auto;padding:0 16px}
.site-main{padding:32px 0 56px;min-height:55vh}
::selection{background:#ff2e88;color:#fff}
/* Visible keyboard focus everywhere */
a:focus-visible,button:focus-visible,input:focus-visible,textarea:focus-visible,[type="submit"]:focus-visible{
  outline:2px solid #ff2e88;outline-offset:2px;
}

/* ============ Header ============ */
.site-header{
  position:sticky;top:0;z-index:100;
  background:rgba(255,255,255,.97);
  border-bottom:1px solid #e5e7eb;
  backdrop-filter:blur(6px);
}
.header-inner{display:flex;align-items:center;gap:16px;padding:12px 0;flex-wrap:wrap}
.site-logo{font-size:1.45rem;font-weight:900;color:#16181d;letter-spacing:-.02em;line-height:1;flex:0 0 auto}
.site-logo:hover{text-decoration:none}
.site-logo .accent{color:#ff2e88}
.site-logo img{max-height:44px;width:auto}
/* Desktop: menu + search grouped on the right, evenly spaced */
.main-nav{margin-left:auto}
.main-nav ul{list-style:none;margin:0;padding:0;display:flex;gap:4px;flex-wrap:wrap;align-items:center}
.main-nav a{
  display:block;color:#2a2e37;padding:10px 12px;border-radius:8px;font-weight:600;font-size:.95rem;line-height:1.3;
}
.main-nav a:hover{background:#f6f7f9;color:#ff2e88;text-decoration:none}
.main-nav .current-menu-item>a,.main-nav .current_page_item>a{background:#ff2e88;color:#fff}
.header-search{flex:0 1 264px;min-width:200px}
.menu-toggle{
  display:none;background:#fff;border:1px solid #d7dae0;color:#16181d;cursor:pointer;
  border-radius:8px;padding:9px 13px;font-size:1.05rem;line-height:1;min-width:44px;min-height:44px;
  align-items:center;justify-content:center;
}

/* ============ Search form (one joined unit everywhere) ============ */
.search-form{display:flex;align-items:stretch;width:100%}
.search-form .search-label{display:flex;flex:1 1 auto;min-width:0;margin:0}
.search-form input[type="search"]{
  flex:1 1 auto;width:100%;min-width:0;
  background:#fff;border:1px solid #d7dae0;border-right:0;color:#16181d;
  padding:9px 12px;border-radius:8px 0 0 8px;font-size:.95rem;min-height:44px;
}
.search-form input[type="search"]:focus{border-color:#ff2e88;box-shadow:inset 0 0 0 1px #ff2e88;outline:none}
.search-form button,.search-form input[type="submit"]{
  flex:0 0 auto;
  background:#ff2e88;border:1px solid #ff2e88;color:#fff;font-weight:700;cursor:pointer;
  padding:9px 16px;border-radius:0 8px 8px 0;font-size:.95rem;min-height:44px;line-height:1.2;
}
.search-form button:hover,.search-form input[type="submit"]:hover{background:#e02676}

/* ============ Hero (front page) ============ */
.hero{
  background:#f6f7f9;border:1px solid #e5e7eb;border-radius:16px;
  padding:36px 26px 32px;margin:0 0 40px;text-align:center;
}
.hero h1{margin:0 0 8px;font-size:clamp(1.9rem,5vw,2.9rem)}
.hero h1 .accent{color:#ff2e88}
.hero .hero-tagline{color:#5b6472;font-size:clamp(1rem,2.4vw,1.15rem);margin:0 auto 22px;max-width:640px}
.hero-search{display:flex;justify-content:center}
.hero-search .search-form{width:100%;max-width:560px}
.hero-search .search-form input[type="search"]{
  font-size:1rem;padding:13px 16px;border-radius:10px 0 0 10px;min-height:52px;
}
.hero-search .search-form button,.hero-search .search-form input[type="submit"]{
  font-size:1rem;padding:13px 22px;border-radius:0 10px 10px 0;min-height:52px;
}

/* ============ Section headings ============ */
.section{margin:0 0 40px}
.section-band{background:#f6f7f9;border:1px solid #e5e7eb;border-radius:16px;padding:24px}
.section-head{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:16px;border-left:4px solid #ff2e88;padding-left:12px}
.section-head h2{margin:0}
.section-head h1{margin:0;font-size:clamp(1.3rem,3vw,1.8rem)}
.section-head .view-all{font-weight:700;font-size:.92rem;white-space:nowrap;line-height:1.3}

/* ============ Card CTA button row (pinned to card bottom) ============ */
.card-cta{
  display:inline-flex;align-items:center;justify-content:center;gap:6px;
  background:#ff2e88;color:#fff;font-weight:700;font-size:.86rem;line-height:1.2;
  padding:9px 12px;border-radius:8px;min-height:40px;text-align:center;
}
.ep-card:hover .card-cta,.hub-card:hover .card-cta{background:#e02676}

/* ============ Episode card grid (dense) ============ */
/* Content width at 1280px viewport = 1248px; 6 cols x ~196px cards. */
.card-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}
@media (min-width:640px){.card-grid{grid-template-columns:repeat(3,1fr);gap:14px}}
@media (min-width:900px){.card-grid{grid-template-columns:repeat(4,1fr);gap:14px}}
@media (min-width:1200px){.card-grid{grid-template-columns:repeat(6,1fr);gap:14px}}
.ep-card{
  background:#fff;border:1px solid #e5e7eb;border-radius:12px;overflow:hidden;
  box-shadow:0 1px 3px rgba(16,24,40,.06);
  display:flex;flex-direction:column;transition:transform .15s ease,border-color .15s ease,box-shadow .15s ease;
}
.ep-card:hover{transform:translateY(-3px);border-color:#ff2e88;box-shadow:0 8px 20px rgba(16,24,40,.10)}
.ep-card a{color:#16181d;display:flex;flex-direction:column;flex:1}
.ep-card a:hover{text-decoration:none}
.ep-thumb{position:relative;aspect-ratio:310/165;background:#eceef1;overflow:hidden;flex:0 0 auto}
.ep-thumb img{width:100%;height:100%;object-fit:cover}
.ep-thumb .no-thumb{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;color:#8a93a3;font-weight:800;font-size:.82rem;text-align:center;padding:8px}
/* Badge scheme everywhere: category top-left, S/E bottom-right */
.badge-cat{
  position:absolute;top:8px;left:8px;background:#ff2e88;color:#fff;font-size:.66rem;font-weight:800;
  padding:3px 8px;border-radius:20px;text-transform:uppercase;letter-spacing:.04em;
}
.badge-se{
  position:absolute;bottom:8px;right:8px;background:rgba(0,0,0,.82);color:#fff;font-size:.68rem;
  font-weight:700;padding:3px 8px;border-radius:6px;
}
.ep-body{padding:10px 11px 12px;display:flex;flex-direction:column;gap:4px;flex:1}
.ep-title{font-size:.94rem;font-weight:700;line-height:1.35;margin:0;color:#16181d}
.ep-meta{color:#5b6472;font-size:.76rem}
.ep-body .card-cta{margin-top:auto;align-self:stretch}

/* ============ Hub cards (horizontal, compact poster thumb) ============ */
.hub-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}
@media (min-width:900px){.hub-grid{grid-template-columns:repeat(3,1fr);gap:16px}}
.hub-card{
  background:#fff;border:1px solid #e5e7eb;border-radius:12px;overflow:hidden;
  box-shadow:0 1px 3px rgba(16,24,40,.06);display:flex;
  transition:border-color .15s ease,transform .15s ease,box-shadow .15s ease;
}
.hub-card:hover{border-color:#ff2e88;transform:translateY(-3px);box-shadow:0 8px 20px rgba(16,24,40,.10)}
.hub-card a{color:#16181d;display:flex;flex:1;align-items:stretch;min-width:0}
.hub-card a:hover{text-decoration:none}
.hub-thumb{flex:0 0 84px;background:#eceef1;overflow:hidden}
.hub-thumb img{width:100%;height:100%;object-fit:cover}
.hub-body{padding:12px 14px;display:flex;flex-direction:column;gap:4px;flex:1;min-width:0}
.hub-body h3{margin:0;font-size:1.02rem;line-height:1.3}
.hub-count{color:#ff2e88;font-weight:700;font-size:.83rem}
.hub-body .card-cta{margin-top:auto;align-self:stretch}
@media (max-width:639px){
  .hub-thumb{flex-basis:56px}
  .hub-body{padding:10px}
  .hub-body h3{font-size:.92rem}
  .hub-body .card-cta{font-size:.76rem;padding:7px 8px;min-height:34px}
}

/* ============ Pillar / content ============ */
.pillar,.entry-content{background:#fff;border:1px solid #e5e7eb;border-radius:12px;padding:26px;box-shadow:0 1px 3px rgba(16,24,40,.05)}
.pillar h2,.entry-content h2{margin-top:1.2em}
.pillar h2:first-child,.entry-content h2:first-child{margin-top:0}
.entry-content a{font-weight:600}
.entry-content img{border-radius:8px}

/* ============ Single episode ============ */
.breadcrumbs{color:#5b6472;font-size:.88rem;margin-bottom:14px}
.breadcrumbs a{color:#2a2e37}
.breadcrumbs .sep{margin:0 7px;color:#a3abb8}
/* Player and hero still share one slot: same capped width so the page
   does not jump between a video episode and a still-only episode. */
.player-wrap{
  position:relative;padding-top:56.25%;background:#111;border-radius:12px;overflow:hidden;margin:0 0 22px;
  max-width:760px;
}
.player-wrap iframe,.player-wrap video,.player-wrap embed,.player-wrap object{
  position:absolute;inset:0;width:100%;height:100%;border:0;
}
.episode-hero{margin:0 0 22px;max-width:760px}
.episode-hero img{border-radius:12px;width:100%}
.info-table{background:#fff;border:1px solid #e5e7eb;border-radius:12px;overflow:hidden;margin:0 0 24px;box-shadow:0 1px 3px rgba(16,24,40,.05)}
.info-table th,.info-table td{padding:11px 16px;text-align:left;border-bottom:1px solid #e5e7eb;font-size:.95rem}
.info-table tr:last-child th,.info-table tr:last-child td{border-bottom:0}
.info-table th{width:150px;color:#5b6472;font-weight:600;background:#f6f7f9}
.where-to-watch{
  background:#fff0f7;border:1px solid #ffd3e8;border-left:4px solid #ff2e88;border-radius:12px;
  padding:18px 20px;margin:24px 0 6px;
}
.where-to-watch h3{margin:0 0 6px;font-size:1.05rem}
.where-to-watch p{margin:0 0 12px;color:#3c434e}
.where-to-watch .wtw-link{
  display:inline-flex;align-items:center;background:#ff2e88;color:#fff;font-weight:700;font-size:.92rem;
  padding:10px 18px;border-radius:8px;min-height:44px;
}
.where-to-watch .wtw-link:hover{background:#e02676;text-decoration:none}
.post-nav{display:flex;justify-content:space-between;gap:12px;margin:26px 0;flex-wrap:wrap}
.post-nav a{
  display:inline-flex;align-items:center;
  background:#fff;border:1px solid #e5e7eb;border-radius:10px;padding:11px 16px;color:#16181d;
  font-weight:700;font-size:.92rem;max-width:48%;min-height:48px;box-shadow:0 1px 3px rgba(16,24,40,.05);
}
.post-nav a:hover{border-color:#ff2e88;text-decoration:none}
.post-nav .nav-next{margin-left:auto;text-align:right}

/* ============ Cast ============ */
/* Small poster cards: ~146px wide at 1280px (8 per row). */
.cast-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
@media (min-width:640px){.cast-grid{grid-template-columns:repeat(4,1fr);gap:14px}}
@media (min-width:900px){.cast-grid{grid-template-columns:repeat(6,1fr);gap:14px}}
@media (min-width:1200px){.cast-grid{grid-template-columns:repeat(8,1fr);gap:14px}}
.cast-card{
  background:#fff;border:1px solid #e5e7eb;border-radius:12px;overflow:hidden;
  box-shadow:0 1px 3px rgba(16,24,40,.06);
  transition:transform .15s ease,border-color .15s ease,box-shadow .15s ease;
}
.cast-card:hover{transform:translateY(-3px);border-color:#ff2e88;box-shadow:0 8px 20px rgba(16,24,40,.10)}
.cast-card a{color:#16181d;display:block}
.cast-card a:hover{text-decoration:none}
.cast-card img{width:100%;aspect-ratio:300/450;object-fit:cover}
.cast-card h3{padding:10px 11px;margin:0;font-size:.92rem;line-height:1.3}
.cast-photo{max-width:300px;border-radius:12px;margin:0 0 20px}
.cast-shows{background:#f6f7f9;border:1px solid #e5e7eb;border-radius:10px;padding:12px 16px;margin:0 0 22px;font-size:.95rem}
.cast-shows strong{color:#ff2e88}

/* ============ Hub page (category) ============ */
.hub-hero{display:flex;gap:20px;align-items:flex-start;margin-bottom:28px;flex-wrap:wrap}
.hub-hero .hub-poster{width:120px;flex:0 0 120px}
.hub-hero .hub-poster img{border-radius:12px;width:100%;height:170px;object-fit:cover}
.hub-hero .hub-intro{flex:1;min-width:250px}
.hub-hero .hub-intro p{color:#3c434e}
@media (max-width:639px){
  .hub-hero{gap:14px}
  .hub-hero .hub-poster{width:88px;flex-basis:88px}
  .hub-hero .hub-poster img{height:128px}
  .hub-hero .hub-intro{min-width:0;flex:1 1 0}
}

/* ============ Pagination (uniform, centered) ============ */
.pagination{margin:32px 0 8px}
.pagination .nav-links{display:flex;gap:8px;flex-wrap:wrap;justify-content:center}
.pagination a,.pagination span{
  background:#fff;border:1px solid #d7dae0;color:#16181d;border-radius:8px;padding:8px 12px;font-weight:600;
  display:inline-flex;align-items:center;justify-content:center;min-height:44px;min-width:44px;
}
.pagination .current{background:#ff2e88;border-color:#ff2e88;color:#fff}
.pagination a:hover{text-decoration:none;border-color:#ff2e88;color:#ff2e88}

/* ============ Comments ============ */
.comments-area{background:#f6f7f9;border:1px solid #e5e7eb;border-radius:12px;padding:22px;margin-top:40px}
.comment-list{list-style:none;padding:0}
.comment{border-bottom:1px solid #e5e7eb;padding:14px 0}
.comment-meta{color:#5b6472;font-size:.85rem}
.comment-form input[type="text"],.comment-form input[type="email"],.comment-form input[type="url"],.comment-form textarea{
  width:100%;background:#fff;border:1px solid #d7dae0;color:#16181d;border-radius:8px;padding:10px 12px;margin-bottom:12px;font:inherit;
}
.comment-form input[type="submit"]{
  background:#ff2e88;border:0;color:#fff;font-weight:700;border-radius:8px;padding:11px 20px;cursor:pointer;min-height:44px;
}
.comment-form input[type="submit"]:hover{background:#e02676}

/* ============ 404 / search ============ */
.not-found{text-align:center;padding:30px 0}
.not-found .search-form{max-width:480px;margin:18px auto 30px}
.search-head{margin-bottom:20px}

/* ============ Footer ============ */
.site-footer{background:#f1f2f5;border-top:1px solid #e0e2e8;padding:36px 0 26px;margin-top:20px;color:#3c434e}
.footer-grid{display:grid;gap:28px;align-items:start}
@media (min-width:800px){.footer-grid{grid-template-columns:1fr 1fr 1fr}}
.site-footer h4{color:#16181d;margin:0 0 10px;font-size:1rem}
.site-footer p{line-height:1.55}
.site-footer ul{list-style:none;padding:0;margin:0}
.site-footer li{margin:0;line-height:1.5}
.site-footer a{color:#3c434e;font-size:.93rem;display:inline-block;padding:3px 0}
.site-footer a:hover{color:#ff2e88}
.footer-bottom{border-top:1px solid #dddfe5;margin-top:26px;padding-top:18px;font-size:.85rem;color:#5b6472}
.footer-bottom p{margin:0 0 5px}

/* ============ Mobile nav drawer / small screens ============ */
@media (max-width:860px){
  .menu-toggle{display:inline-flex;margin-left:auto}
  .header-search{order:3;flex:1 1 100%;margin:2px 0}
  .main-nav{
    display:none;width:100%;background:#fff;border:1px solid #e5e7eb;border-radius:12px;padding:8px;
    box-shadow:0 10px 24px rgba(16,24,40,.10);margin-left:0;
  }
  .main-nav.is-open{display:block}
  .main-nav ul{flex-direction:column;gap:2px;align-items:stretch}
  .main-nav a{padding:12px 14px;min-height:44px;display:flex;align-items:center}
  .hero{padding:28px 18px 26px}
  .hero-search .search-form button,.hero-search .search-form input[type="submit"]{padding:13px 16px}
  .info-table th{width:110px}
  .post-nav a{max-width:100%}
  .pillar,.entry-content{padding:20px}
}
.aligncenter{margin-left:auto;margin-right:auto}
.wp-caption{max-width:100%}
.wp-caption-text{color:#5b6472;font-size:.85rem;text-align:center}
