/* Heart Book Radio - Romance Novel Landing Page CSS */

:root {
  --primary-color: #c72e5a; /* Deeper rose */
  --secondary-color: #a97bff; /* Softer purple */
  --accent-color: #ffd6e0; /* Slightly darker light pink */
  --text-color: #2e353f;
  --bg-color: #fffcfd;
  --card-bg: #ffffff;
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  --card-shadow: 0 5px 15px rgba(199, 46, 90, 0.1);
  --radius: 10px;
  --font-primary: "Cormorant Garamond", Georgia, serif;
  --font-title: "Abril Fatface", cursive;
  --font-secondary: "Montserrat", sans-serif;
  --transition: all 0.25s ease;
}

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

body {
  font-family: var(--font-secondary);
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--bg-color);
  font-size: 16px;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem;
}

/* Enhanced Header */
header {
  text-align: center;
  margin-bottom: 3rem;
  padding: 3rem 0;
  position: relative;
  background: linear-gradient(
    135deg,
    var(--bg-color) 0%,
    var(--accent-color) 100%
  );
  border-radius: 0 0 30px 30px;
  box-shadow: 0 5px 20px rgba(199, 46, 90, 0.08);
}

.header-content {
  position: relative;
  z-index: 1;
}

h1,
h2,
h3 {
  font-family: var(--font-primary);
  color: var(--primary-color);
  line-height: 1.3;
}

/* Stylish Title */
.site-title {
  font-family: var(--font-title);
  font-size: 4rem;
  margin-bottom: 1rem;
  font-weight: 400;
  letter-spacing: -0.5px;
  color: var(--primary-color);
  position: relative;
  display: inline-block;
  padding: 0 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.site-title::before {
  content: "♥";
  position: absolute;
  font-size: 1.5rem;
  color: var(--primary-color);
  opacity: 0.6;
  left: -30px;
  top: 50%;
  transform: translateY(-50%);
}

.site-description {
  font-size: 1.25rem;
  color: #666;
  font-weight: 400;
  max-width: 600px;
  margin: 0 auto;
  font-style: italic;
  position: relative;
}

.site-description::after {
  content: "";
  display: block;
  width: 80px;
  height: 3px;
  background: linear-gradient(
    to right,
    transparent,
    var(--primary-color),
    transparent
  );
  margin: 1.5rem auto 0;
}

/* Search Styling */
.search-container {
  margin: 2.5rem auto;
  display: flex;
  justify-content: center;
  max-width: 600px;
  position: relative;
}

.search-container::before {
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2rem;
  color: #aaa;
}

.search-input {
  width: 100%;
  padding: 0.9rem 1.5rem 0.9rem 3rem;
  border: 2px solid #eee;
  border-radius: 30px;
  font-size: 1rem;
  background-color: white;
  transition: var(--transition);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.search-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 3px 12px rgba(199, 46, 90, 0.1);
}

/* Books Grid Layout */
.books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 2.5rem;
}

/* Book Card Styling */
.book-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
}

.book-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 8px 20px rgba(199, 46, 90, 0.15);
}

/* Book Cover - Properly Sized */
.book-cover {
  position: relative;
  width: 100%;
  padding-top: 140%; /* Aspect ratio for book covers */
  background-color: #f5f5f5;
  border-bottom: 1px solid #eee;
}

.book-cover img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain; /* Ensures the whole image is visible */
  background-color: #f8f8f8;
}

/* Book Info Section */
.book-info {
  padding: 1.25rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.book-title {
  font-size: 1.2rem; /* Increased for better readability */
  margin-bottom: 0.5rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text-color);
}

.book-author {
  font-size: 0.95rem;
  margin-bottom: 1rem;
  color: #666;
  font-style: italic;
}

/* Tags Styling */
.book-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  margin-top: auto;
}

.tag {
  background-color: var(--accent-color);
  color: var(--primary-color);
  padding: 0.25rem 0.6rem;
  border-radius: 20px;
  font-size: 0.8rem; /* Increased for readability */
  font-weight: 500;
  border: 1px solid var(--primary-color);
}

/* Action Links */
.book-links {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.book-link {
  display: inline-flex;
  align-items: center;
  padding: 0.6rem 1.2rem;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  color: white;
}

.book-link i {
  margin-right: 0.5rem;
}

.book-link::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.1);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.book-link:hover::after {
  opacity: 1;
}

.amazon-link {
  background-color: var(--primary-color);
}

.youtube-link {
  background-color: var(--secondary-color);
}

footer {
  margin-top: 4rem;
  text-align: center;
  color: #777;
  padding: 2rem 0;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  font-size: 0.9rem;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--accent-color);
  padding: 1.5rem 0;
}
