/* assets/css/style.css */

/* ==========================================================================
   RESET & BASE
   ========================================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary, 'Inter', system-ui, -apple-system, sans-serif);
  font-size: var(--font-size-base, 16px);
  line-height: 1.5;
  color: var(--text-color, #e4e6f1);
  background-color: var(--bg-color, #0b0c14);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Container utama */
.container {
  max-width: var(--container-width, 1200px);
  margin: 0 auto;
  padding: 0 calc(var(--spacing-unit, 8px) * 2);
  width: 100%;
}

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: calc(var(--spacing-unit, 8px) * 2);
  color: #ffffff;
}

h1 { font-size: 2.2rem; }
h2 { font-size: 1.8rem; }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.2rem; }

p {
  margin-bottom: calc(var(--spacing-unit, 8px) * 2);
}

a {
  color: var(--primary, #6d8cff);
  text-decoration: none;
  transition: all var(--transition-speed, 250ms) ease;
}

a:hover {
  color: var(--primary-light, #8ba3ff);
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */
.nav {
  background: rgba(10, 12, 22, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-height, 70px);
  display: flex;
  align-items: center;
}

.nav-inner {
  max-width: var(--container-width, 1200px);
  width: 100%;
  margin: 0 auto;
  padding: 0 calc(var(--spacing-unit, 8px) * 2);
  display: flex;
  align-items: center;
  gap: calc(var(--spacing-unit, 8px) * 3);
}

.nav-logo {
  font-size: 1.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary, #6d8cff), var(--secondary, #ff6b9d));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  white-space: nowrap;
}

.nav-logo span {
  font-weight: 400;
  opacity: 0.8;
}

.nav-links {
  display: flex;
  gap: calc(var(--spacing-unit, 8px) * 2);
  list-style: none;
  margin-left: auto;
}

.nav-links a {
  color: var(--text-muted, #9ea3b5);
  font-weight: 500;
  padding: calc(var(--spacing-unit, 8px)) 0;
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links a i {
  font-size: 1rem;
  opacity: 0.7;
}

.nav-links a:hover,
.nav-links a.active {
  color: #ffffff;
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary, #6d8cff);
  border-radius: 2px;
}

.nav-search {
  position: relative;
  width: 260px;
}

.nav-search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted, #6b7db3);
  font-size: 0.9rem;
  pointer-events: none;
}

.nav-search input {
  width: 100%;
  height: 38px;
  padding: 0 12px 0 36px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius-lg, 12px);
  background: rgba(255, 255, 255, 0.03);
  color: #ffffff;
  font-size: 0.95rem;
  transition: all var(--transition-speed, 250ms) ease;
}

.nav-search input:focus {
  outline: none;
  border-color: var(--primary, #6d8cff);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 0 3px rgba(109, 140, 255, 0.1);
}

.nav-menu-btn {
  display: none;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 1.5rem;
  cursor: pointer;
  margin-left: auto;
}

/* ==========================================================================
   MOBILE NAV
   ========================================================================== */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-speed, 250ms) ease;
}

.mobile-nav.open {
  opacity: 1;
  visibility: visible;
}

.mobile-nav-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
}

.mobile-nav-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: 300px;
  height: 100%;
  background: var(--bg-color, #0b0c14);
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  padding: calc(var(--spacing-unit, 8px) * 2);
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform var(--transition-speed, 250ms) ease;
}

.mobile-nav.open .mobile-nav-panel {
  transform: translateX(0);
}

.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: calc(var(--spacing-unit, 8px) * 3);
  padding-bottom: calc(var(--spacing-unit, 8px) * 2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-nav-close {
  background: none;
  border: none;
  color: var(--text-muted, #9ea3b5);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 8px;
}

.mobile-search-form {
  margin-bottom: calc(var(--spacing-unit, 8px) * 3);
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: calc(var(--spacing-unit, 8px));
}

.mobile-nav-links a {
  padding: calc(var(--spacing-unit, 8px) * 1.5);
  border-radius: var(--border-radius, 8px);
  color: var(--text-color, #e4e6f1);
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
}

.mobile-nav-links a i {
  width: 20px;
  color: var(--primary, #6d8cff);
}

.mobile-nav-links a:hover,
.mobile-nav-links a.active {
  background: rgba(255, 255, 255, 0.05);
}

/* ==========================================================================
   CONTENT GRID
   ========================================================================== */
.content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: calc(var(--spacing-unit, 8px) * 3);
  margin: calc(var(--spacing-unit, 8px) * 2) 0;
}

.card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: var(--border-radius, 8px);
  overflow: hidden;
  transition: all var(--transition-speed, 250ms) ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-lg, 0 8px 32px rgba(0, 0, 0, 0.13));
  background: rgba(255, 255, 255, 0.03);
}

.card-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0a0c16;
}

.card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-speed, 250ms) ease;
}

