/* ============================================
   INFOGRAFIS PUBLIC STYLES - IMAGE ONLY
   ============================================ */

/* Featured Infografis Card dengan Glassmorphism */
.featured-infografis-wrapper {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  margin-bottom: 3rem;
  height: 700px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  margin-top: 0;
}

.featured-infografis-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.85);
}

.featured-infografis-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.3) 50%,
    rgba(0, 0, 0, 0.7) 100%
  );
}

.featured-infografis-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2.5rem;
  color: white;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  max-height: 45%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.featured-badge {
  display: inline-block;
  padding: 0.4rem 0.9rem;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 1rem;
  color: white;
  width: fit-content;
}

.featured-title {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.75rem;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
  color: white;
}

.featured-description {
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 1rem;
  opacity: 0.95;
  max-width: 800px;
  color: white;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.3);
}

.featured-meta {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.9);
}

.featured-meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Arrow Icon di kanan atas glass */
.featured-arrow {
  position: absolute;
  top: 2.5rem;
  right: 2.5rem;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.featured-infografis-wrapper:hover .featured-arrow {
  background: rgba(255, 255, 255, 0.25);
  transform: translate(4px, -4px);
}

/* Filter dan Search Section */
.filter-section {
  margin-bottom: 2.5rem;
  display: flex;
  gap: 1.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.category-tabs {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  flex: 1;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-behavior: smooth;
  cursor: grab;
  user-select: none;
}

.category-tabs::-webkit-scrollbar {
  display: none;
}

.category-tabs.dragging {
  cursor: grabbing;
  scroll-behavior: auto;
}

.category-tab {
  padding: 0.5rem 1.25rem;
  border-radius: 20px;
  border: 1px solid #e0e0e0;
  background: white;
  color: #666;
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  flex-shrink: 0;
}

.category-tab:hover {
  border-color: #696cff;
  color: #696cff;
  background: #f5f5ff;
}

.category-tab.active {
  background: #696cff;
  color: white;
  border-color: #696cff;
}

.search-wrapper {
  position: relative;
  min-width: 280px;
}

.search-input {
  width: 100%;
  padding: 0.6rem 1rem 0.6rem 2.75rem;
  border-radius: 20px;
  border: 1px solid #e0e0e0;
  font-size: 0.875rem;
  outline: none;
  transition: all 0.2s ease;
  background: white;
  color: #2c2c3e;
}

.search-input:focus {
  border-color: #696cff;
  box-shadow: 0 0 0 3px rgba(105, 108, 255, 0.1);
}

.search-input::placeholder {
  color: #999;
}

.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #999;
  font-size: 1rem;
}

/* Infografis Card - Image Only */
.infografis-card {
  display: block;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.infografis-card:hover {
  transform: translateY(-8px);
}

/* Card Image Full */
.infografis-card-image-full {
  position: relative;
  width: 100%;
  padding-bottom: 140%; /* Aspect ratio 10:14 (portrait) */
  border-radius: 16px;
  overflow: hidden;
  background: #f5f5f9;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.infografis-card:hover .infografis-card-image-full {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.16);
}

.infografis-card-image-full img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.infografis-card:hover .infografis-card-image-full img {
  transform: scale(1.05);
}

/* Overlay Gradient */
.infografis-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.3) 0%,
    rgba(0, 0, 0, 0.05) 30%,
    transparent 50%
  );
  pointer-events: none;
  z-index: 1;
}

/* Glassmorphism Badge Base - Clean Style */
.infografis-card-image-badge {
  position: absolute;
  padding: 0.5rem 1rem;
  border-radius: 12px;
  font-size: 0.8125rem;
  font-weight: 600;
  z-index: 2;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
  color: white;
}

.infografis-card-image-badge:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.25);
}

/* Featured Badge - Clean Glassmorphism */
.infografis-card-badge-featured {
  top: 1rem;
  left: 1rem;
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.infografis-card-badge-featured i {
  font-size: 1rem;
}

/* Category Badge - Clean Glassmorphism */
.infografis-card-badge-category {
  top: 1rem;
  right: 1rem;
}

/* Jika ada featured badge, pindahkan category badge ke bawah */
.infografis-card-badge-featured ~ .infografis-card-badge-category {
  top: 3.5rem;
}

/* Empty State */
.empty-state-card {
  border-radius: 24px;
  border: none;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  background: white;
  padding: 4rem 2rem;
  text-align: center;
}

.empty-state-card i {
  font-size: 4rem;
  color: #dbdade;
  margin-bottom: 1rem;
}

.empty-state-card h4 {
  color: #5d596c;
  margin-bottom: 0.5rem;
}

.empty-state-card p {
  color: #a8aaae;
  margin: 0;
}

/* ========================================
   DARK MODE STYLES 
   ======================================== */

[data-bs-theme="dark"] body {
  background-color: #24293c !important;
}

[data-bs-theme="dark"] .container-xxl:has(.section-py) {
  background-color: #24293c !important;
}

[data-bs-theme="dark"] .section-py {
  background-color: transparent !important;
}

[data-bs-theme="dark"] .featured-infografis-wrapper {
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.7);
}

