/* assets/style.css
   Clean + bold-card list style like the provided mockup.
   - Body background dark
   - White cards with thick black border
   - Centered text, generous spacing
   - Responsive adjustments for small screens
*/

/* ---------- Root & base ---------- */
:root{
  --page-bg: #000000;        /* deep black page background */
  --card-bg: #ffffff;        /* white card */
  --card-border: #000000;    /* bold black border */
  --accent: #d32f2f;        /* accent for buttons */
  --text: #111111;
  --muted: #666666;
  --radius: 6px;
  --card-border-width: 18px; /* thick border as in mockup */
}

*{box-sizing:border-box}
html,body{
  height:100%;
  margin:0;
  padding:0;
  background:var(--page-bg);
  color:var(--text);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  font-family: "Inter", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  line-height:1.45;
}

/* ---------- Header ---------- */
header {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto 20px;
  padding: 24px 28px; /* lebih tinggi dari sebelumnya */
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;

  background: #ffffff; /* putih */
  color: #000000;      /* teks hitam */
  border-bottom: 1px solid rgba(0,0,0,0.1); /* biar clean */
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);   /* lembut dikit */
}

header h1 {
  margin: 0;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0.2px;
  color: #000000;
}

header h1 a {
  color: inherit;
  text-decoration: none;
}

#search {
  min-width: 220px;
  max-width: 420px;
  width: 300px;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.2);
  background: rgba(0, 0, 0, 0.05);
  color: #000;
  outline: none;
  transition: box-shadow .15s ease, border-color .15s ease, background .15s ease;
}

#search::placeholder {
  color: rgba(0, 0, 0, 0.5);
}

#search:focus {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  border-color: rgba(0, 0, 0, 0.3);
  background: rgba(0, 0, 0, 0.08);
}


/* ---------- Article list container ---------- */
/* #article-list is populated with <a> items by your JS */
/* #article-list is populated with <a> items by your JS */
#article-list{
  width:100%;
  max-width:920px;
  margin: 10px auto 60px;
  padding:0 20px;
  display:flex;
  flex-direction:column;
  gap:34px;               /* large vertical gap matching mockup */
}

/* Style each anchor as a big card */
#article-list a{
  display:block;
  background: var(--card-bg);
  color: var(--text);
  text-decoration:none;
  padding: 50px 28px; /* 🔹 ukuran dalam (tinggi kartu) */
  text-align:center;
  font-size:30px;             /* <- BESAR dan berpengaruh */
  font-weight:700;            /* lebih tebal untuk impact */
  line-height:1.35;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  transition: transform .18s ease, background .18s ease, color .18s ease;
  position: relative;
  /* thick black border look */
  outline: var(--card-border-width) solid var(--card-border);
  outline-offset: 0;
  word-break: break-word;     /* pastikan wrap */
  white-space: normal;
}


/* Make sure long titles wrap nicely and are centered vertically */
#article-list a span {
  display: inline-block;
  max-width: 920px;
  vertical-align: middle;
  font-size: 500px;       /* ✅ ukuran teks lebih besar */
  font-weight: 600;      /* ✅ sedikit lebih tebal biar jelas */
  line-height: 1.4;      /* ✅ jarak antarbaris rapi */
}

/* Hover: invert to black card with white text, subtle lift */
#article-list a:hover{
  transform: translateY(-6px);
  background: var(--card-border);
  color: #fff;
  box-shadow: 0 14px 30px rgba(0,0,0,0.35);
}

/* When hovered, ensure inner text is white */
#article-list a:hover *{ color:inherit; }

/* Pagination (kept minimal) */
#pagination{
  max-width:920px;
  margin: 0 auto 80px;
  padding: 0 20px 40px;
  display:flex;
  justify-content:center;
  gap:10px;
}

#pagination button{
  background: transparent;
  border: 1px solid rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.9);
  padding:8px 12px;
  border-radius:6px;
  cursor:pointer;
  transition: all .12s ease;
  backdrop-filter: blur(4px);
}

#pagination button:hover{ transform:translateY(-2px); border-color: rgba(255,255,255,0.12); }
#pagination button[disabled]{ background: var(--accent); border-color: var(--accent); color: #fff; cursor:default; }

/* ---------- Article page styles ---------- */
#article-content{
  width:100%;
  max-width:880px;
  margin:48px auto 80px;
  padding: 0 20px;
}

#article-content > h2{
  margin:0 0 26px;
  font-size:26px;
  font-weight:700;
  text-align:center;
  color: #fff;
}

/* Video box: keep rounded and shadowed */
#video iframe{
  width:100%;
  height:500px;
  border-radius:8px;
  border:0;
  display:block;
  box-shadow: 0 10px 30px rgba(0,0,0,0.6);
  background:#000;
}

/* Full length button */
.red-btn{
  display:inline-block;
  margin:26px auto 0;
  padding:12px 26px;
  border-radius:999px;
  background: var(--accent);
  color:#fff;
  font-weight:700;
  border:0;
  cursor:pointer;
  transition: transform .12s ease, background .12s ease;
  display:block;
  text-align:center;
}

.red-btn:hover{ transform: translateY(-3px); background:#b71c1c; }

/* ---------- Accessibility / focus states ---------- */
a:focus, button:focus, input:focus{ outline: 3px solid rgba(255,255,255,0.08); outline-offset: 3px; }
/* ---------- Responsiveness ---------- */
@media (max-width: 900px) {
  :root { --card-border-width: 12px; }
  #article-list a { padding: 30px 22px; font-size: 18px; }
  #article-content > h2 { font-size: 22px; }
  #video iframe { height: 360px; }
}

@media (max-width: 600px) {
  :root { --card-border-width: 8px; }

  header {
    height: 64px;
    padding: 0 14px;
    border-radius: 0;
    box-shadow: none;
    position: relative;
    background: #fff;
    color: #000;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  header h1 {
    font-size: 18px;
  }

  /* search di pojok kanan atas */
  #search {
    position: absolute;
    top: 50%;
    right: 14px;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    background-size: 16px;
  }

  #article-list {
    gap: 20px;
    margin: 10px auto 40px;
    padding: 0 14px;
  }

  #article-list a {
    padding: 35px 18px;
    font-size: 18px;
    border-radius: 0;
  }
  #video iframe {
    height: 220px;
  }
}

/* ---------- Utility ---------- */
#article-list a {
  word-break: break-word;
  white-space: normal;
}

#pagination {
  text-align: center;
  margin: 30px 0;
}

#pagination button {
  background: #222;
  color: #fff;
  border: none;
  margin: 0 5px;
  padding: 8px 14px;
  border-radius: 6px;
  cursor: pointer;
}

#pagination button[disabled] {
  background: #555;
  cursor: default;
  opacity: 0.6;
}
