/* Featured Authors Page Styles */

/* Hero Section with Literary Atmosphere */
.featured-hero {
  position: relative;
  background: linear-gradient(135deg, #2d1810 0%, #4a3429 50%, #5d4037 100%);
  color: #faf7f2;
  overflow: hidden;
  padding: 4rem 0 6rem;
}

.featured-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23c4701e' fill-opacity='0.08'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
  opacity: 0.3;
}

.featured-hero-content {
  position: relative;
  z-index: 2;
  max-width: 5xl;
  margin: 0 auto;
  padding: 0 2rem;
  text-align: center;
}

.featured-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: 4rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-shadow: 0 4px 12px rgba(0,0,0,0.3);
  letter-spacing: -0.02em;
}

.featured-hero-subtitle {
  font-family: 'Lora', serif;
  font-size: 1.4rem;
  font-style: italic;
  margin-bottom: 3rem;
  opacity: 0.9;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

/* Decorative Elements */
.literary-flourish {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 2rem 0;
}

.literary-flourish::before,
.literary-flourish::after {
  content: '';
  height: 1px;
  background: linear-gradient(to right, transparent, #c4701e, transparent);
  flex: 1;
}

.literary-flourish .ornament {
  font-family: serif;
  font-size: 2rem;
  color: #c4701e;
  margin: 0 1.5rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Content Sections with Magazine-Style Layout */
.featured-content {
  background: #faf7f2;
  padding: 4rem 0;
  position: relative;
}

.content-grid {
  max-width: 6xl;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1fr 3fr 1fr;
  gap: 3rem;
  align-items: start;
}

.content-sidebar {
  position: sticky;
  top: 2rem;
}

.content-main {
  background: white;
  padding: 3rem;
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
  position: relative;
}

.content-main::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #c4701e, #8b5a2b, #c4701e);
  border-radius: 12px 12px 0 0;
}

.content-sections {
  font-family: 'Lora', serif;
  line-height: 1.8;
  color: #4a3429;
}

.content-sections h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: #2d1810;
  margin: 0 0 2rem 0;
  position: relative;
  padding-bottom: 1rem;
}

.content-sections h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: #c4701e;
  border-radius: 2px;
}

.content-sections p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  text-align: justify;
  hyphens: auto;
}

.content-sections hr {
  border: none;
  margin: 3rem 0;
  text-align: center;
  position: relative;
}

.content-sections hr::after {
  content: '❦ ❦ ❦';
  font-size: 1.5rem;
  color: #c4701e;
  background: white;
  padding: 0 1rem;
  position: relative;
  z-index: 2;
}

.content-sections hr::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, #e8dcc6, transparent);
  z-index: 1;
}

.content-sections strong {
  color: #c4701e;
  font-weight: 600;
}

