@import url('https://fonts.googleapis.com/css2?family=Delicious+Handrawn&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Lilita+One&display=swap');

:root {
    --primary-color: #A31D2E;
    --secondary-color: #118cde;
    --accent-color: #e8bb28;
    --dark-bg: #121212;
    --darker-bg: #1C1F33;
    --light-bg: #F8F9FA;
    --text-color: black;
    --text-light: white;
}

.delicious-handrawn-regular {
    font-family: "Delicious Handrawn", cursive;
    font-weight: 800;
    font-style: italic;
    color: var(--primary-color);
}

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: "Lilita One", sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 1rem; /* Alapértelmezett méret */
}

body {
    background-color: var(--light-bg);
    color: var(--text-color);
    overflow-x: hidden;
}

/* ======= BANNER ======= */
.bannerContainer {
    width: 100%;
    background-color: var(--dark-bg);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    height: auto;
    min-height: 25rem;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.5s ease;
    padding: 1rem;
}

.bannerContainer .banner {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 10rem;
    background-color: var(--darker-bg);
    border-radius: 1.5rem;
    width: 90%;
    max-width: 1200px;
    height: auto;
    padding: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
    text-align: center;
}

.bannerContainer .banner .bannerDividor {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    flex-direction: column;
    gap: 1rem;
    margin: 0.5rem;
}

.bannerContainer .banner .bannerDividor .profile {
    width: 8rem;
    height: 8rem;
    background: url(../pics/site/WalersBooksLogo.png);
    border-radius: 50%;
    background-position: center;
    background-size: cover;
    object-fit: cover;
    background-repeat: no-repeat;
    box-shadow: 0 4px 8px 0 var(--primary-color), 0 6px 20px 0 var(--primary-color);
    transition: all 1s ease-in-out;
}

/* ======= NAVIGATION ======= */
.bannerContainer .banner .bannerDividor .navbar {
    text-align: center;
    color: var(--text-light);
    transition: all 1s ease-in-out;
    width: 100%;
}

.bannerContainer .banner .bannerDividor .navbar h1 {
    font-size: clamp(2rem, 6vw, 5rem); /* Reszponzív méret */
    margin-bottom: 1rem;
    cursor: default;
}

.bannerContainer .banner .bannerDividor .navbar ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    padding: 0;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    transition: all 0.5s ease-in-out;
}

.bannerContainer .banner .bannerDividor .navbar ul li a {
    color: var(--secondary-color);
    text-decoration: none;
    font-size: clamp(0.9rem, 2vw, 1.2rem);
    font-weight: bold;
    transition: all 0.2s ease-in-out;
    padding: 0.5rem;
    display: inline-block;
}

.bannerContainer .banner .bannerDividor .navbar ul li a:hover {
    color: var(--primary-color);
}

/* ======= SHRINKED NAVBAR ======= */
.shrink .bannerContainer {
    display: none;
}

.shrink .navbar {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    padding: 0.8rem 1.5rem;
    background-color: var(--darker-bg);
    max-width: 75%;
    border-radius: 0;
    position: fixed;
    top: 0;
    left: 25;
    right: 25;
    z-index: 1000;
    border-radius: 0rem 0rem 1rem 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.active {
    color: var(--primary-color) !important;
}

.shrink .navbar h1 {
    font-size: clamp(1.2rem, 4vw, 2rem) !important;
    margin: 0;
}

.shrink .navbar ul {
    flex-direction: row;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.shrink .profile {
    display: none;
}

/* ======= CONTAINER ======= */
.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0 1rem;
}

.container .box {
    margin-top: 5rem;
    max-width: 100%;
    width: 100%;
    text-align: center;
    padding: 1rem;
}

.comingSoons {
    margin-top: 10rem !important;
}

.comingSoons p {
    margin-bottom: 1rem;
}

.comingSoons h3 {
    margin-bottom: 1.5rem;
}

.comingSoons a {
    text-align: center;
    padding: 0.8rem 1.5rem;
    background-color: var(--secondary-color);
    border-radius: 2rem;
    color: var(--accent-color);
    text-decoration: none;
    display: inline-block;
    margin: 0.5rem;
    transition: all 0.3s ease;
}

.comingSoons a:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.container .box h1 {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    font-size: clamp(3rem, 4vw, 2rem);
}



.progression {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 2rem;
    box-sizing: border-box;
}

.progressionBarBg {
    background-color: #1C1F33;
    border-radius: 12px;
    width: 80%;
    height: 24px;
    position: relative;
    overflow: hidden;
    padding: 0;
    margin: 0;
    border: none;
}

.progressionBar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background-color: #118cde;
    transition: width 0.3s ease-in-out;
    margin-top: 0rem !important;

    /* 🔥 A LÉNYEG: */
    border-radius: 12px; /* Fontos, hogy a kék progress bar is ugyanazt a border-radius értéket kapja! */
}



