/* 
* Magdalena Mikurda - Ebook Detail Page Styles
* CSS for individual ebook detail pages
*/

/* ===== EBOOK DETAIL HERO SECTION ===== */
.ebook-detail-hero {
    height: 50vh;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), 
                linear-gradient(135deg, #ff6b6b, #6b66ff);
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    text-align: center;
    color: white;
    padding-top: 80px;
}

/* ===== EBOOK DETAIL CONTAINER ===== */
.ebook-detail-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
}

.ebook-cover {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    height: 500px;
}

.ebook-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ebook-info h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.ebook-price-detail {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 1.5rem 0;
}

.ebook-description-detail {
    margin-bottom: 2rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

/* ===== BUY SECTION ===== */
.buy-section {
    border-radius: 10px;
    h2 {
        text-align: center;
    }
}

/* ===== FEATURES LIST ===== */
.features-list {
    h2 {
        text-align: center;
    }
}

.feature-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;

    h3 {
        text-align: left;
    }
}

.feature-icon {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-right: 1rem;
    min-width: 30px;
}

.feature-text h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.feature-text p {
    color: var(--gray-color);
    margin-bottom: 0;
}

/* ===== TESTIMONIALS ===== */
.testimonials {
    margin-top: 4rem;
}

.testimonial-item {
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 1.5rem;
    position: relative;
    padding: 0 1.5rem;
}

.testimonial-text::before,
.testimonial-text::after {
    content: '"';
    font-size: 2rem;
    color: var(--primary-color);
    position: absolute;
}

.testimonial-text::before {
    left: 0;
    top: -10px;
}

.testimonial-text::after {
    right: 0;
    bottom: -10px;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--light-color);
    margin-right: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--primary-color);
}

.author-info h4 {
    margin-bottom: 0.2rem;
}

.author-info p {
    color: var(--gray-color);
    margin-bottom: 0;
    font-size: 0.9rem;
}

/* ===== CTA SECTION ===== */
.cta-section {
    background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), 
                linear-gradient(135deg, #6b66ff, #bb86fc);
    color: white;
    text-align: center;
    padding: 4rem 0;
    margin-top: 4rem;
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: white;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.btn-large {
    padding: 1rem 3rem;
    font-size: 1.2rem;
}

/* ===== TABLE OF CONTENTS ===== */
.table-of-contents {
    text-align: center;

    li {
        text-align: left;
    }
}

.table-of-contents h3 {
    margin-bottom: 1.5rem;
    color: var(--dark-color);
}

.toc-list {
    list-style-type: none;
    padding: 0;
}

.toc-list li {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
}

.toc-list li::before {
    content: '•';
    color: var(--primary-color);
    font-size: 1.5rem;
    position: absolute;
    left: 0;
    top: -0.5rem;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 992px) {
    .ebook-detail-container {
        grid-template-columns: 1fr;
    }
    padding: 1rem;
    .ebook-cover {
        height: 400px;
        max-width: 300px;
        margin: 0 auto;
    }
}