﻿/* =========================================================
   AVNERI - PAGE 1 NEW DESIGN
   לא משנה את מבנה שאר ה-Wizard
   ========================================================= */


/* ---------------------------------------------------------
   BANNER
   --------------------------------------------------------- */

.wizard-brand-banner {
    position: relative;
    width: 100%;
    min-height: 205px;
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    justify-content: space-between;
    overflow: hidden;
    margin-bottom: 18px;
    padding: 20px 55px;
    border-radius: 0 0 28px 28px;
    background: radial-gradient(circle at 15% 30%, rgba(255,255,255,.35), transparent 30%), linear-gradient( 110deg, #7b4aa8 0%, #d82c72 45%, #f06b8e 65%, #2676b8 100% );
    box-shadow: 0 12px 35px rgba(30,40,80,.15);
    direction: rtl;
}


/* ---------------------------------------------------------
   BRAND
   --------------------------------------------------------- */

.wizard-brand-content {
    width: 55%;
    text-align: right;
    color: #fff;
    z-index: 3;
}


.wizard-logo {
    max-width: 310px;
    max-height: 105px;
    object-fit: contain;
    display: block;
    margin-right: 0;
    margin-left: auto;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,.15));
}


.wizard-brand-title {
    margin-top: 5px;
    font-size: 1.05rem;
    font-weight: 500;
    color: rgba(255,255,255,.95);
}


.wizard-brand-subtitle {
    margin-top: 12px;
    font-size: .92rem;
    color: rgba(255,255,255,.82);
}


/* ---------------------------------------------------------
   BOOK IN BANNER
   הספר נמצא משמאל.
   השדרה בצד ימין.
   --------------------------------------------------------- */

.wizard-hero-book {
    position: relative;
    width: 245px;
    height: 175px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    direction: ltr;
    margin-left: 20px;
    z-index: 2;
    transform: rotate(-4deg);
}


/*
   כריכת הספר
   הצד הקדמי נמצא משמאל
*/

.hero-book-cover {
    position: relative;
    width: 112px;
    height: 148px;
    overflow: hidden;
    border-radius: 3px 7px 7px 3px;
    background: #fff;
    box-shadow: 5px 8px 18px rgba(0,0,0,.28);
    z-index: 4;
}


    .hero-book-cover img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }


/*
   הדפים מאחורי הכריכה
*/

.hero-book-pages {
    position: absolute;
    left: 108px;
    width: 85px;
    height: 140px;
    background: repeating-linear-gradient( to bottom, #fff 0px, #fff 2px, #e6e6e6 3px );
    border-radius: 0 7px 7px 0;
    box-shadow: 3px 5px 10px rgba(0,0,0,.16);
    z-index: 2;
}


/*
   השדרה בצד ימין
*/

.hero-book-spine {
    position: absolute;
    left: 105px;
    top: 16px;
    width: 14px;
    height: 143px;
    border-radius: 5px;
    background: linear-gradient( 90deg, #542c6d, #8e4b91, #4b2c68 );
    box-shadow: inset 2px 0 3px rgba(255,255,255,.2), 2px 4px 7px rgba(0,0,0,.2);
    z-index: 5;
}


/* ---------------------------------------------------------
   PAGE 1 HEADER
   --------------------------------------------------------- */

#page1 {
    margin: 0;
    padding: 18px 20px 35px;
    background: transparent;
}


.page1-heading {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    text-align: center;
    margin-bottom: 25px;
}


    .page1-heading h2 {
        margin: 0;
        font-size: 1.8rem;
        font-weight: 800;
        color: #182c5a;
    }


.page1-intro {
    margin-top: 6px;
    color: #7c899d;
    font-size: .95rem;
}


.page1-heading-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient( 135deg, #fff0f6, #f1eaff );
    font-size: 23px;
    box-shadow: 0 5px 15px rgba(80,60,120,.1);
}


/* ---------------------------------------------------------
   PRODUCT TOPIC GRID
   --------------------------------------------------------- */

.page1-topics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}


/* ---------------------------------------------------------
   TOPIC CARD
   --------------------------------------------------------- */

.page1-topic-card {
    min-height: 205px;
    border-radius: 18px;
    border: 2px solid transparent;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 8px 24px rgba(30,50,80,.08);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}


    /* ביטול הגובה הישן של תמונת .card */

    .page1-topic-card img {
        height: auto;
    }


    .page1-topic-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 14px 32px rgba(30,50,80,.13);
    }


/* ---------------------------------------------------------
   IMAGE
   --------------------------------------------------------- */

