/* style.css */
:root {
  --bg: #fafafa;
  --text: #2b2b2b;
  --accent: #246a99; /* cool, modern teal-blue */
  --accent-bright: #1f5c85;
  --muted: #ffffff;
  --shadow: rgba(0, 0, 0, 0.05);
  --radius: 12px;
}

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

body {
  font-family: "Inter", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

.hero {
  background: var(--accent);
  color: white;
  text-align: center;
  padding: 4rem 1rem;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.hero .contact a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  margin: 0 0.5rem;
}

.books-section {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
  max-width: 1100px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.book-card {
  background: var(--muted);
  border-radius: var(--radius);
  box-shadow: 0 4px 16px var(--shadow);
  max-width: 300px;
  text-align: center;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  padding-bottom: 1rem;
}

.book-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px var(--shadow);
}

.cover {
  width: 100%;
  height: auto;
  display: block;
}

.book-card h2 {
  font-size: 1.3rem;
  margin: 1rem 0 0.5rem;
  padding: 0 1rem;
}

.subtitle {
  color: #555;
  font-size: 0.95rem;
  padding: 0 1rem;
  margin-bottom: 1rem;
}

.status {
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 1rem;
}

.book-card p {
  color: var(--text);
  margin-bottom: 1rem;
}

.wishlist-btn {
  background: var(--accent);
  color: white;
  border: none;
  padding: 0.8rem 1.2rem;
  font-size: 1rem;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  text-decoration: none;
}

.wishlist-btn:hover {
  background: var(--accent-bright);
  transform: translateY(-2px);
}

.highlight {
  border: 2px solid var(--accent);
}

.note,
.support,
.newsletter {
  background: var(--muted);
  padding: 2rem 1rem;
  max-width: 800px;
  margin: 2rem auto;
  border-radius: var(--radius);
  box-shadow: 0 4px 16px var(--shadow);
  text-align: center;
}

.newsletter h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.newsletter ul {
  list-style: disc inside;
  margin-bottom: 1.5rem;
  text-align: left;
}

input {
  width: 260px;
  padding: 0.8rem;
  border: 1px solid #ccc;
  border-radius: var(--radius);
  margin-right: 0.5rem;
  margin-bottom: 1rem;
  margin-top: 0.5rem;
}

.submit-button {
  background: var(--accent);
  color: white;
  padding: 0.8rem 1.4rem;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.2s;
}

.newsletter button:hover {
  background: var(--accent-bright);
}

footer {
  text-align: center;
  padding: 1.5rem;
  background: var(--muted);
  color: #666;
  font-size: 0.9rem;
}

.read-more-btn {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.6rem 1.1rem;
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.95rem;
  transition: background 0.2s, color 0.2s;
}

.read-more-btn:hover {
  background: var(--accent);
  color: white;
}

.small {
  font-size: 0.8rem;
  color: #777;
  margin-top: 2rem;
}

.ready {
  color: green !important;
  font-weight: bold;
  border: 2px solid green;
  padding: 0.5rem;
  border-radius: var(--radius);
  background: rgba(0, 128, 0, 0.1);
  margin-right: 0.5rem !important;
  margin-left: 0.5rem !important;
  text-decoration: none;
}

.book-content {
  max-width: 1000px;
  margin: 3rem auto;
  padding: 0 1rem;
}

.book-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  background: var(--muted);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px var(--shadow);
  padding: 2rem;
}

.book-hero img {
  max-width: 300px;
  height: auto;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

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

.book-info h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.book-info .subtitle {
  color: #555;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.book-info .date {
  font-size: 1rem;
  color: var(--accent);
  font-weight: 600;
}

.cookie-consent {
  position: fixed;

  bottom: 0;

  left: 0;

  right: 0;

  background-color: #f8f9fa;

  color: #212529;

  padding: 1rem;

  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);

  z-index: 9999;

  display: none;
}

.cookie-consent.active {
  display: flex;

  flex-wrap: wrap;

  justify-content: space-between;

  align-items: center;
}

.cookie-consent-content {
  flex: 1;

  margin-right: 1rem;
}

.cookie-consent h3 {
  margin-top: 0;

  margin-bottom: 0.5rem;
}

.cookie-consent p {
  margin-bottom: 0.5rem;
}

.cookie-consent-options {
  display: flex;

  flex-wrap: wrap;

  margin-bottom: 1rem;
}

.cookie-consent-option {
  margin-right: 1.5rem;

  margin-bottom: 0.5rem;
}

.cookie-buttons {
  display: flex;

  flex-wrap: wrap;

  gap: 0.5rem;
}

.cookie-btn {
  padding: 0.5rem 1rem;

  border: none;

  border-radius: 4px;

  cursor: pointer;

  font-weight: 500;

  text-transform: uppercase;

  font-size: 0.9rem;

  transition: background-color 0.2s, transform 0.2s;
}

.btn-accept-all {
  background-color: var(--accent);

  color: black;
}

.btn-accept-all:hover {
  background-color: var(--primary-hover);

  transform: translateY(-2px);
}

.btn-policy {
  background-color: #f8f9fa;

  color: var(--text-dark);

  border: 1px solid var(--border-color);
}

.btn-policy:hover {
  background-color: var(--border-color);

  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .cookie-consent {
    flex-direction: column;
  }

  .cookie-consent-content {
    margin-right: 0;

    margin-bottom: 1rem;
  }

  .cookie-buttons {
    justify-content: center;

    width: 100%;
  }
}

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

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

.download-buttons button {
  background: var(--accent);
  color: white;
  border: none;
  padding: 0.8rem 1.2rem;
  margin: 0.3rem;
  font-size: 1rem;
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform 0.2s, background 0.2s;
}

.download-buttons button:hover {
  background: var(--accent-bright);
  transform: translateY(-2px);
}

.support-banner {
  max-width: 800px;
  background: var(--muted);
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  padding: 1rem;
  text-align: center;
  margin: 2rem auto;
  box-shadow: 0 4px 16px var(--shadow);
}

.support-banner.hidden {
  display: none;
}
