/*
Theme Name: Bytecut
Author: Smit
Version: 1.0
Description: Custom dark tech blog theme based on Bytecut HTML UI
*/

/* =========================
   ROOT & GLOBAL
========================= */
:root{
  --bg:#0b1020; 
  --card:#0f1724; 
  --muted:#9aa3b2; 
  --accent1:#00e5ff; 
  --accent2:#9b59ff; 
  --glass: rgba(255,255,255,0.03);
  --max-width:1100px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial;
}

*{
  box-sizing:border-box;
}

html,body{
  margin:0;
  background:var(--bg);
  color:#e6eef6;
}

a{
  color:var(--accent1);
  text-decoration:none;
}

/* =========================
   LAYOUT
========================= */
.container{
  max-width:var(--max-width);
  margin:0 auto;
  padding:24px;
}

/* =========================
   HEADER
========================= */
header{
  backdrop-filter: blur(6px);
  background:linear-gradient(180deg, rgba(255,255,255,0.02), transparent);
  border-bottom:1px solid rgba(255,255,255,0.03);
}

.nav{
  display:flex;
  align-items:center;
  gap:18px;
}

.logo{
  display:flex;
  align-items:center;
  gap:12px;
  font-weight:700;
}

.logo .mark{
  width:44px;
  height:44px;
  border-radius:10px;
  background:linear-gradient(135deg,var(--accent1),var(--accent2));
  display:grid;
  place-items:center;
  font-weight:700;
}

nav{
  margin-left:auto;
}

nav a{
  margin:0 8px;
  font-weight:600;
  color:var(--muted);
}

/* =========================
   POSTS GRID
========================= */
.posts{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:18px;
  margin-top:18px;
}

/* =========================
   CARD
========================= */
.card{
  background:var(--card);
  border-radius:14px;
  overflow:hidden; /* REQUIRED for edge-to-edge thumbnails */
  border:1px solid rgba(255,255,255,0.02);
}

/* =========================
   THUMBNAIL (EDGE-TO-EDGE)
========================= */
.thumb{
  height:160px;
  background:linear-gradient(90deg,var(--accent1),var(--accent2));
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:700;
  overflow:hidden;
}

.thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

/* =========================
   CARD BODY
========================= */
.card .body{
  padding:14px;
}

.card h3{
  margin:0 0 8px;
}

.meta{
  font-size:13px;
  color:var(--muted);
  margin-bottom:8px;
}

.excerpt{
  color:var(--muted);
  font-size:14px;
  line-height:1.5;
}

.read{
  display:inline-block;
  margin-top:12px;
  font-weight:700;
}

/* =========================
   BUTTONS
========================= */
.btn{
  padding:12px 18px;
  border-radius:999px;
  font-weight:700;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  transition:all 0.25s ease;
}

a.btn-primary{
  background:linear-gradient(90deg,var(--accent1),var(--accent2));
  color:#06101a !important;
  box-shadow:0 6px 18px rgba(155,89,255,0.25);
}

a.btn-primary:hover{
  transform:translateY(-1px);
  box-shadow:0 10px 24px rgba(155,89,255,0.35);
}

/* =========================
   HERO ACTIONS
========================= */
.hero-actions{
  display:flex;
  gap:12px;
  margin-top:20px;
}

/* =========================
   SIDEBAR GRID
========================= */
.grid-2{
  display:grid;
  grid-template-columns:1fr 320px;
  gap:18px;
}

/* =========================
   FOOTER
========================= */
footer{
  padding:32px 0;
  color:var(--muted);
  margin-top:32px;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width:900px){

  .posts{
    grid-template-columns:1fr;
  }

  .grid-2{
    grid-template-columns:1fr;
  }

  aside{
    order:2;
  }

  nav{
    display:none;
  }
}

/* =========================
   MOBILE POLISH
========================= */
@media (max-width:600px){

  /* smaller thumbnail but still edge-to-edge */
  .thumb{
    height:120px;
  }

  /* tighter body padding */
  .card .body{
    padding:12px;
  }

  .card h3{
    font-size:16px;
    line-height:1.3;
  }

  .excerpt{
    font-size:13px;
    line-height:1.4;
  }

  .meta{
    font-size:12px;
  }

  .hero-actions{
    flex-direction:column;
    gap:10px;
  }

  .hero-actions .btn{
    width:100%;
    font-size:16px;
    padding:14px 18px;
  }
}


