/* Main Styles for Trump Policy Analysis Website */

:root {
  --primary-color: #2c3e50;
  --secondary-color: #3498db;
  --accent-color: #e74c3c;
  --light-color: #ecf0f1;
  --dark-color: #2c3e50;
  --text-color: #333;
  --link-color: #3498db;
  --positive-color: #27ae60;
  --negative-color: #e74c3c;
  --neutral-color: #f39c12;
}

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

body {
  font-family: 'Open Sans', Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--light-color);
}

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

header {
  background-color: var(--primary-color);
  color: white;
  padding: 1rem 0;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

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

.logo {
  font-size: 1.5rem;
  font-weight: 700;
}

nav ul {
  display: flex;
  list-style: none;
}

nav ul li {
  margin-left: 1.5rem;
}

nav ul li a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s;
}

nav ul li a:hover {
  color: var(--secondary-color);
}

main {
  margin-top: 80px;
  padding: 2rem 0;
}

section {
  margin-bottom: 3rem;
  background-color: white;
  border-radius: 5px;
  padding: 2rem;
  box-shadow: 0 2px 15px rgba(0,0,0,0.1);
}

h1, h2, h3, h4, h5, h6 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

h1 {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 2rem;
}

h2 {
  font-size: 2rem;
  border-bottom: 2px solid var(--secondary-color);
  padding-bottom: 0.5rem;
  margin-top: 2rem;
}

h3 {
  font-size: 1.5rem;
  margin-top: 1.5rem;
}

p {
  margin-bottom: 1rem;
}

a {
  color: var(--link-color);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.btn {
  display: inline-block;
  background-color: var(--secondary-color);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  text-decoration: none;
  transition: background-color 0.3s;
}

.btn:hover {
  background-color: var(--primary-color);
  text-decoration: none;
}

.chart-container {
  margin: 2rem 0;
  text-align: center;
}

.chart-container img {
  max-width: 100%;
  height: auto;
  border-radius: 5px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.pros-cons {
  display: flex;
  margin: 1.5rem 0;
  gap: 20px;
}

.pros, .cons {
  flex: 1;
  padding: 1.5rem;
  border-radius: 5px;
}

.pros {
  background-color: rgba(39, 174, 96, 0.1);
  border-left: 4px solid var(--positive-color);
}

.cons {
  background-color: rgba(231, 76, 60, 0.1);
  border-left: 4px solid var(--negative-color);
}

.pros h4, .cons h4 {
  margin-bottom: 1rem;
}

.pros h4 {
  color: var(--positive-color);
}

.cons h4 {
  color: var(--negative-color);
}

.pros ul, .cons ul {
  padding-left: 1.5rem;
}

.pros li, .cons li {
  margin-bottom: 0.5rem;
}

.timeline {
  position: relative;
  max-width: 1200px;
  margin: 2rem auto;
}

.timeline::after {
  content: '';
  position: absolute;
  width: 6px;
  background-color: var(--secondary-color);
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -3px;
}

.timeline-item {
  padding: 10px 40px;
  position: relative;
  background-color: inherit;
  width: 50%;
}

.timeline-item::after {
  content: '';
  position: absolute;
  width: 25px;
  height: 25px;
  right: -17px;
  background-color: white;
  border: 4px solid var(--secondary-color);
  top: 15px;
  border-radius: 50%;
  z-index: 1;
}

.left {
  left: 0;
}

.right {
  left: 50%;
}

.left::before {
  content: " ";
  height: 0;
  position: absolute;
  top: 22px;
  width: 0;
  z-index: 1;
  right: 30px;
  border: medium solid white;
  border-width: 10px 0 10px 10px;
  border-color: transparent transparent transparent white;
}

.right::before {
  content: " ";
  height: 0;
  position: absolute;
  top: 22px;
  width: 0;
  z-index: 1;
  left: 30px;
  border: medium solid white;
  border-width: 10px 10px 10px 0;
  border-color: transparent white transparent transparent;
}

.right::after {
  left: -16px;
}

.timeline-content {
  padding: 20px 30px;
  background-color: white;
  position: relative;
  border-radius: 6px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.timeline-year {
  font-weight: bold;
  color: var(--secondary-color);
  margin-bottom: 0.5rem;
}

.source-citation {
  font-size: 0.9rem;
  color: #666;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #eee;
}

.source-citation a {
  color: var(--link-color);
}

.source-list {
  margin-top: 2rem;
  padding: 1.5rem;
  background-color: #f8f9fa;
  border-radius: 5px;
}

.source-list h3 {
  margin-top: 0;
}

.source-list ol {
  padding-left: 1.5rem;
}

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

.impact-meter {
  display: flex;
  align-items: center;
  margin: 1rem 0;
}

.impact-meter-label {
  width: 150px;
  font-weight: bold;
}

.impact-meter-bar {
  flex-grow: 1;
  height: 20px;
  background-color: #eee;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

.impact-meter-fill {
  height: 100%;
  border-radius: 10px;
}

.impact-meter-fill.negative {
  background-color: var(--negative-color);
}

.impact-meter-fill.positive {
  background-color: var(--positive-color);
}

.impact-meter-fill.neutral {
  background-color: var(--neutral-color);
}

.impact-meter-value {
  margin-left: 10px;
  font-weight: bold;
}

.scenario-comparison {
  display: flex;
  gap: 20px;
  margin: 2rem 0;
}

.scenario-card {
  flex: 1;
  padding: 1.5rem;
  border-radius: 5px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.scenario-card.baseline {
  border-top: 4px solid #3498db;
}

.scenario-card.optimistic {
  border-top: 4px solid var(--positive-color);
}

.scenario-card.pessimistic {
  border-top: 4px solid var(--negative-color);
}

.scenario-card.modified {
  border-top: 4px solid var(--neutral-color);
}

.scenario-card h4 {
  margin-bottom: 1rem;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}

.data-table th, .data-table td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid #ddd;
}

.data-table th {
  background-color: var(--primary-color);
  color: white;
}

.data-table tr:nth-child(even) {
  background-color: #f2f2f2;
}

.data-table tr:hover {
  background-color: #ddd;
}

footer {
  background-color: var(--primary-color);
  color: white;
  text-align: center;
  padding: 2rem 0;
  margin-top: 3rem;
}

footer p {
  margin-bottom: 0.5rem;
}

/* Responsive styles */
@media screen and (max-width: 768px) {
  header .container {
    flex-direction: column;
  }
  
  nav ul {
    margin-top: 1rem;
  }
  
  .pros-cons {
    flex-direction: column;
  }
  
  .timeline::after {
    left: 31px;
  }
  
  .timeline-item {
    width: 100%;
    padding-left: 70px;
    padding-right: 25px;
  }
  
  .timeline-item::before {
    left: 60px;
    border: medium solid white;
    border-width: 10px 10px 10px 0;
    border-color: transparent white transparent transparent;
  }

  .left::after, .right::after {
    left: 15px;
  }

  .right {
    left: 0%;
  }
  
  .scenario-comparison {
    flex-direction: column;
  }
}
