/* === SHUNYA SHATABDI v4.0 — DESIGN IMPROVEMENTS === */

/* ═══ IMPROVED FONT RENDERING ═══ */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: 'kern' 1;
}

/* ═══ BETTER FONT SIZES & LINE HEIGHTS ═══ */
/* Body text — larger for Hindi readability */
body { font-size: 17px; line-height: 1.8; font-weight: 400; }

/* Headlines — better spacing for Devanagari */
.ch { font-size: 21px; line-height: 1.55; letter-spacing: -0.01em; }
.htl { letter-spacing: -0.02em; }
.page-title { font-size: 36px; line-height: 1.4; }
.st { font-size: 26px; }

/* News detail — improved reading experience */
.nd h1 { font-size: 32px; line-height: 1.5; letter-spacing: -0.01em; }
.nd .nd-body { font-size: 18px; line-height: 2; }
.nd .nd-body p { margin-bottom: 20px; }

/* Category labels — slightly larger */
.ccat { font-size: 12px; letter-spacing: 1.8px; margin-bottom: 10px; }

/* Meta info — cleaner */
.cinfo { font-size: 13px; gap: 14px; }
.nd .nd-meta { font-size: 14px; gap: 14px; }

/* ═══ IMPROVED COLOR CONTRAST ═══ */
/* Ensure WCAG AA contrast ratios */
:root {
  --text: #111827;           /* Darker body text for better readability */
  --text-light: #374151;     /* Improved contrast for secondary text */
  --text-muted: #6B7280;     /* Better muted text contrast */
}

