/* Publikasi Public Pages Styles */

/* Page Header */
.page-header {
  background: linear-gradient(135deg, #2E7D32, #4CAF50);
  color: white;
  padding: 80px 0 60px;
  text-align: center;
}

.page-header h1 {
  font-size: 42px;
  margin-bottom: 12px;
  font-weight: 700;
}

.page-header p {
  font-size: 18px;
  opacity: 0.9;
}

/* Filter Section */
.filter-section {
  padding: 30px 0;
  background: white;
  border-bottom: 1px solid #e0e0e0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.filter-bar {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
}

.search-box {
  position: relative;
  flex: 1;
  min-width: 250px;
}

.search-box i {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  color: #999;
}

.search-box input {
  width: 100%;
  padding: 12px 16px 12px 48px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 15px;
  transition: border-color 0.3s;
}

.search-box input:focus {
  outline: none;
  border-color: #2E7D32;
}

.filter-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 10px 20px;
  border: 2px solid #e0e0e0;
  background: white;
  border-radius: 20px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: #666;
  transition: all 0.3s;
}

.filter-btn:hover {
  border-color: #2E7D32;
  color: #2E7D32;
}

.filter-btn.active {
  background: #2E7D32;
  border-color: #2E7D32;
  color: white;
}

/* Artikel List Section */
.artikel-list-section,
.galeri-list-section {
  padding: 60px 0;
  min-height: 60vh;
}

/* Empty State */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  color: #999;
}

.empty-state i {
  width: 80px;
  height: 80px;
  margin-bottom: 20px;
  color: #ccc;
}

.empty-state p {
  font-size: 18px;
}

/* ===== ARTIKEL DETAIL ===== */
.artikel-detail {
  padding: 40px 0 80px;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 30px;
  font-size: 14px;
}

.breadcrumb a {
  color: #2E7D32;
  text-decoration: none;
  transition: color 0.3s;
}

.breadcrumb a:hover {
  color: #1B5E20;
}

.breadcrumb i {
  width: 16px;
  height: 16px;
  color: #999;
}

.breadcrumb span {
  color: #666;
}

/* Artikel Hero */
.artikel-hero {
  width: 100%;
  max-height: 500px;
  overflow: hidden;
  border-radius: 16px;
  margin-bottom: 40px;
}

.artikel-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Artikel Header */
.artikel-header {
  margin-bottom: 40px;
}

.artikel-kategori-badge {
  display: inline-block;
  background: #2E7D32;
  color: white;
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.artikel-header h1 {
  font-size: 42px;
  color: #333;
  line-height: 1.3;
  margin-bottom: 20px;
}

.artikel-meta {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 15px;
  color: #666;
}

.artikel-meta span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.artikel-meta i {
  width: 18px;
  height: 18px;
}

/* Artikel Body */
.artikel-body {
  font-size: 18px;
  line-height: 1.8;
  color: #444;
  margin-bottom: 60px;
}

.artikel-body p {
  margin-bottom: 20px;
}

/* Share Section */
.share-section {
  padding: 40px 0;
  border-top: 2px solid #e0e0e0;
  border-bottom: 2px solid #e0e0e0;
  margin-bottom: 60px;
}

.share-section h3 {
  font-size: 20px;
  margin-bottom: 20px;
  color: #333;
}

.share-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.share-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  transition: all 0.3s;
}

.share-btn i {
  width: 20px;
  height: 20px;
}

.share-btn.facebook {
  background: #1877F2;
  color: white;
}

.share-btn.facebook:hover {
  background: #145dbf;
}

.share-btn.twitter {
  background: #1DA1F2;
  color: white;
}

.share-btn.twitter:hover {
  background: #0d8bd9;
}

.share-btn.whatsapp {
  background: #25D366;
  color: white;
}

.share-btn.whatsapp:hover {
  background: #1da851;
}

.share-btn.copy {
  background: #666;
  color: white;
}

.share-btn.copy:hover {
  background: #444;
}

/* Related Section */
.related-section h3 {
  font-size: 28px;
  margin-bottom: 30px;
  color: #333;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.related-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s;
}

.related-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.related-image {
  height: 180px;
  overflow: hidden;
  background: linear-gradient(135deg, #E8F5E9, #C8E6C9);
}

.related-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.related-card h4 {
  padding: 20px 20px 12px;
  font-size: 18px;
  color: #333;
  line-height: 1.4;
}

.related-card a {
  display: inline-block;
  padding: 0 20px 20px;
  color: #2E7D32;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s;
}

.related-card a:hover {
  color: #1B5E20;
}

/* Error State */
.error-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 100px 20px;
  text-align: center;
}

.error-state i {
  width: 80px;
  height: 80px;
  color: #f44336;
  margin-bottom: 24px;
}

.error-state h2 {
  font-size: 32px;
  color: #333;
  margin-bottom: 12px;
}

.error-state p {
  font-size: 18px;
  color: #666;
  margin-bottom: 32px;
}

/* ===== GALERI PAGE ===== */
.galeri-masonry {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

/* Lightbox Info */
.lightbox-info {
  text-align: center;
  margin-top: 24px;
}

.lightbox-info h3 {
  color: white;
  font-size: 24px;
  margin-bottom: 12px;
}

.lightbox-info p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 16px;
  line-height: 1.6;
}

/* Loading */
.loading {
  text-align: center;
  padding: 60px 20px;
  color: #999;
  font-size: 18px;
}

/* Responsive */
@media (max-width: 768px) {
  .page-header {
    padding: 60px 0 40px;
  }
  
  .page-header h1 {
    font-size: 32px;
  }
  
  .filter-bar {
    flex-direction: column;
    align-items: stretch;
  }
  
  .search-box {
    width: 100%;
  }
  
  .filter-buttons {
    justify-content: center;
  }
  
  .artikel-header h1 {
    font-size: 28px;
  }
  
  .artikel-body {
    font-size: 16px;
  }
  
  .share-buttons {
    flex-direction: column;
  }
  
  .share-btn {
    justify-content: center;
  }
  
  .galeri-masonry {
    grid-template-columns: 1fr;
  }
}
