/* Los Angeles Real Estate Market Report Website Styles */

:root {
  --primary-color: #2c3e50;
  --secondary-color: #e74c3c;
  --accent-color: #3498db;
  --light-color: #ecf0f1;
  --dark-color: #2c3e50;
  --text-color: #333;
  --light-text: #f8f9fa;
  --font-main: 'Open Sans', sans-serif;
  --font-heading: 'Montserrat', sans-serif;
}

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

body {
  font-family: var(--font-main);
  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: var(--light-text);
  padding: 2rem 0;
  text-align: center;
}

header h1 {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

header p {
  font-size: 1.2rem;
  opacity: 0.9;
}

nav {
  background-color: var(--dark-color);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

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

nav ul li {
  margin: 0 1rem;
}

nav ul li a {
  color: var(--light-text);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s;
}

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

main {
  padding: 2rem 0;
}

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

h2 {
  font-family: var(--font-heading);
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--accent-color);
}

h3 {
  font-family: var(--font-heading);
  color: var(--primary-color);
  margin: 1.5rem 0 1rem;
}

p {
  margin-bottom: 1rem;
}

ul, ol {
  margin-left: 2rem;
  margin-bottom: 1.5rem;
}

li {
  margin-bottom: 0.5rem;
}

.highlight {
  background-color: rgba(52, 152, 219, 0.1);
  padding: 1.5rem;
  border-left: 4px solid var(--accent-color);
  margin: 1.5rem 0;
}

.data-point {
  font-weight: bold;
  color: var(--secondary-color);
}

.chart-container {
  margin: 2rem 0;
  height: 400px;
  width: 100%;
}

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

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

table th {
  background-color: var(--primary-color);
  color: var(--light-text);
}

table tr:nth-child(even) {
  background-color: rgba(236, 240, 241, 0.5);
}

.forecast {
  background-color: rgba(46, 204, 113, 0.1);
  border-left: 4px solid #2ecc71;
}

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

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

.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background-color: var(--accent-color);
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  font-size: 1.5rem;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  transition: background-color 0.3s;
}

.back-to-top:hover {
  background-color: var(--primary-color);
}

/* Responsive styles */
@media (max-width: 768px) {
  header h1 {
    font-size: 2rem;
  }
  
  nav ul {
    flex-direction: column;
    align-items: center;
  }
  
  nav ul li {
    margin: 0.5rem 0;
  }
  
  .chart-container {
    height: 300px;
  }
}
