/*
Theme Name: SeriesPress
Theme URI: https://example.com/seriespress
Author: DevLogor
Author URI: https://devlogor.me
Description: Minimal starter theme for Series Core Plugin. Lightweight, simple, and ready to extend.
Version: 0.1.0
License: GPL-2.0+
Text Domain: seriespress
*/

/* CSS RESET */
*, *::before, *::after {
  box-sizing: border-box;
  font-family: "inter", sans-serif;
}
* {
  margin: 0;
}
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
	display: block;
}
ol, ul {
	list-style: none;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}
img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}
p {
  text-wrap: pretty;
}
h1, h2, h3, h4, h5, h6 {
  text-wrap: balance;
}
a {
  color: currentColor;
  text-decoration: none;
}
a:hover {
  opacity: .8;
  transition-timing-function: cubic-bezier(.4,0,.2,1);
  transition-duration: .15s;
}


/* CSS Custom */
:root * {
  --bg-body: #171717;
  --bg-card: #232323;
  --text-body: #e4e4e7;
  --text-muted: #a1a1aa;
}

body {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  background-color: var(--bg-body);
  color: var(--text-body);
}
.text-muted {
  color: var(--text-muted) !important;
}
h1 {
  font-weight: 600;
  color: #fafafa;
}
/* Custom Font Size Utilities */
.text-xs { font-size: 0.651rem; }   /* 10.42px */
.text-sm { font-size: 0.75rem; }     /* 12px - mendekati 12.5px */
.text-base { font-size: 0.938rem; }    /* 15px */
.text-lg { font-size: 1.125rem; }  /* 18px */
.text-xl { font-size: 1.35rem; }     /* 21.6px */
.text-2xl { font-size: 1.62rem; }     /* 25.92px */
.text-3xl { font-size: 1.944rem; }   /* 31.1px */
.text-4xl { font-size: 2.332rem; }   /* 37.32px */
.text-5xl { font-size: 2.799rem; }   /* 44.79px */

/* Heading Utilities sesuai gambar */
.h1 { font-size: 2.799rem; }         /* 44.79px */
.h2 { font-size: 2.332rem; }         /* 37.32px */
.h3 { font-size: 1.944rem; }         /* 31.1px */
.h4 { font-size: 1.62rem; }          /* 25.92px */
.h5 { font-size: 1.35rem; }          /* 21.6px */
.h6 { font-size: 1.125rem; }         /* 18px */

/* Paragraph dan small */
.p { font-size: 0.938rem; }          /* 15px */
.small { font-size: 0.75rem; }       /* 12px - mendekati 12.5px */

