/*
 * The Daily Tank Journal: Planted Edition - Background Design System
 * Scoped to .page--daily-tank-journal-planted to avoid global side effects
 */

/* Skip-to-content link - accessible, hidden by default, visible on focus */
.page--daily-tank-journal-planted .skip-to-content {
  position: absolute;
  top: 1rem;
  left: 50%;
  transform: translate(-50%, -200%);
  padding: 0.75rem 1.5rem;
  background-color: #111827;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 4px;
  border: 2px solid #ffffff;
  z-index: 9999;
  transition: transform 0.2s ease-in-out;
}

.page--daily-tank-journal-planted .skip-to-content:focus {
  transform: translate(-50%, 0);
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

/* Ensure background extends full viewport height */
html:has(.page--daily-tank-journal-planted),
body.page--daily-tank-journal-planted {
  min-height: 100vh;
}

.page--daily-tank-journal-planted {
  /* Base background: EXACT match to other book pages */
  background: radial-gradient(120% 120% at 16% 20%, #111827 0%, #0b1220 55%, #070c16 100%);
  color: #e5e7eb;
  position: relative;
  min-height: 100vh;
}

/* Background pattern layer - subtle repeating book cover tiles */
.page--daily-tank-journal-planted::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('/assets/books/daily-tank-journal-planted-cover-front.jpg');
  background-repeat: repeat;
  background-size: 80px 120px; /* Tile size for book cover pattern */
  background-position: 0 0;
  opacity: 0.71; /* Pattern visibility: darkened by 50% for improved contrast */
  z-index: 0;
  pointer-events: none;
}

/* Blue overlay layer for text readability - darkened by 50% for improved contrast */
.page--daily-tank-journal-planted::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(11, 18, 32, 0.93) 0%, rgba(7, 12, 22, 1.0) 100%);
  z-index: 1;
  pointer-events: none;
}

/* Ensure content sits above background layers */
.page--daily-tank-journal-planted > * {
  position: relative;
  z-index: 2;
}

/* Mobile: increased overlay opacity for better readability - darkened by 50% */
@media (max-width: 768px) {
  .page--daily-tank-journal-planted::after {
    background: linear-gradient(180deg, rgba(11, 18, 32, 1.0) 0%, rgba(7, 12, 22, 1.0) 100%);
  }
}

/* Page-specific content styles (ready for future content) */
.page--daily-tank-journal-planted .book-hero {
  text-align: center;
  padding: 4rem 1.5rem 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.page--daily-tank-journal-planted .book-hero h1 {
  font-size: clamp(28px, 5vw, 48px);
  line-height: 1.2;
  margin: 0 0 1rem;
  color: #f9fafb;
  font-weight: 700;
}

.page--daily-tank-journal-planted .book-hero .subtitle {
  font-size: clamp(16px, 2.5vw, 20px);
  color: #9ca3af;
  margin: 0;
  line-height: 1.5;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .page--daily-tank-journal-planted .book-hero {
    padding: 3rem 1rem 1.5rem;
  }
}
