/* ===== RESPONSIVE STYLES ===== */

/* Mobile Styles (max-width: 767px) */
@media (max-width: 767px) {
    /* Header Responsive */
    .header-content {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }

    .logo {
        display: none !important;
    }

    /* Navigation Responsive */
    .nav-tab {
        padding: 0.6rem 0.8rem;
        font-size: 0.9rem;
        flex: 1;
        min-width: 0;
    }

    .top-navigation {
        flex-wrap: nowrap;
        gap: 0.5rem;
        max-width: 100%;
    }

    /* Typography Responsive */
    h1 {
        font-size: 1.5rem;
    }

    /* Layout Responsive */
    .content-wrapper {
        padding: 1.5rem;
        margin-left: 5%;
        max-width: 95%;
    }

    .book-cover {
        max-width: 250px;
        margin: 0 auto;
    }


    .book-container {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }

    /* Reading Links Responsive */
    .reading-links {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }

    .reading-link {
        width: 100%;
        max-width: 200px;
        text-align: center;
    }

    /* Form Responsive */
    .content-wrapper.wide .comment-form {
        width: 95vw;
        max-width: 95%;
    }

    .form-textarea {
        min-height: 120px;
    }

    .submit-button {
        width: 100%;
    }

    button[type="submit"] {
        width: 100%;
    }
}

/* Tablet Styles (768px - 1199px) */
@media (min-width: 768px) and (max-width: 1199px) {
    body {
        padding: 2rem;
        max-width: 800px;
    }


    .book-container {
        flex-direction: row;
        align-items: flex-start;
        gap: 3rem;
        margin-left: 10%;
        max-width: 90%;
    }

    .book-cover {
        max-width: 320px;
    }

    .content-wrapper {
        margin-left: 10%;
        max-width: 90%;
    }

    .cta-button {
        display: inline-block;
        width: auto;
    }

    button[type="submit"] {
        width: auto;
    }
}

/* Desktop Styles (min-width: 1200px) */
@media (min-width: 1200px) {
    body {
        padding: 2rem;
        max-width: 1000px;
    }

    .book-cover {
        max-width: 350px;
    }

    .book-container {
        flex-direction: row;
        align-items: flex-start;
        gap: 4rem;
    }

    .content-wrapper {
        padding: 3rem;
        margin-left: 10%;
        max-width: 90%;
    }

    h1 {
        font-size: 2.5rem;
    }
}

/* Large Desktop Styles (min-width: 1440px) */
@media (min-width: 1440px) {
    body {
        max-width: 1200px;
    }

    .book-cover {
        max-width: 400px;
    }

    .book-container {
        gap: 5rem;
    }
}

/* Force desktop layout for larger screens */
@media (min-width: 769px) {
    .header-content {
        flex-direction: row !important;
    }
}

/* Print Styles */
@media print {
    body {
        background: white;
        color: black;
        font-size: 12pt;
        line-height: 1.4;
    }

    .nav-tab,
    .order-button,
    .reading-link,
    button {
        display: none;
    }

    .image-slider {
        display: none;
    }

    .content-wrapper {
        box-shadow: none;
        border: 1px solid #ccc;
    }
}
