:root{
  /* VILRAM DIGITAL — PURPLE DOMINANT (NO WHITE UI) */
  --bg:#12061F;          /* page base */
  --bg2:#1A0830;         /* richer wash */
  --panel:#1E0C3D;       /* cards/boxes */
  --panel2:#2A1157;      /* stronger panels */
  --fg:#F6F1FF;          /* text */
  --muted:#C7B7EE;
  --link:#F6F1FF;

  --stroke:rgba(246,241,255,.14);
  --stroke2:rgba(246,241,255,.20);
  --shadow:0 22px 70px -40px rgba(168,85,247,.45);

  --p:#A855F7;           /* primary purple */
  --p2:#C084FC;          /* soft violet */
  --s:#7C3AED;           /* deep violet */
  --t:#3B145F;           /* tint wash */

  --r:22px;
}

*{box-sizing:border-box}

body{
  margin:0;
  color:var(--fg);
  font-family:Manrope,system-ui,Segoe UI,Roboto,Arial,sans-serif;

  /* VERY PURPLE BACKGROUND (NO WHITE) */
  background:
    radial-gradient(1200px 560px at 55% 12%, rgba(168,85,247,.45), transparent 62%),
    radial-gradient(900px 520px at 18% 35%, rgba(124,58,237,.35), transparent 62%),
    radial-gradient(760px 440px at 86% 78%, rgba(192,132,252,.28), transparent 60%),
    linear-gradient(180deg, var(--bg2) 0%, var(--bg) 72%, #0C0416 100%);
  background-attachment:scroll;
}

@media (prefers-reduced-motion: reduce){
  *{animation:none!important; transition:none!important}
}

a{color:var(--link); text-decoration:none}
a:hover{opacity:.92}
.wrap{max-width:1260px; margin:0 auto; padding:0 22px}

/* NAV */
.nav{
  position:sticky;
  top:0;
  z-index:50;
  backdrop-filter:saturate(120%) blur(10px);

  /* purple glass (no white) */
  background:linear-gradient(90deg,
    rgba(42,17,87,.92) 0%,
    rgba(30,12,61,.86) 55%,
    rgba(26,8,48,.82) 100%
  );

  border-bottom:1px solid var(--stroke);
  box-shadow:0 12px 34px rgba(0,0,0,.35);
}

.nav-in{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:14px 0;
}

.brand{
  display:flex;
  align-items:center;
  gap:12px;
  color:var(--fg);
  text-decoration:none;
}

.bt small{
  display:block;
  letter-spacing:.18em;
  color:rgba(199,183,238,.82);
  text-transform:uppercase;
  font-size:11px;
}
.bt b{display:block; font-weight:800; color:var(--fg)}

.nav-links{display:flex; align-items:center; gap:18px}
.nav-links a{
  color:var(--fg);
  font-weight:700;
  font-size:15px;
  padding:8px 14px;
  border-radius:12px;
  transition:.25s;
}
.nav-links a:hover{
  background:rgba(168,85,247,.22);
  box-shadow:0 12px 30px rgba(168,85,247,.35);
}
.nav-links .ghost{
  border:1px solid rgba(246,241,255,.16);
  background:rgba(42,17,87,.55);
}

/* HERO */
.hero{
  padding:70px 0 30px;
  background:
    radial-gradient(900px 420px at 50% 18%, rgba(168,85,247,.22), transparent 62%);
}
.hero-head{display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:16px}
.eyebrow{
  display:inline-flex;
  align-items:center;
  gap:8px;
  color:rgba(199,183,238,.85);
  font-size:12px;
  letter-spacing:.2em;
  text-transform:uppercase;
}
.dot{width:7px; height:7px; border-radius:50%; background:var(--p)}
.hero-title{
  font-family:'Playfair Display', serif;
  font-size:42px;
  line-height:1.12;
  margin:6px 0 0;
  color:var(--fg);
}
.fade{color:var(--p2)}

/* Featured tiles */
.feat-row{display:grid; grid-template-columns:repeat(12,1fr); gap:16px}
.tile{
  grid-column:span 4;
  position:relative;
  border:1px solid var(--stroke);

  /* purple surfaces (no white) */
  background:linear-gradient(180deg, rgba(42,17,87,.92), rgba(30,12,61,.84));
  border-radius:22px;
  overflow:hidden;

  box-shadow:0 14px 40px -26px rgba(0,0,0,.50);
  transition:.25s transform,.25s box-shadow,.25s border-color;
}
.tile:hover{
  transform:translateY(-4px);
  box-shadow:0 34px 110px -60px rgba(168,85,247,.65);
  border-color:rgba(168,85,247,.45);
}

.img-wrap{position:relative; overflow:hidden; background:rgba(168,85,247,.14)}
.img-wrap img{width:100%; height:100%; object-fit:cover; aspect-ratio:16/10; transform:translateZ(0)}
.img-wrap::after{
  content:"";
  position:absolute; inset:0;
  background:linear-gradient(180deg, rgba(0,0,0,0) 38%, rgba(0,0,0,.42));
  opacity:0;
  transition:opacity .3s ease;
}
.tile:hover .img-wrap::after{opacity:1}
.tile-in{padding:14px}
.kicker{font-size:12px; color:rgba(199,183,238,.80)}
.tile h3{margin:6px 0 0; font-size:18px; color:var(--fg)}
@media(max-width:1000px){
  .feat-row{grid-template-columns:1fr}
  .tile{grid-column:span 12}
}

/* GRID */
.grid{display:grid; grid-template-columns:minmax(0,2fr) minmax(300px,1fr); gap:24px}
@media(max-width:980px){ .grid{grid-template-columns:1fr} }

/* POSTS */
.list{display:grid; gap:22px}
.card{
  border:1px solid var(--stroke);

  /* purple surfaces (no white) */
  background:linear-gradient(180deg, rgba(42,17,87,.92), rgba(30,12,61,.84));

  border-radius:22px;
  overflow:hidden;

  box-shadow:0 14px 44px -30px rgba(0,0,0,.52);
  transition:.25s box-shadow,.25s transform,.25s border-color;
  display:flex;
  flex-direction:column;
}
.card:hover{
  transform:translateY(-4px);
  box-shadow:0 34px 110px -60px rgba(168,85,247,.65);
  border-color:rgba(168,85,247,.45);
}

.post{
  display:grid;
  grid-template-columns:1fr 1.2fr;
  align-items:stretch;
  width:100%;
  content-visibility:auto;
  contain-intrinsic-size:400px 600px;
}
.post .img-wrap{
  position:relative; width:100%; height:100%;
  overflow:hidden;
  background:rgba(168,85,247,.14);
}
.post .img-wrap img{width:100%; height:100%; object-fit:cover; aspect-ratio:16/10; display:block}
.post .b{padding:22px 20px; display:flex; flex-direction:column; justify-content:center; text-align:left}
.meta{color:rgba(199,183,238,.78); font-size:12px; margin-bottom:4px}
.post h2{margin:6px 0 8px; font-size:22px; font-weight:900; line-height:1.3; color:var(--fg)}
.post p{
  color:var(--muted);
  margin:0;
  font-size:15px;
  line-height:1.55;
  overflow:hidden;
  display:-webkit-box;
  -webkit-line-clamp:3;
  -webkit-box-orient:vertical;
}
@media(max-width:900px){
  .post{grid-template-columns:1fr}
  .post .img-wrap{height:230px}
}

/* Pager */
.pager{
  display:flex;
  justify-content:space-between;
  align-items:center;
  border:1px solid var(--stroke);
  background:rgba(42,17,87,.62);
  border-radius:16px;
  padding:8px;
  margin-top:10px;
  box-shadow:0 12px 34px -24px rgba(0,0,0,.50);
}
.pages{display:flex; gap:8px}
.page{
  min-width:38px;
  height:38px;
  display:grid;
  place-items:center;
  border-radius:12px;
  border:1px solid var(--stroke);
  background:rgba(30,12,61,.70);
  color:var(--fg);
  font-weight:800;
}
.page:hover{background:rgba(168,85,247,.20)}
.page.active{
  background:linear-gradient(135deg,#7C3AED,#C084FC);
  color:#fff;
  border-color:rgba(168,85,247,.30);
  box-shadow:0 20px 50px -28px rgba(168,85,247,.75);
}

/* SIDEBAR */
aside{position:sticky; top:92px; height:max-content}
.box{
  border:1px solid var(--stroke);
  background:linear-gradient(180deg, rgba(42,17,87,.92), rgba(30,12,61,.84));
  border-radius:22px;
  padding:16px;
  margin-bottom:16px;
  box-shadow:0 14px 44px -30px rgba(0,0,0,.52);
  content-visibility:auto;
  contain-intrinsic-size:260px 220px;
}
.box h4{
  margin:4px 0 10px;
  font-size:12px;
  letter-spacing:.18em;
  text-transform:uppercase;
  color:rgba(199,183,238,.82);
}

.search{display:flex; gap:8px}
.search input{
  flex:1;
  border-radius:14px;
  padding:12px 14px;
  background:rgba(30,12,61,.72);
  border:1px solid var(--stroke);
  color:var(--fg);
  outline:none;
}
.search input:focus{
  border-color:rgba(168,85,247,.45);
  box-shadow:0 0 0 4px rgba(168,85,247,.22);
}
.search button{
  border:1px solid rgba(246,241,255,.14);
  background:linear-gradient(135deg,#7C3AED,#C084FC);
  color:white;
  border-radius:14px;
  padding:12px 14px;
  cursor:pointer;
  font-weight:900;
  box-shadow:0 16px 46px -26px rgba(168,85,247,.65);
}
.search button:hover{transform:translateY(-1px)}

.chips{display:flex; flex-wrap:wrap; gap:8px}
.chip{
  border:1px solid rgba(246,241,255,.14);
  background:rgba(30,12,61,.62);
  padding:8px 12px;
  border-radius:999px;
  font-size:14px;
  color:rgba(246,241,255,.86);
  font-weight:800;
}
.chip:hover{background:rgba(42,17,87,.70)}

.popular{display:grid; gap:10px}
.popular a{display:flex; gap:10px; color:var(--fg)}
.popular img{
  width:110px; height:78px; object-fit:cover;
  border-radius:12px;
  border:1px solid var(--stroke);
  background:rgba(168,85,247,.14);
}

/* FOOTER */
footer{
  border-top:1px solid var(--stroke);
  background:linear-gradient(90deg, rgba(42,17,87,.85), rgba(26,8,48,.74));
  margin-top:15px;
}
.foot{display:grid; grid-template-columns:1fr auto; gap:12px; padding:22px 0}
@media(max-width:800px){.foot{grid-template-columns:1fr}}

.icons{display:flex; gap:12px}
.icon{
  width:42px;
  height:42px;
  border-radius:14px;
  background:rgba(30,12,61,.70);
  border:1px solid var(--stroke);
  display:grid;
  place-items:center;
}

/* Back to top */
.to-top{
  position:fixed;
  right:18px;
  bottom:18px;
  width:48px;
  height:48px;
  display:grid;
  place-items:center;
  border-radius:50%;
  border:1px solid rgba(246,241,255,.14);
  background:linear-gradient(135deg,#7C3AED,#C084FC);
  color:white;
  box-shadow:0 18px 50px -32px rgba(168,85,247,.75);
  opacity:0;
  pointer-events:none;
  transform:translateY(10px);
  transition:.25s;
}
.to-top.show{opacity:1; pointer-events:auto; transform:translateY(0)}

/* Burger */
.menu-toggle{
  display:none;
  border:1px solid var(--stroke);
  background:rgba(30,12,61,.70);
  padding:10px 12px;
  border-radius:12px;
  color:var(--fg);
  cursor:pointer;
}
@media(max-width:900px){
  .menu-toggle{display:inline-flex; align-items:center; justify-content:center}
  .nav-links{
    display:none !important;
    position:absolute;
    left:0; right:0; top:100%;
    flex-direction:column;
    gap:10px;
    padding:14px 18px 18px;
    border-top:1px solid var(--stroke);
    background:linear-gradient(180deg, rgba(42,17,87,.92), rgba(26,8,48,.86));
    z-index:50;
    box-shadow:0 18px 60px -40px rgba(0,0,0,.65);
  }
  .nav-links.open{display:flex !important}
  .nav-links a{
    display:block;
    width:100%;
    padding:12px 10px;
    border:1px solid var(--stroke);
    border-radius:12px;
    background:rgba(30,12,61,.78);
  }
  body.menu-open{overflow:hidden}
}
