/* ==========================================================================
   Modern News Redesign CSS - FKPDK Kuningan
   ========================================================================== */

/* Variables & Base */
:root {
  --primary-color: #F96D00;
  --primary-hover: #e06000;
  --bg-gradient: linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%);
  --text-main: #333333;
  --text-muted: #666666;
  --card-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(255, 255, 255, 0.4);
  --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 15px 30px rgba(0, 0, 0, 0.12);
  --radius-md: 12px;
  --radius-lg: 20px;
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

body {
  font-family: 'Poppins', sans-serif;
}

/* ==========================================================================
   News Card (Halaman Utama & Semua Berita)
   ========================================================================== */
.news-card-modern {
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  margin-bottom: 30px;
}

.news-card-modern:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.news-card-img-wrap {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
  background: #eee; /* Fallback */
}

.news-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.news-card-modern:hover .news-card-img-wrap img {
  transform: scale(1.05);
}

.news-date-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: var(--radius-md);
  padding: 8px 12px;
  text-align: center;
  box-shadow: var(--shadow-md);
  z-index: 2;
}

.news-date-badge .day {
  display: block;
  font-size: 20px;
  font-weight: 700;
  color: var(--primary-color);
  line-height: 1;
}

.news-date-badge .month-yr {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 500;
  margin-top: 4px;
}

.news-card-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.news-card-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 12px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card-title a {
  color: var(--text-main);
  text-decoration: none;
  transition: var(--transition);
}

.news-card-title a:hover {
  color: var(--primary-color);
}

.news-card-excerpt {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-grow: 1;
}

.news-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 15px;
  border-top: 1px solid rgba(0,0,0,0.05);
  margin-top: auto;
}

.news-read-more {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  transition: var(--transition);
}

.news-read-more i {
  margin-left: 5px;
  transition: transform 0.2s ease;
}

.news-read-more:hover {
  color: var(--primary-hover);
}

.news-read-more:hover i {
  transform: translateX(4px);
}

.news-like-stat {
  display: flex;
  align-items: center;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
}

.news-like-stat i {
  color: #ff4757;
  margin-right: 5px;
}

/* ==========================================================================
   Article View (Halaman Detail Berita)
   ========================================================================== */
.article-modern-wrap {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  margin-bottom: 40px;
}

.article-hero {
  position: relative;
  width: 100%;
  min-height: 300px;
  max-height: 450px;
  overflow: hidden;
  background: var(--bg-gradient);
}

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

.article-header-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 60px 40px 30px;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
  color: #fff;
}

.article-title {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 15px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  font-size: 14px;
  font-weight: 500;
  opacity: 0.9;
}

.article-meta-item {
  display: flex;
  align-items: center;
  margin-right: 20px;
  margin-bottom: 5px;
}

.article-meta-item i {
  margin-right: 6px;
  color: var(--primary-color);
}

.article-content {
  padding: 40px;
  font-size: 16px;
  line-height: 1.8;
  color: #444;
}

.article-content p {
  margin-bottom: 20px;
}

.article-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 20px 0;
}

/* Interactive Footer (Like & Share) */
.article-interactive {
  padding: 20px 40px;
  background: #f8f9fa;
  border-top: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.interaction-left, .interaction-right {
  display: flex;
  align-items: center;
  gap: 15px;
}

/* Like Button Modern */
.btn-like-modern {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: #fff;
  border: 1px solid #ffeaa7;
  border-radius: 30px;
  color: #333;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.btn-like-modern i.fa-heart {
  color: #b2bec3;
  font-size: 18px;
  transition: all 0.3s ease;
}

.btn-like-modern:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  border-color: #ff7675;
}

.btn-like-modern.liked {
  background: #fff5f5;
  border-color: #ff7675;
  color: #ff4757;
}

.btn-like-modern.liked i.fa-heart {
  color: #ff4757;
  animation: heartPulse 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes heartPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.4); }
  100% { transform: scale(1); }
}

.like-count-display {
  font-size: 15px;
}

/* Reactions Panel */
.reactions-wrapper {
  position: relative;
  display: inline-block;
}

.btn-react-modern {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: #fff;
  border: 1px solid #dfe6e9;
  border-radius: 30px;
  color: #333;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.btn-react-modern:hover {
  background: #f1f2f6;
}

.reactions-panel {
  position: absolute;
  bottom: 120%;
  left: 50%;
  transform: translateX(-50%) scale(0.8);
  background: #fff;
  padding: 8px 12px;
  border-radius: 30px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  display: flex;
  gap: 10px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 10;
}

.reactions-wrapper:hover .reactions-panel,
.reactions-panel.active {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) scale(1);
}

.reaction-item {
  width: 36px;
  height: 36px;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
}

.reaction-item img {
  width: 100%;
  height: 100%;
}

.reaction-item:hover {
  transform: scale(1.3) translateY(-5px);
}

.reaction-item .reaction-tooltip {
  position: absolute;
  top: -25px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.8);
  color: white;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 10px;
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
  white-space: nowrap;
}

.reaction-item:hover .reaction-tooltip {
  opacity: 1;
}

.active-reaction-display {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-left: 10px;
}

.active-reaction-display img {
  width: 24px;
  height: 24px;
}

/* Share Buttons */
.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: #fff;
  font-size: 18px;
  transition: var(--transition);
}

.share-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  color: #fff;
}

.share-wa {
  background: #25D366;
}

.share-copy {
  background: #747d8c;
}

/* Back Button */
.btn-back-modern {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--text-main);
  color: #fff;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  margin-bottom: 20px;
}

.btn-back-modern:hover {
  background: var(--primary-color);
  color: #fff;
  transform: translateX(-5px);
}

/* Responsive */
@media (max-width: 768px) {
  .article-header-overlay {
    padding: 30px 20px 20px;
  }
  
  .article-title {
    font-size: 24px;
  }
  
  .article-content {
    padding: 20px;
  }
  
  .article-interactive {
    padding: 20px;
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }
}
