@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Merriweather:wght@700;900&display=swap');

:root {
  --hesa-red: #cd2653;
  --hesa-red-dark: #a81e44;
  --hesa-red-light: #fce8ee;
  --hesa-green: #00a651;
  --hesa-green-light: #e6f7ef;
  --hesa-orange: #ff6900;
  --hesa-cream: #f5efe0;
  --hesa-cream-dark: #ebe4d4;
  --primary: var(--hesa-red);
  --primary-dark: var(--hesa-red-dark);
  --accent: var(--hesa-green);
  --success: #00a651;
  --danger: #cf2e2e;
  --warning: #fcb900;
  --bg: #faf8f5;
  --bg-card: #ffffff;
  --bg-card-hover: #fefefe;
  --text: #32373c;
  --text-muted: #6d6d6d;
  --border: #e8e2d6;
  --gradient-1: linear-gradient(135deg, #cd2653 0%, #ff6900 50%, #00a651 100%);
  --gradient-hero: linear-gradient(135deg, #cd2653 0%, #a81e44 100%);
  --shadow: 0 4px 24px rgba(205, 38, 83, 0.08);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.1);
  --radius: 12px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

/* Animations */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.animate-fade-in { animation: fadeIn 0.6s ease forwards; }
.animate-fade-up { animation: fadeInUp 0.7s ease forwards; }
.animate-slide-left { animation: slideInLeft 0.7s ease forwards; }
.animate-slide-right { animation: slideInRight 0.7s ease forwards; }

.stagger-1 { animation-delay: 0.1s; opacity: 0; }
.stagger-2 { animation-delay: 0.2s; opacity: 0; }
.stagger-3 { animation-delay: 0.3s; opacity: 0; }
.stagger-4 { animation-delay: 0.4s; opacity: 0; }
.stagger-5 { animation-delay: 0.5s; opacity: 0; }
.stagger-6 { animation-delay: 0.6s; opacity: 0; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}

.logo img {
  height: 40px;
  width: auto;
}

.logo-text {
  font-family: 'Merriweather', serif;
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--hesa-red);
  line-height: 1.2;
}

.logo-text span {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.nav-links { display: flex; gap: 4px; list-style: none; align-items: center; }

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--hesa-red);
  background: var(--hesa-red-light);
}

.nav-cta {
  background: var(--hesa-red) !important;
  color: white !important;
  padding: 8px 20px !important;
}

.nav-cta:hover {
  background: var(--hesa-red-dark) !important;
  color: white !important;
}

/* Hero */
.hero {
  padding: 72px 0 56px;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--hesa-cream) 0%, var(--bg) 100%);
}

