/**
 * Ebook Page Styles
 * Single ebook page styles only
 * Archive styles are in archive-common.css
 */

/* ============================================= */
/* 1. Page Container                            */
/* ============================================= */

.site-main.single-ebook-page {
    background: #e8f0fa;
    min-height: 100vh;
    padding-top: 40px;
}

/* ============================================= */
/* 2. Hero Section                              */
/* ============================================= */

.ebook-hero {
    padding: 40px 0 80px;
}

.ebook-hero .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================= */
/* 3. Content Box (White Card)                  */
/* ============================================= */

.ebook-content-box {
    background: #fff;
    border-radius: 24px;
    padding: 50px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}

@media (min-width: 992px) {
    .ebook-content-box {
        grid-template-columns: 1.3fr 0.7fr;
        gap: 50px;
        padding: 60px;
    }
}

/* ============================================= */
/* 4. Ebook Info (Left Side)                    */
/* ============================================= */

.ebook-info {
    order: 2;
}

@media (min-width: 992px) {
    .ebook-info {
        order: 1;
    }
}

.ebook-info h1 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a1a2e;
    line-height: 1.3;
    margin-bottom: 16px;
}

@media (min-width: 768px) {
    .ebook-info h1 {
        font-size: 2rem;
    }
}

@media (min-width: 992px) {
    .ebook-info h1 {
        font-size: 2.25rem;
    }
}

.ebook-teaser {
    font-size: 1rem;
    line-height: 1.7;
    color: #4b5563;
    margin-bottom: 28px;
}

@media (min-width: 768px) {
    .ebook-teaser {
        font-size: 1.05rem;
    }
}

/* ============================================= */
/* 5. Form Container (Shortcode has own style)  */
/* ============================================= */

.ebook-form-container {
    /* Container for the shortcode form */
}

/* Mobile form fixes */
@media (max-width: 575px) {
    /* Make form elements stack vertically on mobile */
    .ebook-form-container form {
        flex-direction: column !important;
    }
    
    .ebook-form-container input[type="email"],
    .ebook-form-container input[type="text"] {
        width: 100% !important;
        margin-bottom: 12px;
    }
    
    .ebook-form-container button,
    .ebook-form-container input[type="submit"] {
        width: 100% !important;
    }
    
    /* Improve form title on mobile */
    .ebook-form-container h2,
    .ebook-form-container .form-title {
        font-size: 1.5em !important;
        line-height: 1.2 !important;
    }

    .ebook-form-container .usercom-email-form-container form {
        gap: 0;
    }

}

/* ============================================= */
/* 6. Ebook Cover (Right Side)                  */
/* ============================================= */

.ebook-cover-wrapper {
    order: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

@media (min-width: 992px) {
    .ebook-cover-wrapper {
        order: 2;
    }
}

.ebook-cover-img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

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

/* ============================================= */
/* 7. Mobile Responsive                         */
/* ============================================= */

@media (max-width: 767px) {
    .ebook-hero {
        padding: 40px 0 60px;
    }

    .ebook-content-box {
        padding: 30px 24px;
        border-radius: 20px;
    }

    .ebook-info h1 {
        font-size: 1.5rem;
        text-align: center;
    }

    .ebook-teaser {
        text-align: center;
    }

    .ebook-cover-img {
        width: 220px;
    }
}
