/* index.css */

/* --- CSS Variables & Global Styles --- */
:root {
  --primary-color: #005f73;
  --secondary-color: #0a9396;
  --accent-color: #94d2bd;
  --background-color: #f8f9fa;
  --text-color: #343a40;
  --heading-color: #003e52;
  --border-color: #dee2e6;
  --white: #ffffff;
  --light-gray: #e9ecef;
}

body {
  font-family: "Roboto", "Segoe UI", Arial, sans-serif;
  background-color: var(--background-color);
  margin: 0;
  color: var(--text-color);
  line-height: 1.7;
}

/* --- Header & Navigation --- */
header {
  background: var(--white);
  padding: 1.5rem 1rem;
  text-align: center;
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-logo {
  /* New CSS for your logo */
  max-width: 150px; /* Adjust as needed */
  height: auto;
  margin-bottom: 1rem; /* Space between logo and title */
}

header h1 {
  margin: 0 0 1rem 0;
  font-family: "Lora", serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--heading-color);
}

nav a {
  color: var(--primary-color);
  text-decoration: none;
  margin: 0 1rem;
  font-weight: 500;
  transition: color 0.3s ease;
}

nav a:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

/* --- Main Content & Sections --- */
main {
  max-width: 850px;
  margin: 2.5rem auto;
  background: var(--white);
  padding: 2rem 2.5rem;
  border-radius: 8px;
  box-shadow: 0 8px 25px rgba(0, 95, 115, 0.08);
}

section {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--light-gray);
}
section:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

h2 {
  color: var(--heading-color);
  font-family: "Lora", serif;
  font-size: 1.9rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

h3 {
  color: var(--primary-color);
  font-size: 1.4rem;
  font-weight: 600;
  margin: 2rem 0 1rem 0;
}

/* --- Common Elements --- */
ul,
ol {
  padding-left: 1.5rem;
}

li {
  margin-bottom: 0.8rem;
}

.product-img {
  max-width: 220px;
  float: right;
  margin: 0 0 1rem 2rem;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  padding: 5px;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-size: 0.95rem;
}

th,
td {
  border: 1px solid var(--border-color);
  padding: 0.8rem 1rem;
  text-align: left;
}

th {
  background: var(--primary-color);
  color: var(--white);
  font-weight: 600;
}

tr:nth-child(even) td {
  background: var(--background-color);
}

.quote {
  border-left: 4px solid var(--secondary-color);
  background-color: #f1fafa;
  padding: 0.1rem 1.5rem;
  margin: 2rem 0;
  font-family: "Lora", serif;
  font-style: italic;
  font-size: 1.1rem;
  color: #495057;
}

.quote span {
  display: block;
  margin-top: 1rem;
  font-style: normal;
  font-weight: 600;
  color: var(--primary-color);
  text-align: right;
}

/* --- Verdict & CTA --- */
.verdict-section {
  text-align: center;
  background-color: #f1fafa;
  padding: 2rem;
  margin: 2rem -2.5rem -2rem -2.5rem; /* Extends to edges of main */
  border-radius: 0 0 8px 8px;
}
.verdict-section h2 {
  margin-bottom: 1rem;
}

.score {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--secondary-color);
  margin: 1rem 0;
}

.cta {
  background: var(--secondary-color);
  color: var(--white);
  padding: 0.8rem 1.8rem;
  border-radius: 50px;
  text-align: center;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-shadow: 0 4px 10px rgba(10, 147, 150, 0.3);
}

.cta:hover {
  background: var(--primary-color);
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 95, 115, 0.3);
}

.affiliate-notice {
  font-size: 0.8rem;
  color: #6c757d;
  margin-top: 1rem;
}

/* --- Footer --- */
footer {
  text-align: center;
  padding: 2rem 1rem;
  margin-top: 2rem;
  font-size: 0.9rem;
  color: #6c757d;
  background-color: var(--light-gray);
  border-top: 1px solid var(--border-color);
}

.footer-content {
  max-width: 850px;
  margin: 0 auto;
}

.author-box {
  margin-bottom: 1.5rem;
  padding: 1rem;
  background-color: #fff;
  border-radius: 8px;
  text-align: left;
}
.author-box h3 {
  margin-top: 0;
}
.copyright {
  margin-top: 1rem;
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
  header h1 {
    font-size: 1.8rem;
  }
  main {
    padding: 1.5rem;
    margin: 1.5rem;
  }
  h2 {
    font-size: 1.6rem;
  }
  .product-img {
    float: none;
    display: block;
    margin: 0 auto 2rem auto;
    max-width: 180px;
  }
  .verdict-section {
    margin: 2rem -1.5rem -1.5rem -1.5rem;
  }
  .header-logo {
    /* Responsive adjustments for your logo */
    max-width: 100px;
  }
}
