/*
Theme Name: Midnight Vixen
Theme URI: https://example.com
Author: Claude
Author URI: https://example.com
Description: A dark, elegant purple-and-black magazine/blog theme with hero slider, category cards, latest stories grid, sidebar widgets and footer — inspired by the MidnightVixen design.
Version: 1.0
Requires at least: 5.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: midnightvixen
*/


  :root{
    --bg: #0d0910;
    --bg-panel: #16101c;
    --bg-panel-2: #1c1420;
    --purple: #7a2f8f;
    --purple-light: #a855c9;
    --purple-deep: #3d1049;
    --text: #f2eef5;
    --text-dim: #b9adc4;
    --text-faint: #7c6f89;
    --border: rgba(255,255,255,0.08);
  }
  *{box-sizing:border-box; margin:0; padding:0;}
  body{
    background:var(--bg);
    color:var(--text);
    font-family:'Poppins', sans-serif;
    font-weight:300;
  }
  a{color:inherit; text-decoration:none;}
  img{display:block; max-width:100%; height:auto;}
  .wrap{max-width:1180px; margin:0 auto; padding:0 24px;}

  /* Header */
  header.site{padding:28px 0 20px; border-bottom:1px solid var(--border);}
  .brand-row{display:flex; justify-content:space-between; align-items:flex-end; margin-bottom:22px;}
  .logo{font-family:'Playfair Display', serif; font-size:34px; font-weight:600; letter-spacing:.5px;}
  .logo .accent{font-style:italic; color:var(--purple-light); font-weight:500;}
  .tagline{font-size:12px; color:var(--text-faint); margin-top:4px; letter-spacing:.5px;}
  .search-icon{
    width:38px; height:38px; border-radius:50%; border:1px solid var(--border);
    display:flex; align-items:center; justify-content:center; color:var(--text-dim);
    cursor:pointer;
  }

  nav.main{
    display:flex; align-items:center; gap:2px;
    background:var(--bg-panel);
    border-radius:6px;
    padding:4px;
  }
  nav.main a{
    padding:12px 20px;
    font-size:13px; letter-spacing:1px;
    color:var(--text-dim);
    border-radius:4px;
    font-weight:500;
  }
  nav.main a.active{background:var(--purple); color:#fff;}
  nav.main a:hover:not(.active){color:var(--text);}
  nav.main .nav-search{margin-left:auto; padding:12px; color:var(--text-dim);}

  /* Hero */
  .hero{
    position:relative;
    margin-top:32px;
    border-radius:8px;
    overflow:hidden;
    min-height:460px;
    display:flex; align-items:center;
    background:#1a0f20;
  }
  .hero img{
    position:absolute; inset:0; width:100%; height:100%; object-fit:cover;
    opacity:.85;
  }
  .hero::after{
    content:"";
    position:absolute; inset:0;
    background:linear-gradient(90deg, rgba(10,6,13,.94) 8%, rgba(10,6,13,.55) 45%, rgba(10,6,13,.15) 70%);
  }
  .hero-content{position:relative; z-index:2; padding:56px; max-width:560px;}
  .badge{
    display:inline-block; background:var(--purple); color:#fff;
    font-size:11px; letter-spacing:1px; font-weight:600;
    padding:5px 12px; border-radius:3px; margin-bottom:18px;
  }
  .hero h1{
    font-family:'Playfair Display', serif; font-weight:600;
    font-size:44px; line-height:1.18; margin-bottom:18px;
  }
  .hero p{color:var(--text-dim); font-size:15px; line-height:1.7; margin-bottom:26px; max-width:440px;}
  .btn-primary{
    display:inline-block; background:var(--purple); color:#fff;
    padding:14px 28px; border-radius:4px; font-size:12px;
    letter-spacing:1.5px; font-weight:600; border:none; cursor:pointer;
    transition:background .2s;
  }
  .btn-primary:hover{background:var(--purple-light);}
  .hero-dots{
    position:absolute; bottom:26px; left:56px; z-index:3;
    display:flex; gap:8px;
  }
  .hero-dots span{width:7px; height:7px; border-radius:50%; background:rgba(255,255,255,.35);}
  .hero-dots span.active{background:var(--purple-light); width:22px; border-radius:4px;}
  .hero-arrows{position:absolute; bottom:20px; left:56px; z-index:3; display:none;}
  .hero-nav-btns{position:absolute; bottom:20px; left:56px; z-index:3; display:flex; gap:10px;}
  .hero-nav-btns button{
    width:34px; height:34px; border-radius:6px; border:1px solid rgba(255,255,255,.25);
    background:rgba(0,0,0,.3); color:#fff; cursor:pointer; font-size:14px;
  }

  /* Category cards */
  .cat-grid{
    display:grid; grid-template-columns:repeat(4,1fr); gap:22px;
    margin-top:36px;
  }
  .cat-card{position:relative; border-radius:8px; overflow:hidden; aspect-ratio:3/3.6; background:#1a0f20;}
  .cat-card img{position:absolute; inset:0; width:100%; height:100%; object-fit:cover;}
  .cat-card::after{
    content:""; position:absolute; inset:0;
    background:linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(8,4,11,.95) 100%);
  }
  .cat-card .info{position:absolute; left:16px; right:16px; bottom:16px; z-index:2;}
  .cat-tag{
    display:inline-block; background:var(--purple); color:#fff; font-size:10px;
    letter-spacing:1px; font-weight:600; padding:4px 10px; border-radius:3px; margin-bottom:10px;
  }
  .cat-card h3{font-size:15px; font-weight:500; line-height:1.4;}

  /* Main layout */
  .content-layout{
    display:grid; grid-template-columns:2fr 1fr; gap:40px;
    margin-top:56px; align-items:start;
  }
  .section-title{
    font-family:'Playfair Display', serif; font-size:22px; font-weight:600;
    margin-bottom:22px; position:relative; padding-left:14px;
  }
  .section-title::before{
    content:""; position:absolute; left:0; top:3px; bottom:3px; width:4px;
    background:var(--purple); border-radius:2px;
  }

  .story-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:22px;}
  .story-card img{width:100%; aspect-ratio:4/3.1; object-fit:cover; border-radius:8px; margin-bottom:16px;}
  .story-tag{
    display:inline-block; background:var(--purple); color:#fff; font-size:10px;
    letter-spacing:1px; font-weight:600; padding:4px 10px; border-radius:3px; margin-bottom:12px;
  }
  .story-card h3{font-size:16px; line-height:1.4; margin-bottom:10px; font-weight:500;}
  .story-meta{font-size:11px; color:var(--text-faint); margin-bottom:10px;}
  .story-card p{font-size:13px; color:var(--text-dim); line-height:1.7; margin-bottom:14px;}
  .read-more{font-size:12px; color:var(--purple-light); font-weight:600; letter-spacing:.5px;}

  /* Trending strip */
  .trending{margin-top:48px; background:var(--bg-panel); border-radius:8px; padding:28px;}
  .trending .section-title{margin-bottom:20px;}
  .trend-grid{display:grid; grid-template-columns:repeat(4,1fr); gap:20px;}
  .trend-item{display:flex; gap:12px; align-items:center;}
  .trend-item img{width:58px; height:58px; object-fit:cover; border-radius:6px; flex-shrink:0;}
  .trend-item h4{font-size:13px; line-height:1.4; font-weight:500; margin-bottom:6px;}
  .trend-item span{font-size:11px; color:var(--text-faint);}

  /* Sidebar */
  .side-box{background:var(--bg-panel); border-radius:8px; padding:28px; margin-bottom:24px;}
  .side-box h3{font-family:'Playfair Display', serif; font-size:18px; font-weight:600; margin-bottom:14px; position:relative; padding-bottom:12px;}
  .side-box h3::after{content:""; position:absolute; left:0; bottom:0; width:34px; height:3px; background:var(--purple); border-radius:2px;}
  .side-box p{font-size:13px; color:var(--text-dim); line-height:1.8; margin-bottom:18px;}
  .side-logo{font-family:'Playfair Display', serif; font-style:italic; color:var(--purple-light); font-size:22px;}
  .social-row{display:flex; gap:10px; margin-top:4px;}
  .social-row a{
    width:38px; height:38px; border-radius:6px; background:var(--bg-panel-2);
    display:flex; align-items:center; justify-content:center; color:var(--text-dim);
    font-size:14px; transition:.2s;
  }
  .social-row a:hover{background:var(--purple); color:#fff;}

  .popular-item{display:flex; gap:12px; margin-bottom:18px;}
  .popular-item:last-child{margin-bottom:0;}
  .popular-item img{width:60px; height:60px; object-fit:cover; border-radius:6px; flex-shrink:0;}
  .popular-item h4{font-size:13px; line-height:1.4; font-weight:500; margin-bottom:6px;}
  .popular-item span{font-size:11px; color:var(--text-faint);}

  .newsletter input{
    width:100%; padding:13px 14px; border-radius:5px; border:1px solid var(--border);
    background:var(--bg-panel-2); color:var(--text); font-size:13px; margin-bottom:12px;
    font-family:'Poppins',sans-serif;
  }
  .newsletter input::placeholder{color:var(--text-faint);}
  .newsletter button{width:100%; padding:13px; }

  /* Footer */
  footer{margin-top:64px; background:var(--bg-panel); border-top:1px solid var(--border);}
  .footer-grid{
    display:grid; grid-template-columns:1.4fr 1fr 1fr 1.2fr; gap:36px;
    padding:56px 0 36px;
  }
  .footer-grid .logo{font-size:28px;}
  .footer-grid .tagline{margin-bottom:20px;}
  .footer-grid h4{font-size:15px; font-weight:600; margin-bottom:18px; font-family:'Playfair Display',serif;}
  .footer-grid ul{list-style:none;}
  .footer-grid li{margin-bottom:12px;}
  .footer-grid a{font-size:13px; color:var(--text-dim);}
  .footer-grid a:hover{color:var(--purple-light);}
  .footer-grid p{font-size:13px; color:var(--text-dim); margin-bottom:10px; line-height:1.7;}
  .footer-grid p strong{color:var(--text); font-weight:500;}
  .footer-social{display:flex; gap:12px; margin-top:20px;}
  .footer-social a{
    width:36px; height:36px; border-radius:50%; border:1px solid var(--border);
    display:flex; align-items:center; justify-content:center; font-size:13px; color:var(--text-dim);
  }
  .footer-social a:hover{background:var(--purple); border-color:var(--purple); color:#fff;}
  .footer-bottom{
    border-top:1px solid var(--border); padding:20px 0;
    display:flex; justify-content:space-between; font-size:12px; color:var(--text-faint);
  }
  .footer-bottom a{margin-left:20px; color:var(--text-faint);}
  .footer-bottom a:hover{color:var(--purple-light);}

  @media(max-width:980px){
    .content-layout{grid-template-columns:1fr;}
    .cat-grid{grid-template-columns:repeat(2,1fr);}
    .story-grid{grid-template-columns:1fr;}
    .trend-grid{grid-template-columns:repeat(2,1fr);}
    .footer-grid{grid-template-columns:1fr 1fr;}
    nav.main{flex-wrap:wrap;}
    .hero h1{font-size:32px;}
    .hero-content{padding:32px;}
  }
