/* ============================================
   CEK FAKTA / HOAX BUSTER SECTION
   ============================================ */

.cek-fakta-section {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  position: relative;
  overflow: hidden;
}

.cek-fakta-section::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(
    circle,
    rgba(220, 53, 69, 0.1) 0%,
    transparent 70%
  );
  border-radius: 50%;
  pointer-events: none;
}

.cek-fakta-section::after {
  content: "";
  position: absolute;
  bottom: -30%;
  left: -5%;
  width: 400px;
  height: 400px;
  background: radial-gradient(
    circle,
    rgba(25, 135, 84, 0.1) 0%,
    transparent 70%
  );
  border-radius: 50%;
  pointer-events: none;
}

/* Card Styles */
.cek-fakta-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.cek-fakta-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

/* Image Container */
.cek-fakta-image {
  position: relative;
  height: 180px;
  overflow: hidden;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.cek-fakta-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.cek-fakta-card:hover .cek-fakta-image img {
  transform: scale(1.1);
}

/* Verdict Badge */
.verdict-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 6px 14px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 6px;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  animation: badge-pulse 2s ease-in-out infinite;
}

@keyframes badge-pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.verdict-badge i {
  font-size: 1rem;
}

/* Verdict Colors */
.verdict-hoax {
  background: rgba(220, 53, 69, 0.95);
  color: white;
}

.verdict-fact {
  background: rgba(25, 135, 84, 0.95);
  color: white;
}

.verdict-misleading {
  background: rgba(255, 193, 7, 0.95);
  color: #000;
}

.verdict-unverified {
  background: rgba(108, 117, 125, 0.95);
  color: white;
}

/* Card Body */
.cek-fakta-card .card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.cek-fakta-title {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 0.75rem;
  color: #212529;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cek-fakta-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.cek-fakta-title a:hover {
  color: #0d6efd;
}

.cek-fakta-claim {
  font-size: 0.875rem;
  color: #6c757d;
  line-height: 1.6;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

/* Meta Info */
.cek-fakta-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid #e9ecef;
  font-size: 0.8rem;
  color: #6c757d;
  margin-top: auto;
}

.cek-fakta-meta i {
  font-size: 0.875rem;
  margin-right: 4px;
}

/* Empty State */
.cek-fakta-empty {
  text-align: center;
  padding: 4rem 2rem;
}

.cek-fakta-empty i {
  font-size: 4rem;
  color: #dee2e6;
  margin-bottom: 1rem;
}

.cek-fakta-empty p {
  color: #6c757d;
  font-size: 1rem;
}

/* Hover Effects */
.cek-fakta-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, transparent 0%, rgba(0, 0, 0, 0.05) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.cek-fakta-card:hover::before {
  opacity: 1;
}

/* Category Badge (Optional) */
.cek-fakta-category {
  position: absolute;
  bottom: 12px;
  right: 12px;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 600;
  color: #495057;
}

/* Loading Animation */
.cek-fakta-skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s ease-in-out infinite;
}

@keyframes skeleton-loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* ==================== DARK MODE ==================== */

[data-bs-theme="dark"] .cek-fakta-section {
  background: linear-gradient(135deg, #1e1e2d 0%, #161623 100%);
}

[data-bs-theme="dark"] .cek-fakta-section::before {
  background: radial-gradient(
    circle,
    rgba(220, 53, 69, 0.15) 0%,
    transparent 70%
  );
}

[data-bs-theme="dark"] .cek-fakta-section::after {
  background: radial-gradient(
    circle,
    rgba(25, 135, 84, 0.15) 0%,
    transparent 70%
  );
}

/* Dark Mode Card */
[data-bs-theme="dark"] .cek-fakta-card {
  background: #2b2c40;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

[data-bs-theme="dark"] .cek-fakta-card:hover {
  background: #32334a;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.6);
}

[data-bs-theme="dark"] .cek-fakta-card::before {
  background: linear-gradient(
    135deg,
    transparent 0%,
    rgba(255, 255, 255, 0.02) 100%
  );
}

/* Dark Mode Image */
[data-bs-theme="dark"] .cek-fakta-image {
  background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
}

/* Dark Mode Title & Text */
[data-bs-theme="dark"] .cek-fakta-title {
  color: #e7e7ff;
}

[data-bs-theme="dark"] .cek-fakta-title a {
  color: #e7e7ff;
}

[data-bs-theme="dark"] .cek-fakta-title a:hover {
  color: #b4b5ff;
}

[data-bs-theme="dark"] .cek-fakta-claim {
  color: #a5a5ba;
}

/* Dark Mode Meta */
[data-bs-theme="dark"] .cek-fakta-meta {
  border-top-color: #3a3b55;
  color: #a5a5ba;
}

/* Dark Mode Verdict Badges - Keep original colors for visibility */
[data-bs-theme="dark"] .verdict-hoax {
  background: rgba(220, 53, 69, 0.95);
  color: white;
}

[data-bs-theme="dark"] .verdict-fact {
  background: rgba(25, 135, 84, 0.95);
  color: white;
}

[data-bs-theme="dark"] .verdict-misleading {
  background: rgba(255, 193, 7, 0.95);
  color: #000;
}

[data-bs-theme="dark"] .verdict-unverified {
  background: rgba(108, 117, 125, 0.95);
  color: white;
}

/* Dark Mode Category Badge */
[data-bs-theme="dark"] .cek-fakta-category {
  background: rgba(43, 44, 64, 0.9);
  color: #a5a5ba;
}

/* Dark Mode Empty State */
[data-bs-theme="dark"] .cek-fakta-empty i {
  color: #3a3b55;
}

[data-bs-theme="dark"] .cek-fakta-empty p {
  color: #a5a5ba;
}

/* Dark Mode Skeleton */
[data-bs-theme="dark"] .cek-fakta-skeleton {
  background: linear-gradient(90deg, #2b2c40 25%, #32334a 50%, #2b2c40 75%);
  background-size: 200% 100%;
}

/* ==================== RESPONSIVE ==================== */

@media (max-width: 767.98px) {
  .cek-fakta-image {
    height: 160px;
  }

  .cek-fakta-card .card-body {
    padding: 1.25rem;
  }

  .cek-fakta-title {
    font-size: 0.95rem;
  }

  .cek-fakta-claim {
    font-size: 0.85rem;
    -webkit-line-clamp: 2;
  }

  .verdict-badge {
    font-size: 0.7rem;
    padding: 5px 12px;
  }

  .cek-fakta-section::before,
  .cek-fakta-section::after {
    opacity: 0.5;
  }
}

@media (max-width: 575.98px) {
  .cek-fakta-image {
    height: 140px;
  }

  .cek-fakta-card .card-body {
    padding: 1rem;
  }

  .cek-fakta-title {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
  }

  .cek-fakta-claim {
    font-size: 0.8rem;
    margin-bottom: 0.75rem;
  }

  .cek-fakta-meta {
    font-size: 0.75rem;
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
  }

  .verdict-badge {
    font-size: 0.65rem;
    padding: 4px 10px;
    gap: 4px;
  }

  .verdict-badge i {
    font-size: 0.85rem;
  }
}
