/* Farah Uddin - Simple Author Theme */

/* ========== VARIABLES ========== */
:root {
  --emerald: #0a1f1a;
  --emerald-light: #143328;
  --gold: #c9a962;
  --gold-light: #d4bc7f;
  --cream: #f5f0e6;
  --cream-dark: #e8e0d0;
  --text: #2d2d2d;
  --text-muted: #5a5a5a;
}

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

body {
  font-family: 'Georgia', 'Times New Roman', serif;
  font-size: 18px;
  line-height: 1.7;
  color: var(--text);
  background: var(--cream);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--emerald);
  text-decoration: none;
}

a:hover {
  color: var(--gold);
}

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

a:visited:hover {
  color: var(--gold);
}

/* Visited links on dark backgrounds */
.hero a:visited,
.newsletter-section a:visited,
.site-footer a:visited {
  color: var(--gold);
}

.hero a:visited:hover,
.newsletter-section a:visited:hover,
.site-footer a:visited:hover {
  color: var(--gold-light);
}

/* Header navigation - always cream colored */
.site-header a,
.site-header a:visited,
.site-header a:hover,
.site-header a:visited:hover {
  color: var(--cream);
}

.nav-link:hover,
.nav-link:visited:hover {
  color: var(--gold);
}

/* Hero buttons - always visible */
.hero .btn-primary,
.hero .btn-primary:visited {
  background: var(--gold);
  color: var(--emerald);
}

.hero .btn-secondary,
.hero .btn-secondary:visited {
  background: transparent;
  color: var(--gold);
  border-color: var(--gold);
}

.hero .btn-primary:hover,
.hero .btn-primary:visited:hover {
  background: var(--gold-light);
  color: var(--emerald);
}

.hero .btn-secondary:hover,
.hero .btn-secondary:visited:hover {
  background: var(--gold);
  color: var(--emerald);
}

