/* Main Styles for Target Demographics Website */

:root {
  --target-red: #cc0000;
  --target-light-red: #ff3333;
  --target-dark-red: #990000;
  --light-gray: #f5f5f5;
  --medium-gray: #e0e0e0;
  --dark-gray: #333333;
  --white: #ffffff;
  --black: #000000;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

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

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

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

/* Header Styles */
header {
  background-color: var(--target-red);
  color: var(--white);
  padding: 20px 0;
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 40px;
  margin-right: 10px;
}

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

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

nav ul li {
  margin-left: 20px;
}

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

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

/* Hero Section */
.hero {
  background: linear-gradient(rgba(204, 0, 0, 0.8), rgba(204, 0, 0, 0.8)), url('../images/target-store.jpg');
  background-size: cover;
  background-position: center;
  color: var(--white);
  padding: 80px 0;
  text-align: center;
}

.hero h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto 30px;
}

/* Main Content */
main {
  padding: 40px 0;
}

section {
  margin-bottom: 60px;
}

h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: var(--target-red);
}

h3 {
  font-size: 1.5rem;
  margin: 30px 0 15px;
  color: var(--target-dark-red);
}

h4 {
  font-size: 1.2rem;
  margin: 20px 0 10px;
}

p {
  margin-bottom: 15px;
}

ul, ol {
  margin: 15px 0 15px 20px;
}

li {
  margin-bottom: 8px;
}

blockquote {
  border-left: 4px solid var(--target-red);
  padding-left: 20px;
  margin: 20px 0;
  font-style: italic;
}

/* Data Visualization Section */
.chart-container {
  background-color: var(--light-gray);
  border-radius: 8px;
  padding: 20px;
  margin: 30px 0;
  box-shadow: var(--shadow);
}

.chart {
  width: 100%;
  height: 400px;
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}

th, td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid var(--medium-gray);
}

th {
  background-color: var(--target-red);
  color: var(--white);
}

tr:nth-child(even) {
  background-color: var(--light-gray);
}

/* Cards for Demographics Sections */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 30px 0;
}

.card {
  flex: 1 1 300px;
  background-color: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s;
}

.card:hover {
  transform: translateY(-5px);
}

.card-header {
  background-color: var(--target-red);
  color: var(--white);
  padding: 15px;
}

.card-body {
  padding: 20px;
}

/* Footer */
footer {
  background-color: var(--dark-gray);
  color: var(--white);
  padding: 40px 0;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.footer-section {
  flex: 1 1 300px;
  margin-bottom: 20px;
}

.footer-section h3 {
  color: var(--white);
  margin-bottom: 15px;
}

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

.footer-section ul li {
  margin-bottom: 10px;
}

.footer-section a {
  color: var(--medium-gray);
  text-decoration: none;
  transition: color 0.3s;
}

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

.copyright {
  text-align: center;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
  }
  
  nav ul {
    margin-top: 20px;
  }
  
  .hero h2 {
    font-size: 2rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .chart {
    height: 300px;
  }
}

@media (max-width: 480px) {
  nav ul {
    flex-direction: column;
    align-items: center;
  }
  
  nav ul li {
    margin: 10px 0;
  }
  
  .hero {
    padding: 60px 0;
  }
  
  h2 {
    font-size: 1.8rem;
  }
  
  .chart {
    height: 250px;
  }
}

/* Interactive Elements */
.tab-container {
  margin: 30px 0;
}

.tabs {
  display: flex;
  border-bottom: 1px solid var(--medium-gray);
}

.tab {
  padding: 10px 20px;
  cursor: pointer;
  background-color: var(--light-gray);
  border: 1px solid var(--medium-gray);
  border-bottom: none;
  margin-right: 5px;
  border-radius: 5px 5px 0 0;
}

.tab.active {
  background-color: var(--white);
  border-bottom: 1px solid var(--white);
  margin-bottom: -1px;
  color: var(--target-red);
  font-weight: bold;
}

.tab-content {
  display: none;
  padding: 20px;
  border: 1px solid var(--medium-gray);
  border-top: none;
  background-color: var(--white);
}

.tab-content.active {
  display: block;
}

/* Button Styles */
.btn {
  display: inline-block;
  padding: 10px 20px;
  background-color: var(--target-red);
  color: var(--white);
  text-decoration: none;
  border-radius: 4px;
  font-weight: 600;
  transition: background-color 0.3s;
  border: none;
  cursor: pointer;
}

.btn:hover {
  background-color: var(--target-dark-red);
}

.btn-secondary {
  background-color: var(--dark-gray);
}

.btn-secondary:hover {
  background-color: var(--black);
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.mt-20 {
  margin-top: 20px;
}

.mb-20 {
  margin-bottom: 20px;
}

.highlight {
  background-color: rgba(204, 0, 0, 0.1);
  padding: 2px 5px;
  border-radius: 3px;
}
