/* ============================================================================
   Gaia Publishing Books - Website Styles
   Italian Flag Color Scheme Implementation
   ============================================================================ */

/* CSS Custom Properties - Italian Flag Colors */
:root {
  /* Italian Flag Colors */
  --italian-green: #009246;
  --italian-white: #FFFFFF;
  --italian-red: #CE2B37;
  
  /* Text Colors */
  --text-primary: #333333;
  --text-secondary: #666666;
  --text-light: #999999;
  
  /* Background Colors */
  --bg-primary: #FFFFFF;
  --bg-light: #F8F9FA;
  --border-light: #E9ECEF;
  
  /* Interactive States */
  --link-color: var(--italian-green);
  --link-hover: var(--italian-red);
  --link-visited: #006B33;
  
  /* Typography */
  --font-family-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  --font-family-serif: Georgia, 'Times New Roman', Times, serif;
  
  /* Layout */
  --container-max-width: 1200px;
  --container-padding: 1rem;
  --section-padding: 3rem 0;
}

/* ============================================================================
   Reset and Base Styles
   ============================================================================ */

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

html {
  font-size: 16px;
  line-height: 1.6;
}

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

/* ============================================================================
   Layout Components
   ============================================================================ */

.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* ============================================================================
   Header Styles
   ============================================================================ */

.site-header.banner {
  position: relative;
  max-width: 1200px;
  margin: 2rem auto;
  height: 300px;
  background-color: #000; /* Fallback color */
  background-image: url('../assets/images/gaia-5-728px.png');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  text-align: center;
}

.site-header.banner h1 {
  font-size: 3rem;
  font-weight: bold;
  margin: 0;
  color: var(--text-primary); /* Dark text color */
  text-shadow: 1px 1px 3px rgba(255, 255, 255, 0.9); /* Light shadow for contrast */
}

/* ============================================================================
   Main Content Styles
   ============================================================================ */

.main-content {
  padding: var(--section-padding);
  min-height: 60vh;
}

.welcome-section {
  max-width: 800px;
  margin: 0 auto;
}

/* ============================================================================
   Typography
   ============================================================================ */

.lead-paragraph {
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--text-primary);
  margin-bottom: 2rem;
}

p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  line-height: 1.8;
}

p:last-child {
  margin-bottom: 0;
}

/* ============================================================================
   Footer Styles
   ============================================================================ */

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

.copyright {
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin: 0;
}

.footer-flag {
  width: 20px;
  height: auto;
  opacity: 0.8;
}

/* ============================================================================
   Image Styles
   ============================================================================ */

.image-section {
  text-align: center;
  margin: 2rem 0;
}

.content-image {
  width: 100%;
  max-width: 750px;
  height: auto;
  width: auto;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: block;
  margin: 0 auto;
}

.content-image:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}



/* ============================================================================
   Custom Styles
   ============================================================================ */

.welcome-section strong {
  font-weight: normal;
}

#about-author {
  margin-top: 4rem;
}

/* ============================================================================
   Interactive Elements
   ============================================================================ */

a {
  color: var(--link-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

a:visited {
  color: var(--link-visited);
}

a:focus {
  outline: 2px solid var(--italian-green);
  outline-offset: 2px;
}

/* ============================================================================
   Responsive Design
   ============================================================================ */

/* Tablet Styles */
@media (max-width: 768px) {
  :root {
    --container-padding: 1rem;
    --section-padding: 2rem 0;
  }
  
  .site-title {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .lead-paragraph {
    font-size: 1.1rem;
    padding: 1rem;
  }
  
  p {
    font-size: 1rem;
  }
  
  .copyright {
    flex-direction: column;
    gap: 0.5rem;
  }
}

/* Mobile Styles */
@media (max-width: 480px) {
  :root {
    --container-padding: 0.75rem;
    --section-padding: 1.5rem 0;
  }
  
  .site-header {
    padding: 1.5rem 0;
  }
  
  .lead-paragraph {
    margin-left: -0.75rem;
    margin-right: -0.75rem;
    border-radius: 0;
  }
}

/* ============================================================================
   Print Styles
   ============================================================================ */

@media print {
  .site-header {
    background: none !important;
    color: var(--text-primary) !important;
  }
  
  .site-title {
    color: var(--text-primary) !important;
  }
  
  .flag-icon,
  .footer-flag {
    display: none;
  }
  
  .lead-paragraph {
    background: none !important;
    border: 1px solid var(--border-light) !important;
  }
  
  .site-footer {
    background: none !important;
    color: var(--text-primary) !important;
    border-top: 2px solid var(--border-light);
  }
}

/* ============================================================================
   Accessibility Enhancements
   ============================================================================ */

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --text-primary: #000000;
    --text-secondary: #000000;
    --bg-primary: #FFFFFF;
  }
  
  .site-title {
    color: var(--text-primary);
    font-weight: 900;
  }
  
  .lead-paragraph {
    border-left-width: 6px;
  }
}

/* Focus styles for keyboard navigation */
.site-title:focus,
.copyright:focus {
  outline: 3px solid var(--italian-green);
  outline-offset: 4px;
}

/* ============================================================================
   Utility Classes
   ============================================================================ */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

/* Banner Styles */
.banner {
    position: relative;
    max-width: 1200px; /* Match the container width */
    margin: 2rem auto; /* Center it and give some space */
    height: 300px; /* Adjust height as needed */
    background-color: var(--italian-white); /* Add a solid background color */
    background-image: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)), url('../assets/images/gaia-5-728px.png'); /* Add a subtle dark overlay for contrast */
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px; /* Add some rounded corners */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); /* Add a subtle shadow */
}

.banner-text {
    text-align: center;
    color: #FFFFFF; /* Change text color to white to pop against the darker overlay */
}

.banner-text h1 {
    font-size: 3rem;
    font-weight: bold;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7); /* Add a stronger, dark shadow for readability */
}
.hero-text-large {
  font-size: 2em;
}
