
/* Custom CSS overrides and additions to Tailwind */

/* Simple Light Mode Color Scheme */
:root {
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-tertiary: #f1f5f9;
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --text-muted: #94a3b8;
  --border-color: #e2e8f0;
  --border-color-hover: #cbd5e1;
  --accent-red: #dc2626;
  --accent-blue: #2563eb;
  --accent-blue-hover: #1d4ed8;
  --navy: #1e293b;
  --crimson: #dc2626;
  --success-green: #059669;
  --warning-orange: #d97706;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

/* Apply clean light theme */
body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Enhanced theme utility classes */
.bg-theme-primary {
  background-color: var(--bg-primary);
}

.bg-theme-secondary {
  background-color: var(--bg-secondary);
}

.bg-theme-tertiary {
  background-color: var(--bg-tertiary);
}

.text-theme-primary {
  color: var(--text-primary);
}

.text-theme-secondary {
  color: var(--text-secondary);
}

.text-theme-muted {
  color: var(--text-muted);
}

.border-theme {
  border-color: var(--border-color);
}

.border-theme-hover:hover {
  border-color: var(--border-color-hover);
}

/* Consistent card styling */
.card-theme {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.card-theme:hover {
  border-color: var(--border-color-hover);
  box-shadow: var(--shadow-md);
}

/* Consistent button styling */
.btn-primary {
  background-color: var(--accent-blue);
  color: white;
  border: 1px solid var(--accent-blue);
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.2s ease;
  cursor: pointer;
}

.btn-primary:hover {
  background-color: var(--accent-blue-hover);
  border-color: var(--accent-blue-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.2s ease;
  cursor: pointer;
}

.btn-secondary:hover {
  background-color: var(--bg-tertiary);
  border-color: var(--border-color-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* Enhanced Navigation */
.nav-mobile {
  display: none;
}

/* Mobile Layout Fixes */
@media (max-width: 768px) {
  .nav-desktop {
    display: none;
  }
  
  /* Ensure footer doesn't overlap content on mobile */
  main {
    min-height: calc(100vh - 200px);
    padding-bottom: 6rem !important;
  }
  
  /* Add proper spacing for mobile */
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  .nav-mobile {
    display: block;
  }
  
  .mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    opacity: 0;
  }
  
  .mobile-menu.active {
    max-height: 500px;
    opacity: 1;
  }
}

/* Enhanced Back to top button */
#backToTop {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  z-index: 50;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

#backToTop.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

#backToTop.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Enhanced Timeline styles */
.timeline {
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--accent-blue), #6366f1);
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  margin-left: 50px;
  margin-bottom: 3rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -68px;
  top: 8px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent-blue);
  border: 4px solid var(--bg-primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.timeline-item.oct7-highlight::before {
  background: var(--crimson);
  box-shadow: 0 0 20px rgba(211, 47, 47, 0.3);
}

.timeline-item.oct7-highlight {
  border: 2px solid var(--crimson);
  border-radius: 12px;
  padding: 1.5rem;
  background: linear-gradient(135deg, rgba(211, 47, 47, 0.05), rgba(211, 47, 47, 0.02));
}

@media (min-width: 768px) {
  .timeline {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-left: 0;
  }
  
  .timeline::before {
    display: none;
  }
  
  .timeline-item {
    margin-left: 0;
    flex: 1;
    margin-right: 1.5rem;
  }
  
  .timeline-item:last-child {
    margin-right: 0;
  }
  
  .timeline-item::before {
    position: static;
    display: block;
    margin: 0 auto 1rem auto;
  }
}

/* Enhanced Network tree styles */
.network-tree {
  font-family: 'Courier New', monospace;
  line-height: 2;
  background: var(--bg-secondary);
  padding: 2rem;
  border-radius: 12px;
  border: 2px solid var(--border-color);
}

.tree-node {
  margin-left: 30px;
  padding: 0.25rem 0;
}

.tree-connector::before {
  content: "├── ";
  color: var(--accent-blue);
  font-weight: bold;
}

.tree-connector.last::before {
  content: "└── ";
  color: var(--accent-blue);
  font-weight: bold;
}

/* Enhanced Accordion styles */
details {
  border: 2px solid var(--border-color);
  border-radius: 12px;
  margin-bottom: 1.5rem;
  overflow: hidden;
  transition: all 0.2s ease;
}

details:hover {
  border-color: var(--accent-blue);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1);
}

details[open] {
  background: var(--bg-secondary);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

summary {
  padding: 1.5rem;
  cursor: pointer;
  font-weight: 600;
  background: var(--bg-secondary);
  border-bottom: 2px solid var(--border-color);
  transition: all 0.2s ease;
  position: relative;
}

summary:hover {
  background: var(--accent-blue);
  color: white;
}

summary::marker {
  display: none;
}

summary::after {
  content: "▼";
  position: absolute;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  transition: transform 0.2s ease;
}

details[open] summary::after {
  transform: translateY(-50%) rotate(180deg);
}

details[open] summary {
  border-bottom: 2px solid var(--border-color);
}

.accordion-content {
  padding: 2rem;
}

/* Enhanced Cards and components */
.alert-card {
  border-left: 6px solid var(--accent-red);
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.05), rgba(220, 38, 38, 0.02));
  padding: 1.5rem;
  border-radius: 0 12px 12px 0;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* Terror Timeline Animations */
.pulse-danger {
    animation: pulse-danger 1.5s infinite;
}

.shake-animation {
    animation: shake 2s infinite;
}

.blink-animation {
    animation: blink 1s infinite;
}

.timeline-content {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s ease-out;
}

.timeline-content.visible {
    opacity: 1;
    transform: translateX(0);
}

.timeline-dot {
    transform: scale(0);
    transition: all 0.5s ease-out;
}

.timeline-dot.visible {
    transform: scale(1);
}

.timeline-line {
    height: 0;
    transition: height 0.8s ease-out;
}

.timeline-line.visible {
    height: 100%;
}

@keyframes pulse-danger {
    0%, 100% { 
        background-color: #dc2626;
        box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.7);
    }
    50% { 
        background-color: #991b1b;
        box-shadow: 0 0 0 10px rgba(220, 38, 38, 0);
    }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-2px); }
    20%, 40%, 60%, 80% { transform: translateX(2px); }
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0.3; }
}

