/* =====================================================
   HOME.CSS – Clean Premium + Theme Compatible
===================================================== */

/* -----------------------------------------------------
   Background System
----------------------------------------------------- */

:root{
  --hero1: #0b1220;
  --hero2: #0f172a;
  --glow: rgba(46, 204, 113, .18);
  --line: rgba(148, 163, 184, .18);
  --soft: rgba(255,255,255,.04);
}

.layout-home .site-main{
  position: relative;
}

/* Premium radial glow background */
.layout-home .site-main::before{
  content:"";
  position:absolute;
  inset:-40px 0 auto 0;
  height:520px;
  background:
    radial-gradient(900px 420px at 20% 15%, var(--glow), transparent 60%),
    radial-gradient(700px 380px at 80% 25%, rgba(37,99,235,.16), transparent 55%),
    linear-gradient(180deg, var(--hero1), transparent 70%);
  pointer-events:none;
  z-index:0;
}

/* Subtle grid overlay */
.layout-home .site-main::after{
  content:"";
  position:absolute;
  inset:0;
  background:
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 48px 48px;
  opacity:.18;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.9), transparent 55%);
  pointer-events:none;
  z-index:0;
}

.layout-home .site-main > *{
  position: relative;
  z-index:1;
}

/* -----------------------------------------------------
   Hero
----------------------------------------------------- */

.hero-wrapper-mini{
  background: rgba(255,255,255,.04);
  border:1px solid rgba(148,163,184,.22);
  box-shadow:
    0 18px 45px rgba(0,0,0,.25),
    0 0 0 1px rgba(255,255,255,.03) inset;
  backdrop-filter: blur(10px);
  border-radius:18px;
}

.hero-wrapper-mini h1{
  letter-spacing:-0.02em;
  color:var(--text);
}

.hero-wrapper-mini p{
  max-width:60ch;
  margin:0 auto;
  color:var(--text-muted);
}

/* -----------------------------------------------------
   Featured Section
----------------------------------------------------- */

.featured-section{
  padding:30px 0 70px;
}

.featured-container{
  max-width:1200px;
  margin:0 auto;
  padding:0 20px;
}

.featured-header{
  text-align:center;
  margin-bottom:30px;
}

.featured-header h2{
  font-size:2.2rem;
  font-weight:900;
  margin:0;
  color:var(--text);
  letter-spacing:-0.02em;
}

.featured-header p{
  margin-top:6px;
  color:var(--text-muted);
}

.featured-accent{
  width:60px;
  height:4px;
  margin:15px auto 0;
  border-radius:3px;
  background:var(--accent);
}

/* Grid */
.featured-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(320px,1fr));
  gap:30px;
}

/* -----------------------------------------------------
   Gallery Card
----------------------------------------------------- */

.gallery-card{
  background: rgba(255,255,255,.05);
  border:1px solid rgba(148,163,184,.22);
  border-radius:18px;
  overflow:hidden;
  display:flex;
  flex-direction:column;
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  backdrop-filter: blur(8px);
}

.gallery-card:hover{
  transform:translateY(-4px);
  border-color: rgba(46,204,113,.35);
  box-shadow:0 18px 45px rgba(0,0,0,.22);
}

.gallery-image{
  aspect-ratio:16/9;
  background:rgba(255,255,255,.04);
  display:block;
  overflow:hidden;
}

.gallery-image img{
  width:100%;
  height:100%;
  object-fit:cover;
}

.gallery-placeholder{
  width:100%;
  height:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:3rem;
  color:var(--text-muted);
}

.gallery-content{
  padding:18px;
  display:flex;
  flex-direction:column;
  flex-grow:1;
}

.gallery-content h3{
  margin:0 0 12px;
  font-size:1rem;
  font-weight:700;
  color:var(--text);
}

.gallery-content h3 a{
  text-decoration:none;
  color:inherit;
}

.gallery-meta{
  margin-top:auto;
  display:flex;
  justify-content:space-between;
  align-items:center;
  font-size:.75rem;
  color:var(--text-muted);
}

/* Status badge */
.gallery-meta .status{
  font-weight:700;
  text-transform:uppercase;
  padding:3px 8px;
  border-radius:999px;
  background:rgba(255,255,255,.08);
  border:1px solid rgba(148,163,184,.22);
}

/* -----------------------------------------------------
   Buttons
----------------------------------------------------- */

.featured-footer{
  margin-top:40px;
  text-align:center;
}

.btn-primary{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:14px 28px;
  border-radius:14px;
  font-weight:700;
  text-decoration:none;
  color:white;
  background:var(--accent);
  transition:transform .15s ease;
}

.btn-primary:hover{
  transform:translateY(-2px);
}

/* -----------------------------------------------------
   Did You Know
----------------------------------------------------- */

.did-you-know-box{
  background:rgba(255,255,255,.05);
  border:1px solid rgba(148,163,184,.22);
  box-shadow:0 12px 28px rgba(0,0,0,.18);
  border-radius:22px;
}

.tip-badge{
  box-shadow:0 0 0 3px rgba(46,204,113,.12);
}
