/*
Theme Name: CelebsInfo V5
Theme URI: https://celebsinfo.co.uk/
Author: CelebsInfo
Description: Celebrity magazine theme with homepage-style category pages.
Version: 5.0
Text Domain: celebsinfo-v5
*/

:root{
  --bg:#0b0e14;
  --bg2:#151b27;
  --text:#15171c;
  --muted:#6d7480;
  --line:#e6e8ed;
  --soft:#f7f8fa;
  --accent:#d9a441;
  --accent2:#edc66f;
  --max:1180px;
  --radius:16px;
}

*{box-sizing:border-box}
html,body{margin:0;padding:0;width:100%;max-width:100%;overflow-x:hidden}
body{
  display:block!important;
  background:#fff;
  color:var(--text);
  font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;
  line-height:1.65;
}
a{text-decoration:none;color:inherit}
img{display:block;max-width:100%}
.container{width:min(92%,var(--max));max-width:var(--max);margin:0 auto}

/* HEADER */
.site-header{
  display:block!important;
  width:100%!important;
  position:sticky;
  top:0;
  z-index:100;
  background:#0b0e14;
  border-bottom:1px solid rgba(255,255,255,.08);
}
.header-inner{
  min-height:72px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:28px;
}
.logo{
  color:#fff!important;
  font-size:30px;
  line-height:1;
  font-weight:900;
  letter-spacing:-1px;
  white-space:nowrap;
}
.logo span{color:var(--accent)}
.nav{margin-left:auto}
.nav ul{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  align-items:center;
  justify-content:flex-end;
  flex-wrap:wrap;
  gap:24px;
}
.nav li{margin:0;padding:0}
.nav a{
  color:#fff!important;
  font-size:14px;
  font-weight:800;
}
.nav a:hover{color:var(--accent)!important}