.topic-image-wrapper {
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    /*padding: 12px;*/
    overflow: hidden;
    background: linear-gradient( 135deg, #f8f1e9, #eef4ff );
}


    .topic-image-wrapper img {
        width: 100%;
        height: 100% !important;
        object-fit: contain !important;
        border-radius: 8px;
        transition: transform .25s ease;
    }


.page1-topic-card:hover
.topic-image-wrapper img {
    transform: scale(1.04);
}


/* ---------------------------------------------------------
   CARD TEXT
   --------------------------------------------------------- */

.page1-topic-card .card-content {
    padding: 12px 16px 15px;
    text-align: right;
}


.page1-topic-card .card-title {
    font-size: 1rem;
    font-weight: 800;
    color: #172d5d;
    margin-bottom: 5px;
}


.page1-topic-card .card-desc {
    color: #718096;
    font-size: .86rem;
    line-height: 1.45;
    min-height: 24px;
}


/* ---------------------------------------------------------
   PRICE
   --------------------------------------------------------- */

.topic-price {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 5px;
    margin-top: 9px;
    padding-top: 8px;
    border-top: 1px solid #edf0f5;
}


.price-label {
    color: #68778a;
    font-size: .78rem;
}


.price-value {
    color: #ef4f83;
    font-size: 1rem;
    font-weight: 800;
}


/* ---------------------------------------------------------
   SELECTED CARD
   --------------------------------------------------------- */

.page1-topic-card.selected {
    border: 3px solid #ed4d82;
    box-shadow: 0 14px 32px rgba(237,77,130,.18);
}


.page1-topic-card .check {
    top: 10px;
    left: 10px;
    width: 32px;
    height: 32px;
    background: linear-gradient( 135deg, #ed4d82, #8a4ca7 );
    box-shadow: 0 4px 10px rgba(0,0,0,.2);
}


/* ---------------------------------------------------------
   BOOK TYPE SECTION
   --------------------------------------------------------- */

.book-type-section {
    margin-top: 8px;
    text-align: center;
}


.book-type-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #1b2f5d;
}


.book-type-subtitle {
    margin-top: 4px;
    margin-bottom: 15px;
    color: #8490a2;
    font-size: .86rem;
}


/* ---------------------------------------------------------
   BOOK TYPE BUTTONS
   --------------------------------------------------------- */

.book-type-buttons {
    display: flex;
    justify-content: center;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}


    .book-type-buttons .book-type-btn {
        position: relative;
        min-width: 170px;
        min-height: 58px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        margin: 0;
        padding: 10px 18px;
        border-radius: 30px;
        border: 2px solid #6c4b9e;
        background: #fff;
        color: #49377e;
        font-size: .95rem;
        font-weight: 800;
        box-shadow: 0 5px 15px rgba(60,40,100,.08);
        transition: all .2s ease;
    }


        .book-type-buttons .book-type-btn:not(:disabled) {
            cursor: pointer;
        }


            .book-type-buttons .book-type-btn:not(:disabled):hover {
                transform: translateY(-3px);
                color: #fff;
                border-color: #6c4b9e;
                background: linear-gradient( 135deg, #6c4b9e, #8e55aa );
                box-shadow: 0 8px 20px rgba(80,50,130,.18);
            }


.book-type-icon {
    font-size: 1.15rem;
}


.book-type-text {
    white-space: nowrap;
}


.book-type-arrow {
    font-size: 1rem;
    opacity: .7;
}


/* ---------------------------------------------------------
   DISABLED
   --------------------------------------------------------- */

.book-type-buttons .book-type-btn:disabled {
    opacity: .48;
    cursor: not-allowed;
    background: #f7f7fa;
}


/* ---------------------------------------------------------
   HELP MESSAGE
   --------------------------------------------------------- */

.page1-help {
    width: fit-content;
    max-width: 100%;
    margin: 5px auto 0;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 20px;
    background: #fff;
    color: #7a8798;
    font-size: .78rem;
    box-shadow: 0 4px 12px rgba(30,50,80,.05);
}


.page1-help-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #e9f8f1;
    color: #2e9b70;
    font-weight: 800;
}


/* ---------------------------------------------------------
   RESPONSIVE
   --------------------------------------------------------- */

@media (max-width: 1000px) {

    .page1-topics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }


    .wizard-brand-banner {
        padding: 18px 30px;
    }
}


@media (max-width: 700px) {

    .wizard-brand-banner {
        min-height: 180px;
        padding: 20px;
    }


    .wizard-brand-content {
        width: 60%;
    }


    .wizard-logo {
        max-width: 210px;
    }


    .wizard-brand-title {
        font-size: .85rem;
    }


    .wizard-brand-subtitle {
        display: none;
    }


    .wizard-hero-book {
        transform: scale(.78) rotate(-4deg);
        transform-origin: left center;
        margin-left: -25px;
    }


    .page1-topics {
        grid-template-columns: 1fr;
    }


    .page1-heading h2 {
        font-size: 1.45rem;
    }
}


@media (max-width: 500px) {

    .wizard-brand-banner {
        min-height: 145px;
    }


    .wizard-hero-book {
        position: absolute;
        left: -25px;
        opacity: .9;
        transform: scale(.65) rotate(-4deg);
    }


    .wizard-brand-content {
        width: 100%;
        text-align: right;
    }


    .wizard-logo {
        max-width: 190px;
    }


    .book-type-buttons {
        flex-direction: column;
    }


        .book-type-buttons .book-type-btn {
            width: 100%;
        }
}