/* ======= BOOK SECTION ======= */


.comingSoons .comingSonnsContainer {
    text-align: center;
    width: 100%;
    padding: 1rem;
    border-radius: 1rem;
    margin: 1rem 0;
}

.comingSoons *{
    margin-top: 1rem;
    font-size: 1.3rem;
}


.aboutme {
    margin-top: 3rem !important;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
    padding: 1rem;
}

.aboutme .left, .aboutme .right {
    margin: 1rem;
    width: 100%;
    max-width: 600px;
}

.aboutme .left *{
    text-align: justify;
    padding: 1rem;
    font-size: 1.1rem;

}

.aboutme .right{
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.aboutme .right *{
    font-size: 2rem;

}

.aboutme img {
    width: 100%;
    max-width: 15rem;
    border-radius: 50%;
    margin-bottom: 1rem;
}
.socialMedia {
    margin-top: 15rem !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
    padding: 1rem;
    text-align: center;
    color: var(--primary-color);
}

.socialMedia h1 {
    font-size: 3rem;
}

.socialMedia .SocialMedaIcon {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.socialMedia .SocialMedaIcon img {
    max-width: 5rem;
    margin: 1rem;
    transition: transform 0.3s ease;
}

.socialMedia .SocialMedaIcon img:hover {
    transform: scale(1.1);
}

/* --- Responsive behavior --- */
@media (max-width: 1024px) {
    .socialMedia h1 {
        font-size: 2.5rem;
    }

    .socialMedia .SocialMedaIcon img {
        max-width: 4rem;
    }
}

@media (max-width: 768px) {
    .socialMedia {
        margin-top: 10rem !important;
        padding: 0.5rem;
    }

    .socialMedia h1 {
        font-size: 2rem;
    }

    .socialMedia .SocialMedaIcon {
        flex-direction: row;
        gap: 1rem;
    }

    .socialMedia .SocialMedaIcon img {
        max-width: 3.5rem;
        margin: 0.5rem;
    }
}

@media (max-width: 480px) {
    .socialMedia h1 {
        font-size: 1.75rem;
    }

    .socialMedia .SocialMedaIcon img {
        max-width: 3rem;
    }
}



.book {
    color: var(--primary-color);
    margin: 1rem 0;
}

.book img {
    width: 100%;
    max-width: 20rem;
    height: auto;
    background-color: var(--darker-bg);
    padding: 1rem;
    border-radius: 25px;
    object-fit: cover;
    margin: 0 auto;
    display: block;
}

.donation {
    margin-top: 3rem;
    margin-bottom: 10rem;
    padding-top: 1rem;
    width: 100%;
}

.donation a{
    color: #e8bb28;
    transition: 0.2s;
}

.donation a:hover{
    color: #A31D2E;
}

.donation *{
    font-size: 1.3rem;
}

.donationBox{
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mybookstore {
    padding-top: 3rem;
    padding-top: 1rem;
    width: 100%;
}

.mybookstore a{
    text-decoration: none;
    color: var(--light-bg);
    padding-left: 2rem;
    padding-right: 2rem;
    padding-top: 1rem;
    padding-bottom: 1rem;
    border-radius: 2rem;
    background-color: var(--primary-color);
    transition: 0.2s ease-in-out;
}

.mybookstore a:hover{
    text-decoration: none;
    color: var(--darker-bg);
    padding-left: 2rem;
    padding-right: 2rem;
    padding-top: 1rem;
    padding-bottom: 1rem;
    border-radius: 2rem;
    background-color: var(--accent-color);
}

.mybookstore *{
    font-size: 1.3rem;
}


.footer {
    flex-wrap: wrap;
    width: 100%;
    margin-top: 3rem;
    display: flex;
    background-color: var(--dark-bg);
    flex-direction: row;
    justify-content: space-around;
    align-items: flex-start;
    color: var(--primary-color);
    padding: 2rem 1rem;
}

.footer h2{
    text-align: center;
    font-size: 1.5rem;
}

.footer .left, .footer .center, .footer .right {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    margin: 1rem;
    flex: 1;
    min-width: 200px;
}

.footer .left {
    text-align: center;
}

.footer .right {
    text-align: center;
}

.footer ul {
    list-style: none;
    padding: 0;
}

.footer ul li {
    margin: 0.5rem 0;
}

.footer ul a {
    color: var(--primary-color);
    text-decoration: none;
    transition: 0.2s;
    font-size: 1.1rem;
}

.footer ul a:hover {
    color: var(--secondary-color);
}

 .mobile-menu-btn,
    .mobile-nav,
    .menu-overlay {
        display: none;
    }


    .donationWrapper {
        width: 100%;
        min-height: 100vh;
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 2rem;
        box-sizing: border-box;
        background-color: var(--light-bg);
    }
    
    .donationContainer {
        width: 100%;
        max-width: 700px; /* Fix maximum szélesség */
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }
    
    .donationIframeWrapper {
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 1rem;
        background-color: white;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        border-radius: 12px;
    }
    
    .donationIframe {
        width: 100%;
        max-width: 450px;
        height: 700px;
        border: none;
        display: block;
        margin: 0 auto;
    }
    
    
    /* DonorBox specifikus fix */
    #donorbox iframe {
        margin: 0 auto !important;
        display: block !important;
        left: 0 !important;
        right: 0 !important;
    }
    
    .donationBackButton {
        display: inline-block;
        padding: 1rem 2rem;
        background-color: var(--secondary-color);
        color: var(--accent-color);
        text-decoration: none;
        font-size: 1.1rem;
        border-radius: 25px;
        transition: all 0.3s ease;
        border: 2px solid var(--accent-color);
    }
    
    @media (max-width: 768px) {
        .donationWrapper {
            padding: 1.5rem;
        }
        
        .donationIframe {
            height: 650px;
        }
    }
    
    @media (max-width: 480px) {
        .donationWrapper {
            padding: 1rem;
        }
        
        .donationIframe {
            height: 600px;
        }
    }
 
    

/* Alap stílus a "Vissza a tetejére" gombhoz */
.scroll-to-top-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--primary-color);
    color: var(--dark-bg);
    border: none;
    padding: 0.8rem 1.2rem;
    font-size: 1rem;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    z-index: 999;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-to-top-btn:hover {
    color: var(--primary-color);
    background-color: var(--accent-color);
    transform: scale(1.1);
}

/* ======= RESPONSIVE DESIGN ======= */



@media (max-width:999px){

     /* Hamburger gomb */
     .mobile-menu-btn {
        display: block !important;
        position: fixed; /* Fix pozíció a képernyőn */
        top: 20px;
        right: 20px;
        z-index: 1001;
        background: none;
        border: none;
        cursor: pointer;
        padding: 10px;
    }
    
    .mobile-menu-btn span {
        display: block !important;
        width: 30px;
        height: 3px;
        background-color: var(--secondary-color);
        margin: 5px 0;
        transition: all 0.3s ease;
    }
    
    /* Mobil menü tartalma */
    .mobile-nav {
        display: block;
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background-color: var(--darker-bg);
        z-index: 1000;
        padding-top: 80px;
        box-shadow: -5px 0 15px rgba(0,0,0,0.3);
        transition: right 0.3s ease;
    }
    
    .mobile-nav.active {
        right: 0;
    }
    
    .mobile-nav ul {
        list-style: none;
        padding: 0;
    }
    
    .mobile-nav li {
        margin: 25px 0;
        text-align: center;
    }
    
    .mobile-nav a {
        color: var(--text-light);
        text-decoration: none;
        font-size: 1.3rem;
        padding: 10px 20px;
        transition: all 0.3s ease;
        display: inline-block;
    }
    
    .mobile-nav a:hover {
        color: var(--accent-color);
        transform: scale(1.1);
    }
    
    /* Hamburger animáció */
    .mobile-menu-btn.active span:first-child {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-btn.active span:last-child {
        transform: rotate(-45deg) translate(7px, -7px);
    }
    
    /* Normál menü elrejtése mobilnézetben */
    .bannerContainer .banner .bannerDividor .navbar ul {
        display: none;
    }
    
    /* Overlay a tartalomra */
    .menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0,0,0,0.5);
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    
    .menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    .navbar{
        height: 5rem;
        left: 0;
        right: 0;
        max-width: 100% !important;
        height: 6rem;
    }
    .navbar h1{
        margin-top: 1rem !important;
    }

    .scroll-to-top-btn {
        bottom: 100px;
        font-size: 2rem;
        height: 4rem;
        width: 4rem;
    }




}


@media (min-width: 768px) {

    .bannerContainer {
        height: 25rem;
        padding: 0;
    }
    
    .bannerContainer .banner {
        margin-top: 15rem;
        width: 85%;
        padding: 2rem;
    }
    
    .bannerContainer .banner .bannerDividor {
        margin: 1rem;
    }
    
    .bannerContainer .banner .bannerDividor .profile {
        width: 10rem;
        height: 10rem;
    }
    
    .bannerContainer .banner .bannerDividor .navbar ul {
        gap: 1rem;
        margin-top: 1rem;
    }
    
    .bannerContainer .banner .bannerDividor .navbar ul li a {
        padding: 0.5rem 1rem;
    }
    
    .container .box {
        margin-top: 10rem;
        max-width: 90%;
    }
    
    .comingSoons {
        margin-top: 18rem !important;
    }
    
    .aboutme {
        flex-wrap: nowrap;
        margin-top: 5rem !important;
    }
    
    .aboutme .left, .aboutme .right {
        margin: 2rem;
    }
    
    .footer {
        flex-direction: row;
        justify-content: center;
        padding: 2rem;
    }
    
    .footer .left, .footer .center, .footer .right {
        margin: 2rem;
    }
    
    .scroll-to-top-btn {
        bottom: 30px;
        right: 30px;
        padding: 1rem;
        font-size: 1.2rem;
    }
}

@media (min-width: 1024px) {
    .bannerContainer .banner {
        width: 75%;
    }
    
    .container .box {
        max-width: 85%;
    }
    
    .aboutme .left, .aboutme .right {
        margin: 5rem;
    }
    
    .footer .left, .footer .center, .footer .right {
        margin: 5rem;
    }
}

/* Extra nagy képernyők */
@media (min-width: 1440px) {
    .bannerContainer {
        height: 30rem;
    }
    
    .bannerContainer .banner {
        margin-top: 18rem;
    }
    
    .container .box {
        max-width: 1200px;
    }
}

/*Shop*/

/* === SHOP NAVBAR === */
.shop-navbar-container {
    width: 100vw;
    background-color: var(--primary-color);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.shop-navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    flex-wrap: wrap;
}

.shop-nav-left a.shop-back-button {
    color: var(--text-light);
    text-decoration: none;
    font-weight: bold;
    font-size: large;
    letter-spacing: 0.1rem;
    background-color: var(--darker-bg);
    padding: 0.5rem;
    margin: 1rem;
    border-radius: 32px;
    
}

.shop-nav-right input[type="text"] {
    padding: 0.5rem;
    border: none;
    border-radius: 4px;
    min-width: 200px;
}

/* === MAIN CONTENT WRAPPER === */
.shop-content-wrapper {
    padding-top: 80px; /* hely a fix navbárnak */
}

.shop-container {
    color: var(--primary-color);
    padding: 1rem;
}

.shop-container h1 {
    text-align: center;
    margin: 5rem 0 2rem 0;
    font-size: 3rem;
}

/* === BOOK GRID === */
.shop-books-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

/* === BOOK CARD === */
.shop-book-card {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    padding: 1rem;
    text-align: center;
    flex: 1 1 200px;
    max-width: 250px;
    min-width: 180px;
}

.shop-book-card img {
    max-width: 13.5rem;
    object-fit: contain;
    margin-bottom: 0.5rem;
}

.shop-book-card h2 {
    font-size: 1rem;
    margin: 0.5rem 0;
}

.shop-book-price,
.shop-book-info {
    font-size: 0.9rem;
    margin: 0.2rem 0;
}

.shop-buy-btn {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.4rem 0.8rem;
    background-color: var(--shop-primary-color, #0066cc);
    color: white;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.9rem;
}

.shop-buy-btn:hover {
    background-color: #004a8d;
}

/* === MOBILE STYLES === */
@media (max-width: 768px) {
    .shop-navbar {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .shop-nav-left,
    .shop-nav-right {
        width: 100%;
        text-align: center;
    }

    .shop-nav-right input[type="text"] {
        width: 100%;
    }

    .shop-container h1 {
        font-size: 2rem;
        margin: 8rem 1rem 8rem 1rem;
    }
}

@media (max-width: 480px) {
    .shop-book-card {
        flex: 1 1 90%;
        max-width: 95%;
    }
}


/*Buy*/
.product-page-wrapper {
    padding: 8rem 2rem 2rem;
    background-color: #f9f9f9;
    display: flex;
    justify-content: center;
}

.product-container {
    display: flex;
    flex-wrap: wrap;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    max-width: 1000px;
    overflow: hidden;
    width: 100%;
}

.product-image {
    flex: 1 1 300px;
    background-color: #fff;
    padding: 2rem;
    text-align: center;
}

.product-image img {
    max-width: 100%;
    max-height: 400px;
    object-fit: contain;
    border-radius: 8px;
}

.product-details {
    flex: 1 1 400px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.product-details h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #222;
}

.product-description {
    font-size: 1rem;
    color: #555;
    margin-bottom: 2rem;
}

.product-options .btn-primary {
    background-color: #0066cc;
    color: white;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    display: inline-block;
    transition: background-color 0.3s ease;
}

.product-options .btn-primary:hover {
    background-color: #004a8d;
}

.availability-msg {
    margin-top: 1rem;
    font-style: italic;
    color: #777;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .product-container {
        flex-direction: column;
    }

    .product-details, .product-image {
        padding: 1.5rem;
    }

    .product-details h1 {
        font-size: 1.5rem;
    }
}



/*Alert*/
.Alert {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #ffffff;
    color: #d32f2f;
    padding: 30px 40px;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    text-align: left;
    width: 90%;
    max-width: 500px;
    font-family: sans-serif;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    z-index: 1000;
  }

  .Alert.show {
    opacity: 1;
    pointer-events: auto;
  }

  .Alert h1 {
    margin: 0 0 16px;
    font-size: 28px;
    color: #d32f2f;
  }

  .Alert span {
    font-size: 18px;
    line-height: 1.6;
    color: #d32f2f;
  }

  .Alert .close-btn {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    color: #999;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
  }

  .Alert .close-btn:hover {
    color: #000;
  }