/* ========================================
   Nova România - Common Styles
   Shared across all pages for consistent layout
======================================== */

:root {
  --sidebar-width: 260px;
  --sidebar-collapsed: 70px;
  --header-height: 70px;

  --primary: #1e293b;
  --secondary: #3b82f6;
  --accent: #f59e0b;
  --success: #10b981;
  --danger: #ef4444;

  --bg-main: #f0f2f5;
  --bg-sidebar: #ffffff;
  --bg-card: #ffffff;
  --bg-hover: #f1f5f9;

  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --text-muted: #94a3b8;

  --border-light: #e2e8f0;
  --border-medium: #cbd5e1;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md:
    0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg:
    0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl:
    0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;

  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s ease;
  --transition-slow: 0.4s ease;
}

/* Dark mode variables */
html.dark {
  --bg-main: #0f172a;
  --bg-sidebar: #1e293b;
  --bg-card: #1e293b;
  --bg-hover: #334155;

  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --border-light: #334155;
  --border-medium: #475569;

  --primary: #f1f5f9;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Always show scrollbar to prevent layout shift */
html {
  overflow-y: scroll;
}

body {
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  background: var(--bg-main);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ========================================
   LAYOUT STRUCTURE
======================================== */
.app-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.app-body {
  display: flex;
  flex: 1;
  padding-top: var(--header-height);
}

/* ========================================
   TOP HEADER - Full Width
======================================== */
.top-header {
  height: var(--header-height);
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-light);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 1.5rem;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  margin: 0 !important;
  border-radius: 0 !important;
  box-shadow: none;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.header-center {
  display: flex;
  justify-content: center;
}

.header-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
}

/* Header Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.logo-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(
    to right,
    #5483e0 0%,
    #5483e0 33.33%,
    #fcd116 33.33%,
    #fcd116 66.66%,
    #ef5f6f 66.66%,
    #ef5f6f 100%
  );
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.6rem;
  font-weight: 700;
  box-shadow: var(--shadow-md);
  text-shadow:
    0 0 1px rgba(0, 0, 0, 0.4),
    0 1px 2px rgba(0, 0, 0, 0.3);
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text-primary);
  line-height: 1.2;
}

.logo-subtitle {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.top-header .logo {
  gap: 0.625rem;
}

.top-header .logo-icon {
  width: 36px;
  height: 36px;
  font-size: 1.4rem;
}

.top-header .logo-title {
  font-size: 1.1rem;
}

.top-header .logo-subtitle {
  font-size: 0.65rem;
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.25rem;
  cursor: pointer;
  padding: 0.5rem;
  margin-right: 0.5rem;
}

/* Search */
.search-container {
  position: relative;
  width: 480px;
  max-width: 100%;
}

.search-input {
  width: 100%;
  padding: 0.625rem 3.5rem 0.625rem 2.5rem;
  background: var(--bg-main);
  border: 1px solid var(--border-light);
  border-radius: 9999px;
  font-size: 0.875rem;
  color: var(--text-primary);
  transition: all var(--transition-fast);
}

.search-input:focus {
  outline: none;
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.search-input::placeholder {
  color: var(--text-muted);
}

.search-icon {
  position: absolute;
  left: 0.875rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.875rem;
}

.search-shortcut {
  position: absolute;
  right: 0.625rem;
  top: 50%;
  transform: translateY(-50%);
  padding: 0.125rem 0.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 4px;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family:
    system-ui,
    -apple-system,
    sans-serif;
  pointer-events: none;
  transition: opacity 0.15s ease;
}

.search-clear {
  position: absolute;
  right: 0.625rem;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  border: none;
  background: var(--bg-hover);
  border-radius: 50%;
  color: var(--text-muted);
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  transition: all 0.15s ease;
}

.search-clear:hover {
  background: var(--border-light);
  color: var(--text-primary);
}

/* Show clear button and hide shortcut when focused */
.search-container:focus-within .search-shortcut {
  opacity: 0;
  pointer-events: none;
}

.search-container:focus-within .search-clear {
  display: flex;
}

/* Header Buttons */
.header-btn {
  width: 40px;
  height: 40px;
  border-radius: 9999px;
  border: 1px solid var(--border-light);
  background: color-mix(in srgb, var(--bg-card) 94%, black);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.header-btn:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.notification-btn {
  position: relative;
}

.notification-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 18px;
  height: 18px;
  background: var(--danger);
  color: white;
  border-radius: 50%;
  font-size: 0.65rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg-card);
}

/* ========================================
   SIDEBAR
======================================== */
.sidebar {
  width: var(--sidebar-width);
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border-light);
  position: fixed;
  left: 0;
  top: var(--header-height);
  bottom: 0;
  display: flex;
  flex-direction: column;
  z-index: 90;
}

.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 0;
}

.nav-section {
  padding: 0 0.75rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
}

.nav-section:not(:last-child) {
  border-bottom: 1px solid var(--border-light);
}

.nav-section-title {
  display: none;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.75rem;
  margin-bottom: 0.25rem;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  text-decoration: none;
  transition: all var(--transition-fast);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  position: relative;
}

.nav-item:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.nav-item.active {
  background: linear-gradient(
    135deg,
    rgba(59, 130, 246, 0.1),
    rgba(59, 130, 246, 0.05)
  );
  color: var(--secondary);
}

/* Removed vertical line indicator */

.nav-item i {
  width: 20px;
  text-align: center;
  font-size: 1rem;
}

.nav-item .badge {
  margin-left: auto;
  background: var(--bg-hover);
  color: var(--text-muted);
  padding: 0.15rem 0.5rem;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 600;
}

.nav-item.active .badge {
  background: rgba(59, 130, 246, 0.2);
  color: var(--secondary);
}

/* Category colors */
.nav-item[data-route="economic"] i {
  color: #10b981;
}
.nav-item[data-route="juridic"] i {
  color: #8b5cf6;
}
.nav-item[data-route="legislativ"] i {
  color: #f59e0b;
}
.nav-item[data-route="social-sanatate"] i {
  color: #ef4444;
}
.nav-item[data-route="energie-resurse"] i {
  color: #06b6d4;
}
.nav-item[data-route="tehnologie"] i {
  color: #3b82f6;
}

/* Sidebar Footer */
.sidebar-footer {
  padding: 1rem;
  border-top: 1px solid var(--border-light);
}

/* Sidebar Chat Button */
.sidebar-chat-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  margin-bottom: 0.75rem;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  border-radius: var(--radius-lg);
  color: white;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all var(--transition-fast);
  position: relative;
}

.sidebar-chat-btn:hover {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.sidebar-chat-btn.disabled {
  background: linear-gradient(135deg, #9ca3af, #6b7280);
  opacity: 0.6;
  pointer-events: none;
  cursor: not-allowed;
}

.sidebar-chat-btn.disabled:hover {
  transform: none;
  box-shadow: none;
}

.sidebar-chat-btn i {
  font-size: 1rem;
}

.sidebar-chat-btn span:not(.chat-status) {
  flex: 1;
}

.chat-status {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #6b7280;
}

.chat-status.online {
  background: #10b981;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.3);
  animation: pulse-online 2s infinite;
}

@keyframes pulse-online {
  0%,
  100% {
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.3);
  }
  50% {
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.15);
  }
}

.user-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: var(--bg-hover);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.user-card:hover {
  background: var(--border-light);
}

.user-avatar {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--secondary), #6366f1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 0.9rem;
}

.user-info {
  flex: 1;
  min-width: 0;
}

.user-name {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-primary);
}

.user-role {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.user-menu-btn {
  color: var(--text-muted);
  font-size: 1rem;
}

/* ========================================
   MAIN CONTENT
======================================== */
.main-content {
  flex: 1;
  margin-left: var(--sidebar-width);
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - var(--header-height));
  padding: 0;
  /* Prevent horizontal overflow */
  min-width: 0;
  max-width: calc(100vw - var(--sidebar-width));
  overflow-x: hidden;
  /* Smooth SPA transitions */
  transition: opacity 0.1s ease-out;
}

.content-area {
  flex: 1;
  padding: 2rem;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
  /* Ensure content doesn't exceed available space */
  min-width: 0;
}

/* Mobile Sidebar Overlay */
.sidebar-overlay {
  display: none;
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 89;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.sidebar-overlay.active {
  opacity: 1;
}

/* ========================================
   RESPONSIVE DESIGN
======================================== */
@media (max-width: 1024px) {
  .search-container {
    width: 280px;
  }
}

@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform var(--transition-normal);
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .sidebar-overlay {
    display: block;
    top: var(--header-height);
  }

  .main-content {
    margin-left: 0;
    max-width: 100vw;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .top-header {
    grid-template-columns: auto 1fr auto;
    padding: 0 1rem;
    gap: 0.75rem;
  }

  .top-header .logo-text {
    display: none;
  }

  .header-center {
    flex: 1;
  }

  .search-container {
    width: 100%;
  }

  .search-shortcut {
    display: none;
  }

  .content-area {
    padding: 1rem;
  }
}

@media (max-width: 480px) {
  .content-area {
    padding: 0.75rem;
  }
}

/* ========================================
   SITE FOOTER
======================================== */
.site-footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border-light);
  padding: 1.5rem 2rem;
  margin-top: auto;
}

.site-footer .footer-content {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.site-footer .footer-logo h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.site-footer .footer-logo p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0.25rem 0 0;
}

.site-footer .footer-links {
  display: flex;
  gap: 1.5rem;
}

.site-footer .footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color var(--transition-fast);
}

.site-footer .footer-links a:hover {
  color: var(--secondary);
}

@media (max-width: 768px) {
  .site-footer {
    padding: 1.25rem 1rem;
  }

  .site-footer .footer-content {
    flex-direction: column;
    text-align: center;
  }
}

/* ========================================
   PAGE HEADER
======================================== */
.page-header {
  margin-bottom: 2rem;
}

.page-title {
  font-family: "Poppins", sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.page-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}

.page-title-row .page-title {
  margin-bottom: 0;
}

.page-title-row .meta-badge {
  flex-shrink: 0;
}

.page-description {
  color: var(--text-secondary);
  font-size: 0.95rem;
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
  min-height: 1.5em;
}

