/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  background: #0f0f0f;
  color: #f2f2f2;
  font-family: 'Source Code Pro', 'Courier New', monospace;
  line-height: 1.6;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  min-height: 100vh;
  padding: 30px;
  position: relative;
  overflow-x: hidden;
}

/* Background Animation */
.background-animation {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: 
    radial-gradient(circle at 20% 30%, rgba(255, 0, 0, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(255, 77, 77, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 40% 80%, rgba(255, 0, 0, 0.03) 0%, transparent 50%);
  animation: pulse 15s ease-in-out infinite alternate;
}

@keyframes pulse {
  0% { opacity: 0.7; }
  100% { opacity: 1; }
}

/* Main Container */
.container {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid #444;
  border-radius: 15px;
  padding: 30px;
  max-width: 700px;
  width: 100%;
  box-shadow: 0 0 25px rgba(255, 0, 0, 0.3);
  backdrop-filter: blur(5px);
  animation: fadeIn 1s ease-out;
  position: relative;
  overflow: hidden;
}

.container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #ff4d4d, #ff9999, #ff4d4d);
  background-size: 200% 100%;
  animation: shimmer 3s linear infinite;
}

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

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

/* Header Styles */
header {
  text-align: center;
  margin-bottom: 25px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 77, 77, 0.3);
}

h1 {
  color: #ff4d4d;
  font-size: 2.2rem;
  margin-bottom: 10px;
  text-shadow: 0 0 10px rgba(255, 77, 77, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
}

h1 i {
  animation: heartbeat 1.5s ease-in-out infinite;
}

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

.subtitle {
  color: #aaa;
  font-style: italic;
  font-size: 0.95rem;
}

/* Crisis Summary */
.crisis-summary {
  margin-bottom: 30px;
}

.crisis-stats {
  display: flex;
  justify-content: space-around;
  margin-top: 20px;
}

.stat {
  text-align: center;
  padding: 15px;
  background: rgba(255, 77, 77, 0.1);
  border-radius: 10px;
  min-width: 80px;
  transition: transform 0.3s, background 0.3s;
}

.stat:hover {
  transform: translateY(-5px);
  background: rgba(255, 77, 77, 0.2);
}

.stat-value {
  font-size: 2.5rem;
  font-weight: bold;
  color: #ff4d4d;
}

.stat-label {
  font-size: 0.9rem;
  color: #bbb;
  margin-top: 5px;
}

/* GIF Container */
.gif-container {
  text-align: center;
  margin-bottom: 25px;
  position: relative;
}

.gif-container img {
  max-width: 100%;
  border-radius: 10px;
  border: 1px solid #444;
  box-shadow: 0 0 20px rgba(255, 0, 0, 0.4);
  transition: transform 0.3s, box-shadow 0.3s;
}

.gif-container img:hover {
  transform: scale(1.02);
  box-shadow: 0 0 30px rgba(255, 0, 0, 0.6);
}

/* Crisis List */
.crisis-list-container {
  margin-bottom: 30px;
  padding: 20px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 10px;
  border-left: 4px solid #ff4d4d;
}

.crisis-list-container h2 {
  color: #ff9999;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.crisis-list {
  list-style-type: none;
  padding-left: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 12px;
}

.crisis-list li {
  padding: 10px 15px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  border-left: 3px solid #ff4d4d;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: background 0.3s, transform 0.2s;
}

.crisis-list li:hover {
  background: rgba(255, 77, 77, 0.1);
  transform: translateX(5px);
}

.crisis-list li i {
  color: #ff4d4d;
  width: 20px;
}

/* Read More Section */
.read-more {
  margin-top: 30px;
  padding-top: 25px;
  border-top: 1px dashed #666;
}

.read-more h2 {
  color: #ff9999;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.story-details {
  margin-top: 20px;
}

.story-item {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
  padding: 15px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  border-left: 3px solid rgba(255, 77, 77, 0.5);
  transition: background 0.3s;
}

.story-item:hover {
  background: rgba(255, 255, 255, 0.06);
}

.story-icon {
  color: #ff4d4d;
  font-size: 1.5rem;
  margin-top: 5px;
}

.story-item h3 {
  color: #f2f2f2;
  margin-bottom: 5px;
  font-size: 1.1rem;
}

.fade {
  color: #bbb;
  line-height: 1.5;
}

/* Collapsible Section */
.collapse-container {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease;
}

.collapse-container.expanded {
  max-height: 1000px;
}

.toggle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 25px auto 0;
  padding: 12px 25px;
  background: rgba(255, 77, 77, 0.15);
  color: #ff9999;
  border: 1px solid rgba(255, 77, 77, 0.3);
  border-radius: 30px;
  font-family: 'Source Code Pro', monospace;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.toggle-btn:hover {
  background: rgba(255, 77, 77, 0.25);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(255, 77, 77, 0.2);
}

.toggle-btn i {
  transition: transform 0.3s;
}

.toggle-btn.expanded i {
  transform: rotate(180deg);
}

/* Hope Section */
.hope-section {
  margin-top: 35px;
  padding: 25px;
  background: rgba(255, 77, 77, 0.05);
  border-radius: 10px;
  border: 1px solid rgba(255, 77, 77, 0.2);
  text-align: center;
}

.hope-section h2 {
  color: #ff9999;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.hope-quote {
  margin-top: 20px;
  padding: 20px;
  font-style: italic;
  font-size: 1.1rem;
  color: #ddd;
  border-top: 1px solid rgba(255, 77, 77, 0.3);
  border-bottom: 1px solid rgba(255, 77, 77, 0.3);
  position: relative;
}

.hope-quote i:first-child {
  position: absolute;
  top: 10px;
  left: 10px;
  color: rgba(255, 77, 77, 0.5);
}

.hope-quote i:last-child {
  position: absolute;
  bottom: 10px;
  right: 10px;
  color: rgba(255, 77, 77, 0.5);
}

.quote-author {
  margin-top: 10px;
  color: #ff9999;
  font-style: normal;
  font-size: 0.9rem;
}

/* Footer */
footer {
  margin-top: 30px;
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #888;
  font-size: 0.9rem;
}

.footer-icons {
  margin-top: 10px;
  display: flex;
  justify-content: center;
  gap: 20px;
}

.footer-icons i {
  color: #ff4d4d;
  opacity: 0.7;
  font-size: 1.2rem;
  transition: opacity 0.3s;
}

.footer-icons i:hover {
  opacity: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
  body {
    padding: 15px;
  }
  
  .container {
    padding: 20px;
  }
  
  h1 {
    font-size: 1.8rem;
    flex-direction: column;
    gap: 5px;
  }
  
  .crisis-list {
    grid-template-columns: 1fr;
  }
  
  .crisis-stats {
    flex-direction: column;
    gap: 15px;
  }
  
  .stat {
    min-width: auto;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 1.5rem;
  }
  
  .stat-value {
    font-size: 2rem;
  }
  
  .story-item {
    flex-direction: column;
    gap: 10px;
  }
}