.alert-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(220, 38, 38, 0.15);
}

.leadership-card {
  transition: all 0.3s ease;
  border: 2px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
}

.leadership-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
  border-color: var(--accent-blue);
}



/* Interactive Network Visualization Styles */
.network-svg {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-radius: 12px;
}

[data-theme="dark"] .network-svg {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
}

.network-node {
  cursor: pointer;
  transition: all 0.3s ease;
}

.network-node:hover {
  transform: scale(1.1);
}

.network-node:hover .node-circle {
  filter: brightness(1.2) drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

.pulsing {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.05); opacity: 0.8; }
  100% { transform: scale(1); opacity: 1; }
}

.connection-line {
  transition: all 0.3s ease;
  opacity: 0.7;
}

.legend-item {
  cursor: pointer;
  transition: all 0.3s ease;
}

.legend-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.legend-item.active {
  transform: scale(1.02);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

/* Highlight states for network connections */
.network-highlighted .connection-line:not(.highlight-active) {
  opacity: 0.2;
}

.network-highlighted .network-node:not(.highlight-active) {
  opacity: 0.4;
}

.highlight-active {
  opacity: 1 !important;
}

/* Interactive Timeline Styles */
.timeline-marker {
  position: relative;
  cursor: pointer;
  transition: all 0.3s ease;
}

.timeline-marker:hover {
  transform: scale(1.2);
}

.timeline-marker.active {
  transform: scale(1.3);
  z-index: 20;
}

.timeline-marker::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: white;
  border: 3px solid;
  z-index: 1;
}

.timeline-marker.severity-high::before {
  border-color: #dc2626;
  background: #fef2f2;
}

.timeline-marker.severity-medium::before {
  border-color: #d97706;
  background: #fffbeb;
}

.timeline-marker.severity-low::before {
  border-color: #059669;
  background: #f0fdf4;
}

.timeline-marker::after {
  content: attr(data-year);
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  font-weight: bold;
  font-size: 0.75rem;
  color: var(--text-primary);
  white-space: nowrap;
}