/* Line Clamp */
.line-clamp-1 {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.line-clamp-4 {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

/* header */
header {
  display: flex;
  gap: 2rem;
  align-items: center;
  padding: 1rem 0;
  margin-bottom: 1.5rem !important;
}
header .site-title {
  font-weight: 600;
}
header .menu {
  display: flex;
  gap: 1.5rem;
}

section {
  margin-bottom: 2rem;
}
/* grid section */
.grid-item {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1.25rem;
}
.grid-item.archive {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.widget-title {
  font-weight: 500;
  margin-bottom: .75rem;
}

/* Card Cover */
.poster {
  position: relative;
  aspect-ratio: 2 / 3;
  display: block;
  max-width: 250px;
}
.wrap-konten-item .poster {
  margin: 0 auto;
}
.poster > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
}
.card-item {
  background: var(--bg-card);
  padding: 1rem;
  border-radius: 4px;
}
.archive .card-item {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: .75rem;
}
.card-cover {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.card-title {
  font-size: 14px;
  font-weight: 500;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-cover .card-body {
  display: flex;
  flex-direction: column;
  gap: .25rem;
}
.card-cover .card-body > a {
  background: var(--bg-card);
  padding: .45rem .6rem;
  display: flex;
  align-items: center;
  gap: .25rem;
  justify-content: space-between;
  text-transform: capitalize;
  border-radius: 4px;
}

/* konten item */
.wrap-konten-item {
  display: grid;
  grid-template-columns: 275px 1fr;
  gap: 1rem;
  margin-bottom: 2rem;
}
.konten-item {
  order: 2;
}
.konten-item .head-konten {
  margin-bottom: 2rem;
  text-align: center;
  font-weight: 500;
}
.konten {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  line-height: 1.85;
  width: 100%;
  max-width: 782px;
  margin: auto;
}
.nextprev {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}
.nextprev > a {
  background: var(--bg-card);
  padding: 1rem;
  display: flex;
  height: 40px;
  align-items: center;
  font-size: 13px;
  font-weight: 500;
  border-radius: 4px;
}
.nextprev svg {
  width: 16px;
  height: 16px;
}
.nextprev .nolink {
  opacity: .5 !important;
  cursor: not-allowed;
}

/* series-info card */
.series-info {
  background: #1c1c1c;
  padding: 1rem;
}
.info {
  grid-template-columns: 60px 1fr;
  display: grid;
  gap: 1rem;
  margin-bottom: 1rem;
}
.info-body p {
  margin-top: .5rem;
}

/* page series */
.detail {
  margin-top: .25rem;
  margin-bottom: .5rem;
}
.item-list {
  display: flex;
  flex-direction: column;
  gap: .25rem;
}
.item-list li a {
  display: flex;
  gap: .5rem;
  justify-content: space-between;
  align-items: center;
  text-transform: capitalize;
  padding: .5rem 1rem;
  background: var(--bg-card);
  border-radius: 4px;
}
.controls {
  display: flex;
  gap: .5rem;
  margin-top: 1.5rem;
  margin-bottom: .5rem;
}
input.search-box {
  flex: 1;
}
input.search-box {
  width: 100%;
  padding: .65rem 1rem;
  border: none;
  border-radius: 4px;
  background: var(--bg-card);
  color: white;
  border: 2px solid transparent;
  transition: all 0.3s;
  opacity: .75;
}
input.search-box:focus {
  outline: none;
  border-color: #fdbb2d;
}
input.search-box::placeholder {
  color: #aaa;
}
.controls button, .boxsearch button {
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 2px solid var(--bg-card);
  border-radius: 5px;
  color: var(--text-body);
  width: 40px;
}
.controls button:hover, .boxsearch button:hover {
  background: var(--bg-card);
  cursor: pointer;
  transition: all .25s;
  opacity: ;
}
.controls svg, .boxsearch svg {
  width: 16px;
  height: 16px;
}


/* search result */
.boxsearch {
  width: 100%;
  max-width: 280px;
  margin-left: auto;
  position: relative;
}
.boxsearch button {
  position: absolute;
  right: 2px;
  top: 2px;
  height: 36px;
  width: 36px;
  opacity: .5;
}
.search-result {
  position: relative;
}
#seriesResults {
  position: absolute;
  z-index: 99;
  background: var(--bg-card);
  right: 0;
  top: 0;
}
#seriesResults li {
  border-bottom: 1px solid #333;
}
#seriesResults li a {
  display: flex;
  gap: .5rem;
  align-items: center;
  padding: .5rem;
}
#seriesResults li a img {
  width: 50px;
  border-radius: 4px;
}
#seriesResults li a h5 {
  font-size: 13px;
  font-weight: 600;
  color: #fafafa;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  padding: 1rem;
  margin: 1rem;
  gap: 1rem;
}
.pagination a {
  background: var(--bg-card);
  padding: 1rem;
  display: flex;
  height: 40px;
  align-items: center;
  font-size: 13px;
  font-weight: 500;
  border-radius: 4px;
}

/* Tags */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin: .75rem 0;
}
.tags a, .tags span {
  padding: .25rem .5rem;
  font-size: 12px;
  height: inherit;
  background: var(--bg-card);
  display: inline-flex;
  align-items: center;
  border-radius: 4px;
}
.tags span {
  background: var(--bg-body);
}

footer {
  text-align: center;
  padding: 2rem 0 !important;
  margin-top: 2rem !important;
}


@media (max-width: 782px) {
  .wrap-konten-item {
    grid-template-columns: 1fr;
  }
  .konten-item {
    order: 0;
  }
  .grid-item {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
  }
  .grid-item.archive {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }
  
  header.container {
    flex-direction: column;
    gap: .5rem;
  }
  header.container > * {
    width: 100%;
    max-width: 100%;
    text-align: center;
  }
  header.container > .menu {
    flex-wrap: wrap;
    justify-content: center;
    line-height: 1;
    margin: .5rem;
    gap: 1.25rem;
    font-size: 14px;
  }
}

@media (max-width: 524px) {
  .grid-item {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}