/* ============================================================
   PUPstreat - Reviews Slider  |  reviews.css
   ============================================================ */

/* ── Keyframe ── */
@keyframes puprFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Wrapper ── */
.pupr-slider-wrap {
    position: relative;
    width: 100%;
}

/* ── Slides ── */
.pupr-slides {
    position: relative;
    width: 100%;
}

.pupr-slide {
    display: none;
    animation: puprFadeIn 0.45s ease;
}

.pupr-slide.active {
    display: block;
}

/* ── Card ── */
.pupr-card {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;           /* clips image to rounded corners — FIX #1 */
    height: 460px;
    box-shadow: 0 4px 24px rgba(42, 31, 26, 0.08);
}

/* ── Left: Dog image ── */
.pupr-card-image {
    flex: 0 0 45%;
    max-width: 45%;
    position: relative;         /* needed for absolute img inside */
    overflow: hidden;           /* belt-and-braces clip */
    background: #e8e0d9;
}

.pupr-card-image img {
    position: absolute;         /* fills container, never pushes card taller */
    inset: 0;                   /* top/right/bottom/left: 0 */
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
}

.pupr-img-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
    background: #f0e9e4;
    color: #8b7b74;
}

/* ── Right: Content ── */
.pupr-card-content {
    flex: 1;
    padding: 44px 44px 36px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 16px;
    overflow: hidden;
}

/* Stars */
.pupr-stars {
    font-size: 20px;
    color: #8b5c3e;
    letter-spacing: 2px;
    line-height: 1;
}

/* Headline */
.pupr-headline {
    font-size: clamp(20px, 2.2vw, 26px);
    font-weight: 700;
    color: #2a1f1a;
    line-height: 1.25;
    margin: 0;
}

/* Body */
.pupr-body {
    font-size: 15px;
    line-height: 1.65;
    color: #5a4a42;
    margin: 0;
    max-width: 480px;
}

/* Reviewer row */
.pupr-reviewer {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pupr-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    overflow: hidden;
    background: #6b8f5e;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 17px;
    color: #fff;
}

.pupr-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.pupr-reviewer-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.pupr-reviewer-name {
    font-size: 14px;
    font-weight: 700;
    color: #2a1f1a;
}

.pupr-reviewer-breed {
    font-size: 13px;
    color: #8b7b74;
}

/* ── Dots — using <span> to avoid all theme button overrides ── */
.pupr-dots {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 4px;
}

.pupr-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 99px;
    background-color: #d5cdc9;
    flex-shrink: 0;
    cursor: pointer;
    transition: width 0.25s ease, background-color 0.25s ease;
    /* make absolutely sure nothing else interferes */
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
    outline: none;
}

.pupr-dot.active {
    width: 28px;
    background-color: #2a1f1a;
}

.pupr-dot:focus-visible {
    outline: 2px solid #8b5c3e;
    outline-offset: 2px;
}

/* ── Arrows ── */
.pupr-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    appearance: none;
    -webkit-appearance: none;
    background: #ffffff;
    border: 1px solid #e0d8d4;
    border-radius: 50%;
    width: 42px;
    height: 42px;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(42,31,26,0.15);
    transition: background 0.18s, box-shadow 0.18s;
    z-index: 20;
    color: #2a1f1a;
}

.pupr-arrow:hover {
    background: #f5f0ec;
    box-shadow: 0 4px 16px rgba(42,31,26,0.2);
}

/* Sit just inside the card edges so nothing clips them */
.pupr-arrow-prev { left: 14px; }
.pupr-arrow-next { right: 14px; }


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

/* Tablet (<=900px) — stack image on top */
@media (max-width: 900px) {
    .pupr-card {
        flex-direction: column;
        height: auto;
    }

    .pupr-card-image {
        flex: none;
        max-width: 100%;
        width: 100%;
        height: 280px;
    }

    .pupr-card-content {
        padding: 28px 28px 26px;
        gap: 14px;
    }

    .pupr-headline     { font-size: 22px; }
    .pupr-arrow-prev   { left: 10px; }
    .pupr-arrow-next   { right: 10px; }
}

/* Mobile (<=600px) */
@media (max-width: 600px) {
    .pupr-card         { border-radius: 16px; }
    .pupr-card-image   { height: 220px; }

    .pupr-card-content {
        padding: 22px 20px;
        gap: 12px;
    }

    .pupr-stars             { font-size: 17px; }
    .pupr-headline          { font-size: 18px; }
    .pupr-body              { font-size: 14px; }
    .pupr-reviewer-name     { font-size: 13px; }
    .pupr-reviewer-breed    { font-size: 12px; }

    .pupr-arrow {
        width: 34px;
        height: 34px;
        font-size: 18px;
    }
}

/* Very small (<=380px) */
@media (max-width: 380px) {
    .pupr-card-image { height: 180px; }
    .pupr-headline   { font-size: 16px; }
    .pupr-body       { font-size: 13px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .pupr-slide { animation: none; }
}
