/* ===== Minimalist Dark Theme CSS ===== */

/* Base Styles */
body {
  font-family: "Inter", "Segoe UI", Roboto, Arial, sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.6em;
  color: #E0E0E0;
  background: #121212;
  margin: 0;
  padding: 0;
}

h1, h2, h3 {
  color: #F5F5F5;
  font-weight: 500;
  letter-spacing: -0.5px;
}

h1 {
  margin-bottom: 10px;
  font-size: 26px;
}

h2 {
  margin-bottom: 8px;
  font-size: 22px;
}

h3 {
  margin-bottom: 5px;
  font-size: 18px;
}

a, a:link, a:active {
  text-decoration: none;
  color: #4A90E2;
  transition: color 0.2s ease;
}

a:hover {
  color: #FF6B6B;
  text-decoration: underline;
}

hr {
  margin: 25px 0;
  border: 0;
  border-top: 1px solid #2D2D2D;
}

blockquote {
  background: #1E1E1E;
  border-left: 3px solid #4A90E2;
  margin: 1.5rem 0;
  padding: 1.25rem 1.5rem;
  border-radius: 0 6px 6px 0;
  font-style: italic;
  color: #E0E0E0;
  position: relative;
}

blockquote::before {
  content: '"';
  font-family: Georgia, serif;
  font-size: 2.5rem;
  color: #FF6B6B;
  position: absolute;
  left: 12px;
  top: 8px;
  opacity: 0.4;
}

blockquote p {
  margin: 0;
  line-height: 1.7;
}

blockquote cite {
  margin-top: 0.75rem;
  font-style: normal;
  font-weight: 500;
  color: #FF6B6B;
  font-size: 0.85rem;
  display: block;
}

code {
  font-family: 'Fira Code', 'Courier New', monospace;
  background: #1A1A1A;
  border-radius: 4px;
  color: #F5F5F5;
  padding: 0.2em 0.4em;
  font-size: 0.9em;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.95rem;
  background: #1A1A1A;
  border-radius: 6px;
  overflow: hidden;
}

th {
  background: #0A0A0A;
  color: #B0B0B0;
  font-weight: 500;
  text-align: left;
  padding: 0.75rem 1rem;
  border-bottom: 2px solid #2D2D2D;
}

td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #2D2D2D;
  vertical-align: top;
}

tr:hover td {
  background: #1E1E1E;
}

@media (max-width: 768px) {
  table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}

.container {
  display: flex;
  max-width: 900px;
  margin: 0 auto;
  padding: 25px;
  gap: 35px;
}

.sidebar {
  flex: 0 0 220px;
}

.fixed-condition {
  position: sticky;
  top: 25px;
}

.logo {
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 20px auto;
  filter: brightness(0.9);
}

.search {
  width: 100%;
  box-sizing: border-box;
  position: relative;
}

.search input[type="text"] {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 10px 14px;
  border: 1px solid #2D2D2D;
  border-radius: 6px;
  font-size: 16px;
  margin-bottom: 20px;
  background-color: #1A1A1A;
  color: #E0E0E0;
  transition: border-color 0.3s ease;
}

.search input[type="text"]:focus {
  outline: none;
  border-color: #4A90E2;
  box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.2);
}

.sidebar-nav {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

@media (min-width: 1024px) {
  .sidebar-nav {
    grid-template-columns: 1fr;
  }
  .nav-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    transition: transform 0.2s ease;
  }
  .nav-item:hover {
    transform: translateY(-2px);
  }
}