.timeline-marker.active::before {
  animation: timelinePulse 1s ease-in-out infinite alternate;
}

@keyframes timelinePulse {
  from { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.4); }
  to { box-shadow: 0 0 0 10px rgba(220, 38, 38, 0); }
}

.timeline-playing .timeline-marker {
  animation: timelineReveal 0.5s ease-out forwards;
  opacity: 0;
  transform: translateY(20px);
}

@keyframes timelineReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Timeline detail animations */
.timeline-detail-active {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

.timeline-progress {
  position: absolute;
  top: 16px;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, #2563eb, #6366f1);
  border-radius: 2px;
  width: 0%;
  transition: width 0.3s ease;
  z-index: 5;
}

/* Mobile timeline styles */
.mobile-timeline-item {
  opacity: 0;
  transform: translateX(-20px);
  transition: all 0.5s ease;
}

.mobile-timeline-item.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Enhanced loading states */
.network-loading .network-node {
  animation: nodeLoading 1.5s ease-in-out infinite alternate;
}

@keyframes nodeLoading {
  from { opacity: 0.3; }
  to { opacity: 1; }
}

/* Print optimizations */
@media print {
  .timeline-controls,
  .legend-item,
  #networkInfo {
    display: none !important;
  }
  
  .network-svg,
  .timeline-marker {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Enhanced Tooltip */
.tooltip {
  position: relative;
  cursor: help;
  text-decoration: underline;
  text-decoration-style: dotted;
  text-decoration-color: var(--accent-blue);
}

.tooltip::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--text-primary);
  color: var(--bg-primary);
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.875rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 10;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.tooltip:hover::after {
  opacity: 1;
}

/* Enhanced Search highlighting */
.search-highlight {
  background: linear-gradient(120deg, #fbbf24, #f59e0b);
  color: #1f2937;
  padding: 2px 4px;
  border-radius: 4px;
  font-weight: 600;
}

/* Quote badge styling */
.quoteBadge {
  text-transform: uppercase;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  color: var(--crimson);
  background: rgba(211, 47, 47, 0.1);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-weight: 700;
}

/* Enhanced responsive utilities */
@media (max-width: 640px) {
  .mobile-stack {
    flex-direction: column;
  }
  
  .mobile-full {
    width: 100%;
  }
  
  .timeline-item {
    margin-bottom: 2rem;
  }
  
  .network-tree {
    padding: 1rem;
    font-size: 0.875rem;
  }
}

/* Enhanced Print styles */
@media print {
  .no-print {
    display: none !important;
  }
  
  body {
    background: white !important;
    color: black !important;
  }
  
  .timeline::before {
    display: block !important;
    background: black !important;
  }
  
  .timeline-item::before {
    background: black !important;
    border-color: white !important;
  }
}

/* Enhanced Focus styles for accessibility */
*:focus {
  outline: 3px solid var(--accent-blue);
  outline-offset: 2px;
  border-radius: 4px;
}

button:focus,
a:focus,
summary:focus {
  outline-color: var(--accent-blue);
}

/* Enhanced Loading states */
.loading {
  opacity: 0.6;
  pointer-events: none;
  position: relative;
}

.skeleton {
  background: linear-gradient(90deg, var(--bg-secondary) 25%, var(--border-color) 50%, var(--bg-secondary) 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
}

.skeleton::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
  animation: shimmer 2s infinite;
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

/* Pulse Animation for Important Elements */
.pulse-subtle {
  animation: pulseSubtle 3s ease-in-out infinite;
}

@keyframes pulseSubtle {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.9;
    transform: scale(1.02);
  }
}

/* Content Reveal Animation */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.reveal-on-scroll.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Smooth scrolling with reduced motion support */
html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Enhanced Typography */
h1, h2, h3, h4, h5, h6 {
  letter-spacing: -0.025em;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
}

h2 {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
}

/* Enhanced Visual Effects */
.page-hero {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(147, 51, 234, 0.1) 100%);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 20%, rgba(59, 130, 246, 0.15) 0%, transparent 50%),
              radial-gradient(circle at 70% 80%, rgba(147, 51, 234, 0.15) 0%, transparent 50%);
  pointer-events: none;
}