/* Better category tag colors — more vibrant but accessible */
.ccat { color: #DC2626; }
.nd .nd-cat { 
  background: linear-gradient(135deg, #DC2626, #B91C1C); 
  letter-spacing: 1.5px; 
  padding: 7px 20px;
  font-size: 12px;
}

/* Better link hover */
a:hover { color: #DC2626; }

/* Trending sidebar — softer gradient */
.sbh { 
  background: linear-gradient(135deg, #DC2626, #991B1B); 
  font-size: 19px;
  padding: 16px 20px;
}

/* Section headers — cleaner look */
.sh { border-bottom: 2px solid #E5E7EB; }
.sh::after { background: linear-gradient(90deg, #DC2626, #F97316); height: 3px; }

/* ═══ IMAGE QUALITY IMPROVEMENTS ═══ */
/* Better image rendering */
img {
  image-rendering: auto;
  image-rendering: smooth;
}

/* Card images — better aspect ratio and cover */
.ci img, .cimg img, .hsc .cimg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hero images — higher quality */
.hero-slide img, .hm img {
  object-fit: cover;
  object-position: center 25%;
  image-rendering: auto;
}

/* News detail images — contain mode for full visibility */
.nd-media img, .nd-real-img {
  max-height: 520px;
  object-fit: contain;
  background: #F9FAFB;
  border-radius: 12px;
}

/* Image placeholder — better shimmer */
.ci:not(:has(img)), .cimg:not(:has(img)) {
  background: linear-gradient(110deg, #1F2937 8%, #374151 18%, #1F2937 33%);
  background-size: 200% 100%;
  animation: shimmer 1.5s linear infinite;
}

/* ═══ NEWS DATE/TIME DISPLAY ═══ */
.news-datetime {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #6B7280;
  background: #F3F4F6;
  padding: 4px 12px;
  border-radius: 8px;
}
.news-datetime .nd-icon { font-size: 14px; }
.news-datetime .nd-date { color: #374151; font-weight: 700; }
.news-datetime .nd-time { color: #9CA3AF; }

[data-theme="dark"] .news-datetime {
  background: #1F2937;
  color: #9CA3AF;
}
[data-theme="dark"] .news-datetime .nd-date { color: #D1D5DB; }

/* Updated tag */
.news-updated-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: #D97706;
  background: #FFFBEB;
  padding: 3px 10px;
  border-radius: 10px;
  border: 1px solid #FDE68A;
}
[data-theme="dark"] .news-updated-badge {
  background: #78350F;
  border-color: #92400E;
  color: #FCD34D;
}

/* ═══ ADMIN DATE/TIME EDITOR ═══ */
.datetime-editor {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.datetime-editor input[type="datetime-local"] {
  padding: 8px 12px;
  border: 1px solid #D1D5DB;
  border-radius: 8px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 14px;
  font-weight: 600;
}
.datetime-editor input[type="datetime-local"]:focus {
  border-color: #DC2626;
  outline: none;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

/* ═══ APPROVAL SYSTEM BADGES ═══ */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  border-radius: 20px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.status-pending { background: #FEF3C7; color: #92400E; border: 1px solid #FDE68A; }
.status-approved { background: #D1FAE5; color: #065F46; border: 1px solid #6EE7B7; }
.status-rejected { background: #FEE2E2; color: #991B1B; border: 1px solid #FECACA; }
.status-draft { background: #E0E7FF; color: #3730A3; border: 1px solid #C7D2FE; }

/* Reporter submission card */
.reporter-submission {
  background: #FFF;
  border: 1px solid #E5E7EB;
  border-left: 4px solid #F59E0B;
  border-radius: 0 12px 12px 0;
  padding: 20px;
  margin-bottom: 16px;
  transition: border-color 0.3s;
}
.reporter-submission:hover { border-left-color: #DC2626; }
.reporter-submission.approved { border-left-color: #10B981; }
.reporter-submission.rejected { border-left-color: #EF4444; }

[data-theme="dark"] .reporter-submission {
  background: #161B22;
  border-color: #30363D;
}

/* Approval action buttons */
.approval-actions {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  flex-wrap: wrap;
}
.btn-approve {
  background: linear-gradient(135deg, #059669, #10B981);
  color: #FFF;
  border: none;
  padding: 8px 20px;
  border-radius: 8px;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: 0.2s;
}
.btn-approve:hover { filter: brightness(1.1); transform: translateY(-1px); }
.btn-reject {
  background: linear-gradient(135deg, #DC2626, #EF4444);
  color: #FFF;
  border: none;
  padding: 8px 20px;
  border-radius: 8px;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: 0.2s;
}
.btn-reject:hover { filter: brightness(1.1); transform: translateY(-1px); }
.btn-edit-inline {
  background: #F3F4F6;
  color: #374151;
  border: 1px solid #D1D5DB;
  padding: 8px 20px;
  border-radius: 8px;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: 0.2s;
}
.btn-edit-inline:hover { background: #E5E7EB; }

/* ═══ CARD HOVER IMPROVEMENTS ═══ */
.nc { transition: box-shadow 0.4s, transform 0.4s; }
.nc:hover {
  box-shadow: 0 12px 40px rgba(220, 38, 38, 0.12);
  transform: translateY(-6px);
}

/* ═══ FOOTER IMPROVEMENTS ═══ */
.fbot { font-size: 13px; color: #6B7280; }

/* ═══ MOBILE RESPONSIVE IMPROVEMENTS ═══ */
@media (max-width: 768px) {
  body { font-size: 16px; line-height: 1.75; }
  .ch { font-size: 17px; line-height: 1.5; }
  .nd h1 { font-size: 24px; }
  .nd .nd-body { font-size: 16px; line-height: 1.85; }
  .page-title { font-size: 24px; }
  .st { font-size: 20px; }
  .news-datetime { font-size: 12px; padding: 3px 10px; }
  .approval-actions { gap: 6px; }
  .btn-approve, .btn-reject, .btn-edit-inline { padding: 6px 14px; font-size: 13px; }
}

@media (max-width: 480px) {
  .ch { font-size: 15px; }
  .nd h1 { font-size: 21px; }
  .nd .nd-body { font-size: 15px; }
}

/* ═══ PRINT STYLES ═══ */
@media print {
  .news-datetime { background: none; border: 1px solid #999; }
  .status-badge { border: 1px solid #999; }
}
