/*
Theme Name: Midnight Vixen
Theme URI: https://example.com/midnight-vixen
Author: Midnight Vixen
Description: A versatile magazine-style WordPress theme with a hero slider, category highlights, trending posts and a widgetized sidebar — works for travel, lifestyle, food or any blog niche. Switch between 5 ready-made color schemes (or pick your own) from Appearance > Customize, and import ready-made demo content with one click.
Version: 1.0
Requires at least: 5.9
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: midnight-vixen
*/

:root{
  --bg: #0d0710;
  --bg-panel: #150c19;
  --bg-panel-2: #1a0f1f;
  --purple: #8a3fc9;
  --purple-light: #b06fe0;
  --purple-dark: #4a1c68;
  --text: #f2edf5;
  --text-dim: #b8a9c4;
  --text-faint: #7c6a89;
  --border: rgba(255,255,255,0.08);
  --font-display: 'Playfair Display', serif;
  --font-body: 'Poppins', sans-serif;
}
*{margin:0;padding:0;box-sizing:border-box;}
body{
  background:var(--bg);
  color:var(--text);
  font-family:var(--font-body);
  line-height:1.6;
}
a{color:inherit;text-decoration:none;}
img{display:block;max-width:100%;height:auto;}
ul{list-style:none;}
.container{max-width:1200px;margin:0 auto;padding:0 24px;}
.screen-reader-text{position:absolute;left:-9999px;}

/* Top bar */
.topbar{
  background:linear-gradient(90deg, #2a0e38, #1a0620);
  border-bottom:1px solid var(--border);
  font-size:13px;
  color:var(--text-dim);
}
.topbar-inner{
  display:flex;justify-content:space-between;align-items:center;
  padding:8px 24px;max-width:1200px;margin:0 auto;
}
.topbar .socials{display:flex;gap:16px;}
.topbar .socials a{color:var(--text-dim);display:flex;align-items:center;transition:color .2s;}
.topbar .socials a:hover{color:var(--purple-light);}
.topbar .socials svg{width:14px;height:14px;fill:currentColor;}

/* Header — centered logo */
header.site-header{
  background:var(--bg);
  border-bottom:1px solid var(--border);
  padding:28px 0;
  text-align:center;
}
.site-branding{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
}
.site-branding .custom-logo-link img{
  max-height:70px;
  width:auto;
  margin:0 auto 8px;
}
.logo{
  font-family:var(--font-display);
  font-size:32px;font-weight:700;color:var(--text);
  letter-spacing:.3px;
}
.logo span{
  color:var(--purple-light);
  font-style:italic;font-weight:600;
}
.tagline{font-size:12px;color:var(--text-faint);margin-top:4px;letter-spacing:.4px;}

/* Nav */
nav.main-nav{
  background:var(--bg-panel);
  border-bottom:1px solid var(--border);
  position:relative;
}
.nav-inner{
  max-width:1200px;margin:0 auto;padding:0 24px;
  display:flex;align-items:center;justify-content:center;
  position:relative;
}
.nav-links{display:flex;justify-content:center;flex-wrap:wrap;}
.nav-links li a{
  display:block;
  padding:16px 20px;
  font-size:13px;font-weight:500;
  letter-spacing:.8px;
  text-transform:uppercase;
  color:var(--text-dim);
  transition:background .2s, color .2s;
}
.nav-links li.current-menu-item > a,
.nav-links li a:hover{background:var(--purple);color:#fff;}
.nav-search{color:var(--text-dim);padding:16px 8px;cursor:pointer;position:absolute;right:24px;top:0;}
.menu-toggle{display:none;background:none;border:none;color:var(--text);font-size:24px;cursor:pointer;padding:12px 24px;}

/* Hero */
.hero{position:relative;margin:32px 0;}
.hero-slide{
  position:relative;
  display:none;
  grid-template-columns:1fr 1fr;
  align-items:center;
  background:#000;
  border-radius:4px;
  overflow:hidden;
  min-height:420px;
}
.hero-slide.active{display:grid;}
.hero-text{padding:50px 60px;z-index:2;}
.hero-tag{
  display:inline-block;background:var(--purple);color:#fff;
  font-size:11px;font-weight:600;letter-spacing:1px;
  padding:6px 14px;border-radius:2px;margin-bottom:20px;
  text-transform:uppercase;
}
.hero-text h1{
  font-family:var(--font-display);font-size:40px;font-weight:600;
  line-height:1.2;margin-bottom:18px;
}
.hero-text p{color:var(--text-dim);font-size:15px;max-width:420px;margin-bottom:28px;}
.btn{
  display:inline-block;background:var(--purple);color:#fff;
  padding:13px 28px;font-size:12px;font-weight:600;letter-spacing:1px;
  border-radius:2px;transition:background .2s, transform .2s;border:none;cursor:pointer;
}
.btn:hover{background:var(--purple-dark);transform:translateY(-1px);}
.hero-img{height:100%;min-height:420px;background-size:cover;background-position:center;position:relative;}
.hero-img::after{content:'';position:absolute;inset:0;background:linear-gradient(90deg, rgba(13,7,16,0.55), rgba(13,7,16,0));}
.hero-controls{display:flex;justify-content:space-between;align-items:center;padding:16px 4px 0;}
.hero-dots{display:flex;gap:8px;}
.hero-dots span{width:8px;height:8px;border-radius:50%;background:var(--text-faint);display:inline-block;cursor:pointer;}
.hero-dots span.active{background:var(--purple-light);}
.hero-arrows{display:flex;gap:10px;}
.hero-arrows button{width:32px;height:32px;border-radius:2px;border:1px solid var(--border);background:transparent;color:var(--text-dim);cursor:pointer;font-size:14px;transition:background .2s;}
.hero-arrows button:hover{background:var(--bg-panel-2);}

/* Layout */
.content-layout{display:grid;grid-template-columns:2.2fr 1fr;gap:32px;align-items:start;margin-top:8px;}

/* Category cards */
.cat-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:20px;margin-bottom:48px;}
.cat-card{position:relative;border-radius:4px;overflow:hidden;aspect-ratio:3/3.6;background-size:cover;background-position:center;background-color:var(--bg-panel-2);}
.cat-card::after{content:'';position:absolute;inset:0;background:linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,0.85) 100%);}
.cat-card .cat-label{position:absolute;top:14px;left:14px;z-index:2;background:var(--purple);color:#fff;font-size:10px;font-weight:700;letter-spacing:.8px;padding:4px 10px;border-radius:2px;text-transform:uppercase;}
.cat-card .cat-title{position:absolute;bottom:18px;left:16px;right:16px;z-index:2;font-size:15px;font-weight:600;line-height:1.4;}

/* Section heading */
.section-heading{display:flex;align-items:center;gap:14px;margin-bottom:28px;}
.section-heading h2{font-family:var(--font-display);font-size:24px;font-weight:600;white-space:nowrap;}
.section-heading .bar{width:36px;height:3px;background:var(--purple);display:inline-block;margin-right:-2px;}

/* Latest stories */
.story-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px;margin-bottom:50px;}
.story-thumb{width:100%;aspect-ratio:4/2.9;object-fit:cover;border-radius:4px;background-size:cover;background-position:center;background-color:var(--bg-panel-2);position:relative;}
.story-card .story-thumb-wrap{position:relative;margin-bottom:16px;}
.story-thumb .cat-label{position:absolute;bottom:12px;left:12px;top:auto;}
.story-meta{font-size:12px;color:var(--text-faint);margin-bottom:10px;}
.story-meta span{color:var(--purple-light);}
.story-card h3{font-family:var(--font-display);font-size:19px;font-weight:600;line-height:1.35;margin-bottom:10px;}
.story-card h3 a:hover{color:var(--purple-light);}
.story-card p{color:var(--text-dim);font-size:13.5px;margin-bottom:14px;}
.read-more{font-size:12px;font-weight:600;letter-spacing:.6px;color:var(--purple-light);}

