@import 'common.css';

.book-detail {
    padding: 8rem 2rem 2rem;
    min-height: calc(100vh - 12rem);
}

.book-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.book-info {
    display: flex;
    gap: 4rem;
    align-items: flex-start;
}

.book-left {
    flex: 0 0 400px;
    text-align: center;
}

.book-right {
    flex: 1;
    max-width: 500px;
}

.book-cover {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 1rem;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.book-cover:hover {
    transform: scale(1.02);
}

.book-title {
    font-size: 2.5rem;
    margin: 0 0 2rem;
    color: white;
}

.book-sample-text {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin: 0.5rem 0;
    cursor: pointer;
    transition: color 0.3s;
}

.book-sample-text:hover {
    color: #ff3333;
}

.store-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
}

.store-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    border-radius: 5px;
    color: white;
    font-size: 1.2rem;
    transition: all 0.3s;
    cursor: default;
}

.store-button.disabled {
    opacity: 0.6;
    pointer-events: none;
}

.store-button.amazon {
    background-color: #ff9900;
}

.store-button.google {
    background-color: #4285f4;
}

.store-button.apple {
    background-color: #A2AAAD;
}

.store-button.barnes {
    background-color: #2b5797;
}

@media (max-width: 968px) {
    .book-info {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }

    .book-left {
        flex: 0 0 auto;
        width: 100%;
        max-width: 400px;
    }

    .book-right {
        width: 100%;
        text-align: center;
    }

    .book-title {
        font-size: 2rem;
    }
}