/* HOMEPAGE HERO */
.hero{
  width:100%;
  padding:70px 0 58px;
  background:
    radial-gradient(circle at 86% 15%,rgba(217,164,65,.13),transparent 25%),
    linear-gradient(135deg,var(--bg),var(--bg2));
  color:#fff;
}
.hero-grid{
  display:grid;
  grid-template-columns:1.35fr .65fr;
  gap:40px;
  align-items:center;
}
.eyebrow{
  display:inline-block;
  padding:7px 11px;
  border:1px solid rgba(217,164,65,.35);
  border-radius:999px;
  color:var(--accent2);
  font-size:12px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.08em;
}
.hero h1{
  margin:18px 0 16px;
  font-size:clamp(42px,5vw,62px);
  line-height:1.04;
  letter-spacing:-2px;
}
.hero p{max-width:720px;margin:0 0 28px;color:#c8ccd5;font-size:18px}
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:46px;
  padding:0 20px;
  border-radius:10px;
  background:var(--accent);
  color:#111!important;
  font-weight:900;
}
.hero-card{
  padding:26px;
  border-radius:20px;
  background:linear-gradient(180deg,#202634,#151a24);
  border:1px solid rgba(255,255,255,.08);
}
.hero-card h3{margin:0 0 14px;color:#fff;font-size:22px}
.hero-card ul{margin:0;padding-left:18px;color:#d4d8df}
.hero-card li{margin:8px 0}

/* SECTIONS */
.section{width:100%;padding:56px 0}
.section.alt{background:var(--soft)}
.section-title{margin-bottom:24px}
.section-title h1,.section-title h2{
  margin:0;
  color:#111;
  font-size:34px;
  line-height:1.15;
  letter-spacing:-1px;
}
.section-title p{margin:6px 0 0;color:var(--muted)}

/* CATEGORY BUTTONS */
.category-grid{
  display:grid;
  grid-template-columns:repeat(6,minmax(0,1fr));
  gap:14px;
}
.category{
  min-height:76px;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding:12px;
  border-radius:14px;
  background:linear-gradient(180deg,#171c27,#10141c);
  border:1px solid #262b36;
  color:#fff!important;
  font-weight:900;
}
.category:hover{border-color:var(--accent);color:#fff!important}

/* CARDS */
.grid{
  width:100%;
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:24px;
  align-items:stretch;
}
.grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}
.card{
  width:100%;
  min-width:0;
  display:flex;
  flex-direction:column;
  overflow:hidden;
  background:#fff;
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow:0 10px 30px rgba(19,24,35,.06);
  transition:transform .2s ease,box-shadow .2s ease;
}
.card:hover{transform:translateY(-4px);box-shadow:0 16px 38px rgba(19,24,35,.10)}
.card-media-link{
  display:block;
  width:100%;
  aspect-ratio:16/9;
  overflow:hidden;
  background:#e9ebef;
}
.card-media-link img{
  width:100%!important;
  height:100%!important;
  object-fit:cover!important;
  object-position:center!important;
}
.card-placeholder{
  width:100%;
  height:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  background:linear-gradient(135deg,#232a38,#4d5564);
  color:#fff;
  font-size:25px;
  font-weight:900;
}
.card-body{
  display:flex;
  flex-direction:column;
  flex:1;
  min-width:0;
  padding:18px 18px 20px;
}
.badge{
  color:#a6761d;
  font-size:11px;
  font-weight:900;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.card h3{
  margin:8px 0 12px!important;
  font-size:21px!important;
  line-height:1.3!important;
  font-weight:800!important;
  letter-spacing:-.3px;
  text-align:left!important;
  writing-mode:horizontal-tb!important;
  white-space:normal!important;
  overflow-wrap:break-word;
}
.card h3 a{
  color:#111!important;
  font-size:inherit!important;
  line-height:inherit!important;
}
.card h3 a:hover{color:var(--accent)!important}
.meta{margin-top:auto;color:#858b97;font-size:13px}

/* CATEGORY PAGE: SAME VISUAL LANGUAGE AS HOMEPAGE */
.category-hero{
  width:100%;
  padding:52px 0 46px;
  background:
    radial-gradient(circle at 85% 20%,rgba(217,164,65,.12),transparent 24%),
    linear-gradient(135deg,var(--bg),var(--bg2));
  color:#fff;
}
.category-hero .eyebrow{margin-bottom:14px}
.category-hero h1{
  margin:0;
  color:#fff!important;
  font-size:clamp(38px,5vw,54px);
  line-height:1.05;
  letter-spacing:-1.6px;
}
.category-hero p{
  max-width:720px;
  margin:12px 0 0;
  color:#c8ccd5;
  font-size:17px;
}
.category-posts{
  display:block!important;
  width:100%!important;
  clear:both!important;
  background:#fff;
}
.category-posts .container{
  display:block!important;
  width:min(92%,var(--max))!important;
  max-width:var(--max)!important;
  margin:0 auto!important;
  float:none!important;
}
.category-posts .grid{
  display:grid!important;
  width:100%!important;
  max-width:none!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:24px!important;
  float:none!important;
}
.category-posts .card{
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
  margin:0!important;
  float:none!important;
}
.category-posts .card-media-link{width:100%!important}
.category-posts .card-body{width:100%!important}

/* PAGINATION */
.pagination{margin-top:32px}
.pagination .nav-links{display:flex;gap:8px;flex-wrap:wrap}
.pagination .page-numbers{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:40px;
  min-height:40px;
  padding:7px 12px;
  border:1px solid var(--line);
  border-radius:9px;
  color:#111;
}
.pagination .current{background:var(--bg);border-color:var(--bg);color:#fff}

/* FOOTER */
.site-footer{
  display:block!important;
  width:100%!important;
  clear:both!important;
  background:#080b11;
  color:#b9bec8;
  padding:42px 0 28px;
}
.footer-grid{
  display:grid;
  grid-template-columns:2fr 1fr 1fr;
  gap:34px;
}
.site-footer .logo{display:inline-block;margin-bottom:12px}
.site-footer h4{margin:0 0 16px;color:#fff}
.site-footer ul{list-style:none;padding:0;margin:0}
.site-footer li{margin:8px 0}
.site-footer a{color:var(--accent)}
.site-footer a:hover{color:#fff}
.footer-contact-btn{
  display:inline-flex;
  margin-top:18px;
  min-height:44px;
  align-items:center;
  justify-content:center;
  padding:0 18px;
  border-radius:10px;
  background:var(--accent);
  color:#111!important;
  font-weight:900;
}
.copyright{
  margin-top:28px;
  padding-top:18px;
  border-top:1px solid #222833;
  font-size:13px;
}

/* SINGLE */
.single-wrap{width:min(92%,900px);margin:48px auto 70px}
.single-wrap h1{margin:10px 0 12px;font-size:clamp(38px,5vw,54px);line-height:1.08;letter-spacing:-1.5px}
.single-featured{margin:26px 0;aspect-ratio:16/9;overflow:hidden;border-radius:18px;background:#eceef2}
.single-featured img{width:100%;height:100%;object-fit:cover}
.entry-content{font-size:18px;color:#262a33}
.entry-content h2{font-size:30px;margin-top:38px;line-height:1.2}
.entry-content h3{font-size:23px;margin-top:28px}
.entry-content p{margin:0 0 18px}
.entry-content table{width:100%;border-collapse:collapse;margin:24px 0}
.entry-content th,.entry-content td{border:1px solid #e1e4e9;padding:12px;text-align:left}
.entry-content th{background:#f4f5f7}
.entry-content a{color:var(--accent)}

@media(max-width:980px){
  .hero-grid,.footer-grid{grid-template-columns:1fr}
  .grid,.category-posts .grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}
  .category-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .nav{display:none}
}
@media(max-width:640px){
  .header-inner{min-height:64px}
  .logo{font-size:26px}
  .hero{padding:50px 0}
  .category-hero{padding:42px 0}
  .section{padding:42px 0}
  .grid,.grid.two,.category-posts .grid{grid-template-columns:1fr!important}
  .category-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