/* Home Title Row with Live Badge */
.home-title-row {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.home-title-row .page-title {
  margin-bottom: 0;
  font-size: 2.25rem;
}

.home-header .page-description {
  padding-top: 8px;
  padding-bottom: 30px;
}

/* Announcement Banner */
.announcement-banner {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 50px;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.announcement-badge {
  padding: 0.3rem 0.6rem;
  background: #ef4444;
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  border-radius: 4px;
}

.announcement-text {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0.3px;
}

html.dark .announcement-banner {
  background: var(--bg-card);
  border-color: var(--border-light);
}

/* Live Activity Bar */
.live-activity-bar {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0.85rem 1.5rem;
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: 50px;
  margin-top: 2rem;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

html.dark .live-activity-bar {
  background: rgba(59, 130, 246, 0.1);
  border-color: rgba(59, 130, 246, 0.2);
}

.live-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  background: #dc2626;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

.live-dot-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  animation: pulse-live 1.5s infinite;
}

.activity-feed {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  overflow: hidden;
  flex: 1;
}

.activity-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  white-space: nowrap;
}

.activity-item strong {
  color: #3b82f6;
  font-weight: 600;
}

.flag-icon,
.bulb-icon {
  font-size: 1rem;
}

html.dark .live-indicator {
  background: #dc2626;
  color: #fff;
}

html.dark .live-dot-pulse {
  background: #fff;
}

@media (max-width: 900px) {
  .live-activity-bar {
    flex-direction: column;
    border-radius: var(--radius-xl);
    gap: 1rem;
    padding: 1rem;
  }

  .activity-feed {
    flex-direction: column;
    gap: 0.75rem;
    align-items: flex-start;
  }

  .activity-item {
    white-space: normal;
  }
}

.live-users-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.85rem;
  background: rgba(42, 157, 143, 0.08);
  border: 1px solid rgba(42, 157, 143, 0.2);
  border-radius: 20px;
  font-size: 0.8rem;
  white-space: nowrap;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2a9d8f;
  box-shadow: 0 0 0 2px rgba(42, 157, 143, 0.25);
  animation: pulse-live 2s infinite;
}

@keyframes pulse-live {
  0%,
  100% {
    box-shadow: 0 0 0 2px rgba(42, 157, 143, 0.25);
  }
  50% {
    box-shadow: 0 0 0 4px rgba(42, 157, 143, 0.15);
  }
}

.live-count {
  font-weight: 700;
  color: #2a9d8f;
}

.live-label {
  font-weight: 600;
  color: #64748b;
  letter-spacing: 0.3px;
}

html.dark .live-users-badge {
  background: rgba(42, 157, 143, 0.15);
  border-color: rgba(42, 157, 143, 0.3);
}

html.dark .live-label {
  color: #94a3b8;
}

@media (max-width: 600px) {
  .home-title-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .home-title-row .page-title {
    font-size: 1.75rem;
  }

  .live-users-badge {
    font-size: 0.75rem;
    padding: 0.35rem 0.7rem;
  }
}

.page-description.fade-out {
  opacity: 0;
  transform: translateY(-5px);
}

.page-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
}

.meta-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.85rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

/* ========================================
   FILTER BAR
======================================== */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  flex-wrap: nowrap;
  width: 100%;
  min-width: 0;
}

.filter-tabs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: nowrap;
  align-items: center;
  flex: 1;
  min-width: 0;
  overflow: visible;
}

.filter-tags-wrapper {
  display: flex;
  gap: 0.5rem;
  flex-wrap: nowrap;
  align-items: center;
  overflow: hidden;
  flex: 1 1 0;
  min-width: 0;
}

.filter-tab {
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  background: var(--bg-card);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
  flex-shrink: 0;
}

/* Ensure "Toate" button is always visible */
.filter-tabs > .filter-tab[data-filter="all"] {
  flex-shrink: 0;
}

.filter-tab:hover {
  background: color-mix(in srgb, var(--secondary) 30%, transparent);
  color: var(--text-primary);
  border-color: transparent;
}

.filter-tab.active {
  background: var(--secondary);
  color: white;
  border-color: var(--secondary);
}

/* Filter More Dropdown */
.filter-more-container {
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
}

.filter-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.filter-more-btn i {
  font-size: 0.7rem;
  transition: transform var(--transition-fast);
}

.filter-more-container.open .filter-more-btn i {
  transform: rotate(180deg);
}

.filter-dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  min-width: 180px;
  max-height: 300px;
  overflow-y: auto;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  z-index: 50;
  display: none;
  flex-direction: column;
  padding: 0.5rem;
}

.filter-more-container.open .filter-dropdown {
  display: flex;
}

.filter-dropdown-item {
  padding: 0.5rem 0.75rem;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.filter-dropdown-item:hover {
  background: color-mix(
    in srgb,
    var(--category-color, var(--secondary)) 30%,
    transparent
  );
  color: var(--text-primary);
}

.filter-dropdown-item.active {
  background: var(--secondary);
  color: white;
}

.view-toggle {
  display: flex;
  margin-left: auto;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.view-btn {
  padding: 0.5rem 0.75rem;
  background: var(--bg-card);
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.view-btn:hover {
  color: var(--text-primary);
}

.view-btn.active {
  background: var(--secondary);
  color: white;
}

/* ========================================
   MEASURES GRID & CARDS
======================================== */
.measures-grid {
  display: grid;
  /* Default: 3 columns on large screens */
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  width: 100%;
}

/* 
 * Responsive breakpoints accounting for sidebar (260px)
 * Content area = viewport - sidebar - padding (64px)
 * 
 * 3 cols need ~900px content → 1224px viewport (with sidebar)
 * 2 cols need ~600px content → 924px viewport (with sidebar)
 */

/* 2 columns when viewport < 1224px (with sidebar visible) */
@media (max-width: 1223px) {
  .measures-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* 1 column when viewport < 924px (with sidebar visible) */
@media (max-width: 923px) {
  .measures-grid {
    grid-template-columns: 1fr;
  }
}

/* On mobile (<768px) sidebar is hidden, so we can use 2 columns again */
@media (max-width: 768px) {
  .measures-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Very narrow mobile: single column */
@media (max-width: 580px) {
  .measures-grid {
    grid-template-columns: 1fr;
  }
}

.measure-card {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-light);
  padding: 1.5rem;
  transition: all var(--transition-normal);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  display: block;
}

.measure-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--category-color, var(--secondary));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-normal);
}

.measure-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: transparent;
}

.measure-card:hover::before {
  transform: scaleX(1);
}

/* Priority Cards - Dark UI for emphasis */
.measure-card.priority {
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  border: none;
  color: white;
}

.measure-card.priority::before {
  height: 4px;
  transform: scaleX(0);
  background: linear-gradient(
    90deg,
    var(--category-color, var(--secondary)),
    rgba(255, 255, 255, 0.3)
  );
}

.measure-card.priority:hover {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  transform: translateY(-6px);
}

.measure-card.priority:hover::before {
  transform: scaleX(1);
}

.measure-card.priority .measure-title {
  color: white;
}

.measure-card.priority .measure-description {
  color: rgba(255, 255, 255, 0.8);
}

.measure-card.priority .card-header i {
  color: var(--category-color, #60a5fa) !important;
}

.measure-card.priority .tag {
  background: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.9);
}

.measure-card.priority .measure-footer {
  border-top-color: rgba(255, 255, 255, 0.15);
}

.measure-card.priority .status-badge {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
}

.measure-card.priority .impact-badge-card {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.9);
}

.measure-card.priority .measure-arrow {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
}

.measure-card.priority:hover .measure-arrow {
  background: white;
  color: #1e293b;
}

.measure-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.measure-category {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  background: rgba(59, 130, 246, 0.1);
  color: var(--category-color, var(--secondary));
}

/* Category-specific colors */
.measure-category.economic {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
}
.measure-category.juridic {
  background: rgba(139, 92, 246, 0.1);
  color: #8b5cf6;
}
.measure-category.legislativ {
  background: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
}
.measure-category.social-sanatate {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}
.measure-category.energie-resurse {
  background: rgba(6, 182, 212, 0.1);
  color: #06b6d4;
}
.measure-category.tehnologie {
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
}

.measure-status {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem 0.6rem;
  border-radius: 20px;
  font-size: 0.65rem;
  font-weight: 600;
}

.measure-status.active {
  background: rgba(16, 185, 129, 0.1);
  color: var(--success);
}

.measure-status.draft {
  background: var(--bg-hover);
  color: var(--text-muted);
}