.content-sections a {
  color: #c4701e;
  text-decoration: none;
  background: linear-gradient(to right, #c4701e, #c4701e) no-repeat;
  background-size: 0% 2px;
  background-position: 0 100%;
  transition: background-size 0.3s ease;
}

.content-sections a:hover {
  background-size: 100% 2px;
}

/* Sidebar Elements */
.sidebar-quote {
  background: linear-gradient(135deg, #c4701e, #8b5a2b);
  color: white;
  padding: 2rem;
  border-radius: 12px;
  margin-bottom: 2rem;
  position: relative;
  text-align: center;
}

.sidebar-quote::before {
  content: '"';
  font-family: 'Playfair Display', serif;
  font-size: 4rem;
  position: absolute;
  top: -0.5rem;
  left: 1rem;
  opacity: 0.3;
}

.sidebar-quote p {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-style: italic;
  margin: 0;
  line-height: 1.6;
}

.sidebar-stats {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.05);
  text-align: center;
}

.sidebar-stats h3 {
  font-family: 'Playfair Display', serif;
  color: #2d1810;
  margin-bottom: 1.5rem;
}

.stat-item {
  margin-bottom: 1rem;
}

.stat-number {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  color: #c4701e;
  display: block;
}

.stat-label {
  font-family: 'Lora', serif;
  font-size: 0.9rem;
  color: #8b5a2b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Authors Grid with Masonry-Style Layout */
.authors-section {
  background: linear-gradient(135deg, #f5f0e8 0%, #faf7f2 50%, #ffffff 100%);
  padding: 6rem 0;
  position: relative;
}

.authors-container {
  max-width: 7xl;
  margin: 0 auto;
  padding: 0 2rem;
}

.authors-header {
  text-align: center;
  margin-bottom: 4rem;
}

.authors-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: 3.5rem;
  font-weight: 700;
  color: #2d1810;
  margin-bottom: 1rem;
}

.authors-header p {
  font-family: 'Lora', serif;
  font-size: 1.2rem;
  color: #5d4037;
  font-style: italic;
  max-width: 600px;
  margin: 0 auto;
}

.authors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

/* Enhanced Author Cards */
.author-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transform-origin: center;
}

.author-card-link:hover {
  transform: translateY(-12px) scale(1.02);
  filter: drop-shadow(0 24px 48px rgba(0,0,0,0.15));
}

.author-card {
  position: relative;
  background: white;
  border-radius: 20px;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
  transition: all 0.4s ease;
  min-height: 420px;
  padding: 0px;
}

.card-header {
  position: relative;
  background: linear-gradient(135deg, var(--author-color-light), var(--author-color-lighter));
  padding: 2.5rem 2rem 3rem 0rem;
  text-align: center;
  color: white;
  overflow: hidden;
  border-radius: 20px 20px 0 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.card-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='white' fill-opacity='0.1'%3E%3Cpath d='M20 20c0 11.046-8.954 20-20 20v20h40V20H20z'/%3E%3C/g%3E%3C/svg%3E") repeat;
  transform: rotate(12deg);
  opacity: 0.3;
  pointer-events: none;
}

.author-avatar {
  position: relative;
  width: 100px;
  height: 100px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(10px);
  border: 3px solid rgba(255,255,255,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  color: white;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
  z-index: 2;
  overflow: hidden;
}

.avatar-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.avatar-initial {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.author-avatar::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: linear-gradient(45deg, rgba(255,255,255,0.3), transparent, rgba(255,255,255,0.3));
  z-index: -1;
}

.author-info {
  position: relative;
  z-index: 2;
  width: 100%;
  text-align: center;
}

.author-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 700;
  margin: 0 0 0.5rem 0;
  text-shadow: 0 2px 8px rgba(0,0,0,0.2);
  z-index: 2;
  position: relative;
}

.author-genre {
  font-family: 'Lora', serif;
  font-size: 0.95rem;
  font-style: italic;
  opacity: 0.9;
  z-index: 2;
  position: relative;
}

.card-content {
  padding: 2rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.notable-work {
  background: linear-gradient(135deg, var(--author-color-subtle), var(--author-color-lighter));
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border-left: 4px solid var(--author-color);
  position: relative;
}

.work-label {
  font-family: 'Lora', serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--author-color);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.work-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 600;
  font-style: italic;
  color: var(--author-color-dark);
}

.author-tagline {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-style: italic;
  color: var(--author-color);
  margin: 0 auto 1.5rem;
  padding: 0 1rem;
  position: relative;
  text-align: center;
  line-height: 1.5;
  width: 80%;
}

.author-tagline::before {
  content: '"';
  position: absolute;
  left: 0;
  top: -0.2em;
  font-size: 1.5em;
  opacity: 0.5;
}

.author-tagline::after {
  content: '"';
  position: absolute;
  right: 0;
  bottom: -0.2em;
  font-size: 1.5em;
  opacity: 0.5;
}

.author-bio {
  font-family: 'Lora', serif;
  font-size: 0.95rem;
  color: #4a3429;
  line-height: 1.7;
  flex-grow: 1;
  margin-bottom: 2rem;
  hyphens: auto;
}

.card-footer {
  margin-top: auto;
  text-align: center;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 600;
  color: white;
  background: linear-gradient(135deg, var(--author-color), var(--author-color-dark));
  padding: 1rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  position: relative;
  overflow: hidden;
}

.cta-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s ease;
}

.cta-button:hover::before {
  left: 100%;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.cta-arrow {
  transition: transform 0.3s ease;
}

.cta-button:hover .cta-arrow {
  transform: translateX(4px);
}

/* Responsive Design */
@media (max-width: 1200px) {
  .content-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .content-sidebar {
    position: static;
  }
}

@media (max-width: 768px) {
  .featured-hero h1 {
    font-size: 2.5rem;
  }
  
  .featured-hero-subtitle {
    font-size: 1.1rem;
  }
  
  .authors-header h2 {
    font-size: 2.5rem;
  }
  
  .authors-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
  }
  
  .content-main {
    padding: 2rem;
  }
  
  .author-card {
    min-height: 380px;
  }
}

@media (max-width: 480px) {
  .featured-hero {
    padding: 3rem 0 4rem;
  }
  
  .featured-hero h1 {
    font-size: 2rem;
  }
  
  .authors-container,
  .featured-hero-content {
    padding: 0 1rem;
  }
  
  .authors-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .author-card {
    min-height: 360px;

  }
}