.hero::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(205, 38, 83, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -20%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(0, 166, 81, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero-badge {
  display: inline-block;
  background: var(--hesa-red-light);
  color: var(--hesa-red);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 20px;
  letter-spacing: 0.5px;
}

.hero h1 {
  font-family: 'Merriweather', serif;
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 900;
  margin-bottom: 16px;
  line-height: 1.25;
  color: var(--text);
  position: relative;
}

.hero h1 span {
  color: var(--hesa-red);
}

.hero p {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto 32px;
  position: relative;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border: none;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  font-family: inherit;
}

.btn-primary {
  background: var(--hesa-red);
  color: white;
}

.btn-primary:hover {
  background: var(--hesa-red-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(205, 38, 83, 0.3);
}

.btn-secondary {
  background: white;
  color: var(--text);
  border: 2px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--hesa-red);
  color: var(--hesa-red);
  transform: translateY(-2px);
}

.btn-success { background: var(--hesa-green); color: white; }
.btn-success:hover { background: #008c45; }
.btn-danger { background: var(--danger); color: white; }
.btn-sm { padding: 8px 16px; font-size: 0.85rem; }
.btn-group { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Cards */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: all 0.3s;
  box-shadow: var(--shadow);
}

.card:hover {
  border-color: rgba(205, 38, 83, 0.2);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  padding: 40px 0;
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.card h3 { font-size: 1.15rem; margin-bottom: 8px; color: var(--text); }
.card p { color: var(--text-muted); font-size: 0.9rem; }

/* Forms */
.form-group { margin-bottom: 20px; }

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.2s;
}

.form-control:focus {
  outline: none;
  border-color: var(--hesa-red);
  box-shadow: 0 0 0 3px rgba(205, 38, 83, 0.12);
  background: white;
}

textarea.form-control { min-height: 140px; resize: vertical; }

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%236d6d6d' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
  cursor: pointer;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* Badges */
.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-pending { background: #fff8e6; color: #b8860b; }
.badge-approved { background: var(--hesa-green-light); color: var(--hesa-green); }
.badge-rejected { background: #fde8e8; color: var(--danger); }
.badge-published { background: var(--hesa-red-light); color: var(--hesa-red); }
.badge-draft { background: #f0f0f0; color: var(--text-muted); }
.badge-category { background: #f0e8ff; color: #7c3aed; }

/* Section */
.section { padding: 60px 0; }
.section-alt { background: var(--hesa-cream); }

.section-title {
  font-family: 'Merriweather', serif;
  font-size: 2rem;
  text-align: center;
  margin-bottom: 12px;
  color: var(--text);
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* Timeline */
.timeline { position: relative; padding-left: 40px; }

.timeline::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--hesa-red);
  opacity: 0.3;
}

.timeline-item {
  position: relative;
  margin-bottom: 24px;
  padding: 24px;
  background: white;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -33px;
  top: 28px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--hesa-red);
  border: 3px solid var(--hesa-cream);
}

.timeline-item-active {
  border-color: var(--hesa-green);
  background: var(--hesa-green-light);
  box-shadow: 0 4px 24px rgba(0, 166, 81, 0.15);
}

.timeline-item-active::before {
  background: var(--hesa-green);
  box-shadow: 0 0 0 4px rgba(0, 166, 81, 0.25);
}

.timeline-active-badge {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 10px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: white;
  background: var(--hesa-green);
  border-radius: 999px;
  vertical-align: middle;
  animation: pulseBadge 2s ease infinite;
}

@keyframes pulseBadge {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0, 166, 81, 0.4); }
  50% { box-shadow: 0 0 0 6px rgba(0, 166, 81, 0); }
}

.collection-banner {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 24px 28px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: white;
  box-shadow: var(--shadow);
  margin-bottom: 24px;
}

.collection-banner-open {
  border-color: rgba(0, 166, 81, 0.35);
  background: linear-gradient(135deg, #f0fdf6 0%, #ffffff 60%);
}

.collection-banner-closed {
  border-color: rgba(207, 46, 46, 0.25);
  background: #fff8f8;
}

.collection-banner-icon {
  font-size: 2rem;
  line-height: 1;
  flex-shrink: 0;
}

.collection-banner-body { flex: 1; }

.collection-banner-body h3 {
  font-size: 1.15rem;
  margin-bottom: 6px;
}

.collection-banner-body p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.collection-live-badge {
  display: inline-block;
  margin-bottom: 8px;
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: white;
  background: var(--hesa-green);
  border-radius: 999px;
  animation: pulseBadge 2s ease infinite;
}

.collection-editions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.collection-edition-card {
  padding: 14px 16px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 10px;
}

.collection-edition-card .edition-type {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--hesa-red);
  margin-bottom: 4px;
}

.collection-edition-card .edition-date {
  font-weight: 600;
  font-size: 0.92rem;
}

.collection-edition-card .edition-countdown {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.collection-dates {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin-top: 10px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* Newsletter Viewer */
.newsletter-hero {
  padding: 56px 0 40px;
  text-align: center;
  background: var(--gradient-hero);
  color: white;
  position: relative;
  overflow: hidden;
}

.newsletter-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #ff6900, #00a651, #cd2653);
}

.newsletter-hero h1 {
  font-family: 'Merriweather', serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: 8px;
}

.newsletter-hero .meta { color: rgba(255,255,255,0.85); font-size: 0.9rem; }

.newsletter-hero .type-badge {
  background: rgba(255,255,255,0.2) !important;
  color: white !important;
  border: 1px solid rgba(255,255,255,0.3);
}

.newsletter-section {
  padding: 48px 0;
  border-bottom: 1px solid var(--border);
}

.newsletter-section:last-child { border-bottom: none; }

.section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}

.section-header .icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.section-header h2 {
  font-family: 'Merriweather', serif;
  font-size: 1.5rem;
  color: var(--text);
}

.news-item {
  background: white;
  border: 1px solid var(--border);
  border-left: 4px solid var(--hesa-red);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 20px;
  transition: all 0.4s;
  opacity: 0;
  transform: translateY(20px);
  box-shadow: var(--shadow);
}

.news-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.news-item:hover {
  box-shadow: var(--shadow-lg);
  border-left-color: var(--hesa-green);
}

.news-item h3 { font-size: 1.15rem; margin-bottom: 8px; color: var(--text); }
.news-item .author { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 12px; }
.news-item .content { color: var(--text-muted); line-height: 1.7; }

.news-item-detail {
  opacity: 1;
  transform: none;
  border-left-width: 4px;
}

.news-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.news-list-item {
  display: block;
  width: 100%;
  text-align: left;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: var(--shadow);
  font-family: inherit;
  color: inherit;
}

.news-list-item:hover {
  border-color: var(--hesa-red);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.news-list-item:focus-visible {
  outline: 2px solid var(--hesa-red);
  outline-offset: 2px;
}

.news-list-item-top {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.news-list-item h3 {
  font-size: 1.05rem;
  margin-bottom: 6px;
  color: var(--text);
}

.news-list-item .author {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.news-list-item .preview {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 10px;
}

.news-list-read {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--hesa-red);
}

.news-list-media-tag {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.section-count {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
}

.news-detail-bar {
  background: white;
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.news-back-btn {
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--hesa-red);
  cursor: pointer;
  margin-bottom: 8px;
}

.news-back-btn:hover { text-decoration: underline; }

.news-detail-context {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* Admin */
.admin-layout { display: flex; min-height: 100vh; background: var(--bg); }

.sidebar {
  width: 260px;
  background: white;
  border-right: 1px solid var(--border);
  padding: 24px 0;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
}

.sidebar .logo { padding: 0 20px 24px; }

.sidebar nav { flex: 1; }

.sidebar nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s;
  border-left: 3px solid transparent;
}

.sidebar nav a:hover, .sidebar nav a.active {
  color: var(--hesa-red);
  background: var(--hesa-red-light);
  border-left-color: var(--hesa-red);
}

.main-content { flex: 1; padding: 32px; overflow-y: auto; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.stat-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  box-shadow: var(--shadow);
}

.stat-card .number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--hesa-red);
}

.stat-card .label {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 4px;
}

.table-wrap { overflow-x: auto; }

table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}

th {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: var(--hesa-cream);
}

tr:hover td { background: rgba(245, 239, 224, 0.4); }

.actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* Submission cards (admin) */
.submissions-grid {
  display: grid;
  gap: 16px;
}

.submission-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: start;
  transition: all 0.2s;
  box-shadow: var(--shadow);
}

.submission-card:hover {
  border-color: rgba(205, 38, 83, 0.3);
  box-shadow: var(--shadow-lg);
}

.submission-card h4 {
  font-size: 1rem;
  margin-bottom: 6px;
  color: var(--text);
}

.submission-card .meta {
  font-size: 0.82rem;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.submission-card .preview {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Login */
.login-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: linear-gradient(135deg, var(--hesa-cream) 0%, white 100%);
}

.login-card {
  width: 100%;
  max-width: 420px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px;
  box-shadow: var(--shadow-lg);
}

.login-card h2 {
  font-family: 'Merriweather', serif;
  text-align: center;
  margin-bottom: 8px;
  color: var(--hesa-red);
}

.login-card .subtitle {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 32px;
  font-size: 0.9rem;
}

/* Toast */
.toast-container {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  padding: 14px 20px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  animation: slideInRight 0.4s ease;
  box-shadow: var(--shadow-lg);
}

.toast-success { background: var(--hesa-green); color: white; }
.toast-error { background: var(--danger); color: white; }
.toast-info { background: var(--hesa-red); color: white; }

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: fadeIn 0.2s ease;
}

.modal {
  background: white;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  max-width: 640px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  animation: fadeInUp 0.3s ease;
  box-shadow: var(--shadow-lg);
}

.modal h3 { margin-bottom: 16px; font-size: 1.3rem; color: var(--text); }

/* Newsletter List */
.nl-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: all 0.3s;
  color: inherit;
  display: block;
  box-shadow: var(--shadow);
}

.nl-card:hover {
  border-color: var(--hesa-red);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.nl-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.nl-card-share {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.nl-card .type-badge {
  font-size: 0.7rem;
  padding: 4px 12px;
  border-radius: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.nl-card .type-weekly { background: var(--hesa-green-light); color: var(--hesa-green); }
.nl-card .type-monthly { background: var(--hesa-red-light); color: var(--hesa-red); }

.nl-card h3 { margin: 12px 0 8px; font-size: 1.15rem; }
.nl-card .date { color: var(--text-muted); font-size: 0.85rem; }

/* Footer */
.site-footer {
  text-align: center;
  padding: 48px 24px;
  background: var(--text);
  color: rgba(255,255,255,0.7);
  font-size: 0.85rem;
}

.site-footer .footer-logo {
  height: 36px;
  margin-bottom: 16px;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.site-footer a { color: rgba(255,255,255,0.9); }

/* Impact strip */
.impact-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 48px 0;
  text-align: center;
}

.impact-item .number {
  font-family: 'Merriweather', serif;
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--hesa-red);
}

.impact-item .label {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 4px;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 60px 24px;
  color: var(--text-muted);
}

.empty-state .icon { font-size: 3rem; margin-bottom: 16px; opacity: 0.5; }

/* Confetti */
.confetti-piece {
  position: fixed;
  width: 10px;
  height: 10px;
  top: -10px;
  z-index: 9998;
  animation: confettiFall linear forwards;
}

@keyframes confettiFall {
  to { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}

/* HTML Editor (Quill) */
.html-editor {
  background: white;
  border: 1px solid var(--border);
  border-radius: 8px;
  min-height: 220px;
}

.html-editor .ql-toolbar {
  border: none;
  border-bottom: 1px solid var(--border);
  border-radius: 8px 8px 0 0;
  background: var(--hesa-cream);
  font-family: inherit;
}

.html-editor .ql-container {
  border: none;
  border-radius: 0 0 8px 8px;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  min-height: 180px;
}

.html-editor .ql-editor {
  min-height: 180px;
  color: var(--text);
}

.html-editor .ql-editor.ql-blank::before {
  color: var(--text-muted);
  font-style: normal;
}

.html-editor:focus-within {
  border-color: var(--hesa-red);
  box-shadow: 0 0 0 3px rgba(205, 38, 83, 0.12);
}

/* Rich content display */
.rich-content {
  line-height: 1.7;
  color: var(--text-muted);
}

.rich-content h1, .rich-content h2, .rich-content h3 {
  color: var(--text);
  margin: 16px 0 8px;
  font-family: 'Merriweather', serif;
}

.rich-content h1 { font-size: 1.4rem; }
.rich-content h2 { font-size: 1.2rem; }
.rich-content h3 { font-size: 1.05rem; }

.rich-content p { margin-bottom: 10px; }
.rich-content ul, .rich-content ol { margin: 10px 0 10px 24px; }
.rich-content li { margin-bottom: 4px; }

.rich-content a {
  color: var(--hesa-red);
  text-decoration: underline;
}

.rich-content blockquote {
  border-left: 4px solid var(--hesa-red);
  padding: 8px 16px;
  margin: 12px 0;
  background: var(--hesa-cream);
  border-radius: 0 8px 8px 0;
  font-style: italic;
}

.rich-content img {
  max-width: 100%;
  border-radius: 8px;
  margin: 8px 0;
}

.rich-content pre, .rich-content code {
  background: var(--hesa-cream);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.88rem;
}

/* Form hints & uploads */
.form-hint {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: -4px 0 12px;
}

.upload-zone {
  background: var(--hesa-cream);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 20px;
}

.file-input { padding: 10px; background: white; cursor: pointer; }

.file-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.file-chip {
  background: white;
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 16px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.url-row {
  display: grid;
  grid-template-columns: 130px 1fr 1fr auto;
  gap: 8px;
  margin-bottom: 8px;
  align-items: center;
}

.url-remove { padding: 8px 12px !important; min-width: auto; }

/* Media gallery */
.media-gallery { margin-top: 16px; }

.media-images {
  display: grid;
  gap: 12px;
  margin-bottom: 12px;
}

.media-images.multi {
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

.media-image-wrap {
  display: block;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform 0.2s;
}

.media-image-wrap:hover { transform: scale(1.02); }

.media-image-wrap img {
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  display: block;
}

.media-video {
  width: 100%;
  max-height: 400px;
  border-radius: 8px;
  margin-bottom: 12px;
  background: #000;
}

.media-pdf {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: var(--hesa-cream);
  border: 1px solid var(--border);
  border-radius: 8px;
  text-decoration: none;
  color: var(--text);
  margin-bottom: 10px;
  transition: all 0.2s;
}

.media-pdf:hover {
  border-color: var(--hesa-red);
  background: var(--hesa-red-light);
}

.pdf-icon { font-size: 2rem; }

.pdf-info { display: flex; flex-direction: column; }
.pdf-info small { color: var(--text-muted); font-size: 0.8rem; }

.media-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 8px;
  text-decoration: none;
  color: var(--hesa-red);
  font-size: 0.9rem;
  margin: 4px 8px 4px 0;
  transition: all 0.2s;
}

.media-link:hover { background: var(--hesa-red-light); }

.badge-media { font-size: 0.68rem !important; }
.badge-media-image { background: #e6f7ef; color: var(--hesa-green); }
.badge-media-video { background: #fff8e6; color: #b8860b; }
.badge-media-pdf { background: #fde8e8; color: var(--danger); }
.badge-media-url { background: #f0e8ff; color: #7c3aed; }

/* Comments */
.comments-section {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.comments-title {
  font-size: 1rem;
  margin-bottom: 16px;
  color: var(--text);
}

.comment-count { color: var(--text-muted); font-weight: 400; font-size: 0.85rem; }

.comments-list { margin-bottom: 16px; }

.comment-item {
  background: var(--hesa-cream);
  border-radius: 8px;
  padding: 14px 16px;
  margin-bottom: 10px;
}

.comment-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  flex-wrap: wrap;
  gap: 8px;
}

.comment-header strong { font-size: 0.9rem; color: var(--text); }
.comment-header span { font-size: 0.78rem; color: var(--text-muted); }

.comment-item p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.comments-empty {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
  padding: 8px 0;
}

.comment-form { margin-top: 12px; }

.newsletter-comments-section {
  background: var(--hesa-cream);
}

/* Social Share */
.share-bar {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 12px;
  padding: 16px 20px;
  max-width: 720px;
  margin: 0 auto;
}

.share-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 12px;
}

.share-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: none;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s;
  color: white;
}

.share-btn:hover { transform: translateY(-2px); filter: brightness(1.1); }

.share-linkedin { background: #0a66c2; }
.share-whatsapp { background: #25d366; }
.share-twitter { background: #000; }
.share-facebook { background: #1877f2; }
.share-email { background: #6d6d6d; }
.share-copy { background: rgba(255,255,255,0.2); border: 1px solid rgba(255,255,255,0.4); }

.news-item-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 8px;
}

.news-item-header h3 { flex: 1; margin-bottom: 0; }

.share-compact {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}

.share-compact-btn {
  width: 32px;
  height: 32px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: white;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  color: var(--text-muted);
}

.share-compact-btn:hover {
  border-color: var(--hesa-red);
  color: var(--hesa-red);
  background: var(--hesa-red-light);
}

/* Responsive */
@media (max-width: 768px) {
  .url-row { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .admin-layout { flex-direction: column; }
  .sidebar { width: 100%; border-right: none; border-bottom: 1px solid var(--border); }
  .sidebar nav { display: flex; overflow-x: auto; }
  .sidebar nav a { border-left: none; border-bottom: 3px solid transparent; white-space: nowrap; }
  .hero { padding: 48px 0 40px; }
  .nav-links { display: none; }
  .impact-strip { grid-template-columns: 1fr; }
  .submission-card { grid-template-columns: 1fr; }
  .share-buttons { justify-content: flex-start; }
  .news-item-header { flex-direction: column; }
}
