/* ========================================
   BOOKS PAGE CSS
   ======================================== */

.books-available-label {
    font-family: var(--font-pixel);
    font-size: 1.6rem;
    color: var(--neon-purple);
    text-shadow: var(--neon-glow);
    text-align: center;
    margin-bottom: 25px;
    animation: neonFlicker 2s infinite alternate;
}

@keyframes neonFlicker {
    0% { text-shadow: var(--neon-glow); }
    50% { text-shadow: none; }
    100% { text-shadow: var(--neon-glow); }
}

.books-row {
    display: grid;
    grid-template-columns: 1fr 1.5fr 1fr;
    gap: 25px;
    align-items: center;
    justify-items: center;
}

.book-col {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.book-col-side {
    opacity: 0.5;
}

.book-dimmed {
    position: relative;
    display: inline-block;
}

.book-cover-side {
    max-width: 200px;
    width: 100%;
    height: auto;
    border-radius: 5px;
    filter: grayscale(30%);
}

.coming-soon-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-15deg);
    font-family: var(--font-pixel);
    font-size: 1.4rem;
    font-weight: bold;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #8c52ff;
    -webkit-font-smoothing: none;
    white-space: nowrap;
    padding: 10px 20px;
    background: rgba(0, 0, 0, 0.85);
    border: 2px solid #8c52ff;
    text-shadow:
      -1px -1px 0 #00ffff,
      -2px -2px 0 #00ffff,
      1px 1px 0 #ff00ff,
      2px 2px 0 #ff00ff,
      0 0 8px rgba(0, 255, 255, 0.7),
      0 0 14px rgba(255, 0, 255, 0.6),
      0 0 22px rgba(140, 82, 255, 0.5);
    box-shadow:
      0 0 10px rgba(140, 82, 255, 0.4),
      inset 0 0 10px rgba(140, 82, 255, 0.15);
    animation: coming-soon-glow 2s infinite alternate;
}

@keyframes coming-soon-glow {
    0% {
      text-shadow:
        -1px -1px 0 #00ffff,
        -2px -2px 0 #00ffff,
        1px 1px 0 #ff00ff,
        2px 2px 0 #ff00ff,
        0 0 8px rgba(0, 255, 255, 0.7),
        0 0 14px rgba(255, 0, 255, 0.6),
        0 0 22px rgba(140, 82, 255, 0.5);
      box-shadow:
        0 0 10px rgba(140, 82, 255, 0.4),
        inset 0 0 10px rgba(140, 82, 255, 0.15);
    }
    100% {
      text-shadow:
        -1px -1px 0 #00ffff,
        -2px -2px 0 #00ffff,
        1px 1px 0 #ff00ff,
        2px 2px 0 #ff00ff,
        0 0 12px rgba(0, 255, 255, 0.9),
        0 0 20px rgba(255, 0, 255, 0.8),
        0 0 30px rgba(140, 82, 255, 0.7);
      box-shadow:
        0 0 18px rgba(140, 82, 255, 0.6),
        inset 0 0 15px rgba(140, 82, 255, 0.25);
    }
}

.book-available {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}

.book-cover-center {
    max-width: 280px;
    width: 100%;
    height: auto;
    border-radius: 5px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.book-buttons {
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: center;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .books-row {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .book-col-side {
        opacity: 0.6;
    }

    .book-cover-side {
        max-width: 150px;
    }

    .book-cover-center {
        max-width: 230px;
    }
}

@media (max-width: 480px) {
    .books-available-label {
        font-size: 1.2rem;
        margin-bottom: 18px;
    }

    .book-cover-side {
        max-width: 120px;
    }

    .book-cover-center {
        max-width: 170px;
    }

    .coming-soon-overlay {
        font-size: 1rem;
        padding: 8px 14px;
        letter-spacing: 2px;
    }

    .book-buttons {
        gap: 10px;
    }
}
