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

html {
  scroll-behavior: smooth;
}

body {
  font-family: Helvetica, Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #fff;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header and Navigation */
.header {
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
}

.navbar {
  padding: 1rem 0;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.logo h1 {
  color: #2c3e50;
  font-size: 1.8rem;
  font-weight: bold;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-menu a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-menu a:hover {
  color: #3498db;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: #333;
  margin: 3px 0;
  transition: 0.3s;
}

/* Main Content */
.main-content {
  margin-top: 80px;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 4rem 0;
  text-align: center;
}

.hero-title {
  font-size: 3rem;
  margin-bottom: 1rem;
  font-weight: bold;
}

.hero-subtitle {
  font-size: 1.2rem;
  margin-bottom: 3rem;
  opacity: 0.9;
}

/* Countdown Styles */
.countdown-container {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 2rem;
  margin: 2rem auto;
  max-width: 800px;
}

.countdown-container h2 {
  margin-bottom: 2rem;
  font-size: 1.8rem;
}

.countdown-display {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.countdown-item {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 15px;
  padding: 1.5rem;
  text-align: center;
}

.countdown-number {
  display: block;
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.countdown-label {
  font-size: 0.9rem;
  opacity: 0.8;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Date Input */
.date-input-container {
  margin: 2rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.date-input-container label {
  font-size: 1.1rem;
  font-weight: 500;
}

.date-input {
  padding: 0.8rem 1rem;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  font-size: 1rem;
  backdrop-filter: blur(5px);
}

.date-input::-webkit-calendar-picker-indicator {
  filter: invert(1);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
  padding: 0.8rem 1.5rem;
  border-radius: 10px;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.target-date {
  font-size: 1.1rem;
  opacity: 0.9;
}

/* Article Content */
.article-content {
  padding: 4rem 0;
}

.article-header {
  text-align: center;
  margin-bottom: 3rem;
}

.article-header h1 {
  font-size: 2.5rem;
  color: #2c3e50;
  margin-bottom: 1rem;
}

.article-meta {
  font-size: 1.2rem;
  color: #7f8c8d;
}

.article-body {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.1rem;
  line-height: 1.8;
}

.lead {
  font-size: 1.3rem;
  font-weight: 500;
  color: #34495e;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: #f8f9fa;
  border-left: 4px solid #3498db;
  border-radius: 0 10px 10px 0;
}

.article-body h2 {
  font-size: 1.8rem;
  color: #2c3e50;
  margin: 2.5rem 0 1rem 0;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #ecf0f1;
}

.article-body h3 {
  font-size: 1.4rem;
  color: #34495e;
  margin: 2rem 0 1rem 0;
}

.article-body p {
  margin-bottom: 1.5rem;
}

.highlight-quote {
  background: #f39c12;
  color: white;
  padding: 1.5rem;
  border-radius: 10px;
  font-style: italic;
  font-size: 1.2rem;
  margin: 2rem 0;
  position: relative;
}

.highlight-quote::before {
  content: '"';
  font-size: 4rem;
  position: absolute;
  top: -10px;
  left: 15px;
  opacity: 0.3;
}

/* Tables */
.data-table {
  margin: 2rem 0;
  overflow-x: auto;
}

.data-table h3 {
  margin-bottom: 1rem;
  color: #2c3e50;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

th,
td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid #ecf0f1;
}

th {
  background: #3498db;
  color: white;
  font-weight: 600;
}

tr:hover {
  background: #f8f9fa;
}

/* Lists */
.key-points {
  background: #e8f6f3;
  padding: 1.5rem;
  border-radius: 10px;
  margin: 2rem 0;
}

.key-points li {
  margin-bottom: 0.8rem;
  padding-left: 0.5rem;
}

.challenge-zones {
  background: #fdf2e9;
  padding: 1.5rem;
  border-radius: 10px;
  margin: 2rem 0;
  border-left: 4px solid #f39c12;
}

/* Article Navigation */
.article-nav {
  margin: 4rem 0;
  padding: 2rem;
  background: #f8f9fa;
  border-radius: 15px;
}

.article-nav h3 {
  text-align: center;
  margin-bottom: 2rem;
  color: #2c3e50;
}

.article-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.article-link {
  background: white;
  padding: 1.5rem;
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.article-link:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.article-link h4 {
  color: #3498db;
  margin-bottom: 0.5rem;
}

.article-link p {
  color: #7f8c8d;
  font-size: 0.9rem;
}

/* Article CTA */
.article-cta {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 2rem;
  border-radius: 15px;
  text-align: center;
  margin: 3rem 0;
}

/* Sources */
.article-sources {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 2px solid #ecf0f1;
}

.article-sources h3 {
  margin-bottom: 1rem;
  color: #2c3e50;
}

.article-sources ol {
  padding-left: 1.5rem;
}

.article-sources li {
  margin-bottom: 0.8rem;
  font-size: 0.9rem;
  color: #7f8c8d;
}

/* Footer */
.footer {
  background: #2c3e50;
  color: white;
  padding: 3rem 0 1rem 0;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
  margin-bottom: 1rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: #bdc3c7;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: white;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid #34495e;
  color: #bdc3c7;
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #3498db;
  color: white;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 1.5rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: #2980b9;
  transform: translateY(-3px);
}

/* GDPR Consent */
.gdpr-popup {
  position: fixed;
  bottom: 20px;
  left: 20px;
  background: #2c3e50;
  color: white;
  padding: 1rem;
  border-radius: 10px;
  max-width: 350px;
  z-index: 1001;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s ease;
}

.gdpr-popup.show {
  transform: translateY(0);
  opacity: 1;
}

.gdpr-content p {
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.gdpr-btn {
  background: #3498db;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background 0.3s ease;
}

.gdpr-btn:hover {
  background: #2980b9;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    left: -100%;
    top: 70px;
    flex-direction: column;
    background-color: white;
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
    padding: 2rem 0;
  }

  .nav-menu.active {
    left: 0;
  }

  .hero-title {
    font-size: 2rem;
  }

  .countdown-display {
    grid-template-columns: repeat(2, 1fr);
  }

  .countdown-number {
    font-size: 2rem;
  }

  .date-input-container {
    flex-direction: column;
  }

  .article-header h1 {
    font-size: 2rem;
  }

  .article-body {
    font-size: 1rem;
  }

  .lead {
    font-size: 1.1rem;
  }

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

  .gdpr-popup {
    left: 10px;
    right: 10px;
    max-width: none;
  }
}

@media (max-width: 480px) {
  .countdown-display {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .countdown-item {
    padding: 1rem;
  }

  .countdown-number {
    font-size: 1.8rem;
  }

  .hero-title {
    font-size: 1.8rem;
  }

  .container {
    padding: 0 15px;
  }
}

/* Performance Optimizations */
.hero {
  will-change: transform;
}

.countdown-number {
  will-change: contents;
}

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

  html {
    scroll-behavior: auto;
  }
}

/* Focus styles for accessibility */
a:focus,
button:focus,
input:focus {
  outline: 2px solid #3498db;
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .hero {
    background: #000;
    color: #fff;
  }

  .countdown-container {
    background: rgba(255, 255, 255, 0.9);
    color: #000;
  }
}