.measure-title {
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.measure-description {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.measure-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid var(--border-light);
}

.measure-meta {
  display: flex;
  gap: 1rem;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.meta-item i {
  font-size: 0.8rem;
}

.measure-arrow {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all var(--transition-fast);
}

.measure-card:hover .measure-arrow {
  background: var(--category-color, var(--secondary));
  color: white;
  transform: translateX(4px);
}

/* Card Header (icon + title) */
.measure-card .card-header {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.measure-card .card-header i {
  font-size: 1.25rem;
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.measure-card .card-header .measure-title {
  margin: 0;
  position: relative;
  top: -2px;
}

/* Card Tags */
.card-tags {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.tag {
  background: var(--bg-hover);
  color: var(--text-secondary);
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 500;
}

/* Card Badges (status + impact) */
.card-badges {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  height: 28px;
  padding: 0 0.75rem;
  border-radius: 9999px;
  font-size: 0.7rem;
  font-weight: 600;
  background: var(--text-muted);
  color: white;
}

.status-badge.active {
  background: var(--success);
}

/* Impact Badge for Cards */
.impact-badge-card {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  height: 28px;
  padding: 0 0.6rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.7rem;
  transition: all 0.3s ease;
}

.impact-badge-card i {
  font-size: 0.65rem;
}

.impact-badge-card.impact-moderat {
  background: rgba(148, 163, 184, 0.15);
  color: #64748b;
  border: 1px solid rgba(148, 163, 184, 0.3);
}

.impact-badge-card.impact-mediu {
  background: rgba(243, 156, 18, 0.15);
  color: #d68910;
  border: 1px solid rgba(243, 156, 18, 0.3);
}

.impact-badge-card.impact-major {
  background: rgba(46, 204, 113, 0.15);
  color: #1e8449;
  border: 1px solid rgba(46, 204, 113, 0.3);
}

/* Dark mode card styles */
html.dark .tag {
  background: var(--bg-hover);
  color: var(--text-secondary);
}

html.dark .status-badge.active {
  background: rgba(46, 204, 113, 0.35);
}

html.dark .impact-badge-card.impact-moderat {
  background: rgba(148, 163, 184, 0.2);
  color: #94a3b8;
  border-color: rgba(148, 163, 184, 0.4);
}

html.dark .impact-badge-card.impact-mediu {
  background: rgba(243, 156, 18, 0.2);
  color: #f5b041;
  border-color: rgba(243, 156, 18, 0.4);
}

html.dark .impact-badge-card.impact-major {
  background: rgba(46, 204, 113, 0.2);
  color: #58d68d;
  border-color: rgba(46, 204, 113, 0.4);
}

/* Dark mode for filter dropdown */
html.dark .filter-dropdown {
  background: var(--bg-card);
  border-color: var(--border-light);
}

html.dark .filter-dropdown-item:hover {
  background: var(--bg-hover);
}

/* ========================================
   CATEGORY CARDS GRID (Homepage)
======================================== */
.category-cards-grid {
  display: grid;
  /* Default: 3 columns on large screens */
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
  width: 100%;
}

/* 2 columns when viewport < 1224px (with sidebar visible) */
@media (max-width: 1223px) {
  .category-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* 1 column when viewport < 924px (with sidebar visible) */
@media (max-width: 923px) {
  .category-cards-grid {
    grid-template-columns: 1fr;
  }
}

/* On mobile (<768px) sidebar is hidden, so we can use 2 columns again */
@media (max-width: 768px) {
  .category-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Very narrow mobile: single column */
@media (max-width: 580px) {
  .category-cards-grid {
    grid-template-columns: 1fr;
  }
}

.category-card {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-light);
  padding: 1.5rem;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  min-height: 214px;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  cursor: pointer;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.category-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.category-card-header i {
  font-size: 1.5rem;
  width: 28px;
  text-align: center;
}

.category-card-header h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
}

.category-card-description {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0 0 1.25rem 0;
  flex-grow: 1;
}

.category-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid var(--border-light);
}

.category-count {
  background: var(--surface-muted, rgba(0, 0, 0, 0.06));
  color: var(--text-muted);
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid var(--border-light);
}

.category-card-footer i {
  color: var(--text-muted);
  transition:
    transform 0.2s ease,
    color 0.2s ease;
}

.category-card:hover .category-card-footer i {
  transform: translateX(4px);
  color: var(--secondary);
}

/* Category icon colors */
.category-card[data-category="economic"] .category-card-header i {
  color: #10b981;
}
.category-card[data-category="juridic"] .category-card-header i {
  color: #8b5cf6;
}
.category-card[data-category="legislativ"] .category-card-header i {
  color: #f59e0b;
}
.category-card[data-category="social-sanatate"] .category-card-header i {
  color: #ef4444;
}
.category-card[data-category="energie-resurse"] .category-card-header i {
  color: #06b6d4;
}
.category-card[data-category="tehnologie"] .category-card-header i {
  color: #3b82f6;
}

/* ========================================
   PAGINATION
======================================== */
.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
}

.pagination button {
  padding: 0.5rem 1rem;
  border: 1px solid var(--border-light);
  background: var(--bg-card);
  color: var(--text-secondary);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.pagination button:hover {
  border-color: var(--secondary);
  color: var(--secondary);
}

.pagination button.active {
  background: var(--secondary);
  color: white;
  border-color: var(--secondary);
}

.pagination button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.pagination button:disabled:hover {
  border-color: var(--border-light);
  color: var(--text-secondary);
}

/* Priority & Regular Sections */
.priority-section {
  margin-bottom: 2rem;
}

.regular-section {
  margin-top: 3rem;
}

.priority-section .section-subtitle,
.regular-section .section-subtitle {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.priority-section .section-subtitle i,
.regular-section .section-subtitle i {
  font-size: 1rem;
}

/* ========================================
   INFO BOX
======================================== */
.info-box {
  margin-top: 2rem;
  padding: 1.5rem;
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-light);
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.info-box .info-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(59, 130, 246, 0.1);
  color: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.info-box .info-content h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.info-box .info-content p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* ========================================
   EMPTY & LOADING STATES
======================================== */
.empty-state {
  text-align: center;
  padding: 3rem;
  color: var(--text-muted);
  grid-column: 1 / -1;
}

.empty-state i {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.empty-state h3 {
  font-size: 1.25rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.loading-state {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 3rem;
  grid-column: 1 / -1;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border-light);
  border-top-color: var(--secondary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ========================================
   SEARCH RESULTS DROPDOWN
======================================== */
.search-results {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  max-height: 400px;
  overflow-y: auto;
  display: none;
  z-index: 100;
}

.search-results.active {
  display: block;
}

.search-result-item {
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  border-bottom: 1px solid var(--border-light);
  transition: background var(--transition-fast);
  text-decoration: none;
}

.search-result-item:last-child {
  border-bottom: none;
}

.search-result-item:hover {
  background: var(--bg-hover);
}

.search-result-item i {
  font-size: 1rem;
  color: var(--text-muted);
  width: 24px;
  text-align: center;
  flex-shrink: 0;
}

.search-result-item > div {
  flex: 1;
  min-width: 0;
}

.search-result-title {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-result-category {
  font-size: 0.75rem;
  color: var(--secondary);
  font-weight: 500;
  text-transform: capitalize;
}

.search-no-results {
  padding: 1rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ========================================
   INFO SECTION (Homepage)
======================================== */
.info-section {
  margin: 4rem 0 3rem;
}

.info-grid {
  display: grid;
  /* Default: 3 columns on large screens */
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  width: 100%;
}

/* 2 columns when viewport < 1224px (with sidebar visible) */
@media (max-width: 1223px) {
  .info-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* 1 column when viewport < 924px (with sidebar visible) */
@media (max-width: 923px) {
  .info-grid {
    grid-template-columns: 1fr;
  }
}

/* On mobile (<768px) sidebar is hidden, can use 2 columns */
@media (max-width: 768px) {
  .info-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Very narrow mobile: single column */
@media (max-width: 580px) {
  .info-grid {
    grid-template-columns: 1fr;
  }
}

.info-card {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  text-align: center;
  border: 3px dashed var(--text-muted);
}

.info-card i {
  font-size: 2.5rem;
  color: var(--secondary);
  margin-bottom: 1rem;
}

.info-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.info-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0;
}

/* ========================================
   HOME PAGE SECTIONS
======================================== */
.home-section {
  text-align: center;
  margin-bottom: 1.5rem;
}

.section-description {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.6;
  max-width: 600px;
  margin: 0.5rem auto 0;
}

/* Manifesto Container */
.manifesto-container {
  margin: 2rem auto 2.5rem;
  max-width: 850px;
  padding: 0 1rem;
}

.manifesto-accent-line {
  height: 4px;
  background: #3498db;
  background-image: linear-gradient(to right, #3498db, #e74c3c, #3498db);
}

.manifesto-text {
  margin: 0;
  padding: 2rem 3rem;
  font-size: 1.15rem;
  line-height: 1.8;
  color: #2c3e50;
  text-align: center;
  font-weight: 500;
  font-style: italic;
  background-color: #fff;
  border: none;
  border-left: 4px solid #3498db;
  border-right: 4px solid #3498db;
  position: relative;
}

.manifesto-quote-mark {
  position: absolute;
  font-family: Georgia, serif;
  font-size: 4rem;
  font-weight: bold;
  color: #3498db;
  opacity: 0.25;
  line-height: 1;
}

.manifesto-quote-mark:first-of-type {
  top: 0.5rem;
  left: 1rem;
}

.manifesto-quote-mark.closing {
  bottom: 0.5rem;
  right: 1rem;
}

.manifesto-text .text-highlight {
  color: #fff !important;
  font-weight: 600 !important;
  font-style: normal !important;
  background: #3498db !important;
  padding: 2px 10px !important;
  border-radius: 4px !important;
  text-decoration: none !important;
  border-bottom: none !important;
}

/* Dark mode manifesto */
html.dark .manifesto-accent-line {
  background-image: linear-gradient(to right, #5dade2, #e74c3c, #5dade2);
}

html.dark .manifesto-text {
  color: #f1f5f9;
  background-color: #1e293b;
  border-left-color: #5dade2;
  border-right-color: #5dade2;
}

html.dark .manifesto-quote-mark {
  color: #5dade2;
}

html.dark .manifesto-text .text-highlight {
  background: #5dade2 !important;
  color: #fff !important;
}

@media (max-width: 768px) {
  .manifesto-container {
    margin: 1.5rem 0.5rem 2rem;
  }

  .manifesto-text {
    font-size: 1rem;
    padding: 1.5rem 2rem;
  }

  .manifesto-quote-mark {
    font-size: 3rem;
  }

  .manifesto-quote-mark:first-of-type {
    top: 0.25rem;
    left: 0.5rem;
  }

  .manifesto-quote-mark.closing {
    bottom: 0.25rem;
    right: 0.5rem;
  }
}

/* ========================================
   ABOUT SECTION (Homepage)
======================================== */
.about-section {
  margin: 3rem 0;
  padding: 1rem 0;
  text-align: center;
}

.about-section .section-title {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.about-title {
  font-family: "Poppins", sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

.about-content {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: 2rem;
  border: 1px solid var(--border-light);
  max-width: 760px;
  margin: 0 auto;
}

.about-content p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin: 0;
}

.text-highlight {
  color: var(--secondary);
  font-weight: 600;
}

/* ========================================
   PARTICIPATION SECTION (Homepage)
======================================== */
.participation-section {
  margin-top: 3rem;
  padding-top: 2rem;
}

.participation-section .section-title {
  margin: 0;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.section-title {
  font-family: "Poppins", sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
}

.section-link {
  color: var(--secondary);
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.75rem;
  border-radius: 9999px;
  background: color-mix(in srgb, var(--secondary) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--secondary) 18%, transparent);
  transition: all var(--transition-fast);
}

.section-link:hover {
  background: color-mix(in srgb, var(--secondary) 14%, transparent);
  border-color: color-mix(in srgb, var(--secondary) 28%, transparent);
  color: var(--secondary);
}

.section-link i {
  font-size: 0.7rem;
  transition: transform var(--transition-fast);
}

.section-link:hover i {
  transform: translateX(3px);
}

.participation-grid {
  display: grid;
  /* Default: 3 columns on large screens */
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  width: 100%;
}

/* 2 columns when viewport < 1224px (with sidebar visible) */
@media (max-width: 1223px) {
  .participation-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* 1 column when viewport < 924px (with sidebar visible) */
@media (max-width: 923px) {
  .participation-grid {
    grid-template-columns: 1fr;
  }
}

/* On mobile (<768px) sidebar is hidden, can use 2 columns */
@media (max-width: 768px) {
  .participation-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Very narrow mobile: single column */
@media (max-width: 580px) {
  .participation-grid {
    grid-template-columns: 1fr;
  }
}

.participation-card {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-light);
  padding: 1.5rem;
  text-align: center;
  transition: all var(--transition-normal);
  cursor: pointer;
}

.participation-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.participation-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-lg);
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.participation-icon.vote {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
}
.participation-icon.discuss {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: white;
}

.participation-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 0.5rem 0;
}

.participation-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
}
.participation-icon.propose {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: white;
}
.participation-icon.share {
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
  color: white;
}

.participation-title {
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.participation-description {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ========================================
   NEWSLETTER SECTION (Homepage)
======================================== */
.newsletter-section {
  margin: 3rem 0 2rem;
  background: linear-gradient(135deg, #dc4a4a 0%, #c73e3e 100%);
  border-radius: var(--radius-xl);
  padding: 3rem 2rem;
  text-align: center;
}

.newsletter-title {
  font-family: "Poppins", sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: white;
  margin: 0 0 1rem 0;
}

.newsletter-description {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.newsletter-content {
  max-width: 600px;
  margin: 0 auto;
}

.newsletter-title {
  font-family: "Poppins", sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: white;
  margin-bottom: 1rem;
}

.newsletter-description {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.newsletter-form {
  max-width: 500px;
  margin: 0 auto 1rem;
}

.newsletter-input-group {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.newsletter-input {
  flex: 1;
  min-width: 250px;
  max-width: 350px;
  padding: 0.875rem 1.25rem;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.95);
  font-size: 0.95rem;
  color: var(--text-primary);
  transition: all var(--transition-fast);
}

.newsletter-input:focus {
  outline: none;
  border-color: white;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.2);
}

.newsletter-input::placeholder {
  color: #94a3b8;
}

.newsletter-btn {
  padding: 0.875rem 1.75rem;
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 50px;
  color: white;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.newsletter-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: white;
  transform: translateY(-2px);
}

.newsletter-note {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
  margin: 0;
}

/* ========================================
   NEW NEWSLETTER SECTION (Teal Gradient)
======================================== */
.newsletter-section-new {
  margin: 2rem 2rem 0;
  padding: 0;
}

.newsletter-container {
  background: linear-gradient(135deg, #e8f5f3 0%, #d4ede8 50%, #c5e8e2 100%);
  border-radius: 16px;
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.newsletter-title-new {
  font-family: "Poppins", sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 0.25rem 0;
}

.newsletter-content-new {
  flex: 1;
  text-align: left;
}

.newsletter-description-new {
  color: #64748b;
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0;
}

.newsletter-form-new {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-shrink: 0;
}

.newsletter-input-wrapper {
  position: relative;
  min-width: 240px;
}

.newsletter-input-wrapper i {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 0.875rem;
}

.newsletter-input-new {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.5rem;
  border: none;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.95);
  font-size: 0.875rem;
  color: #1e293b;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: all 0.2s ease;
}

.newsletter-input-new:focus {
  outline: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.newsletter-input-new::placeholder {
  color: #94a3b8;
}

.newsletter-btn-new {
  padding: 0.75rem 1.5rem;
  background: #2a9d8f;
  border: none;
  border-radius: 50px;
  color: white;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.newsletter-btn-new:hover {
  background: #238b7e;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(42, 157, 143, 0.3);
}

/* Dark mode for new newsletter */
html.dark .newsletter-container {
  background: linear-gradient(135deg, #1a3a36 0%, #1e4440 50%, #224a45 100%);
}

html.dark .newsletter-title-new {
  color: #f1f5f9;
}

html.dark .newsletter-description-new {
  color: #94a3b8;
}

html.dark .newsletter-input-new {
  background: rgba(255, 255, 255, 0.1);
  color: #f1f5f9;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

html.dark .newsletter-input-new::placeholder {
  color: #64748b;
}

html.dark .newsletter-input-wrapper i {
  color: #64748b;
}

/* ========================================
   NEW SITE FOOTER
======================================== */
.site-footer-new {
  background: #f8fafc;
  margin-top: 0;
  padding: 0;
  border-top: none;
}

.site-footer-simple {
  background: #f8fafc;
  margin-top: auto;
  padding: 0;
  border-top: 1px solid var(--border-light);
}

html.dark .site-footer-simple {
  background: #0f172a;
  border-top-color: #334155;
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 3rem 2rem 2rem;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
}

.footer-brand {
  max-width: 380px;
}

.footer-logo-new {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.footer-logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(
    to right,
    #5483e0 0%,
    #5483e0 33.33%,
    #fcd116 33.33%,
    #fcd116 66.66%,
    #ef5f6f 66.66%,
    #ef5f6f 100%
  );
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.25rem;
  font-weight: 700;
  box-shadow: var(--shadow-md);
  text-shadow:
    0 0 1px rgba(0, 0, 0, 0.4),
    0 1px 2px rgba(0, 0, 0, 0.3);
}

.footer-logo-text {
  font-family: "Poppins", sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #1e293b;
}

.footer-description {
  color: #64748b;
  font-size: 0.9rem;
  line-height: 1.7;
  margin: 0 0 1.25rem 0;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
}

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid #e2e8f0;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  text-decoration: none;
  transition: all 0.2s ease;
}

.social-icon:hover {
  border-color: #3b82f6;
  color: #3b82f6;
  transform: translateY(-2px);
}

.footer-links-column {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links-column h4 {
  font-size: 0.75rem;
  font-weight: 600;
  color: #94a3b8;
  letter-spacing: 0.5px;
  margin: 0 0 0.5rem 0;
  text-transform: uppercase;
}

.footer-links-column a {
  color: #475569;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.footer-links-column a:hover {
  color: #3b82f6;
}

.footer-bottom {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #e2e8f0;
}

.footer-bottom p {
  margin: 0;
  color: #94a3b8;
  font-size: 0.85rem;
}

.server-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: #94a3b8;
  letter-spacing: 0.3px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

.status-text {
  color: #10b981;
  font-weight: 600;
}

/* Dark mode for new footer */
html.dark .site-footer-new {
  background: #0f172a;
}

html.dark .footer-logo-text {
  color: #f1f5f9;
}

html.dark .footer-description {
  color: #94a3b8;
}

html.dark .social-icon {
  background: #1e293b;
  border-color: #334155;
  color: #94a3b8;
}

html.dark .social-icon:hover {
  border-color: #3b82f6;
  color: #3b82f6;
}

html.dark .footer-links-column h4 {
  color: #64748b;
}

html.dark .footer-links-column a {
  color: #94a3b8;
}

html.dark .footer-links-column a:hover {
  color: #3b82f6;
}

html.dark .footer-bottom {
  border-top-color: #334155;
}

html.dark .footer-bottom p {
  color: #64748b;
}

html.dark .server-status {
  color: #64748b;
}

/* Responsive for new newsletter & footer */
@media (max-width: 900px) {
  .footer-container {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .footer-brand {
    grid-column: 1 / -1;
    max-width: 100%;
  }
}

@media (max-width: 900px) {
  .newsletter-container {
    flex-direction: column;
    text-align: center;
    padding: 1.25rem 1.5rem;
    gap: 0.75rem;
  }

  .newsletter-content-new {
    text-align: center;
  }

  .newsletter-title-new {
    font-size: 1.1rem;
    margin-bottom: 0.15rem;
  }

  .newsletter-description-new {
    font-size: 0.8rem;
  }

  .newsletter-form-new {
    width: 100%;
    max-width: 360px;
  }
}

@media (max-width: 480px) {
  .newsletter-section-new {
    margin: 1.5rem 0.75rem 0;
  }

  .newsletter-container {
    border-radius: 12px;
    padding: 1rem;
  }

  .newsletter-form-new {
    flex-direction: column;
    max-width: 100%;
  }

  .newsletter-input-wrapper {
    min-width: 100%;
    width: 100%;
  }

  .newsletter-btn-new {
    width: 100%;
  }
}

@media (max-width: 600px) {
  .footer-container {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2rem 1.5rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
    padding: 1.25rem 1.5rem;
  }
}

/* ========================================
   QUICK PULSE VOTING SECTION
======================================== */
.quick-pulse-section {
  margin: 3rem 0;
}

.quick-pulse-section .section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.quick-pulse-section .section-header > div {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin: 0;
}

.pulse-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.pulse-cards-grid.voteaza-grid {
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.pulse-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: all var(--transition-normal);
}

.pulse-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.pulse-ended-badge {
  position: absolute;
  top: 1.5rem;
  right: 1rem;
  background: var(--border-light);
  color: var(--text-muted);
  font-size: 0.65rem;
  font-weight: 500;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  opacity: 0.7;
}

.pulse-card.ended {
  opacity: 0.7;
}

.pulse-card.ended .pulse-btn {
  pointer-events: none;
  opacity: 0.5;
}

.ended-polls {
  opacity: 0.85;
}

.pulse-category {
  display: inline-flex;
  align-self: flex-start;
  padding: 0.35rem 0.75rem;
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.pulse-category.healthcare {
  background: rgba(239, 68, 68, 0.1);
  color: #dc2626;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.pulse-category.education {
  background: rgba(59, 130, 246, 0.1);
  color: #2563eb;
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.pulse-category.tech {
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.pulse-category.economic {
  background: rgba(245, 158, 11, 0.1);
  color: #d97706;
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.pulse-category.juridic {
  background: rgba(139, 92, 246, 0.1);
  color: #7c3aed;
  border: 1px solid rgba(139, 92, 246, 0.2);
}

.pulse-category.energy {
  background: rgba(6, 182, 212, 0.1);
  color: #0891b2;
  border: 1px solid rgba(6, 182, 212, 0.2);
}

.pulse-category.transport {
  background: rgba(236, 72, 153, 0.1);
  color: #db2777;
  border: 1px solid rgba(236, 72, 153, 0.2);
}

.pulse-category.agriculture {
  background: rgba(132, 204, 22, 0.1);
  color: #65a30d;
  border: 1px solid rgba(132, 204, 22, 0.2);
}

.pulse-category.social {
  background: rgba(249, 115, 22, 0.1);
  color: #ea580c;
  border: 1px solid rgba(249, 115, 22, 0.2);
}

.pulse-question {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.5;
  margin: 0;
  flex: 1;
}

.pulse-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: auto;
}

.pulse-btn {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: none;
}

.pulse-btn.pulse-yes {
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.pulse-btn.pulse-yes:hover {
  background: #10b981;
  color: white;
  border-color: #10b981;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.pulse-btn.pulse-no {
  background: rgba(239, 68, 68, 0.1);
  color: #dc2626;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.pulse-btn.pulse-no:hover {
  background: #ef4444;
  color: white;
  border-color: #ef4444;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.pulse-btn.voted {
  opacity: 0.6;
  cursor: default;
  transform: none !important;
  box-shadow: none !important;
}

.pulse-btn.voted.selected {
  opacity: 1;
}

.pulse-btn.pulse-yes.voted.selected {
  background: #10b981;
  color: white;
  border-color: #10b981;
}

.pulse-btn.pulse-no.voted.selected {
  background: #ef4444;
  color: white;
  border-color: #ef4444;
}

/* Pulse Results Bar */
.pulse-results {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-light);
}

.pulse-results-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.pulse-support {
  font-size: 0.75rem;
  font-weight: 700;
  color: #16a34a;
  letter-spacing: 0.3px;
}

.pulse-oppose {
  font-size: 0.75rem;
  font-weight: 700;
  color: #ef4444;
  letter-spacing: 0.3px;
}

.pulse-bar {
  display: flex;
  height: 10px;
  border-radius: 5px;
  overflow: hidden;
  background: var(--bg-hover);
}

.pulse-bar-support {
  background: linear-gradient(90deg, #22c55e, #16a34a);
  height: 100%;
  transition: width 0.5s ease;
}

.pulse-bar-oppose {
  background: linear-gradient(90deg, #ef4444, #dc2626);
  height: 100%;
  transition: width 0.5s ease;
}

.pulse-results-footer {
  display: flex;
  justify-content: space-between;
  margin-top: 0.5rem;
}

.pulse-votes-support,
.pulse-votes-oppose {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Dark mode pulse results */
html.dark .pulse-results {
  border-top-color: var(--border-light);
}

html.dark .pulse-bar {
  background: rgba(255, 255, 255, 0.1);
}

/* Dark mode pulse cards */
html.dark .pulse-card {
  background: var(--bg-card);
  border-color: var(--border-light);
}

html.dark .pulse-category.healthcare {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.3);
}

html.dark .pulse-category.education {
  background: rgba(59, 130, 246, 0.15);
  border-color: rgba(59, 130, 246, 0.3);
}

html.dark .pulse-category.tech {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.3);
}

html.dark .pulse-category.economic {
  background: rgba(245, 158, 11, 0.15);
  border-color: rgba(245, 158, 11, 0.3);
}

html.dark .pulse-category.juridic {
  background: rgba(139, 92, 246, 0.15);
  border-color: rgba(139, 92, 246, 0.3);
}

html.dark .pulse-category.energy {
  background: rgba(6, 182, 212, 0.15);
  border-color: rgba(6, 182, 212, 0.3);
}

html.dark .pulse-category.transport {
  background: rgba(236, 72, 153, 0.15);
  border-color: rgba(236, 72, 153, 0.3);
}

html.dark .pulse-category.agriculture {
  background: rgba(132, 204, 22, 0.15);
  border-color: rgba(132, 204, 22, 0.3);
}

html.dark .pulse-category.social {
  background: rgba(249, 115, 22, 0.15);
  border-color: rgba(249, 115, 22, 0.3);
}

/* Responsive pulse grid */
@media (max-width: 1100px) {
  .pulse-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 700px) {
  .pulse-cards-grid {
    grid-template-columns: 1fr;
  }

  .quick-pulse-section .section-header {
    flex-direction: column;
    gap: 1rem;
  }
}

/* ========================================
   NEWS SECTION
======================================== */
.news-section {
  margin: 3rem 0;
}

.news-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.5rem;
}

.news-card.featured {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border-light);
  transition: all var(--transition-normal);
}

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

.news-image {
  position: relative;
  height: 240px;
  overflow: hidden;
}

.news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.news-card.featured:hover .news-image img {
  transform: scale(1.05);
}

.news-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.4rem 0.85rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.news-badge.live {
  background: #ef4444;
  color: white;
}

.news-badge.live i {
  font-size: 0.5rem;
  animation: pulse-live 1.5s infinite;
}

.news-content {
  padding: 1.5rem;
}

.news-category {
  display: inline-block;
  padding: 0.3rem 0.6rem;
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 0.75rem;
}

.news-category.small {
  font-size: 0.6rem;
  padding: 0.2rem 0.5rem;
  margin-bottom: 0.5rem;
}

.news-content h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 0.75rem 0;
  line-height: 1.4;
}

.news-content p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0 0 1rem 0;
}

.news-meta {
  display: flex;
  gap: 1.5rem;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.news-meta span {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.news-meta i {
  font-size: 0.75rem;
}

/* News sidebar list */
.news-sidebar-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.news-item {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1rem 1.25rem;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.news-item:hover {
  border-color: var(--secondary);
  box-shadow: var(--shadow-sm);
  transform: translateX(4px);
}

.news-item-content h4 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 0.5rem 0;
  line-height: 1.4;
}

.news-time {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Dark mode news */
html.dark .news-card.featured {
  background: var(--bg-card);
  border-color: var(--border-light);
}

html.dark .news-item {
  background: var(--bg-card);
  border-color: var(--border-light);
}

html.dark .news-category {
  background: rgba(59, 130, 246, 0.15);
}

/* Responsive news grid */
@media (max-width: 900px) {
  .news-grid {
    grid-template-columns: 1fr;
  }

  .news-sidebar-list {
    flex-direction: row;
    overflow-x: auto;
    gap: 1rem;
    padding-bottom: 0.5rem;
  }

  .news-item {
    flex: 0 0 280px;
  }
}

@media (max-width: 600px) {
  .news-image {
    height: 180px;
  }

  .news-content h3 {
    font-size: 1.1rem;
  }

  .news-sidebar-list {
    flex-direction: column;
  }

  .news-item {
    flex: 1;
  }
}

/* ========================================
   FOCUS SECTION (Debates + Leaderboard)
======================================== */
.focus-section {
  margin: 3rem 0;
}

.focus-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
}

.debates-column .section-header,
.leaderboard-column .section-title {
  margin-bottom: 1.25rem;
}

.debates-column .section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.carousel-nav {
  display: flex;
  gap: 0.5rem;
}

.carousel-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border-light);
  background: var(--bg-card);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.carousel-btn:hover {
  border-color: var(--secondary);
  color: var(--secondary);
}

.debates-carousel {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.debate-card {
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-height: 320px;
}

.debate-card.dark {
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  color: white;
}

.debate-card.light {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  color: var(--text-primary);
}

.debate-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.debate-category {
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.debate-category.economie {
  background: #ef4444;
  color: white;
}

.debate-category.mediu {
  background: #22c55e;
  color: white;
}

.debate-consensus {
  font-size: 0.75rem;
  opacity: 0.7;
}

.debate-card.light .debate-consensus {
  color: var(--text-muted);
}

.debate-title {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 0;
}

.debate-description {
  font-size: 0.85rem;
  line-height: 1.5;
  opacity: 0.8;
  margin: 0;
}

.debate-card.light .debate-description {
  color: var(--text-secondary);
}

.debate-progress {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  margin-top: 0.5rem;
}

.progress-label {
  opacity: 0.7;
}

.debate-card.light .progress-label {
  color: var(--text-muted);
}

.progress-value {
  font-weight: 600;
  color: #3b82f6;
}

.debate-card.dark .progress-value {
  color: #60a5fa;
}

.debate-card.light .progress-value {
  color: #22c55e;
}

.progress-bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
  overflow: hidden;
}

.debate-card.light .progress-bar {
  background: var(--border-light);
}

.progress-fill {
  height: 100%;
  background: #3b82f6;
  border-radius: 3px;
  transition: width 0.5s ease;
}

.progress-fill.green {
  background: #22c55e;
}

.debate-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 0.75rem;
}

.vote-count {
  font-size: 0.85rem;
  font-weight: 600;
  opacity: 0.8;
}

.vote-btn {
  padding: 0.5rem 1.25rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  background: white;
  color: #1e293b;
}

.vote-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.vote-btn.outline {
  background: transparent;
  border: 1.5px solid #2a9d8f;
  color: #2a9d8f;
}

.vote-btn.outline:hover {
  background: #2a9d8f;
  color: white;
}

/* Leaderboard */
.leaderboard-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 1.25rem;
}

.leaderboard-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.leader-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: var(--bg-hover);
  border-radius: var(--radius-lg);
}

.leader-rank {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}

.leader-rank.rank-1 {
  background: linear-gradient(135deg, #f59e0b, #d97706);
}

.leader-rank.rank-2 {
  background: linear-gradient(135deg, #94a3b8, #64748b);
}

.leader-rank.rank-3 {
  background: linear-gradient(135deg, #f97316, #ea580c);
}

.leader-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.leader-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.leader-role {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.3px;
}

.leader-points {
  font-weight: 700;
  font-size: 0.95rem;
  color: #2a9d8f;
  white-space: nowrap;
}

.leaderboard-link {
  display: block;
  text-align: center;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-light);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.leaderboard-link:hover {
  color: var(--secondary);
}

/* ========================================
   IMPACT SECTION (Stats)
======================================== */
.impact-section {
  margin: 3rem 0;
  text-align: center;
}

.impact-header {
  margin-bottom: 2rem;
}

.impact-title {
  font-family: "Poppins", sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 0.75rem 0;
}

.impact-description {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto;
}

.impact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.impact-card {
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  border-radius: var(--radius-xl);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.impact-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.impact-card i {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.impact-card:nth-child(1) i {
  color: #3b82f6;
}
.impact-card:nth-child(2) i {
  color: #8b5cf6;
}
.impact-card:nth-child(3) i {
  color: #2a9d8f;
}
.impact-card:nth-child(4) i {
  color: #ef4444;
}

.impact-number {
  font-family: "Poppins", sans-serif;
  font-size: 3rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
}

.impact-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

/* Dark mode for focus & impact sections */
html.dark .debate-card.light {
  background: var(--bg-card);
  border-color: var(--border-light);
}

html.dark .leaderboard-card {
  background: var(--bg-card);
  border-color: var(--border-light);
}

html.dark .leader-item {
  background: var(--bg-hover);
}

html.dark .impact-card {
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
}

/* Responsive for focus & impact */
@media (max-width: 1100px) {
  .focus-grid {
    grid-template-columns: 1fr;
  }

  .leaderboard-column {
    order: -1;
  }

  .leaderboard-list {
    flex-direction: row;
    overflow-x: auto;
    gap: 1rem;
    padding-bottom: 0.5rem;
  }

  .leader-item {
    flex: 0 0 200px;
    flex-direction: column;
    text-align: center;
  }

  .leader-info {
    align-items: center;
  }
}

@media (max-width: 900px) {
  .impact-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 700px) {
  .debates-carousel {
    grid-template-columns: 1fr;
  }

  .debate-card {
    min-height: auto;
  }
}

@media (max-width: 600px) {
  .impact-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .impact-card {
    padding: 1.5rem 1rem;
  }

  .impact-number {
    font-size: 2.25rem;
  }

  .impact-title {
    font-size: 1.5rem;
  }
}

/* ========================================
   MEASURE DETAIL PAGE
======================================== */

/* New Page Layout - Sidebar at top, fixed while scrolling */
.measure-page-layout {
  display: flex;
  gap: 2rem;
  position: relative;
}

.measure-page-main {
  flex: 1;
  min-width: 0;
  max-width: calc(100% - 280px - 2rem);
}

.measure-page-sidebar {
  width: 280px;
  flex-shrink: 0;
  align-self: flex-start;
  position: fixed;
  top: calc(var(--header-height) + 2rem);
  right: max(2rem, calc((100vw - var(--sidebar-width) - 1400px) / 2));
  max-height: calc(100vh - var(--header-height) - 4rem);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  scrollbar-width: thin;
  scrollbar-color: var(--border-light) transparent;
}

.measure-page-sidebar::-webkit-scrollbar {
  width: 4px;
}

.measure-page-sidebar::-webkit-scrollbar-track {
  background: transparent;
}

.measure-page-sidebar::-webkit-scrollbar-thumb {
  background-color: var(--border-light);
  border-radius: 4px;
}

.measure-page-sidebar::-webkit-scrollbar-thumb:hover {
  background-color: var(--border-medium);
}

/* New Measure Detail Header - No Card */
.measure-detail-header {
  margin-bottom: 2rem;
}

.measure-detail-title {
  font-family: "Poppins", sans-serif;
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 1rem 0;
  line-height: 1.35;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.measure-detail-title .back-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  text-decoration: none;
  transition: all var(--transition-fast);
  flex-shrink: 0;
  cursor: pointer;
  font-family: inherit;
}

.measure-detail-title .back-btn:hover {
  background: var(--secondary);
  border-color: var(--secondary);
  color: white;
  transform: translateX(-2px);
}

.measure-detail-title .back-btn i {
  font-size: 0.9rem;
}

.measure-detail-description {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin: 0 0 1.25rem 0;
  line-height: 1.7;
  max-width: 800px;
}

.measure-detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.measure-detail-tags .category-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  border: 1px solid var(--border-light);
  white-space: nowrap;
  cursor: default;
  /* No hover effects */
}

.measure-detail-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.measure-detail-badges .status-badge.status-proposed {
  background: var(--success);
  color: white;
}

.measure-detail-badges .status-badge.impact-moderat {
  background: rgba(148, 163, 184, 0.15);
  color: #64748b;
  border: 1px solid rgba(148, 163, 184, 0.3);
}

.measure-detail-badges .status-badge.impact-mediu {
  background: rgba(243, 156, 18, 0.15);
  color: #d68910;
  border: 1px solid rgba(243, 156, 18, 0.3);
}

.measure-detail-badges .status-badge.impact-major {
  background: rgba(46, 204, 113, 0.15);
  color: #1e8449;
  border: 1px solid rgba(46, 204, 113, 0.3);
}

html.dark .measure-detail-badges .status-badge.status-proposed {
  background: rgba(46, 204, 113, 0.35);
}

html.dark .measure-detail-badges .status-badge.impact-moderat {
  background: rgba(148, 163, 184, 0.2);
  color: #94a3b8;
  border-color: rgba(148, 163, 184, 0.4);
}

html.dark .measure-detail-badges .status-badge.impact-mediu {
  background: rgba(243, 156, 18, 0.2);
  color: #f5b041;
  border-color: rgba(243, 156, 18, 0.4);
}

html.dark .measure-detail-badges .status-badge.impact-major {
  background: rgba(46, 204, 113, 0.2);
  color: #58d68d;
  border-color: rgba(46, 204, 113, 0.4);
}

/* Measure Progress Strip */
.measure-progress-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding: 0.875rem 1.25rem;
  background: var(--bg-hover);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  margin-bottom: 1.5rem;
}

.measure-progress-strip .progress-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
}

.measure-progress-strip .progress-label {
  color: var(--text-muted);
  font-weight: 500;
}

.measure-progress-strip .progress-value {
  color: var(--text-primary);
  font-weight: 600;
}

@media (max-width: 768px) {
  .measure-progress-strip {
    flex-direction: column;
    gap: 0.75rem;
  }
}

/* Legacy Measure Header - kept for compatibility */
.measure-header {
  margin-bottom: 2rem;
}

.measure-title-section {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: 1.75rem 2rem;
  border-left: 4px solid var(--secondary);
  box-shadow: var(--shadow-sm);
  border-top: 1px solid var(--border-light);
  border-right: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.measure-title-section h1 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 0.75rem 0;
  line-height: 1.35;
}

.measure-title-section .subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin: 0 0 1.25rem 0;
  line-height: 1.6;
}

.measure-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid var(--border-light);
}

.measure-meta .status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-lg);
  font-size: 0.85rem;
  font-weight: 600;
}

.measure-meta .status-badge.status-proposed {
  background: rgba(59, 130, 246, 0.15);
  color: #3b82f6;
}

.measure-meta .status-badge.impact-moderat {
  background: rgba(148, 163, 184, 0.15);
  color: #64748b;
}

.measure-meta .status-badge.impact-mediu {
  background: rgba(243, 156, 18, 0.15);
  color: #f39c12;
}

.measure-meta .status-badge.impact-major {
  background: rgba(231, 76, 60, 0.15);
  color: #e74c3c;
}

.measure-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.measure-tags .category-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  background: var(--bg-hover);
  border-radius: var(--radius-md);
  font-size: 0.8rem;
  color: var(--text-secondary);
  border: 1px solid var(--border-light);
}

/* Article Container - Content LEFT, Sidebar RIGHT */
.measure-article-container {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 2rem;
  margin-bottom: 2rem;
}

/* Article Content (Left/Main) */
.measure-article-content {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
}

.measure-article-content .article-section {
  margin-bottom: 2.5rem;
}

.measure-article-content .article-section:last-child {
  margin-bottom: 1rem;
}

.measure-article-content h2 {
  color: var(--text-primary);
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0 0 1.25rem 0;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-light);
}

.measure-article-content p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.measure-article-content p:last-child {
  margin-bottom: 0;
}

/* Highlight Box */
.highlight-box {
  background: linear-gradient(135deg, #fff7ed, #fef3c7);
  border-left: 4px solid #f59e0b;
  padding: 1.25rem 1.5rem;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 1rem 0;
}

html.dark .highlight-box {
  background: linear-gradient(
    135deg,
    rgba(245, 158, 11, 0.15),
    rgba(245, 158, 11, 0.08)
  );
}

.highlight-box p {
  color: var(--text-primary);
  font-size: 1.05rem;
}

/* Benefits Grid */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 1rem 0;
  max-width: 100%;
}

.benefits-grid .benefit-item:nth-child(n + 9) {
  display: none;
}

@media (max-width: 600px) {
  .benefits-grid {
    grid-template-columns: 1fr;
  }
}

.benefit-item {
  background: rgba(42, 157, 143, 0.04);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1rem;
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid var(--border-light);
  position: relative;
  overflow: hidden;
  cursor: default;
}

.benefit-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  background: rgba(42, 157, 143, 0.06);
}

.benefit-item i {
  font-size: 1.25rem;
  color: var(--secondary);
  margin-bottom: 0.875rem;
  display: block;
}

.benefit-item h4 {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-primary);
  font-weight: 600;
  line-height: 1.3;
}

.benefit-item .hover-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, var(--secondary), #2563eb);
  color: white;
  padding: 0.5rem;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  font-size: 0.8rem;
  line-height: 1.4;
}

.benefit-item:hover .hover-info {
  transform: translateY(0);
}

html.dark .benefit-item {
  background: rgba(42, 157, 143, 0.08);
  border-color: var(--border-medium);
}

html.dark .benefit-item:hover {
  background: rgba(42, 157, 143, 0.12);
}

/* Arguments List */
.arguments-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 1rem 0;
}

.argument {
  background: rgba(16, 185, 129, 0.04);
  border-left: 4px solid #10b981;
  padding: 1rem 1.25rem;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.argument h4 {
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 0.5rem 0;
}

.argument p {
  color: var(--text-primary);
  margin: 0;
  font-size: 0.95rem;
}

html.dark .argument {
  background: rgba(16, 185, 129, 0.06);
}

/* Case Study */
.case-study {
  background: var(--bg-hover);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  border: 1px solid var(--border-light);
}

.case-study .person-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.case-study .person-info i {
  display: none;
}

.case-study .person-info h4 {
  margin: 0;
  color: var(--text-primary);
  font-weight: 600;
}

/* Examples */
.examples {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
  margin: 1rem 0;
}

.example-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  border: 1px solid var(--border-light);
}

.example-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.example-header i {
  color: var(--secondary);
}

.example-header h4 {
  margin: 0;
  color: var(--text-primary);
  font-weight: 600;
}

/* Quote */
.quote {
  position: relative;
  background: linear-gradient(
    135deg,
    rgba(42, 157, 143, 0.03) 0%,
    rgba(42, 157, 143, 0.08) 100%
  );
  border-radius: var(--radius-xl);
  padding: 2.5rem 3rem;
  text-align: center;
  font-style: italic;
  border: 2px solid var(--border-light);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  margin: 2rem 0;
  overflow: hidden;
}

.quote::before {
  content: "\201C";
  position: absolute;
  top: -10px;
  left: 20px;
  font-size: 120px;
  line-height: 1;
  color: var(--secondary);
  opacity: 0.15;
  font-family: Georgia, serif;
  font-weight: bold;
}

.quote p {
  font-size: 1.25rem;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
  line-height: 1.7;
  font-weight: 500;
  position: relative;
  z-index: 1;
}

.quote cite {
  display: block;
  color: var(--text-secondary);
  font-size: 1rem;
  font-weight: 600;
  font-style: normal;
  margin-top: 1rem;
  position: relative;
  z-index: 1;
}

.quote cite::before {
  content: "—";
  margin-right: 0.5rem;
  color: var(--secondary);
}

/* Proposal Quote */
.proposal-quote {
  background: #f0f9ff;
  border-left: 4px solid var(--secondary);
  padding: 1.25rem 1.5rem;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.proposal-quote h4 {
  color: var(--text-primary);
  font-weight: 600;
  margin: 0 0 1rem 0;
}

html.dark .quote {
  background: linear-gradient(
    135deg,
    rgba(42, 157, 143, 0.08) 0%,
    rgba(42, 157, 143, 0.15) 100%
  );
  border-color: rgba(42, 157, 143, 0.2);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

html.dark .quote::before {
  color: var(--secondary);
  opacity: 0.2;
}

html.dark .quote p {
  color: var(--text-primary);
}

html.dark .quote cite {
  color: var(--text-secondary);
}

html.dark .proposal-quote {
  background: rgba(59, 130, 246, 0.1);
}

/* Article Sidebar (Right) - WordPress-style sticky */
.measure-article-sidebar {
  position: sticky;
  top: calc(var(--header-height) + 2rem);
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-height: calc(100vh - var(--header-height) - 2rem);
  overflow-y: auto;
  /* Hide scrollbar but keep functionality */
  scrollbar-width: thin;
  scrollbar-color: var(--border-light) transparent;
}

.measure-article-sidebar::-webkit-scrollbar {
  width: 4px;
}

.measure-article-sidebar::-webkit-scrollbar-track {
  background: transparent;
}

.measure-article-sidebar::-webkit-scrollbar-thumb {
  background-color: var(--border-light);
  border-radius: 4px;
}

.measure-article-sidebar::-webkit-scrollbar-thumb:hover {
  background-color: var(--border-medium);
}

.sidebar-box {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
}

.sidebar-box h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 1rem 0;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sidebar-box h3 i {
  color: var(--secondary);
  font-size: 0.9rem;
}

/* TOC */
.toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.toc-list li {
  margin-bottom: 0.5rem;
}

.toc-list a {
  display: block;
  padding: 0.4rem 0.75rem;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  border-left: 2px solid transparent;
}

.toc-list a:hover {
  color: var(--secondary);
  background: var(--bg-hover);
  border-left-color: var(--secondary);
}

.toc-list a.active {
  color: var(--secondary);
  background: rgba(59, 130, 246, 0.1);
  border-left-color: var(--secondary);
  font-weight: 500;
}

/* Share Buttons */
.share-buttons {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.share-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all var(--transition-fast);
  border: 1px solid var(--border-light);
  cursor: pointer;
}

.share-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.share-btn.facebook:hover {
  background: #1877f2;
  color: white;
  border-color: #1877f2;
}

.share-btn.twitter:hover {
  background: #000000;
  color: white;
  border-color: #000000;
}

.share-btn.linkedin:hover {
  background: #0077b5;
  color: white;
  border-color: #0077b5;
}

.share-btn.whatsapp:hover {
  background: #25d366;
  color: white;
  border-color: #25d366;
}

.share-btn.copy:hover {
  background: var(--secondary);
  color: white;
  border-color: var(--secondary);
}

/* Action Box */
.action-box .support-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: linear-gradient(135deg, var(--secondary), #2563eb);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  margin-bottom: 0.75rem;
}

.action-box .support-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.action-box .support-btn.supported {
  background: linear-gradient(135deg, #10b981, #059669);
}

.action-box .support-count {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Related Measures */
.related-measures {
  margin-top: 2rem;
  padding: 0;
  background: transparent;
}

.related-measures h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 1.25rem 0;
}

.related-cards {
  display: grid;
  /* 2 columns to use full space since we show only 2 cards */
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

/* Responsive breakpoints */
@media (max-width: 768px) {
  .related-cards {
    grid-template-columns: 1fr;
  }
}

/* Responsive - Measure Detail */
@media (max-width: 900px) {
  .measure-page-layout {
    flex-direction: column;
  }

  .measure-page-main {
    max-width: 100%;
  }

  .measure-page-sidebar {
    position: static;
    width: 100%;
    order: 2;
    flex-direction: row;
    flex-wrap: wrap;
    max-height: none;
    overflow-y: visible;
    margin-top: 2rem;
    right: auto;
  }

  /* Hide TOC on mobile */
  .measure-page-sidebar .toc-box {
    display: none;
  }

  .measure-article-container {
    grid-template-columns: 1fr;
  }

  .measure-article-sidebar {
    position: static;
    order: -1;
    flex-direction: row;
    flex-wrap: wrap;
    max-height: none;
    overflow-y: visible;
  }

  .sidebar-box {
    flex: 1;
    min-width: 200px;
  }

  .measure-title-section h1 {
    font-size: 1.6rem;
  }

  .measure-detail-title {
    font-size: 1.5rem;
  }

  .measure-detail-description {
    font-size: 1rem;
  }

  .benefits-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .measure-page-sidebar {
    flex-direction: column;
  }

  .measure-article-sidebar {
    flex-direction: column;
  }

  .sidebar-box {
    min-width: 100%;
  }

  .measure-title-section h1 {
    font-size: 1.4rem;
  }

  .measure-detail-title {
    font-size: 1.3rem;
    gap: 0.5rem;
  }

  .measure-detail-title .back-btn {
    width: 36px;
    height: 36px;
  }

  .measure-detail-description {
    font-size: 0.95rem;
  }

  .measure-article-content {
    padding: 1.25rem;
  }
}

/* ========================================
   TOAST NOTIFICATIONS
======================================== */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--bg-card);
  color: var(--text-primary);
  padding: 1rem 1.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  z-index: 9999;
  opacity: 0;
  transition: all 0.3s ease;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ========================================
   RESPONSIVE ADDITIONS
======================================== */
@media (max-width: 768px) {
  .filter-bar {
    flex-direction: row;
    align-items: center;
  }

  .filter-tabs {
    min-width: 0;
    flex: 1;
  }

  .view-toggle {
    margin-left: 0;
    align-self: flex-end;
  }

  .about-title {
    font-size: 1.4rem;
  }

  .about-content {
    padding: 1.5rem;
  }

  .about-content p {
    font-size: 0.95rem;
  }

  .newsletter-section {
    padding: 2rem 1.5rem;
  }

  .newsletter-title {
    font-size: 1.4rem;
  }

  .newsletter-form {
    flex-direction: column;
    align-items: center;
  }

  .newsletter-input {
    width: 100%;
    max-width: 100%;
  }

  .newsletter-btn {
    width: 100%;
    justify-content: center;
  }

  .info-box {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .page-title {
    font-size: 1.4rem;
  }
}

/* ========================================
   Propose Reform Modal
   ======================================== */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 10000;
}

.modal.open {
  display: flex;
}

.modal-content {
  background: var(--bg-card, white);
  padding: 2rem;
  border-radius: var(--radius-xl, 12px);
  max-width: 500px;
  width: 90%;
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.modal-content h2 {
  margin: 0 0 1.5rem 0;
  font-size: 1.5rem;
  color: var(--text-primary);
}

.close-modal {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-muted);
  background: none;
  border: none;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.close-modal:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.modal-content form {
  display: grid;
  gap: 1.25rem;
}

.modal-content .form-group {
  position: relative;
}

.modal-content .form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.modal-content .form-group input,
.modal-content .form-group textarea,
.modal-content .form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  color: var(--text-primary);
  background: var(--bg-main);
  transition: border-color 0.2s;
}

.modal-content .form-group input:focus,
.modal-content .form-group textarea:focus,
.modal-content .form-group select:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.modal-content .form-group textarea {
  min-height: 100px;
  resize: vertical;
}

.modal-content .btn,
.modal-content button[type="submit"] {
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.875rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  background: #3b82f6;
  color: white;
}

.modal-content .btn:hover,
.modal-content button[type="submit"]:hover {
  background: #2563eb;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* Dark mode modal */
html.dark .modal-content {
  background: var(--bg-card);
}

html.dark .modal-content .form-group input,
html.dark .modal-content .form-group textarea,
html.dark .modal-content .form-group select {
  background: var(--bg-main);
  border-color: var(--border-light);
  color: var(--text-primary);
}

/* ========================================
   MEASURE ARTICLE COMPONENTS
   Styles for dynamic measure content sections
======================================== */

/* Benefits Grid */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin: 2rem 0;
}

.benefit-item {
  background: rgba(42, 157, 143, 0.04);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1rem;
  text-align: center;
  transition: all 0.3s ease-out;
  border: 1px solid var(--border-light);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.benefit-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  background: rgba(42, 157, 143, 0.06);
  background: linear-gradient(135deg, #f8f8f8, #eef1ee);
  z-index: 10;
}

.benefit-item .hover-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, #3498db, #2980b9);
  color: white;
  padding: 0.5rem;
  transform: translateY(101%);
  transition: transform 0.3s ease-out;
  font-size: 0.9rem;
  line-height: 1.4;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.benefit-item:hover .hover-info {
  transform: translateY(0);
}

.benefit-item i {
  font-size: 1.25rem;
  color: var(--secondary);
  margin-bottom: 0.875rem;
}

.benefit-item h4 {
  margin: 0;
  font-size: 1rem;
  color: var(--primary);
  line-height: 1.3;
}

/* Arguments List */
.arguments-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin: 2rem 0;
}

.argument {
  background: rgba(46, 204, 113, 0.04);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  border: 1px solid var(--border-light);
}

.argument h4 {
  margin-top: 0;
  color: var(--primary);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
}

.argument p {
  margin: 0;
  color: var(--text-primary);
  line-height: 1.6;
}

/* FAQ */
.faq {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin: 2rem 0;
}

.faq-item {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-light);
}

.faq-question {
  padding: 1rem 1.25rem;
  background: var(--bg-hover);
  border-bottom: 1px solid var(--border-light);
}

.faq-question h4 {
  margin: 0;
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.faq-question h4::before {
  content: "→";
  color: var(--secondary);
  font-size: 1.1rem;
  font-weight: 700;
  flex-shrink: 0;
}

.faq-answer {
  padding: 1rem 1.25rem;
}

.faq-answer p {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Impact List */
.impact-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.impact-list li {
  padding: 0.875rem 1rem 0.875rem 2.25rem;
  background: rgba(42, 157, 143, 0.04);
  border-radius: var(--radius-md);
  position: relative;
  border: 1px solid var(--border-light);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.4;
}

.impact-list li:before {
  content: "✓";
  position: absolute;
  left: 0.875rem;
  color: var(--secondary);
  font-weight: 700;
  font-size: 1rem;
}

@media (max-width: 768px) {
  .impact-list {
    grid-template-columns: 1fr;
  }
}

/* Tags Container */
.tags-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: 2rem 0;
}

.content-tag {
  background: #f1f5f9;
  color: var(--primary);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-lg);
  font-size: 0.9rem;
  font-weight: 500;
}

/* Examples */
.examples {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.example-card {
  background: #f8fafc;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  border: 1px solid var(--border-light);
}

.example-header {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.example-header i {
  font-size: 1.5rem;
  color: var(--secondary);
}

.example-header h4 {
  margin: 0;
  color: var(--primary);
  font-size: 1.1rem;
}

.example-card p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Case Study */
.case-study {
  background: #f8fafc;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin: 2rem 0;
  border: 1px solid var(--border-light);
}

.person-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.person-info i {
  display: none;
}

.person-info h4 {
  margin: 0;
  color: var(--primary);
  font-size: 1.1rem;
}

.case-study p {
  margin-bottom: 0.8rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.case-study p:last-child {
  margin-bottom: 0;
}

/* Questions */
.questions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 2rem 0;
}

.question-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0;
  background: transparent;
  border: none;
}

.question-item i {
  width: 20px;
  height: 20px;
  min-width: 20px;
  border-radius: 4px;
  background: var(--secondary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  flex-shrink: 0;
  margin-top: 3px;
}

.question-item i::before {
  content: "?";
  font-family: inherit;
  font-weight: 700;
}

.question-item i.fas::before {
  content: "?";
}

.question-item p {
  margin: 0;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-primary);
  line-height: 1.5;
}

/* Infographic Cards */
.infographic-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 2rem 0 1.5rem;
}

.infographic-tab {
  border: 1px solid var(--border-light);
  background: white;
  color: var(--primary);
  border-radius: 999px;
  padding: 0.6rem 1.4rem;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition:
    background 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.infographic-tab:hover,
.infographic-tab:focus {
  outline: none;
  border-color: rgba(52, 152, 219, 0.4);
  box-shadow: 0 6px 12px rgba(15, 23, 42, 0.08);
}

.infographic-tab.active {
  background: var(--secondary);
  color: white;
  border-color: var(--secondary);
  box-shadow: 0 10px 20px rgba(52, 152, 219, 0.28);
}

.infographic-stage {
  position: relative;
}

.infographic-card {
  background: #f8fafc;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  display: none;
  flex-direction: column;
  gap: 1.5rem;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
  animation: fadeIn 0.35s ease;
}

.infographic-card.active {
  display: flex;
}

.infographic-card[hidden] {
  display: none !important;
}

.infographic-card h3 {
  margin: 0 0 1.5rem 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
}

.chart-note {
  margin: 1rem 0 0 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-muted);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Bar Chart */
.bar-chart {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.bar-chart-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.bar-label {
  font-weight: 600;
  color: var(--text-primary);
  min-width: 6rem;
  font-size: 0.95rem;
}

.bar-track {
  flex: 1;
  height: 2rem;
  background: #f1f5f9;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
}

.bar-fill {
  position: absolute;
  inset: 0;
  width: calc(var(--value) * 1%);
  border-radius: inherit;
  transition: width 0.6s ease;
}

.bar-taxed {
  background: linear-gradient(90deg, #ef4444, #dc2626);
}

.bar-savings {
  background: linear-gradient(90deg, #22c55e, #16a34a);
}

.bar-value {
  font-weight: 600;
  color: var(--secondary);
  white-space: nowrap;
  font-size: 0.95rem;
}

/* Flow Diagram */
.flow-diagram {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.flow-steps {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

@media (min-width: 720px) {
  .flow-steps {
    flex-direction: row;
    align-items: stretch;
  }
}

.flow-step {
  flex: 1;
  background: white;
  border-radius: var(--radius-lg);
  padding: 1.2rem;
  border: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.flow-step h4 {
  margin: 0;
  font-size: 1rem;
  color: var(--primary);
}

.flow-step p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.flow-arrow {
  align-self: center;
  font-size: 1.8rem;
  color: var(--secondary);
}

/* Video Suggestion */
.video-suggestion {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: 0;
  margin: 2rem 0;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.video-suggestion > i {
  display: none;
}

.video-suggestion > div {
  display: flex;
  flex-direction: column;
}

.video-suggestion-content {
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.video-suggestion-content::before {
  content: "\f03d";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 8px;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.video-suggestion-content h3 {
  margin: 0;
  color: var(--text-primary);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.5;
  flex: 1;
}

.video-suggestion h4 {
  display: inline;
  margin: 0;
  color: var(--text-primary);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.6;
}

.video-suggestion p {
  display: inline;
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

.video-suggestion-image {
  width: 100%;
  height: auto;
  display: block;
  border-top: 1px solid var(--border-light);
}

.video-disclaimer {
  margin: 0;
  padding: 1rem 1.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-style: italic;
  text-align: center;
  background: var(--bg-hover);
  border-top: 1px solid var(--border-light);
}

/* Proposal Quote */
.proposal-quote {
  background: #f8fafc;
  border-left: 4px solid var(--secondary);
  padding: 1.5rem 1.5rem 1.5rem 2rem;
  margin: 2rem 0;
  border-radius: var(--radius-lg);
  border-top: 1px solid var(--border-light);
  border-right: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.proposal-quote h4 {
  margin-top: 0;
  color: var(--primary);
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.proposal-quote p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Highlight Box */
.highlight-box {
  background: linear-gradient(
    135deg,
    rgba(59, 130, 246, 0.1),
    rgba(37, 99, 235, 0.05)
  );
  border-left: 4px solid var(--secondary);
  padding: 1.5rem;
  margin: 1.5rem 0;
  border-radius: var(--radius-lg);
  border-top: 1px solid rgba(59, 130, 246, 0.2);
  border-right: 1px solid rgba(59, 130, 246, 0.2);
  border-bottom: 1px solid rgba(59, 130, 246, 0.2);
}

.highlight-box p {
  margin: 0;
  color: var(--text-primary);
  line-height: 1.7;
  font-size: 1.05rem;
}

/* ========================================
   DARK MODE - ARTICLE COMPONENTS
======================================== */
html.dark .benefits-grid .benefit-item {
  background: rgba(42, 157, 143, 0.08);
  border-color: var(--border-light);
}

html.dark .benefits-grid .benefit-item:hover {
  box-shadow: var(--shadow-lg);
  background: rgba(42, 157, 143, 0.12);
}

html.dark .proposal-quote,
html.dark .highlight-box,
html.dark .argument,
html.dark .faq-item,
html.dark .impact-list li {
  background: rgba(42, 157, 143, 0.08);
  border-color: var(--border-light);
}

html.dark .example-card,
html.dark .case-study,
html.dark .infographic-card,
html.dark .video-suggestion {
  background: var(--bg-card);
  border-color: var(--border-light);
}

html.dark .question-item {
  background: transparent;
}

html.dark .proposal-quote h4,
html.dark .highlight-box p,
html.dark .benefit-item h4,
html.dark .argument h4,
html.dark .faq-question h4,
html.dark .example-header h4,
html.dark .person-info h4 {
  color: var(--text-primary);
}

html.dark .question-item p {
  color: var(--text-primary);
}

html.dark .question-item i {
  background: var(--secondary);
  color: white;
}

html.dark .proposal-quote p,
html.dark .argument p,
html.dark .faq-answer p,
html.dark .example-card p,
html.dark .case-study p,
html.dark .video-suggestion p,
html.dark .chart-note {
  color: var(--text-secondary);
}

html.dark .video-suggestion h4 {
  color: var(--text-primary);
}

html.dark .video-suggestion-content h3 {
  color: var(--text-primary);
}

html.dark .video-disclaimer {
  background: var(--bg-hover);
  color: var(--text-muted);
  border-color: var(--border-light);
}

html.dark .content-tag {
  background: #1e252b;
  color: #b0b8c1;
}

html.dark .bar-track {
  background: #1e293b;
}

html.dark .infographic-tab {
  background: var(--bg-card);
  border-color: var(--border-light);
  color: var(--text-primary);
}

html.dark .infographic-tab.active {
  background: var(--secondary);
  color: white;
  border-color: var(--secondary);
}

html.dark .flow-step {
  background: var(--bg-card);
  border-color: var(--border-light);
}

/* ========================================
   RESPONSIVE - ARTICLE COMPONENTS
======================================== */
@media (max-width: 768px) {
  .benefits-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .benefit-item {
    padding: 1rem;
  }

  .bar-chart-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .video-suggestion-content {
    padding: 1rem;
  }

  .video-suggestion-content::before {
    width: 42px;
    height: 42px;
    min-width: 42px;
    font-size: 1.1rem;
  }

  .quote {
    padding: 2rem 1.5rem;
  }

  .quote::before {
    font-size: 80px;
    top: -5px;
    left: 10px;
  }

  .quote p {
    font-size: 1.1rem;
  }

  .quote cite {
    font-size: 0.9rem;
  }
}

/* ========================================
   Cum funcționează Page Content Styles
   ======================================== */

.measure-article section {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-light, #e2e8f0);
}

.measure-article section:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.measure-article h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary, #1e293b);
  margin: 0 0 1rem;
  line-height: 1.4;
}

.measure-article p {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-secondary, #475569);
  margin: 0 0 0.875rem;
}

.measure-article p:last-child {
  margin-bottom: 0;
}

.measure-article ul,
.measure-article ol {
  margin: 1rem 0;
  padding-left: 1.5rem;
  color: var(--text-secondary, #475569);
}

.measure-article li {
  margin-bottom: 0.5rem;
  line-height: 1.7;
}

.measure-article li:last-child {
  margin-bottom: 0;
}

.measure-article strong {
  color: var(--text-primary, #1e293b);
  font-weight: 600;
}

.measure-article em {
  color: var(--text-muted, #64748b);
}

.measure-article blockquote {
  margin: 1.25rem 0;
  padding: 1rem 1.25rem;
  background: var(--bg-secondary, #f8fafc);
  border-left: 3px solid var(--secondary, #3b82f6);
  border-radius: 0 8px 8px 0;
  font-size: 0.95rem;
}

.measure-article blockquote p {
  margin: 0;
}

.measure-article blockquote strong {
  color: var(--secondary, #3b82f6);
}

/* Override - ensure section styling is applied */
.measure-page-main .measure-article section {
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #e2e8f0;
}

.measure-page-main .measure-article section:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.measure-page-main .measure-article section h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #e2e8f0;
}

.measure-page-main .measure-article section p {
  font-size: 1rem;
  line-height: 1.8;
  color: #475569;
  margin-bottom: 1rem;
}

.measure-page-main .measure-article section ul,
.measure-page-main .measure-article section ol {
  margin: 1rem 0 1.25rem;
  padding-left: 1.75rem;
}

.measure-page-main .measure-article section li {
  margin-bottom: 0.6rem;
  line-height: 1.75;
  color: #475569;
}

.measure-page-main .measure-article section blockquote {
  margin: 1.5rem 0;
  padding: 1.25rem 1.5rem;
  background: linear-gradient(to right, #eff6ff, #f8fafc);
  border-left: 4px solid #3b82f6;
  border-radius: 0 10px 10px 0;
}

.measure-page-main .measure-article section blockquote p {
  margin: 0;
  color: #1e40af;
  font-size: 0.95rem;
}

.measure-page-main .measure-article section blockquote strong {
  color: #1e40af;
}

.measure-page-main .measure-article section blockquote em {
  color: #3b82f6;
}

/* Footer disabled links */
.footer-link-disabled {
  color: #94a3b8;
  cursor: not-allowed;
  opacity: 0.6;
  font-size: 0.95rem;
}

/* Footer disclaimer */
.footer-disclaimer {
  font-size: 0.8rem;
  color: #64748b;
  margin-top: 0.25rem;
  opacity: 0.8;
}

/* ========================================
   Dev Auth Screen
======================================== */
.auth-overlay {
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
}

.auth-container {
  background: rgba(30, 41, 59, 0.8);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 3rem 2.5rem;
  max-width: 400px;
  width: 90%;
  text-align: center;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.auth-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.auth-logo-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(
    to right,
    #5483e0 0%,
    #5483e0 33.33%,
    #fcd116 33.33%,
    #fcd116 66.66%,
    #ef5f6f 66.66%,
    #ef5f6f 100%
  );
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  font-family: "Poppins", sans-serif;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.auth-logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  font-family: "Poppins", sans-serif;
}

.auth-title {
  color: white;
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 0 0.75rem;
}

.auth-subtitle {
  color: #94a3b8;
  font-size: 0.95rem;
  margin: 0 0 2rem;
  line-height: 1.6;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.auth-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.auth-input-wrapper i {
  position: absolute;
  left: 1rem;
  color: #64748b;
  font-size: 1rem;
}

.auth-input-wrapper input {
  width: 100%;
  padding: 1rem 1rem 1rem 3rem;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: white;
  font-size: 1rem;
  transition: all 0.2s ease;
}

.auth-input-wrapper input::placeholder {
  color: #64748b;
}

.auth-input-wrapper input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.auth-error {
  color: #ef4444;
  font-size: 0.875rem;
  margin: 0;
  min-height: 1.25rem;
}

.auth-btn {
  padding: 1rem 2rem;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.auth-btn:hover {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  transform: translateY(-1px);
  box-shadow: 0 10px 20px -5px rgba(59, 130, 246, 0.4);
}

.auth-btn:active {
  transform: translateY(0);
}

.auth-footer {
  color: #64748b;
  font-size: 0.8rem;
  margin: 2rem 0 0;
}
