/*
Theme Name: TMDB Pro Movie Grid
Theme URI: https://example.com/
Author: Kamu
Author URI: https://example.com/
Description: Theme pro untuk menampilkan konten Movie/TV dari TMDb dalam bentuk grid, lengkap dengan poster, rating, genres, cast, crew, dan trailer.
Version: 1.2
Text Domain: tmdb-pro-movie-grid
*/

/* ========== BASE ========== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #020617;
  color: #e5e7eb;
}

a {
  color: #38bdf8;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Wrapper layout umum (biar center & responsif) */
.site-header-inner,
.wf-single-wrap,
.wf-movie-single-wrap,
.post-list-wrap,
.page-article {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* ========== HEADER ========== */

.site-header {
  padding: 1rem 0;
  background: #020617;
  border-bottom: 1px solid rgba(148,163,184,0.3);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.site-title {
  font-size: 1.4rem;
  font-weight: 700;
}

.site-title a {
  color: #e5e7eb;
  text-decoration: none;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.site-nav a {
  font-size: 0.95rem;
  color: #e5e7eb;
}
.site-nav a:hover {
  color: #38bdf8;
  text-decoration: none;
}

/* ========== MAIN ========== */

.site-main {
  min-height: auto; /* jangan dipaksa tinggi, biar footer tidak terlihat menggantung */
}

/* ========== FOOTER ========== */

.site-footer {
  padding: 8px 0 10px;
  background: #020617;
  border-top: 1px solid rgba(148,163,184,0.3);
  margin-top: 24px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  text-align: center;
}

.footer-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 3px;
}

.footer-nav a {
  color: #9ca3af;
  text-decoration: none;
  font-size: 12px;
}
.footer-nav a:hover {
  color: #e5e7eb;
}

.footer-text {
  font-size: 11.5px;
  color: #9ca3af;
  margin: 0;
  line-height: 1.2;
}

/* ========== POST BIASA (SINGLE) ========== */

.wf-single-wrap {
  margin: 2rem auto 2.5rem;
}

.wf-single-title {
  font-size: 2rem;
  margin-bottom: 0.25rem;
}

.wf-single-meta {
  font-size: 0.9rem;
  color: #9ca3af;
  margin-bottom: 1rem;
}

.entry-content {
  line-height: 1.7;
  font-size: 0.95rem;
}

/* ========== TMDB MOVIE LAYOUT (single detail) ========== */

.wf-movie-single-wrap {
  margin: 2rem auto 2.5rem;
  padding: 1rem;
  border-radius: 1rem;
  border: 1px solid rgba(148,163,184,0.4);
  background: #020617;
  color: #e5e7eb;
}

.wf-movie-single-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  gap: 1.5rem;
}

@media (max-width: 768px) {
  .wf-movie-single-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

.wf-movie-single-poster img {
  max-width: 100%;
  border-radius: 1rem;
  display: block;
}

.wf-movie-single-meta {
  font-size: 0.9rem;
  color: #9ca3af;
  margin: 0.25rem 0;
}

.wf-movie-single-rating {
  margin-top: 0.3rem;
  font-size: 0.95rem;
}
.wf-movie-single-rating strong {
  color: #facc15;
}

.wf-movie-tagline {
  margin-top: 0.25rem;
  font-style: italic;
  color: #9ca3af;
}

.wf-movie-overview {
  margin-top: 0.75rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #e5e7eb;
}

.wf-movie-meta-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem;
  font-size: 0.9rem;
}

.wf-movie-meta-item {
  padding: 0.6rem 0.75rem;
  border-radius: 0.75rem;
  background: rgba(15,23,42,0.9);
  border: 1px solid rgba(148,163,184,0.35);
}
.wf-movie-meta-item strong {
  display: block;
  margin-bottom: 0.15rem;
  color: #e5e7eb;
}

.wf-movie-trailer {
  margin-top: 1rem;
}
.wf-movie-trailer-title {
  font-size: 1rem;
  margin-bottom: 0.4rem;
}
.wf-movie-trailer-embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid rgba(148,163,184,0.4);
}
.wf-movie-trailer-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Cast & crew */
.wf-movie-people-wrap {
  margin-top: 1.5rem;
}
.wf-movie-people-title {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}
.wf-movie-cast-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
}
.wf-movie-cast-card {
  background: rgba(15,23,42,0.9);
  border-radius: 0.75rem;
  border: 1px solid rgba(148,163,184,0.35);
  padding: 0.6rem;
  font-size: 0.85rem;
}
.wf-movie-cast-avatar {
  width: 100%;
  border-radius: 0.5rem;
  margin-bottom: 0.4rem;
  object-fit: cover;
  aspect-ratio: 2 / 3;
}
.wf-movie-cast-name {
  font-weight: 600;
  color: #e5e7eb;
}
.wf-movie-cast-character {
  color: #9ca3af;
  font-size: 0.8rem;
}
.wf-movie-crew-list {
  margin-top: 0.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.85rem;
}
.wf-movie-crew-chip {
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  background: rgba(15,23,42,0.9);
  border: 1px solid rgba(148,163,184,0.35);
}
.wf-movie-crew-chip strong {
  color: #e5e7eb;
}