/* Category Tabs - Dark Mode */
[data-bs-theme="dark"] .category-tab {
  background: #2b2c40 !important;
  border-color: #3a3c52 !important;
  color: #b4b7c5 !important;
}

[data-bs-theme="dark"] .category-tab:hover {
  border-color: #696cff !important;
  color: #696cff !important;
  background: #33354a !important;
}

[data-bs-theme="dark"] .category-tab.active {
  background: #696cff !important;
  color: white !important;
  border-color: #696cff !important;
}

/* Search Input - Dark Mode */
[data-bs-theme="dark"] .search-input {
  background: #2b2c40 !important;
  border-color: #3a3c52 !important;
  color: #d9dbe6 !important;
}

[data-bs-theme="dark"] .search-input:focus {
  border-color: #696cff !important;
  box-shadow: 0 0 0 3px rgba(105, 108, 255, 0.15) !important;
  background: #2b2c40 !important;
}

[data-bs-theme="dark"] .search-input::placeholder {
  color: #7a7e96 !important;
}

[data-bs-theme="dark"] .search-icon {
  color: #7a7e96 !important;
}

/* Infografis Card Image - Dark Mode */
[data-bs-theme="dark"] .infografis-card-image-full {
  background: #1e1e2d !important;
}

/* Empty State - Dark Mode */
[data-bs-theme="dark"] .empty-state-card {
  background: #2b2c40 !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4) !important;
}

[data-bs-theme="dark"] .empty-state-card h4 {
  color: #d9dbe6 !important;
}

[data-bs-theme="dark"] .empty-state-card p {
  color: #7a7e96 !important;
}

[data-bs-theme="dark"] .empty-state-card i {
  color: #3a3c52 !important;
}

/* Section Headers - Dark Mode */
[data-bs-theme="dark"] .badge.bg-label-primary {
  background-color: rgba(105, 108, 255, 0.16) !important;
  color: #696cff !important;
}

[data-bs-theme="dark"] .section-py h1,
[data-bs-theme="dark"] .section-py h2,
[data-bs-theme="dark"] .section-py h3,
[data-bs-theme="dark"] .section-py h4 {
  color: #d9dbe6 !important;
}

[data-bs-theme="dark"] .section-py p,
[data-bs-theme="dark"] .section-py .text-muted {
  color: #b4b7c5 !important;
}

/* Alert - Dark Mode */
[data-bs-theme="dark"] .alert-info {
  background-color: rgba(3, 195, 236, 0.12) !important;
  border-color: rgba(3, 195, 236, 0.3) !important;
  color: #26c6f9 !important;
}

[data-bs-theme="dark"] .alert-danger {
  background-color: rgba(255, 62, 29, 0.12) !important;
  border-color: rgba(255, 62, 29, 0.3) !important;
  color: #ff6251 !important;
}

[data-bs-theme="dark"] .btn-outline-info {
  color: #26c6f9 !important;
  border-color: rgba(3, 195, 236, 0.5) !important;
}

[data-bs-theme="dark"] .btn-outline-info:hover {
  background-color: #03c3ec !important;
  color: #fff !important;
}

/* Pagination - Dark Mode */
[data-bs-theme="dark"] .pagination .page-link {
  background: #2b2c40 !important;
  border-color: #3a3c52 !important;
  color: #b4b7c5 !important;
}

[data-bs-theme="dark"] .pagination .page-link:hover {
  background: #33354a !important;
  border-color: #696cff !important;
  color: #696cff !important;
}

[data-bs-theme="dark"] .pagination .page-item.active .page-link {
  background: #696cff !important;
  border-color: #696cff !important;
  color: white !important;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .featured-infografis-wrapper {
    height: 550px;
    border-radius: 20px;
  }

  .featured-title {
    font-size: 1.4rem;
  }

  .featured-description {
    font-size: 0.875rem;
  }

  .featured-infografis-content {
    padding: 1.5rem;
    max-height: 50%;
  }

  .featured-meta {
    gap: 1rem;
    font-size: 0.8rem;
    flex-wrap: wrap;
  }

  .featured-badge {
    font-size: 0.65rem;
    padding: 0.35rem 0.75rem;
  }

  .featured-arrow {
    width: 35px;
    height: 35px;
    font-size: 1rem;
    top: 1.5rem;
    right: 1.5rem;
  }

  .filter-section {
    flex-direction: column;
    align-items: stretch;
  }

  .category-tabs {
    width: 100%;
  }

  .search-wrapper {
    width: 100%;
    min-width: auto;
  }

  .infografis-card-image-full {
    border-radius: 14px;
  }

  .infografis-card-image-badge {
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
    border-radius: 10px;
  }

  .infografis-card-badge-featured {
    top: 0.75rem;
    left: 0.75rem;
  }

  .infografis-card-badge-category {
    top: 0.75rem;
    right: 0.75rem;
  }

  .infografis-card-badge-featured ~ .infografis-card-badge-category {
    top: 3rem;
  }

  .infografis-card-badge-featured i {
    font-size: 0.875rem;
  }
}

@media (max-width: 576px) {
  .infografis-card-image-full {
    border-radius: 12px;
  }
}
