/* Main Styles for Provence Shopping Guide Website */

:root {
  --primary-color: #7a9e9f;
  --secondary-color: #e8c4c4;
  --accent-color: #b8d8d8;
  --background-color: #f9f7f3;
  --text-color: #333333;
  --header-font: 'Playfair Display', serif;
  --body-font: 'Lato', sans-serif;
}

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

body {
  font-family: var(--body-font);
  background-color: var(--background-color);
  color: var(--text-color);
  line-height: 1.6;
}

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

header {
  background-color: var(--primary-color);
  color: white;
  padding: 20px 0;
  text-align: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

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

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

nav {
  background-color: white;
  padding: 15px 0;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

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

nav ul li {
  margin: 0 15px;
}

nav ul li a {
  text-decoration: none;
  color: var(--primary-color);
  font-weight: bold;
  padding: 5px 10px;
  border-radius: 3px;
  transition: all 0.3s ease;
}

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

main {
  padding: 30px 0;
}

section {
  margin-bottom: 40px;
}

h2 {
  font-family: var(--header-font);
  color: var(--primary-color);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--secondary-color);
}

h3 {
  font-family: var(--header-font);
  color: var(--primary-color);
  margin: 25px 0 15px;
}

p {
  margin-bottom: 15px;
}

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

.card h3 {
  margin-top: 0;
}

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

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

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

table tr:hover {
  background-color: #f5f5f5;
}

.btn {
  display: inline-block;
  background-color: var(--primary-color);
  color: white;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  margin-top: 10px;
  transition: background-color 0.3s ease;
}

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

footer {
  background-color: var(--primary-color);
  color: white;
  text-align: center;
  padding: 20px 0;
  margin-top: 40px;
}

/* Responsive styles */
@media (max-width: 768px) {
  header h1 {
    font-size: 2rem;
  }
  
  nav ul {
    flex-direction: column;
    align-items: center;
  }
  
  nav ul li {
    margin: 5px 0;
  }
  
  table {
    display: block;
    overflow-x: auto;
  }
}

/* Category-specific styles */
.category-women {
  border-left: 5px solid #e8c4c4;
}

.category-baby {
  border-left: 5px solid #b8d8d8;
}

.category-essentials {
  border-left: 5px solid #d8c3a5;
}

.price {
  font-weight: bold;
  color: #555;
}

.features {
  font-style: italic;
  color: #666;
}

/* Budget section styling */
.budget-section {
  background-color: #f0f7f7;
  padding: 20px;
  border-radius: 5px;
  margin: 30px 0;
}

.budget-option {
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px dashed #ccc;
}

.budget-option:last-child {
  border-bottom: none;
}

/* Print styles */
@media print {
  nav, footer, .btn {
    display: none;
  }
  
  body {
    background-color: white;
  }
  
  .container {
    width: 100%;
    max-width: none;
  }
  
  h2, h3 {
    page-break-after: avoid;
  }
  
  table {
    page-break-inside: avoid;
  }
}

/* Additional styles to enhance the Provence Shopping Guide Website */

/* Active navigation styling */
nav ul li a.active {
  background-color: var(--accent-color);
  color: white;
}

/* Back to top button */
#back-to-top {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: var(--primary-color);
  color: white;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  text-align: center;
  line-height: 50px;
  font-size: 20px;
  cursor: pointer;
  z-index: 99;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  transition: background-color 0.3s ease;
}

#back-to-top:hover {
  background-color: var(--secondary-color);
}

/* Print button styling */
.print-btn {
  background-color: var(--accent-color);
  color: var(--text-color);
  border: none;
  padding: 8px 15px;
  border-radius: 3px;
  cursor: pointer;
  margin-top: 20px;
  font-family: var(--body-font);
  font-weight: bold;
  display: inline-flex;
  align-items: center;
  transition: background-color 0.3s ease;
}

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

.print-btn::before {
  content: "🖨️";
  margin-right: 5px;
}

/* Hero section for homepage */
.hero {
  background-image: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), url('../images/provence-lavender.jpeg');
  background-size: cover;
  background-position: center;
  color: white;
  text-align: center;
  padding: 100px 0;
  margin-bottom: 30px;
}

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

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

/* Card hover effects */
.card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Category indicators */
.category-indicator {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 3px;
  font-size: 0.8rem;
  margin-bottom: 10px;
  font-weight: bold;
}

.indicator-women {
  background-color: #e8c4c4;
  color: #333;
}

.indicator-baby {
  background-color: #b8d8d8;
  color: #333;
}

.indicator-essentials {
  background-color: #d8c3a5;
  color: #333;
}

/* Image gallery */
.image-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 15px;
  margin: 20px 0;
}

.gallery-item {
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.gallery-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* Breadcrumb navigation */
.breadcrumb {
  display: flex;
  list-style: none;
  padding: 10px 0;
  margin-bottom: 20px;
  font-size: 0.9rem;
}

.breadcrumb li {
  display: flex;
  align-items: center;
}

.breadcrumb li:not(:last-child)::after {
  content: "›";
  margin: 0 10px;
  color: #999;
}

.breadcrumb a {
  color: var(--primary-color);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

/* Enhanced table styling */
table {
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

table tr:nth-child(even) {
  background-color: #f9f9f9;
}

/* Tooltip for prices */
.price {
  position: relative;
  cursor: help;
}

.price:hover::after {
  content: "Estimated price - may vary by retailer";
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background-color: #333;
  color: white;
  padding: 5px 10px;
  border-radius: 3px;
  font-size: 0.8rem;
  white-space: nowrap;
  z-index: 1;
}

/* Enhanced footer */
footer {
  background-color: var(--primary-color);
  color: white;
  padding: 30px 0;
  margin-top: 60px;
}

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

.footer-section {
  flex: 1;
  min-width: 200px;
  margin-bottom: 20px;
}

.footer-section h3 {
  color: white;
  margin-top: 0;
  border-bottom: 1px solid rgba(255,255,255,0.2);
  padding-bottom: 10px;
}

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

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

.footer-section a {
  color: white;
  text-decoration: none;
}

.footer-section a:hover {
  text-decoration: underline;
}

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

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.fade-in {
  animation: fadeIn 0.5s ease-in;
}

/* Additional responsive adjustments */
@media (max-width: 600px) {
  .card {
    padding: 15px;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  h3 {
    font-size: 1.2rem;
  }
  
  .hero {
    padding: 60px 0;
  }
  
  .hero h2 {
    font-size: 1.8rem;
  }
  
  .footer-section {
    flex: 100%;
  }
}