@media (max-width: 1023px) {
  .logo {
    width: 70%;
  }
  .sidebar-nav {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .nav-item {
    background: #1A1A1A;
    border-radius: 8px;
    overflow: hidden;
  }
}

.nav-link {
  display: flex;
  align-items: center;
  padding: 10px 12px;
  color: #E0E0E0;
  text-decoration: none;
  position: relative;
  z-index: 1;
}

.nav-icon {
  width: 20px;
  height: 20px;
  margin-right: 12px;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.nav-text {
  font-weight: 500;
  transition: transform 0.2s ease;
}

.nav-hover {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1A1A1A 0%, #252525 100%);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.nav-item:hover .nav-hover {
  opacity: 1;
}

.nav-item:hover .nav-icon {
  transform: scale(1.1);
}

.nav-item:hover .nav-text {
  transform: translateX(4px);
  color: #FF6B6B;
}

.nav-item:hover .nav-icon path {
  fill: #FF6B6B;
}

@media (max-width: 480px) {
  .nav-link {
    padding: 12px;
  }
  .nav-icon {
    width: 18px;
    height: 18px;
    margin-right: 8px;
  }
}

.main-content {
  flex: 1;
  min-width: 0;
}

.main-layout .post {
  padding: 10px 0;
}

.post-header {
  margin-bottom: 1.25rem;
}

.post-header hr {
  border: 0;
  height: 1px;
  background: #1A1A1A;
  margin: 0.5rem 0;
}

.breadcrumb {
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
  color: #B0B0B0;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  font-size: 0.7rem;
  padding: 0;
  margin: 0;
}

.breadcrumb li {
  display: inline-flex;
  align-items: center;
}

.breadcrumb a {
  color: #888888;
  text-decoration: none;
  transition: color 0.2s ease;
}

.breadcrumb a:hover {
  color: #4A90E2;
  text-decoration: underline;
}

.post-title {
  font-size: 1.75rem;
  line-height: 1.25;
  color: #F5F5F5;
  margin: 0 0 1rem 0;
  font-weight: 500;
  letter-spacing: -0.5px;
  position: relative;
  padding-bottom: 0.5rem;
}

.post-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30%;
  height: 2px;
  background: linear-gradient(90deg, #4A90E2, #FF6B6B);
  border-radius: 1px;
}

.post-meta-wrapper {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.post-meta-author,
.post-meta-date {
  display: flex;
  font-size: 0.85rem;
  align-items: center;
  gap: 0.5rem;
  background: #1A1A1A;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  transition: background 0.2s ease;
}

.post-meta-author:hover,
.post-meta-date:hover {
  background: #1E1E1E;
}

.author-name,
.date-text {
  font-weight: 500;
  color: #B0B0B0;
}

.post-meta-separator {
  width: 1px;
  height: 16px;
  background: #2D2D2D;
}

.post-content {
  line-height: 1.7;
  color: #E0E0E0;
  font-size: 1.05rem;
}

.post-content p {
  margin-bottom: 1.25rem;
}

/* Featured image di atas konten */
.featured-image {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  margin: 0 0 1.75rem 0;
  box-shadow: 0 4px 18px rgba(0,0,0,0.35);
}

/* Gambar di dalam artikel */
.post-image {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
  margin: 1.75rem auto 0.5rem auto;
  box-shadow: 0 3px 12px rgba(0,0,0,0.25);
  /* tidak ada hover effect */
}

/* Caption di bawah post image */
.post-image-caption {
  font-size: 0.8rem;
  color: #B0B0B0;
  text-align: center;
  margin: 0.25rem auto 1.5rem auto;
  max-width: 90%;
}

/* Mobile spacing tweak */
@media (max-width: 768px) {
  .featured-image {
    margin-bottom: 1.5rem;
  }
  .post-image {
    margin: 1.25rem auto 0.4rem auto;
  }
  .post-image-caption {
    margin-bottom: 1.25rem;
  }
}


.post-related {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #2D2D2D;
}

.post-related h3 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: #F5F5F5;
}

.post-related ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.6rem;
}

.post-related li {
  margin-bottom: 0;
}

.post-related a {
  display: block;
  padding: 0.6rem 0.8rem;
  background: #1A1A1A;
  border-radius: 4px;
  color: #4A90E2;
  text-decoration: none;
  transition: all 0.2s ease;
}

.post-related a:hover {
  background: #1E1E1E;
  color: #FF6B6B;
}

@media (max-width: 768px) {
  .main-content .post {
    padding: 20px 0;
  }
  .post-related ul {
    grid-template-columns: 1fr;
  }
}

footer {
  margin-top: 30px;
  padding-top: 20px;
  font-size: 0.9rem;
  color: #888888;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

footer nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

footer nav a {
  color: #888888;
  text-decoration: none;
  transition: color 0.2s ease;
}

footer nav a:hover {
  color: #4A90E2;
  text-decoration: underline;
}

/* Pagination */
.pagination-container {
  margin: 2.5rem 0;
  width: 100%;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.pagination .page-item {
  margin: 0;
  flex-shrink: 0;
}

.pagination .page-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border-radius: 6px;
  border: 1px solid #2D2D2D;
  background: #1A1A1A;
  color: #E0E0E0;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
}

.pagination .page-item.active .page-link {
  background: #4A90E2;
  border-color: #4A90E2;
  color: #121212;
}

.pagination .page-link:hover {
  background: #1E1E1E;
}

.pagination .page-item.active .page-link:hover {
  background: #FF6B6B;
}

.pagination .page-item.disabled .page-link {
  background: #1A1A1A;
  color: #444444;
  border-color: #1A1A1A;
}

@media (max-width: 768px) {
  .container {
    flex-direction: column;
    padding: 20px 15px;
  }
  .sidebar {
    flex: 1;
    margin-bottom: 25px;
  }
  .fixed-condition {
    position: static;
  }
  footer {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }
  footer nav ul {
    justify-content: center;
  }
}

.ads {
  margin: 20px 0;
}

.sidebar-ads {
  display: none;
}

@media (min-width: 1024px) {
  .sidebar-ads {
    display: block;
    margin-top: 20px;
  }
}
