/* ========================
   MY HISTORICAL FICTION and SERIES HOME CSS
   Custom styles for historical fiction section pages
   Works alongside main.css for typography and base styles
=========================== */


/* Series 1 Section (Adventures of Francis Drake) */
.series1 {
  margin: 3rem 0;
  padding: 2rem;
  border-radius: 8px;
}

.series1-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.series1-hero {
  width: 100%;
  max-width: 600px;
  height: auto;
  margin: 0 auto;
  display: block;
  border-radius: 6px;
}

.series1-summary {
  margin: 1rem 0;
  line-height: 1.6;
}

.series1-link {
  color: inherit;
  text-decoration: none;
}

.series1-link:hover {
  text-decoration: underline;
}

/* Featured Post Layout */
.featured-post {
  display: flex;
  gap: 2rem;
  margin: 3rem 0;
  align-items: flex-start;
}

.featured-post .text {
  flex: 1;
}

.featured-post .image {
  flex: 0 0 400px;
}

.featured-post .square-hero-image {
  width: 400px;
  height: 400px;
  object-fit: cover;
  border-radius: 8px;
}

/* Second Post Layout (Reverse) */
.second-post.reverse-layout {
  flex-direction: row-reverse;
}

.second-post .text {
  flex: 1;
}

.second-post .image {
  flex: 0 0 400px;
}

.second-post .square-hero-image {
  width: 400px;
  height: 400px;
  object-fit: cover;
  border-radius: 8px;
}

