/**
 * 10 Smarte Tips — Consolidated Styles
 *
 * Sections:
 *   1. Language Switcher
 *   2. Prev/Next Side Arrows
 *   3. Next Three Section
 *   4. Tips Listing (landing page)
 *   5. Trostetrappa Carousel
 */

/* ==========================================================================
   2. Prev/Next Side Arrows (desktop)
   ========================================================================== */

.tips-side-arrow {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid #e0e0e0;
    color: #888;
    text-decoration: none;
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.tips-side-arrow:hover,
.tips-side-arrow:focus {
    color: var(--wp--preset--color--primary, #DB3D08);
    border-color: var(--wp--preset--color--primary, #DB3D08);
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
}
.tips-side-arrow--prev {
    left: max(1rem, calc((100vw - 750px) / 2 - 12.5%));
}
.tips-side-arrow--next {
    right: max(1rem, calc((100vw - 750px) / 2 - 12.5%));
}
.tips-side__icon {
    flex-shrink: 0;
}
[dir="rtl"] .tips-side-arrow--prev {
    left: auto;
    right: max(1rem, calc((100vw - 750px) / 2 - 12.5%));
}
[dir="rtl"] .tips-side-arrow--next {
    right: auto;
    left: max(1rem, calc((100vw - 750px) / 2 - 12.5%));
}
@media screen and (max-width: 1100px) {
    .tips-side-arrow {
        display: none;
    }
}

/* ==========================================================================
   3. Next Three Section
   ========================================================================== */

.tips-next-three {
    max-width: 650px;
    margin: 3rem auto 0;
}
.tips-next-three__header {
    text-align: center;
    padding: 1.5rem 0;
}
.tips-next-three__label {
    display: inline-block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--wp--preset--color--contrast, #333);
    position: relative;
}
.tips-next-three__label::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background: var(--wp--preset--color--primary, #DB3D08);
    margin: 0.5rem auto 0;
    border-radius: 2px;
}
.tips-next-three__list {
    border-top: 1px solid #e0e0e0;
}
.tips-next-three__item {
    border-bottom: 1px solid #e0e0e0;
}
.tips-next-three__item a {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1rem 1.25rem;
    text-decoration: none;
    color: var(--wp--preset--color--contrast, #333);
    transition: background 0.15s ease;
}
.tips-next-three__item a:hover {
    background: rgba(219, 61, 8, 0.04);
}
.tips-next-three__number {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: var(--wp--preset--color--primary, #DB3D08);
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1;
}
.tips-next-three__title {
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.3;
}
.tips-next-three__footer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.25rem;
    padding: 1.5rem 0;
}
.tips-next-three__all {
    display: inline-block;
    padding: 0.6rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--wp--preset--color--primary, #DB3D08);
    text-decoration: none;
    border: 2px solid var(--wp--preset--color--primary, #DB3D08);
    border-radius: 999px;
    transition: background 0.15s ease, color 0.15s ease;
}
.tips-next-three__all:hover,
.tips-next-three__all:focus {
    background: var(--wp--preset--color--primary, #DB3D08);
    color: #fff;
}
.tips-pn__link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--wp--preset--color--primary, #DB3D08);
    text-decoration: none;
    transition: opacity 0.15s ease;
    line-height: 1.2;
}
.tips-pn__link:hover,
.tips-pn__link:focus {
    text-decoration: underline;
    opacity: 0.8;
}
.tips-pn__link--disabled {
    visibility: hidden;
}
.tips-pn__arrow {
    flex-shrink: 0;
}
[dir="rtl"] .tips-next-three__item a {
    flex-direction: row-reverse;
}
[dir="rtl"] .tips-next-three__footer {
    flex-direction: row-reverse;
}
@media screen and (max-width: 600px) {
    .tips-next-three {
        margin-left: 1rem;
        margin-right: 1rem;
    }
    .tips-next-three__item a {
        padding: 0.85rem 1rem;
        gap: 1rem;
    }
    .tips-next-three__number {
        width: 2rem;
        height: 2rem;
        font-size: 0.875rem;
    }
    .tips-next-three__title {
        font-size: 0.95rem;
    }
    .tips-pn__text {
        display: none;
    }
    .tips-pn__link {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        padding: 0;
        border: 2px solid var(--wp--preset--color--primary, #DB3D08);
        border-radius: 50%;
        gap: 0;
    }
    .tips-pn__link:hover,
    .tips-pn__link:focus {
        text-decoration: none;
        background: rgba(219, 61, 8, 0.06);
        opacity: 1;
    }
    .tips-pn__link--disabled {
        visibility: hidden;
        width: 44px;
        height: 44px;
    }
}

/* ==========================================================================
   4. Tips Listing — Query Loop card utilities (landing page)
   ========================================================================== */

.height-100-percent {
    height: 100%;
}
.stretched-link {
    position: static;
}
.stretched-link a::after {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
    content: "";
}
.is-tips-listing .wp-block-group.height-100-percent {
    position: relative;
}
.is-tips-listing .stretched-link a {
    text-decoration: none;
}
.is-tips-listing .stretched-link a:hover {
    color: var(--wp--preset--color--primary, #DB3D08);
}
.is-tips-listing .wp-block-post-excerpt {
    margin-bottom: 0;
    font-size: 0.9rem;
    line-height: 1.5;
}
.is-tips-listing .wp-block-post-excerpt__excerpt {
    margin-bottom: 0;
}

/* ==========================================================================
   5. Trostetrappa Carousel
   ========================================================================== */

.trostetrappa-illustration {
    text-align: center;
    padding: 2rem 0;
}
.trostetrappa-illustration img {
    max-width: 50%;
    height: auto;
}
@media (max-width: 768px) {
    .trostetrappa-illustration img {
        max-width: 80%;
    }
}
.trostetrappa-carousel-section {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
}
.trostetrappa-start {
    padding: 1rem 0;
    text-align: center;
}
.trostetrappa-btn {
    display: block;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding: 1rem 2rem;
    font-size: 1.125rem;
    font-weight: 600;
    color: #fff;
    background: var(--wp--preset--color--primary, #DB3D08);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
}
.trostetrappa-btn:hover {
    opacity: 0.9;
}
.trostetrappa-hidden {
    display: none !important;
}
.trostetrappa-slides {
    position: relative;
}
.trostetrappa-slide {
    display: none;
    text-align: center;
}
.trostetrappa-slide.active {
    display: block;
}
.trostetrappa-slide h3 {
    text-align: center;
    margin: 1.5rem 0 1rem;
    font-size: 1.5rem;
}
.trostetrappa-slide img {
    display: block;
    max-width: 220px;
    height: auto;
    margin: 0 auto 1.5rem;
}
@media (max-width: 768px) {
    .trostetrappa-slide img {
        max-width: 160px;
    }
}
.trostetrappa-counter {
    width: 50px;
    height: 50px;
    display: block;
    margin: 1rem auto;
    position: relative;
}
.trostetrappa-counter svg {
    width: 100%;
    height: 100%;
}
.trostetrappa-counter svg g {
    fill: none;
    stroke: none;
}
.trostetrappa-counter svg .trostetrappa-counter-path {
    stroke-width: 8px;
    stroke-linecap: round;
    transform: rotate(90deg);
    transform-origin: center;
    transition: 1s linear all;
    stroke: var(--wp--preset--color--primary, #DB3D08);
}
.trostetrappa-counter-label {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.875rem;
    font-weight: 600;
}
.trostetrappa-description {
    margin: 1rem auto;
    max-width: 500px;
    padding: 0 1rem;
}
.trostetrappa-description p {
    margin-bottom: 0.5rem;
}
.trostetrappa-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 1.5rem 0;
    padding: 0;
    list-style: none;
}
.trostetrappa-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ccc;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: background 0.2s;
}
.trostetrappa-dot.active {
    background: var(--wp--preset--color--primary, #DB3D08);
}
.trostetrappa-bottom {
    padding-bottom: 2rem;
}
[dir="rtl"] .trostetrappa-description {
    direction: rtl;
    text-align: right;
}
[dir="rtl"] .trostetrappa-slide h3 {
    direction: rtl;
}
