/* ==========================================================================
   TPP Bos - Review Keuze Pagina
   QR-code landingspagina voor Google Reviews
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Sen:wght@400;700;800&display=swap');

:root {
    --brand: #5c41a7;
    --brand-light: #7c66b8;
    --brand-dark: #3d2b7a;
    --accent: #51d095;
    --pink: rgb(249, 112, 160);
    --teal: rgb(22, 60, 56);
    --orange: rgb(255, 166, 90);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ==========================================================================
   Background
   ========================================================================== */

.review-page {
    min-height: 100vh;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    position: relative;
    overflow: hidden;
    font-family: 'Sen', sans-serif;
    background:
        radial-gradient(1200px 600px at 15% 20%, color-mix(in oklab, var(--brand) 90%, #000 10%), transparent),
        radial-gradient(800px 400px at 85% 80%, color-mix(in oklab, var(--accent) 20%, transparent), transparent),
        radial-gradient(600px 300px at 50% 50%, color-mix(in oklab, var(--pink) 10%, transparent), transparent),
        var(--brand-dark);
}

/* Animated floating shapes */
.review-page::before,
.review-page::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    animation: floatBlob 20s ease-in-out infinite;
    pointer-events: none;
}

.review-page::before {
    width: 500px;
    height: 500px;
    background: var(--accent);
    top: -200px;
    right: -100px;
    animation-delay: -5s;
}

.review-page::after {
    width: 400px;
    height: 400px;
    background: var(--pink);
    bottom: -150px;
    left: -100px;
    animation-delay: -10s;
}

@keyframes floatBlob {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -40px) scale(1.05); }
    50% { transform: translate(-20px, 20px) scale(0.95); }
    75% { transform: translate(15px, 30px) scale(1.02); }
}

/* ==========================================================================
   Content wrapper
   ========================================================================== */

.review-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 800px;
    text-align: center;
}

/* ==========================================================================
   Logo
   ========================================================================== */

.review-logo {
    margin-bottom: 32px;
}

.review-logo img {
    max-width: 180px;
    height: auto;
    margin: 0 auto;
    display: block;
}

.review-logo .text-logo {
    color: #ffffff;
    font-size: 28px;
    font-weight: 800;
}

/* ==========================================================================
   Stars animation
   ========================================================================== */

.review-stars {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-bottom: 24px;
}

.review-stars .star {
    font-size: 32px;
    color: var(--orange);
    opacity: 0;
    transform: scale(0) rotate(-20deg);
    animation: starPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    filter: drop-shadow(0 2px 8px rgba(255, 166, 90, 0.4));
}

.review-stars .star:nth-child(1) { animation-delay: 0.2s; }
.review-stars .star:nth-child(2) { animation-delay: 0.35s; }
.review-stars .star:nth-child(3) { animation-delay: 0.5s; }
.review-stars .star:nth-child(4) { animation-delay: 0.65s; }
.review-stars .star:nth-child(5) { animation-delay: 0.8s; }

@keyframes starPop {
    0% { opacity: 0; transform: scale(0) rotate(-20deg); }
    60% { transform: scale(1.3) rotate(5deg); }
    100% { opacity: 1; transform: scale(1) rotate(0deg); }
}

/* ==========================================================================
   Heading
   ========================================================================== */

.review-heading h1 {
    font-size: clamp(26px, 6vw, 42px);
    font-weight: 800;
    color: #ffffff;
    line-height: 1.15;
    margin-bottom: 10px;
    opacity: 0;
    animation: fadeUp 0.6s ease-out 0.4s forwards;
}

.review-heading p {
    font-size: clamp(15px, 3.5vw, 18px);
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.6;
    max-width: 500px;
    margin: 0 auto 40px;
    opacity: 0;
    animation: fadeUp 0.6s ease-out 0.6s forwards;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   Location cards
   ========================================================================== */

.review-locations {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    opacity: 0;
    animation: fadeUp 0.7s ease-out 0.8s forwards;
}

.review-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 24px 40px;
    border-radius: 20px;
    text-decoration: none;
    color: #ffffff;
    overflow: hidden;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.35s ease;
    cursor: pointer;
    isolation: isolate;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.review-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.12) 0%,
        rgba(255, 255, 255, 0) 50%,
        rgba(255, 255, 255, 0.04) 100%
    );
    z-index: -1;
    transition: opacity 0.3s ease;
}