.card:hover .card-thumb img {
  transform: scale(1.05);
}

.badge-duration {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  color: #ffffff;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.badge-type {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--primary, #6d8cff);
  color: #ffffff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  box-shadow: 0 4px 12px rgba(109, 140, 255, 0.3);
}

.card-info {
  padding: calc(var(--spacing-unit, 8px) * 2);
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.card-title {
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
  line-height: 1.4;
  color: #ffffff;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted, #9ea3b5);
  margin-top: auto;
}

.card-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ==========================================================================
   LAYOUT (Home, Category, Search)
   ========================================================================== */
.layout-main {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: calc(var(--spacing-unit, 8px) * 4);
  padding: calc(var(--spacing-unit, 8px) * 3) 0;
}

/* Sidebar */
.sidebar {
  position: sticky;
  top: calc(var(--header-height, 70px) + var(--spacing-unit, 8px) * 2);
  height: fit-content;
}

.widget {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: var(--border-radius, 8px);
  padding: calc(var(--spacing-unit, 8px) * 2);
  margin-bottom: calc(var(--spacing-unit, 8px) * 3);
}

.widget-title {
  font-size: 1.1rem;
  margin-bottom: calc(var(--spacing-unit, 8px) * 2);
  display: flex;
  align-items: center;
  gap: 8px;
  color: #ffffff;
  padding-bottom: calc(var(--spacing-unit, 8px));
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.widget-title i {
  color: var(--primary, #6d8cff);
}

/* Trending widget */
.trending-list {
  display: flex;
  flex-direction: column;
  gap: calc(var(--spacing-unit, 8px));
}

.trending-item {
  display: grid;
  grid-template-columns: 24px 50px 1fr;
  align-items: center;
  gap: calc(var(--spacing-unit, 8px));
  padding: calc(var(--spacing-unit, 8px));
  border-radius: var(--border-radius-sm, 4px);
  transition: all var(--transition-speed, 250ms) ease;
}

.trending-item:hover {
  background: rgba(255, 255, 255, 0.03);
}

.trending-num {
  font-weight: 800;
  color: var(--primary, #6d8cff);
  font-size: 1.2rem;
}

.trending-item img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: var(--border-radius-sm, 4px);
}

.trending-info {
  overflow: hidden;
}

.trending-info p {
  font-size: 0.9rem;
  font-weight: 500;
  margin: 0 0 4px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.trending-info small {
  font-size: 0.75rem;
  color: var(--text-muted, #9ea3b5);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ==========================================================================
   HOME FILTER TABS
   ========================================================================== */
.home-filter {
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  padding: calc(var(--spacing-unit, 8px)) 0;
}

.category-filter {
  display: flex;
  align-items: center;
  gap: calc(var(--spacing-unit, 8px) * 2);
  overflow-x: auto;
  padding: calc(var(--spacing-unit, 8px)) 0;
  scrollbar-width: none;
}

.category-filter::-webkit-scrollbar {
  display: none;
}

.category-filter a {
  padding: calc(var(--spacing-unit, 8px)) calc(var(--spacing-unit, 8px) * 2);
  border-radius: var(--border-radius-lg, 12px);
  color: var(--text-muted, #9ea3b5);
  font-weight: 500;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all var(--transition-speed, 250ms) ease;
}

.category-filter a i {
  font-size: 1rem;
}

.category-filter a:hover,
.category-filter a.active {
  background: var(--primary, #6d8cff);
  color: #ffffff;
}

/* ==========================================================================
   PAGINATION
   ========================================================================== */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: calc(var(--spacing-unit, 8px) * 2);
  margin: calc(var(--spacing-unit, 8px) * 4) 0;
}

.page-numbers {
  display: flex;
  align-items: center;
  gap: 8px;
}

.page-number {
  min-width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--border-radius, 8px);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-color, #e4e6f1);
  font-weight: 500;
  transition: all var(--transition-speed, 250ms) ease;
}

.page-number:hover,
.page-number.active {
  background: var(--primary, #6d8cff);
  color: #ffffff;
  border-color: transparent;
}

.page-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: var(--border-radius, 8px);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-color, #e4e6f1);
  font-weight: 500;
  transition: all var(--transition-speed, 250ms) ease;
}

.page-btn:hover {
  background: var(--primary, #6d8cff);
  color: #ffffff;
}

/* ==========================================================================
   CONTENT DETAIL (View Page)
   ========================================================================== */
.view-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: calc(var(--spacing-unit, 8px) * 4);
  padding: calc(var(--spacing-unit, 8px) * 3) 0;
}

.view-content {
  min-width: 0;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: calc(var(--spacing-unit, 8px) * 3);
  font-size: 0.9rem;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--text-muted, #9ea3b5);
}

.breadcrumb i {
  font-size: 0.7rem;
  color: var(--text-muted, #9ea3b5);
}

.breadcrumb span {
  color: #ffffff;
  font-weight: 500;
}

/* Player */
.player-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
  border-radius: var(--border-radius, 8px);
  overflow: hidden;
  margin-bottom: calc(var(--spacing-unit, 8px) * 3);
  box-shadow: var(--shadow-lg, 0 8px 32px rgba(0, 0, 0, 0.13));
}

.player-frame {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Album grid */
.album-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: calc(var(--spacing-unit, 8px) * 2);
  margin-bottom: calc(var(--spacing-unit, 8px) * 3);
}

.album-item {
  aspect-ratio: 1;
  border-radius: var(--border-radius, 8px);
  overflow: hidden;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all var(--transition-speed, 250ms) ease;
}

.album-item:hover {
  transform: scale(1.05);
  border-color: var(--primary, #6d8cff);
  box-shadow: 0 4px 16px rgba(109, 140, 255, 0.3);
}

.album-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Image viewer */
.image-viewer {
  background: #0a0c16;
  border-radius: var(--border-radius, 8px);
  overflow: hidden;
  margin-bottom: calc(var(--spacing-unit, 8px) * 3);
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.full-image {
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
}

/* Story content */
.story-content {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius, 8px);
  padding: calc(var(--spacing-unit, 8px) * 3);
  margin-bottom: calc(var(--spacing-unit, 8px) * 3);
}

.story-body {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #ffffff;
  margin-bottom: calc(var(--spacing-unit, 8px) * 3);
  white-space: pre-wrap;
}

.story-meta {
  display: flex;
  gap: calc(var(--spacing-unit, 8px) * 3);
  padding-top: calc(var(--spacing-unit, 8px) * 2);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted, #9ea3b5);
}

/* Content info */
.content-info {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius, 8px);
  padding: calc(var(--spacing-unit, 8px) * 3);
}

.content-title {
  font-size: 2rem;
  margin-bottom: calc(var(--spacing-unit, 8px) * 2);
  color: #ffffff;
}

.content-meta {
  display: flex;
  flex-wrap: wrap;
  gap: calc(var(--spacing-unit, 8px) * 2);
  margin-bottom: calc(var(--spacing-unit, 8px) * 2);
  padding-bottom: calc(var(--spacing-unit, 8px) * 2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.content-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted, #9ea3b5);
  font-size: 0.95rem;
}

.content-meta .badge {
  background: var(--primary, #6d8cff);
  color: #ffffff;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}

/* Tags */
.content-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: calc(var(--spacing-unit, 8px) * 2);
}

.tag {
  padding: 4px 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  font-size: 0.85rem;
  color: var(--text-muted, #9ea3b5);
  transition: all var(--transition-speed, 250ms) ease;
}

.tag:hover {
  background: var(--primary, #6d8cff);
  color: #ffffff;
  border-color: transparent;
}

/* Content description */
.content-desc {
  margin-bottom: calc(var(--spacing-unit, 8px) * 2);
  line-height: 1.8;
  color: #ffffff;
}

.full-desc.hidden {
  display: none;
}

.full-desc {
  margin-top: calc(var(--spacing-unit, 8px) * 2);
  padding-top: calc(var(--spacing-unit, 8px) * 2);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.read-more {
  color: var(--primary, #6d8cff);
  font-weight: 600;
  display: inline-block;
  margin-top: 8px;
}

/* Action buttons */
.action-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: calc(var(--spacing-unit, 8px) * 2);
  margin-top: calc(var(--spacing-unit, 8px) * 3);
}

.btn {
  padding: 12px 24px;
  border-radius: var(--border-radius, 8px);
  font-weight: 600;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  transition: all var(--transition-speed, 250ms) ease;
}

.btn-primary {
  background: var(--primary, #6d8cff);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(109, 140, 255, 0.3);
}

.btn-primary:hover {
  background: var(--primary-dark, #4d6ad9);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(109, 140, 255, 0.4);
}

.btn-outline {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.btn-outline:hover {
  border-color: var(--primary, #6d8cff);
  background: rgba(109, 140, 255, 0.1);
}

/* Related sidebar */
.related-list {
  display: flex;
  flex-direction: column;
  gap: calc(var(--spacing-unit, 8px) * 2);
}

.related-item {
  display: flex;
  gap: 12px;
  padding: 8px;
  border-radius: var(--border-radius, 8px);
  transition: all var(--transition-speed, 250ms) ease;
}

.related-item:hover {
  background: rgba(255, 255, 255, 0.03);
}

.related-item img {
  width: 80px;
  height: 60px;
  object-fit: cover;
  border-radius: var(--border-radius-sm, 4px);
}

.related-info {
  flex: 1;
  overflow: hidden;
}

.related-title {
  font-size: 0.9rem;
  font-weight: 600;
  margin: 0 0 6px 0;
  color: #ffffff;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.related-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  color: var(--text-muted, #9ea3b5);
}

/* ==========================================================================
   LIGHTBOX (for albums)
   ========================================================================== */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  visibility: visible;
  transition: all 0.3s ease;
}

.lightbox.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
}

.lightbox-image {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--border-radius, 8px);
}

.lightbox-close {
  position: absolute;
  top: -40px;
  right: -40px;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 2rem;
  cursor: pointer;
  padding: 8px;
  z-index: 10001;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  pointer-events: none;
}

.lightbox-nav button {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 1.2rem;
  cursor: pointer;
  pointer-events: auto;
  transition: all var(--transition-speed, 250ms) ease;
}

.lightbox-nav button:hover {
  background: var(--primary, #6d8cff);
  border-color: transparent;
}

.lightbox-caption {
  position: absolute;
  bottom: -40px;
  left: 0;
  right: 0;
  text-align: center;
  color: #ffffff;
  font-size: 1rem;
}

/* ==========================================================================
   SEARCH PAGE
   ========================================================================== */
.page-header {
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding: calc(var(--spacing-unit, 8px) * 4) 0;
}

.page-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 30px;
  font-size: 0.9rem;
  color: var(--primary, #6d8cff);
  margin-bottom: calc(var(--spacing-unit, 8px) * 2);
}

.page-title {
  font-size: 2.5rem;
  margin-bottom: calc(var(--spacing-unit, 8px) * 3);
}

.page-title span {
  color: var(--primary, #6d8cff);
}

.search-bar-large {
  max-width: 600px;
}

.search-bar {
  display: flex;
  align-items: center;
  gap: 8px;
}

.search-bar input {
  flex: 1;
  height: 50px;
  padding: 0 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius-lg, 12px);
  background: rgba(255, 255, 255, 0.03);
  color: #ffffff;
  font-size: 1rem;
}

.search-bar input:focus {
  outline: none;
  border-color: var(--primary, #6d8cff);
}

.search-bar button {
  width: 50px;
  height: 50px;
  border-radius: var(--border-radius-lg, 12px);
  background: var(--primary, #6d8cff);
  border: none;
  color: #ffffff;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all var(--transition-speed, 250ms) ease;
}

.search-bar button:hover {
  background: var(--primary-dark, #4d6ad9);
}

.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: calc(var(--spacing-unit, 8px) * 2);
  margin-top: calc(var(--spacing-unit, 8px) * 3);
}

.filter-tab {
  padding: 8px 20px;
  border-radius: var(--border-radius-lg, 12px);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-muted, #9ea3b5);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all var(--transition-speed, 250ms) ease;
}

.filter-tab i {
  font-size: 0.9rem;
}

.filter-tab:hover,
.filter-tab.active {
  background: var(--primary, #6d8cff);
  color: #ffffff;
}

.search-stats {
  margin-bottom: calc(var(--spacing-unit, 8px) * 3);
  padding: calc(var(--spacing-unit, 8px) * 2);
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--border-radius, 8px);
  color: var(--text-muted, #9ea3b5);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ==========================================================================
   TAG PAGE
   ========================================================================== */
.tag-header {
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding: calc(var(--spacing-unit, 8px) * 3) 0;
}

.tag-hero {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.03);
  padding: 12px 24px;
  border-radius: 50px;
  margin-bottom: calc(var(--spacing-unit, 8px) * 2);
}

.tag-hero i {
  font-size: 1.5rem;
  color: var(--primary, #6d8cff);
}

.tag-hero span {
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary, #6d8cff), var(--secondary, #ff6b9d));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ==========================================================================
   EMPTY STATES & 404
   ========================================================================== */
.empty-state,
.no-results {
  text-align: center;
  padding: calc(var(--spacing-unit, 8px) * 8) calc(var(--spacing-unit, 8px) * 3);
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--border-radius, 8px);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.empty-state i,
.no-results-icon {
  font-size: 4rem;
  color: var(--primary, #6d8cff);
  opacity: 0.5;
  margin-bottom: calc(var(--spacing-unit, 8px) * 3);
}

.empty-state h3,
.no-results h3 {
  font-size: 1.5rem;
  margin-bottom: calc(var(--spacing-unit, 8px));
  color: #ffffff;
}

.empty-state p,
.no-results p {
  color: var(--text-muted, #9ea3b5);
  max-width: 400px;
  margin: 0 auto calc(var(--spacing-unit, 8px) * 3);
}

.error-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--spacing-unit, 8px) * 4) 0;
}

.error-content {
  max-width: 500px;
  margin: 0 auto;
}

.error-icon {
  font-size: 5rem;
  color: var(--primary, #6d8cff);
  margin-bottom: calc(var(--spacing-unit, 8px) * 3);
}

.error-title {
  font-size: 4rem;
  margin-bottom: calc(var(--spacing-unit, 8px) * 2);
  background: linear-gradient(135deg, var(--primary, #6d8cff), var(--secondary, #ff6b9d));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.error-subtitle {
  font-size: 1.5rem;
  color: #ffffff;
  margin-bottom: calc(var(--spacing-unit, 8px) * 2);
}

.error-desc {
  color: var(--text-muted, #9ea3b5);
  margin-bottom: calc(var(--spacing-unit, 8px) * 4);
}

.error-actions {
  display: flex;
  gap: calc(var(--spacing-unit, 8px) * 2);
  justify-content: center;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  background: rgba(0, 0, 0, 0.3);
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  margin-top: auto;
  padding: calc(var(--spacing-unit, 8px) * 6) 0 calc(var(--spacing-unit, 8px) * 4);
}

.footer-inner {
  max-width: var(--container-width, 1200px);
  margin: 0 auto;
  padding: 0 calc(var(--spacing-unit, 8px) * 2);
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: calc(var(--spacing-unit, 8px) * 4);
}

.footer-brand {
  max-width: 300px;
}

.footer-logo {
  font-size: 1.8rem;
  margin-bottom: calc(var(--spacing-unit, 8px) * 2);
}

.footer-desc {
  color: var(--text-muted, #9ea3b5);
  font-size: 0.95rem;
  line-height: 1.6;
}

.footer-col h4 {
  font-size: 1.1rem;
  margin-bottom: calc(var(--spacing-unit, 8px) * 2);
  color: #ffffff;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: calc(var(--spacing-unit, 8px));
}

.footer-col a {
  color: var(--text-muted, #9ea3b5);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition-speed, 250ms) ease;
}

.footer-col a i {
  width: 20px;
  font-size: 0.9rem;
}

.footer-col a:hover {
  color: var(--primary, #6d8cff);
  transform: translateX(5px);
}

.footer-bottom {
  max-width: var(--container-width, 1200px);
  margin: calc(var(--spacing-unit, 8px) * 4) auto 0;
  padding: calc(var(--spacing-unit, 8px) * 2) calc(var(--spacing-unit, 8px) * 2) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: calc(var(--spacing-unit, 8px) * 2);
  color: var(--text-muted, #9ea3b5);
}

.footer-legal {
  display: flex;
  gap: calc(var(--spacing-unit, 8px) * 2);
}

.footer-legal a {
  color: var(--text-muted, #9ea3b5);
}

.footer-legal a:hover {
  color: var(--primary, #6d8cff);
}

/* ==========================================================================
   UTILITIES & COMPONENTS
   ========================================================================== */
/* Back to top button */
#backToTop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--primary, #6d8cff);
  border: none;
  color: #ffffff;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(109, 140, 255, 0.3);
  transition: all 0.3s ease;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

#backToTop:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 24px rgba(109, 140, 255, 0.4);
}

/* Connection status */
.connection-status {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: #ff4444;
  color: #ffffff;
  padding: 12px;
  text-align: center;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 500;
}

/* Toast notifications */
.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.9);
  color: #ffffff;
  padding: 12px 24px;
  border-radius: var(--border-radius-lg, 12px);
  font-size: 0.95rem;
  z-index: 10000;
  animation: slideUp 0.3s ease;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translate(-50%, 20px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Tag cloud */
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Badge kecil */
.badge-small {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  font-size: 0.7rem;
  color: var(--text-muted, #9ea3b5);
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 1024px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: calc(var(--spacing-unit, 8px) * 3);
  }
  
  .footer-brand {
    grid-column: span 2;
    max-width: none;
  }
}

@media (max-width: 768px) {
  .nav-links,
  .nav-search {
    display: none;
  }
  
  .nav-menu-btn {
    display: block;
  }
  
  .mobile-nav {
    display: block;
  }
  
  .layout-main,
  .view-layout {
    grid-template-columns: 1fr;
  }
  
  .sidebar {
    position: static;
    margin-top: calc(var(--spacing-unit, 8px) * 3);
  }
  
  .content-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: calc(var(--spacing-unit, 8px) * 2);
  }
  
  .card-title {
    font-size: 0.9rem;
  }
  
  .card-meta {
    font-size: 0.75rem;
  }
  
  .page-title {
    font-size: 1.8rem;
  }
  
  .footer-inner {
    grid-template-columns: 1fr;
  }
  
  .footer-brand {
    grid-column: span 1;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  
  .lightbox-close {
    top: 10px;
    right: 10px;
  }
  
  .lightbox-nav button {
    width: 40px;
    height: 40px;
  }
  
  #backToTop {
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 480px) {
  .content-grid {
    grid-template-columns: 1fr;
  }
  
  .category-filter a {
    padding: 6px 12px;
    font-size: 0.9rem;
  }
  
  .filter-tabs {
    gap: 8px;
  }
  
  .filter-tab {
    padding: 6px 12px;
    font-size: 0.85rem;
  }
  
  .content-title {
    font-size: 1.5rem;
  }
  
  .content-meta {
    gap: 8px;
  }
  
  .content-meta span {
    font-size: 0.85rem;
  }
  
  .action-buttons {
    flex-direction: column;
  }
  
  .btn {
    width: 100%;
    justify-content: center;
  }
  
  .error-actions {
    flex-direction: column;
  }
}

/* ==========================================================================
   PRINT STYLES
   ========================================================================== */
@media print {
  .nav,
  .sidebar,
  .footer,
  .action-buttons,
  #backToTop,
  .ad-slot {
    display: none !important;
  }
  
  body {
    background: #ffffff;
    color: #000000;
  }
  
  .container {
    max-width: 100%;
    padding: 0;
  }
  
  a {
    color: #000000;
    text-decoration: underline;
  }
}