/* Glassmorphism Effect */
.glass-card {
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .glass-card {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Enhanced Cards with Hover Effects */
.enhanced-card {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  background: var(--bg-primary);
  border-radius: 16px;
  border: 1px solid var(--border-color);
}

.enhanced-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.5s ease;
}

.enhanced-card:hover::before {
  left: 100%;
}

.enhanced-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border-color: var(--accent-blue);
}

/* Enhanced button styles */
.btn-primary {
  background: linear-gradient(135deg, var(--accent-blue), #1d4ed8);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 2px solid var(--border-color);
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn-secondary:hover {
  border-color: var(--accent-blue);
  color: var(--accent-blue);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(37, 99, 235, 0.2);
}

/* Animated Icons */
.icon-bounce {
  animation: iconBounce 2s ease-in-out infinite;
}

@keyframes iconBounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-5px);
  }
  60% {
    transform: translateY(-3px);
  }
}

/* Enhanced Shadows */
.shadow-enhanced {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08), 0 8px 40px rgba(0, 0, 0, 0.05);
}

.shadow-enhanced-hover {
  transition: box-shadow 0.3s ease;
}

.shadow-enhanced-hover:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12), 0 16px 60px rgba(0, 0, 0, 0.08);
}

/* Text Gradients */
.text-gradient {
  background: linear-gradient(135deg, #1e40af, #6366f1);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% 200%;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* Breaking Alert Banner */
@keyframes scroll {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

.breaking-alert {
    position: relative;
    overflow: hidden;
    font-weight: bold;
    font-size: 14px;
    z-index: 30;
}

.breaking-ticker {
    animation: scroll 30s linear infinite;
    display: inline-block;
}

.animate-scroll {
    animation: scroll 30s linear infinite;
}

/* Classification Stamps */
.stamp-declassified, .stamp-urgent {
    background: rgba(220, 38, 38, 0.9);
    color: white;
    padding: 8px 16px;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    font-size: 12px;
    border: 2px solid #dc2626;
    transform: rotate(-15deg);
    letter-spacing: 2px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.stamp-urgent {
    background: rgba(234, 88, 12, 0.9);
    border-color: #ea580c;
    color: white;
    transform: rotate(15deg);
}

/* Threat Counter Dashboard */
.threat-dashboard {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(220, 38, 38, 0.3);
}

.threat-counter {
    padding: 12px;
    border-radius: 8px;
    background: rgba(220, 38, 38, 0.1);
    border: 1px solid rgba(220, 38, 38, 0.3);
}

/* Emergency Broadcast Styling */
.emergency-broadcast-cta {
    position: relative;
}

.pulse-border {
    animation: pulseBorder 2s ease-in-out infinite;
}

@keyframes pulseBorder {
    0%, 100% { 
        border-color: #dc2626;
        box-shadow: 0 0 20px rgba(220, 38, 38, 0.3);
    }
    50% { 
        border-color: #ef4444;
        box-shadow: 0 0 30px rgba(220, 38, 38, 0.6);
    }
}

.btn-emergency {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: white;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: bold;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.4);
    animation: pulseGlow 2s ease-in-out infinite;
}

.btn-emergency:hover {
    background: linear-gradient(135deg, #b91c1c 0%, #991b1b 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.6);
}

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 4px 15px rgba(220, 38, 38, 0.4); }
    50% { box-shadow: 0 4px 25px rgba(220, 38, 38, 0.7); }
}

/* Blink Animation */
.blink-animation {
    animation: blink 1.5s ease-in-out infinite;
}

@keyframes blink {
    0%, 50%, 100% { opacity: 1; }
    25%, 75% { opacity: 0.3; }
}

/* Counter Animation */
.counter-animation {
    animation: counterPulse 3s ease-in-out infinite;
}

@keyframes counterPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Redacted Reveal Effect */
.redacted-reveal {
    position: relative;
}

.redacted-reveal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        90deg,
        transparent,
        transparent 2px,
        rgba(0,0,0,0.8) 2px,
        rgba(0,0,0,0.8) 4px
    );
    animation: revealText 3s ease-out forwards;
}

@keyframes revealText {
    0% { width: 100%; }
    100% { width: 0%; }
}