/* ========== TYPOGRAPHY ========== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Palatino Linotype', 'Book Antiqua', serif;
  font-weight: 600;
  line-height: 1.3;
  color: var(--emerald);
  margin-bottom: 1rem;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.5rem; }

p {
  margin-bottom: 1.5rem;
}

/* ========== LAYOUT ========== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ========== HEADER ========== */
.site-header {
  background: var(--emerald);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-logo {
  font-family: 'Palatino Linotype', serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 2px;
}

.site-logo:hover {
  color: var(--gold-light);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-link {
  font-family: 'Palatino Linotype', serif;
  font-size: 0.9rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 0.5rem 0;
  border-bottom: 2px solid transparent;
  transition: all 0.3s;
}

.nav-link:hover {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

/* ========== HERO ========== */
.hero {
  background: var(--emerald);
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 1.5rem;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at top left, rgba(201,169,98,0.1) 0%, transparent 50%),
              radial-gradient(ellipse at bottom right, rgba(201,169,98,0.05) 0%, transparent 50%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero-title {
  font-size: clamp(3rem, 8vw, 5rem);
  color: var(--gold);
  margin-bottom: 0.5rem;
  letter-spacing: 3px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
  font-family: 'Brush Script MT', cursive;
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  color: var(--cream);
  margin-bottom: 1rem;
  opacity: 0.9;
}

.hero-tagline {
  font-size: 1.1rem;
  color: var(--cream);
  opacity: 0.8;
  margin-bottom: 2rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ========== BUTTONS ========== */
.btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  font-family: 'Palatino Linotype', serif;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
}

.btn-primary {
  background: var(--gold);
  color: var(--emerald);
  border: 2px solid var(--gold);
}

.btn-primary:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  color: var(--emerald);
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: var(--gold);
  border: 2px solid var(--gold);
}

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

/* ========== SECTIONS ========== */
.section {
  padding: 4rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title {
  color: var(--emerald);
  margin-bottom: 0.5rem;
}

.section-subtitle {
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* ========== BOOK CARDS ========== */
.book-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}

.book-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: all 0.3s;
}

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

.book-cover {
  aspect-ratio: 2/3;
  overflow: hidden;
  background: var(--emerald);
}

.book-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.book-card:hover .book-cover img {
  transform: scale(1.05);
}

.book-info {
  padding: 1.5rem;
}

.book-genre {
  display: inline-block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  margin-bottom: 0.5rem;
}

.book-genre.fantasy { background: rgba(74,26,74,0.1); color: #4a1a4a; }
.book-genre.mystery { background: rgba(107,26,26,0.1); color: #6b1a1a; }
.book-genre.romance { background: rgba(183,110,121,0.1); color: #b76e79; }

.book-title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.book-series {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.book-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
}

.status-available { color: #2d7d32; }
.status-coming-soon { color: var(--gold); }

/* ========== GENRE CARDS ========== */
.genre-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.genre-card {
  text-align: center;
  padding: 3rem 2rem;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.3s;
  border: 2px solid transparent;
}

.genre-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.genre-card.fantasy { background: rgba(74,26,74,0.05); border-color: rgba(74,26,74,0.2); }
.genre-card.mystery { background: rgba(107,26,26,0.05); border-color: rgba(107,26,26,0.2); }
.genre-card.romance { background: rgba(183,110,121,0.05); border-color: rgba(183,110,121,0.2); }

.genre-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.genre-title {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.genre-card.fantasy .genre-title { color: #4a1a4a; }
.genre-card.mystery .genre-title { color: #6b1a1a; }
.genre-card.romance .genre-title { color: #b76e79; }

.genre-count {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ========== AUTHOR SPOTLIGHT ========== */
.author-section {
  background: white;
}

.author-inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  align-items: center;
}

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

.author-portrait img {
  width: 250px;
  height: 250px;
  object-fit: cover;
  border-radius: 50%;
  border: 5px solid var(--gold);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.author-quote {
  font-family: 'Brush Script MT', cursive;
  font-size: 2rem;
  color: var(--gold);
  margin-bottom: 1.5rem;
}

.author-bio {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.influences {
  margin-bottom: 1.5rem;
}

.influences-title {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.influence-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.influence-tag {
  background: var(--cream);
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ========== NEWSLETTER ========== */
.newsletter-section {
  background: var(--emerald);
  padding: 4rem 0;
  text-align: center;
}

.newsletter-title {
  color: var(--gold);
  margin-bottom: 1rem;
}

.newsletter-description {
  color: var(--cream);
  opacity: 0.8;
  margin-bottom: 2rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.newsletter-form {
  display: flex;
  gap: 1rem;
  justify-content: center;
  max-width: 500px;
  margin: 0 auto;
}

.newsletter-input {
  flex: 1;
  padding: 1rem 1.5rem;
  font-size: 1rem;
  border: 2px solid rgba(201,169,98,0.3);
  border-radius: 4px;
  background: rgba(255,255,255,0.05);
  color: var(--cream);
}

.newsletter-input::placeholder {
  color: rgba(245,240,230,0.5);
}

.newsletter-input:focus {
  outline: none;
  border-color: var(--gold);
}

/* ========== FOOTER ========== */
.site-footer {
  background: var(--emerald);
  padding: 3rem 0 2rem;
  color: var(--cream);
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-logo {
  font-family: 'Palatino Linotype', serif;
  font-size: 1.5rem;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.footer-tagline {
  font-size: 0.9rem;
  color: rgba(245,240,230,0.7);
  margin-bottom: 1rem;
}

.footer-title {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--gold);
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: rgba(245,240,230,0.7);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--gold);
}

.social-links {
  display: flex;
  gap: 0.75rem;
}

.social-link {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(201,169,98,0.1);
  border: 1px solid rgba(201,169,98,0.3);
  border-radius: 50%;
  color: var(--gold);
  transition: all 0.3s;
}

.social-link:hover {
  background: var(--gold);
  color: var(--emerald);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(201,169,98,0.1);
}

.footer-copyright {
  font-size: 0.85rem;
  color: rgba(245,240,230,0.5);
}

/* ========== BOOK DETAIL PAGE ========== */
.book-detail-hero {
  background: var(--emerald);
  padding: 4rem 0;
}

.book-detail-inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  align-items: start;
}

.book-detail-cover {
  max-width: 300px;
}

.book-detail-cover img {
  border-radius: 8px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}

.book-detail-content {
  color: var(--cream);
}

.book-detail-genre {
  display: inline-block;
  padding: 0.4rem 1rem;
  background: rgba(201,169,98,0.2);
  color: var(--gold);
  border-radius: 4px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}

.book-detail-title {
  color: var(--gold);
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.book-detail-series {
  color: rgba(245,240,230,0.7);
  margin-bottom: 1rem;
}

.book-detail-synopsis {
  color: rgba(245,240,230,0.9);
  margin-bottom: 2rem;
  line-height: 1.8;
}

.purchase-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.purchase-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(201,169,98,0.3);
  border-radius: 4px;
  color: var(--cream);
  font-size: 0.9rem;
  transition: all 0.3s;
}

.purchase-btn:hover {
  background: var(--gold);
  color: var(--emerald);
}

/* ========== BLOG CARDS ========== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
}

.blog-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: all 0.3s;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.blog-card-image {
  aspect-ratio: 16/10;
  overflow: hidden;
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.blog-card:hover .blog-card-image img {
  transform: scale(1.05);
}

.blog-card-content {
  padding: 1.5rem;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.blog-card-category {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0.25rem 0.5rem;
  background: var(--cream);
  border-radius: 4px;
}

.blog-card-title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.blog-card-excerpt {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.read-more {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gold);
}

.read-more:hover {
  color: var(--emerald);
}

/* ========== PAGINATION ========== */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 3rem;
}

.pagination a, .pagination span {
  padding: 0.75rem 1.5rem;
  background: white;
  border: 2px solid var(--cream-dark);
  border-radius: 4px;
  color: var(--emerald);
  font-family: 'Palatino Linotype', serif;
}

.pagination a:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* ========== KOENIG EDITOR STYLES ========== */
.kg-width-wide {
  position: relative;
  width: 85vw;
  min-width: 100%;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.kg-width-full {
  position: relative;
  width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

.kg-bookmark-card {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  overflow: hidden;
  margin: 2rem 0;
}

.kg-bookmark-container {
  display: flex;
  text-decoration: none;
  color: inherit;
}

.kg-bookmark-content {
  flex: 1;
  padding: 1.5rem;
}

.kg-bookmark-title {
  font-family: 'Palatino Linotype', serif;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--emerald);
}

.kg-bookmark-description {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }
  
  .hero-buttons {
    flex-direction: column;
  }
  
  .btn {
    width: 100%;
  }
  
  .genre-grid {
    grid-template-columns: 1fr;
  }
  
  .author-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
  
  .book-detail-inner {
    grid-template-columns: 1fr;
  }
  
  .book-detail-cover {
    max-width: 200px;
    margin: 0 auto;
  }
  
  .newsletter-form {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .social-links {
    justify-content: center;
  }
}