/* ========== ARCHIVE / HOME GRID ========== */

.post-list-wrap {
  margin: 2rem auto 1.5rem;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.3rem;
}

/* Kartu per post (poster + judul + meta kalau mau) */
.post-card {
  border-radius: 0.75rem;
  border: 1px solid rgba(148,163,184,0.35);
  padding: 0.75rem;
  background: rgba(15,23,42,0.95);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.post-card-thumb {
  margin-bottom: 0.6rem;
}

.post-card-thumb img {
  width: 100%;
  border-radius: 0.6rem;
  display: block;
  object-fit: cover;
  aspect-ratio: 2 / 3;
}

.post-card-title {
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
}

/* Kalau mau cuma poster + judul, bisa hide meta & excerpt */
.post-card-meta {
  font-size: 0.8rem;
  color: #9ca3af;
  margin-bottom: 0.35rem;
}
.post-card-excerpt {
  font-size: 0.85rem;
  color: #e5e7eb;
  margin-top: auto;
}

/* Pagination */
.pagination {
  margin-top: 1.5rem;
  text-align: center;
}
.pagination .page-numbers {
  display: inline-block;
  padding: 0.35rem 0.6rem;
  margin: 0 0.15rem;
  border-radius: 0.4rem;
  border: 1px solid rgba(148,163,184,0.4);
  font-size: 0.9rem;
}
.pagination .page-numbers.current {
  background: #38bdf8;
  color: #0f172a;
  border-color: #38bdf8;
}

/* ========== PAGE (privacy, about, dll) ========== */

.page-article {
  margin: 2rem auto 2.5rem;
}

.page-title {
  text-align: center;
  margin-bottom: 16px;
  font-size: 22px;
}

.page-content {
  max-width: 900px;
  margin: 0 auto;
  font-size: 14px;
  line-height: 1.7;
  color: #e0e0ea;
}

.page-content p {
  margin-bottom: 10px;
}

.page-content h2,
.page-content h3 {
  margin-top: 16px;
  margin-bottom: 8px;
}

/* ========== RESPONSIVE BREAKPOINTS ========== */

@media (max-width: 1024px) {
  .site-header-inner,
  .wf-single-wrap,
  .wf-movie-single-wrap,
  .post-list-wrap,
  .page-article {
    max-width: 100%;
  }

  .post-grid {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  }
}

@media (max-width: 768px) {
  .site-header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .post-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-content {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .post-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
  }

  .post-card {
    padding: 0.6rem;
  }
}
/* ===== FOOTER SUPER TIPIS ===== */

.site-footer {
  padding: 4px 0 6px;   /* sebelumnya 8px 0 10px */
  margin-top: 8px;      /* sebelumnya 24px */
}

/* Isi footer di-compact */
.footer-nav {
  gap: 4px;
  margin-bottom: 2px;
}

.footer-nav a {
  font-size: 11px;
  padding: 0;
}

.footer-text {
  font-size: 11px;
  margin: 0;
  padding: 0;
  line-height: 1.2;
}

/* Kurangi jarak konten ke footer di beranda */
.post-list-wrap {
  margin: 2rem auto 0.5rem;  /* sebelumnya 2rem auto 1.5rem */
}
.site-logo {
    display: block;
    text-align: left;
}

.site-logo img {
    margin-left: 0;
    float: left;
}
.header-container {
    display: flex;
    justify-content: flex-start; /* posisi ke kiri */
    align-items: center;
}
/* Pastikan container header memulai dari sisi kiri */
header .header-container {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 0; /* atur padding sesuai kebutuhan */
}

/* Header container jadi horizontal */
header .header-container, header .site-header {
    display: flex !important;
    justify-content: flex-start !important;
    align-items: center !important;
}

/* Logo ke kiri */
header .site-logo, header .navbar-brand {
    margin: 0;
    padding-right: 20px; /* spasi antara logo dan navigasi */
}

/* Navigasi setelah logo */
header .main-navigation {
    flex-grow: 1;
}