/* Trending strip */
.trending-box{background:var(--bg-panel);border:1px solid var(--border);border-radius:4px;padding:28px;margin-bottom:56px;}
.trending-box .section-heading{margin-bottom:22px;}
.trending-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:20px;}
.trend-item{display:flex;gap:12px;align-items:center;}
.trend-item .trend-thumb{width:64px;height:64px;object-fit:cover;border-radius:4px;flex-shrink:0;background-size:cover;background-position:center;background-color:var(--bg-panel-2);}
.trend-item h4{font-size:13.5px;font-weight:500;line-height:1.4;margin-bottom:5px;}
.trend-item span{font-size:11px;color:var(--text-faint);}

/* Sidebar / widgets */
.widget{background:var(--bg-panel);border:1px solid var(--border);border-radius:4px;padding:26px;margin-bottom:24px;}
.widget h3, .widget .widget-title{font-family:var(--font-display);font-size:18px;font-weight:600;margin-bottom:18px;position:relative;padding-bottom:12px;}
.widget h3::after, .widget .widget-title::after{content:'';position:absolute;left:0;bottom:0;width:32px;height:2px;background:var(--purple);}
.widget p{color:var(--text-dim);font-size:13.5px;}
.widget-about .about-logo{font-family:var(--font-display);font-size:22px;margin-top:14px;}
.widget-about .about-logo span{color:var(--purple-light);font-style:italic;}
.social-row{display:flex;gap:10px;margin-top:4px;flex-wrap:wrap;}
.social-row a{width:38px;height:38px;border-radius:4px;background:var(--purple);display:flex;align-items:center;justify-content:center;color:#fff;transition:background .2s;}
.social-row a:hover{background:var(--purple-dark);}
.social-row svg{width:17px;height:17px;fill:currentColor;}
.popular-post{display:flex;gap:12px;margin-top:18px;}
.popular-post:first-of-type{margin-top:0;}
.popular-post .pp-thumb{width:56px;height:56px;border-radius:4px;object-fit:cover;flex-shrink:0;background-size:cover;background-position:center;background-color:var(--bg-panel-2);}
.popular-post h4{font-size:13px;font-weight:500;line-height:1.4;margin-bottom:5px;}
.popular-post span{font-size:11px;color:var(--text-faint);}
.newsletter input[type=email]{width:100%;padding:12px 14px;background:var(--bg-panel-2);border:1px solid var(--border);border-radius:3px;color:var(--text);font-family:var(--font-body);font-size:13px;margin-bottom:12px;}
.newsletter input::placeholder{color:var(--text-faint);}
.newsletter button, .newsletter input[type=submit]{width:100%;font-family:var(--font-body);}
.widget ul li{margin-bottom:10px;font-size:13.5px;color:var(--text-dim);}
.widget ul li a:hover{color:var(--purple-light);}
.widget select, .widget input[type=text], .widget input[type=search]{width:100%;padding:10px 12px;background:var(--bg-panel-2);border:1px solid var(--border);border-radius:3px;color:var(--text);font-size:13px;}

/* Footer */
footer.site-footer{background:var(--bg-panel);border-top:1px solid var(--border);padding:56px 0 0;margin-top:24px;}
.footer-grid{display:grid;grid-template-columns:1.6fr 1fr 1fr 1.3fr;gap:32px;padding-bottom:40px;}
.footer-col h4{font-size:15px;font-weight:600;margin-bottom:18px;}
.footer-col ul li{margin-bottom:10px;}
.footer-col ul li a{font-size:13.5px;color:var(--text-dim);transition:color .2s;}
.footer-col ul li a:hover{color:var(--purple-light);}
.footer-col p{font-size:13.5px;color:var(--text-dim);margin-bottom:8px;}
.footer-col p span{color:var(--text);}
.footer-brand .logo{margin-bottom:8px;}
.footer-brand .tagline{margin-bottom:20px;text-align:left;}
.footer-socials{display:flex;gap:14px;}
.footer-socials a{color:var(--text-dim);display:flex;align-items:center;transition:color .2s;}
.footer-socials a:hover{color:var(--purple-light);}
.footer-socials svg{width:16px;height:16px;fill:currentColor;}
.footer-bottom{border-top:1px solid var(--border);padding:20px 0;display:flex;justify-content:space-between;align-items:center;font-size:12.5px;color:var(--text-faint);}
.footer-bottom .links{display:flex;gap:24px;}
.footer-bottom .links a{color:var(--text-faint);transition:color .2s;}
.footer-bottom .links a:hover{color:var(--purple-light);}

/* Misc content pages */
.page-content, .single-content{background:var(--bg-panel);border:1px solid var(--border);border-radius:4px;padding:36px;margin-bottom:40px;}
.page-content h1, .single-content h1{font-family:var(--font-display);font-size:32px;margin-bottom:20px;}
.single-content img{border-radius:4px;margin:16px 0;}
.pagination{display:flex;gap:10px;margin-bottom:50px;}
.pagination a, .pagination span{padding:10px 16px;border:1px solid var(--border);border-radius:3px;font-size:13px;color:var(--text-dim);}
.pagination .current{background:var(--purple);color:#fff;border-color:var(--purple);}

/* Responsive */
@media (max-width:980px){
  .content-layout{grid-template-columns:1fr;}
  .cat-grid{grid-template-columns:repeat(2,1fr);}
  .story-grid{grid-template-columns:repeat(2,1fr);}
  .trending-grid{grid-template-columns:repeat(2,1fr);}
  .footer-grid{grid-template-columns:repeat(2,1fr);}
  .hero-slide{grid-template-columns:1fr;min-height:auto;}
  .hero-img{min-height:260px;order:-1;}
  .hero-text{padding:34px 28px;}
  .hero-text h1{font-size:30px;}
  .nav-links{display:none;flex-direction:column;position:absolute;top:100%;left:0;right:0;background:var(--bg-panel);z-index:10;}
  .nav-links.open{display:flex;}
  .menu-toggle{display:block;}
  .nav-search{display:none;}
}
@media (max-width:600px){
  .cat-grid{grid-template-columns:repeat(2,1fr);}
  .story-grid{grid-template-columns:1fr;}
  .trending-grid{grid-template-columns:1fr;}
  .footer-grid{grid-template-columns:1fr;gap:28px;}
  .footer-bottom{flex-direction:column;gap:10px;text-align:center;}
  .topbar-inner{flex-direction:column;gap:6px;padding:10px 24px;}
}