/* Grid Posts Section */
.grid-posts {
  margin: 3rem 0;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.grid-post {
  text-align: center;
  padding: 1rem;
  border-radius: 8px;
  transition: box-shadow 0.3s ease;
}

.grid-post:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.grid-post .grid-hero-image {
  width: 100%;
  max-width: 300px;
  height: 300px;
  object-fit: cover;
  border-radius: 6px;
  margin: 0 auto 1rem;
}

.grid-post h3 {
  margin: 1rem 0 0.5rem;
  font-size: 1.1rem;
}

.grid-post p {
  margin: 0.5rem 0;
  font-size: 0.95rem;
  line-height: 1.4;
}

/* Pagination */
.pagination {
  text-align: center;
  margin: 3rem 0;
}

/* ========================
   SERIES HOME LAYOUT
=========================== */

/* Series Summary */
.series-summary {
  font-family: 'IM Fell DW Pica SC', serif;
  margin: 2rem 0;
  padding: 1.5rem;
  font-size: 1.4rem;
  line-height: 1.6;
}

/* Drake Content Section */
.drake-content {
  display: flex;
  gap: 2rem;
  margin: 3rem 0;
  align-items: flex-start;
}

.drake-image {
  flex: 0 0 300px;
}

.drake-portrait {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.drake-text {
  flex: 1;
  line-height: 1.6;
}

/* Books Display Section */
.books-display {
  margin: 4rem 0;
}

.books-display h2 {
  text-align: center;
  margin-bottom: 2rem;
  color: #031346;
}

.books-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.book-card {
  text-align: center;
  padding: 1.5rem;
  border-radius: 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.book-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.book-image {
  width: 100%;
  max-width: 200px;
  height: auto;
  margin: 0 auto 1rem;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.book-card h3 {
  margin: 1rem 0 0.5rem;
  color: #031346;
}

.book-card p {
  margin: 0.5rem 0;
  line-height: 1.5;
  color: #333;
}

.book-card a {
  text-decoration: none;
  color: inherit;
}

.book-card a:hover {
  text-decoration: underline;
}

/* Vision Display Section */
.vision-display {
  margin: 4rem 0;
  padding: 2rem;
}

.vision-display h2 {
  text-align: center;
  margin-bottom: 2rem;
  color: #031346;
}

.vision-text {
  line-height: 1.7;
  font-size: 1.05rem;
  max-width: 800px;
  margin: 0 auto;
}

/* ========================
   BUTTON STYLES
=========================== */

.button {
  display: inline-block;
  background-color: #031346;
  color: #fff;
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  border-radius: 6px;
  font-family: 'IM Fell DW Pica SC', serif;
  font-size: 1rem;
  transition: background-color 0.3s ease, transform 0.2s ease;
  border: none;
  cursor: pointer;
}

.button:hover {
  background-color: #00102b;
  transform: translateY(-2px);
  color: #fff;
  text-decoration: none;
}

.cta-button-wrapper {
  text-align: center;
  margin: 1.5rem 0;
}

/* ========================
   RESPONSIVE DESIGN
=========================== */

/* Tablet Layout */
@media (max-width: 1024px) {
  .featured-post,
  .second-post {
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .featured-post .image,
  .second-post .image {
    flex: none;
    align-self: center;
  }
  
  .featured-post .square-hero-image,
  .second-post .square-hero-image {
    width: 300px;
    height: 300px;
  }
  
  .drake-content {
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .drake-image {
    flex: none;
    align-self: center;
  }
  
  .grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
  }
}

/* Mobile Layout */
@media (max-width: 768px) {
  .series1 {
    margin: 2rem 0;
    padding: 1.5rem;
  }
  
  .series1-hero {
    max-width: 100%;
  }
  
  .featured-post .square-hero-image,
  .second-post .square-hero-image {
    width: 250px;
    height: 250px;
  }
  
  .grid-post .grid-hero-image {
    height: 250px;
  }
  
  .drake-image {
    flex: 0 0 250px;
  }
  
  .books-container {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
  }
  
  .book-card {
    padding: 1rem;
  }
  
  .vision-display {
    padding: 1.5rem;
  }
  
  .series-summary {
    padding: 1rem;
    margin: 1.5rem 0;
  }
}

/* Small Mobile Layout */
@media (max-width: 480px) {
  .featured-post .square-hero-image,
  .second-post .square-hero-image {
    width: 200px;
    height: 200px;
  }
  
  .grid-post .grid-hero-image {
    height: 200px;
  }
  
  .drake-image {
    flex: 0 0 200px;
  }
  
  .books-container {
    grid-template-columns: 1fr;
  }
  
  .grid {
    grid-template-columns: 1fr;
  }
  
  .series1 {
    padding: 1rem;
  }
  
  .button {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
  }
}

/* ========================
   ACCESSIBILITY ENHANCEMENTS
=========================== */

/* Focus states */
.button:focus,
.series1-link:focus,
.book-card a:focus {
  outline: 2px solid #031346;
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .book-card,
  .grid-post,
  .series1 {
    border-width: 2px;
  }
  
  .button {
    border: 2px solid #fff;
  }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .book-card,
  .grid-post,
  .button {
    transition: none;
  }
  
  .book-card:hover {
    transform: none;
  }
  
  .button:hover {
    transform: none;
  }
}
/* ========================
   STORE LINKS SECTION
=========================== */

.store-links-section {
  margin: 3rem 0;
  padding: 2rem;
  border-radius: 8px;
  background-color: rgba(3, 19, 70, 0.05);
}

.store-links-section h2 {
  color: #031346;
  margin-bottom: 1.5rem;
  font-family: 'IM Fell DW Pica SC', serif;
  font-size: 1.5rem;
}

.store-links-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.store-link-item {
  margin-bottom: 0.75rem;
}

.store-link {
  color: #031346;
  text-decoration: none;
  font-size: 1.1rem;
  line-height: 1.4;
  transition: color 0.3s ease;
}

.store-link:hover {
  color: #00102b;
  text-decoration: underline;
}

.store-link:focus {
  outline: 2px solid #031346;
  outline-offset: 2px;
  border-radius: 2px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .store-links-section {
    padding: 1.5rem;
    margin: 2rem 0;
  }
  
  .store-links-section h2 {
    font-size: 1.3rem;
  }
  
  .store-link {
    font-size: 1rem;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .store-links-section {
    border: 2px solid #031346;
  }
  
  .store-link:focus {
    outline-width: 3px;
  }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .store-link {
    transition: none;
  }
}
/* ========================
   AUTHOR INFO SECTION
=========================== */

.author-info-section {
  margin: 3rem 0;
  padding: 2rem;
  border-radius: 8px;
  background-color: rgba(3, 19, 70, 0.03);
}

.author-info-section h2 {
  color: #031346;
  margin-bottom: 1.5rem;
  font-family: 'IM Fell DW Pica SC', serif;
  font-size: 1.5rem;
}

.author-info-summary {
  margin: 0;
  line-height: 1.6;
  font-size: 1.1rem;
}

.author-info-link {
  color: #031346;
  text-decoration: none;
  transition: color 0.3s ease;
}

.author-info-link:hover {
  color: #00102b;
  text-decoration: underline;
}

.author-info-link:focus {
  outline: 2px solid #031346;
  outline-offset: 2px;
  border-radius: 2px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .author-info-section {
    padding: 1.5rem;
    margin: 2rem 0;
  }
  
  .author-info-section h2 {
    font-size: 1.3rem;
  }
  
  .author-info-summary {
    font-size: 1rem;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .author-info-section {
    border: 2px solid #031346;
  }
  
  .author-info-link:focus {
    outline-width: 3px;
  }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .author-info-link {
    transition: none;
  }
}
/* ========================
   HISTORICAL FICTION HOME PAGE STYLES
   Add to my-historical-fiction.css - these styles are prefixed with hf-home-
   to avoid conflicts with existing series-home styles
=========================== */

/* ========================
   HF HOME MAIN LAYOUT
=========================== */

.hf-home {
  /* Inherits content-container styles from main.css */
}

.hf-home-main-layout {
  display: flex;
  gap: 2rem;
  margin: 2rem 0 3rem;
  align-items: flex-start;
}

.hf-home-left-content {
  flex: 1;
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}
/* ========================
   HISTORICAL FICTION HOME PAGE STYLES
   Add to my-historical-fiction.css - these styles are prefixed with hf-home-
   to avoid conflicts with existing series-home styles
=========================== */



/* ========================
   HF HOME MAIN LAYOUT
=========================== */

.hf-home {
  /* Inherits content-container styles from main.css */
}

.hf-home-main-layout {
  display: flex;
  gap: 2rem;
  margin: 2rem 0 3rem;
  align-items: flex-start;
}

.hf-home-left-content {
  flex: 1;
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

.hf-home-portrait-wrapper {
  flex: 0 0 200px;
}

.hf-home-portrait {
  width: 200px;
  height: 300px;
  object-fit: cover;
}

.hf-home-content-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.hf-home-page-content {
  line-height: 1.6;
}

.hf-home-announcement {
  background-color: rgba(3, 19, 70, 0.05);
  padding: 1.5rem;
}

.hf-home-announcement h3 {
  margin-top: 0;
  margin-bottom: 1rem;
  color: #031346;
}

.hf-home-announcement p {
  margin-bottom: 1rem;
  line-height: 1.5;
}

/* ========================
   HF HOME FEATURE AREAS
=========================== */

.hf-home-feature1,
.hf-home-feature2 {
  margin: 3rem 0;
  padding: 2rem 0;
}

.hf-home-feature1 h2,
.hf-home-feature2 h2 {
  text-align: center;
  color: #031346;
  margin-bottom: 2rem;
}

.hf-home-feature1-hero-wrapper {
  text-align: center;
  margin: 2rem 0;
}

.hf-home-feature1-hero {
  max-width: 100%;
  width: auto;
  height: auto;
  max-height: 600px;
}

.hf-home-feature1-description {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
  padding: 0 2rem;
}

.hf-home-feature1-description p {
  font-size: 1.1rem;
  line-height: 1.6;
  margin: 1.5rem 0;
}

/* Feature Area 2 Layout */
.hf-home-feature2-content {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  margin: 2rem 0;
}

.hf-home-feature2-image {
  flex: 0 0 200px;
}

.hf-home-feature2-square-image {
  width: 200px;
  height: 200px;
  object-fit: cover;
}

.hf-home-feature2-text {
  flex: 1;
}

.hf-home-feature2-text p {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.hf-home-feature2-text a {
  color: inherit;
  text-decoration: none;
}

.hf-home-feature2-text a:hover {
  text-decoration: underline;
}

/* ========================
   HF HOME RECENT POSTS
=========================== */

.hf-home-recent-posts {
  margin: 4rem 0;
}

.hf-home-recent-posts h2 {
  text-align: center;
  color: #031346;
  margin-bottom: 2rem;
}

.hf-home-posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

.hf-home-post-card {
  text-align: center;
}

.hf-home-post-image {
  width: 200px;
  height: 200px;
  object-fit: cover;
  margin: 0 auto 1rem;
  display: block;
}

.hf-home-post-summary {
  margin-top: 1rem;
}

.hf-home-post-summary p {
  font-size: 0.95rem;
  line-height: 1.4;
  margin: 0;
}

.hf-home-post-summary a {
  color: inherit;
  text-decoration: none;
}

.hf-home-post-summary a:hover {
  text-decoration: underline;
}

/* ========================
   HF HOME RESPONSIVE DESIGN
=========================== */

/* Tablet Layout */
@media (max-width: 1024px) {
  .hf-home-main-layout {
    flex-direction: column;
    gap: 2rem;
  }
  
  .hf-home-left-content {
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .hf-home-portrait-wrapper {
    flex: none;
    text-align: center;
  }
  
  .hf-home-announcement {
    flex: none;
    max-width: 100%;
  }
  
  .hf-home-feature2-content {
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
  }
  
  .hf-home-feature2-image {
    flex: none;
  }
  
  .hf-home-posts-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

/* ========================
   HF HOME MOBILE RESPONSIVE FIXES
   Add these rules to your my-historical-fiction.css file
   Replace the existing mobile responsive section for hf-home
=========================== */

/* Mobile Layout - 768px and below */
@media (max-width: 768px) {
  /* Main layout becomes vertical stack */
  .hf-home-main-layout {
    flex-direction: column;
    gap: 2rem;
    align-items: center; /* Center all content */
  }
  
  /* Left content becomes vertical stack */
  .hf-home-left-content {
    flex-direction: column;
    gap: 1.5rem;
    align-items: center; /* Center portrait and content */
    width: 100%;
  }
  
  /* Portrait wrapper - centered */
  .hf-home-portrait-wrapper {
    flex: none;
    text-align: center;
    align-self: center; /* Ensure centering */
  }
  
  /* Portrait image */
  .hf-home-portrait {
    width: 150px;
    height: 225px;
    display: block;
    margin: 0 auto; /* Ensure centering */
  }
  
  /* Content column - full width but centered text where appropriate */
  .hf-home-content-column {
    width: 100%;
    max-width: 600px; /* Prevent overly wide text */
  }
  
  /* Announcement styling */
  .hf-home-announcement {
    padding: 1rem;
    width: 100%;
    box-sizing: border-box;
  }
  
  /* Feature sections */
  .hf-home-feature1-description {
    padding: 0 1rem;
  }
  
  .hf-home-feature2-content {
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
  }
  
  .hf-home-feature2-square-image {
    width: 150px;
    height: 150px;
  }
  
  .hf-home-feature2-image {
    flex: 0 0 150px;
    text-align: center;
  }
  
  /* Posts grid */
  .hf-home-post-image {
    width: 150px;
    height: 150px;
  }
  
  .hf-home-posts-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* Small Mobile Layout - 480px and below */
@media (max-width: 480px) {
  .hf-home-main-layout {
    gap: 1.5rem;
    padding: 0 1rem; /* Add some padding on very small screens */
  }
  
  .hf-home-left-content {
    gap: 1rem;
  }
  
  /* Even smaller portrait on very small screens */
  .hf-home-portrait {
    width: 120px;
    height: 180px;
  }
  
  .hf-home-portrait-wrapper {
    align-self: center;
  }
  
  .hf-home-announcement {
    padding: 0.75rem;
  }
  
  .hf-home-feature1,
  .hf-home-feature2 {
    margin: 2rem 0;
    padding: 1rem 0;
  }
  
  .hf-home-feature1-description {
    padding: 0 0.5rem;
  }
  
  .hf-home-feature2-square-image {
    width: 120px;
    height: 120px;
  }
  
  .hf-home-feature2-image {
    flex: 0 0 120px;
    text-align: center;
  }
  
  .hf-home-post-image {
    width: 120px;
    height: 120px;
  }
  
  .hf-home-post-card {
    padding: 0.5rem;
  }
}


/* ========================
   HF HOME ACCESSIBILITY
=========================== */

/* Focus states */
.hf-home-announcement a:focus,
.hf-home-feature2-text a:focus,
.hf-home-post-summary a:focus {
  outline: 2px solid #031346;
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .hf-home-announcement {
    border-width: 2px;
  }
  
  .hf-home-post-card {
    border: 2px solid transparent;
  }
  
  .hf-home-post-card:hover {
    border-color: #031346;
  }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .hf-home-post-card {
    transition: none;
  }
}/* ========================
   SKIP LINK (WCAG REQUIREMENT)
=========================== */

.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: #000;
  color: #fff;
  padding: 8px;
  text-decoration: none;
  z-index: 100;
  border-radius: 4px;
}

.skip-link:focus {
  top: 6px;
}

/* ========================
   VISUALLY HIDDEN (WCAG REQUIREMENT)
=========================== */

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