/* === Reviews Carousel Styles === */
@media(min-width: 1000px) {
    .reviews-carousel {
        position: relative;
        width: 100%;
        margin-left: auto;
        margin-right: auto;
        overflow: hidden;
        text-align: center;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Každá recenze */
.review-item {
    flex: 0 0 100%;
    width: 100%;
    padding: 20px;
    text-align: center;
    box-sizing: border-box;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
}
}

@media(max-width: 1000px) {
    .reviews-carousel {
        position: relative;
        width: 100%;
        margin-left: auto;
        margin-right: auto;
        overflow: hidden;
        text-align: center;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Každá recenze */
.review-item {
    flex: 0 0 100%;
    width: 100%;
    padding: 5px;
    text-align: center;
    box-sizing: border-box;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
}
}

/* Obal pro recenze a šipky */
.reviews-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 90%;
    max-width: 900px;
    position: relative;
}

/* Obsah recenzí */
.review-content {
    display: flex;
    transition: transform 0.5s ease-in-out;
    /* Plynulý efekt */
    width: 100%;
    overflow: hidden;
    position: relative;
}



/* Aktivní recenze */
.review-item.active {
    opacity: 1;
    position: relative;
}

/* Krabice recenze */
.review-box {
    background-color: #eee;
    background-image: url("/modules/contrib/reviews_module/img/quote.png");
    background-repeat: no-repeat;
    background-size: 7em auto;
    background-position: right 2em bottom 2em;
    border-top-left-radius: 50px;
    border-bottom-right-radius: 50px;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    position: relative;
}

/* Hvězdičky */
.stars {
    font-size: 1.5rem;
    color: #f5a623;
}

/* Text recenze */
.review-text {
    margin: 10px 0;
    font-size: 0.9rem;
    z-index: 100;
    min-height: 8em;
}

/* Autor recenze */
.review-author {
    font-weight: bold;
    margin-top: 10px;
}

.quote-icon {
    width: 20%;
    position: absolute;
    bottom: 2em;
    right: 3em;
    z-index: 1;
}

/* === Navigation Arrows (Šipky) === */
.carousel-btn {
    /* position: absolute; */
    top: 50%;
    transform: translateY(-50%);
    /* background-color: rgba(0, 0, 0, 0.5); */
    color: #000000;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    cursor: pointer;
    transition: background 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    opacity: 1;
    visibility: visible;
}

/* Styl šipek */
.carousel-btn:hover {
    background-color: #f5a623;
}

.prev {
    left: -70px;
}

.next {
    right: -70px;
}

@media (max-width: 768px) {
    .prev {
        left: -40px;
    }

    .next {
        right: -40px;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}

/* === Admin Buttons (Edit & Delete) === */
.button {
    display: inline-block;
    padding: 5px 10px;
    margin: 2px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 14px;
}

.button--small {
    font-size: 12px;
    padding: 3px 8px;
}

.button--edit {
    background-color: #4CAF50;
    color: white;
}

.button--delete {
    background-color: #f44336;
    color: white;
}

.button:hover {
    opacity: 0.8;
}

.review-actions {
    display: flex;
    gap: 5px;
}