.review-card::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 21px;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.2),
        transparent 50%,
        rgba(255, 255, 255, 0.05)
    );
    z-index: -2;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.review-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(255, 255, 255, 0.15);
}

.review-card:hover::after {
    opacity: 1;
}

.review-card:active {
    transform: translateY(-2px) scale(0.98);
}

/* Card icon */
.review-card__icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 32px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.review-card:first-child .review-card__icon {
    background: linear-gradient(135deg, var(--accent), color-mix(in oklab, var(--accent) 70%, var(--brand)));
    box-shadow: 0 8px 24px rgba(81, 208, 149, 0.3);
}

.review-card:last-child .review-card__icon {
    background: linear-gradient(135deg, var(--pink), color-mix(in oklab, var(--pink) 70%, var(--brand)));
    box-shadow: 0 8px 24px rgba(249, 112, 160, 0.3);
}

.review-card:hover .review-card__icon {
    transform: scale(1.1) rotate(-3deg);
}

/* Card text */
.review-card__location {
    font-size: clamp(22px, 4.5vw, 28px);
    font-weight: 800;
    margin-bottom: 6px;
    letter-spacing: -0.02em;
}

.review-card__label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 400;
    margin-bottom: 24px;
}

/* Card CTA button */
.review-card__cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 700;
    font-family: 'Sen', sans-serif;
    transition: all 0.25s ease;
    border: none;
    cursor: pointer;
}

.review-card:first-child .review-card__cta {
    background: var(--accent);
    color: var(--teal);
}

.review-card:last-child .review-card__cta {
    background: var(--pink);
    color: #fff;
}

.review-card:hover .review-card__cta {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.review-card__cta .arrow {
    transition: transform 0.25s ease;
    font-size: 18px;
}

.review-card:hover .review-card__cta .arrow {
    transform: translateX(4px);
}

/* ==========================================================================
   Google badge
   ========================================================================== */

.review-google-badge {
    margin-top: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.45);
    font-size: 13px;
    opacity: 0;
    animation: fadeUp 0.5s ease-out 1.2s forwards;
}

.review-google-badge svg {
    width: 18px;
    height: 18px;
    opacity: 0.6;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media screen and (max-width: 600px) {
    .review-page {
        padding: 20px 16px;
        padding-top: 16px;
        height: auto;
        min-height: 100vh;
        min-height: 100dvh;
    }

    .review-logo {
        display: none;
    }

    .review-stars {
        margin-bottom: 10px;
        gap: 4px;
    }

    .review-stars .star {
        font-size: 22px;
    }

    .review-heading h1 {
        font-size: 24px;
        margin-bottom: 6px;
    }

    .review-heading p {
        font-size: 14px;
        line-height: 1.4;
        margin-bottom: 20px;
    }

    .review-locations {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .review-card {
        padding: 20px 16px;
        flex-direction: row;
        gap: 14px;
        justify-content: flex-start;
        text-align: left;
    }

    .review-card__icon {
        width: 48px;
        height: 48px;
        min-width: 48px;
        margin-bottom: 0;
    }

    .review-card__icon svg {
        width: 24px;
        height: 24px;
    }

    .review-card__text {
        flex: 1;
    }

    .review-card__location {
        font-size: 20px;
        margin-bottom: 2px;
    }

    .review-card__label {
        font-size: 13px;
        margin-bottom: 10px;
    }

    .review-card__cta {
        padding: 8px 20px;
        font-size: 13px;
    }

    .review-google-badge {
        margin-top: 24px;
        font-size: 12px;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .review-stars .star,
    .review-heading h1,
    .review-heading p,
    .review-locations,
    .review-google-badge {
        animation: none;
        opacity: 1;
        transform: none;
    }

    .review-page::before,
    .review-page::after {
        animation: none;
    }

    .review-card {
        transition: none;
    }
}
