/* ================================================================
   Google Review Modal – CSS
   Brand: #023D5B (plava) · #728D6A (zelena)
   ================================================================ */

/* ---- Backdrop ---- */
.rev-gr-backdrop {
    position: fixed;
    inset: 0;
    z-index: 99998;
    background: rgba(2, 20, 35, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;

    /* Animacija ulaza */
    opacity: 0;
    animation: rev-gr-backdrop-in 0.28s ease forwards;
}

@keyframes rev-gr-backdrop-in {
    to { opacity: 1; }
}

.rev-gr-backdrop.is-closing {
    animation: rev-gr-backdrop-out 0.22s ease forwards;
}

@keyframes rev-gr-backdrop-out {
    from { opacity: 1; }
    to   { opacity: 0; }
}

/* ---- Modal kartica ---- */
.rev-gr-modal {
    position: relative;
    z-index: 99999;
    background: #fff;
    border-radius: 18px;
    padding: 44px 40px 36px;
    max-width: 480px;
    width: 100%;
    box-shadow:
        0 24px 64px rgba(2, 61, 91, .22),
        0 4px 16px rgba(2, 61, 91, .12);
    text-align: center;
    box-sizing: border-box;

    /* Gornja akcent linija */
    border-top: 4px solid transparent;
    border-image: linear-gradient(90deg, #023D5B 0%, #728D6A 100%) 1;

    /* Animacija ulaza */
    transform: translateY(28px) scale(0.97);
    opacity: 0;
    animation: rev-gr-modal-in 0.32s cubic-bezier(0.34, 1.36, 0.64, 1) 0.06s forwards;
}

@keyframes rev-gr-modal-in {
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.rev-gr-backdrop.is-closing .rev-gr-modal {
    animation: rev-gr-modal-out 0.20s ease forwards;
}

@keyframes rev-gr-modal-out {
    to {
        transform: translateY(16px) scale(0.97);
        opacity: 0;
    }
}

/* ---- Zatvori (X) dugme ---- */
.rev-gr-close {
    position: absolute;
    top: 14px;
    right: 16px;
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    transition: background .18s, color .18s;
    padding: 0;
    font-size: 20px;
    line-height: 1;
}

.rev-gr-close:hover {
    background: #f1f5f9;
    color: #023D5B;
}

/* ---- Google logo ikona ---- */
.rev-gr-google-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 16px;
    display: block;
}

/* ---- Zvjezdice dekoracija ---- */
.rev-gr-stars {
    font-size: 32px;
    letter-spacing: 3px;
    color: #728D6A;
    margin-bottom: 18px;
    display: block;
    line-height: 1;
    animation: rev-gr-stars-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.25s both;
}

@keyframes rev-gr-stars-pop {
    from { transform: scale(0.6); opacity: 0; }
    to   { transform: scale(1);   opacity: 1; }
}

/* ---- Naslov ---- */
.rev-gr-title {
    font-size: 21px;
    font-weight: 800;
    color: #023D5B;
    margin: 0 0 12px;
    line-height: 1.3;
    letter-spacing: -.01em;
}

/* ---- Tekst ---- */
.rev-gr-text {
    font-size: 15px;
    color: #4a6070;
    line-height: 1.65;
    margin: 0 0 28px;
}

/* ---- Akcije ---- */
.rev-gr-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* CTA – Google dugme */
.rev-gr-btn-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, #023D5B 0%, #034e75 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: .02em;
    font-family: inherit;
    transition: box-shadow .2s, transform .15s, filter .2s;
    box-shadow: 0 4px 16px rgba(2, 61, 91, .30);
    text-decoration: none;
    width: 100%;
    box-sizing: border-box;
}

.rev-gr-btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(2, 61, 91, .38);
    filter: brightness(1.08);
}

.rev-gr-btn-cta:active {
    transform: translateY(0);
}

/* Google G ikona unutar dugmeta */
.rev-gr-btn-cta svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* Sekundarno – Zatvori */
.rev-gr-btn-dismiss {
    background: transparent;
    color: #7a92a3;
    border: 1.5px solid #e2eaf0;
    border-radius: 10px;
    padding: 11px 24px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    transition: background .18s, color .18s, border-color .18s;
    width: 100%;
    box-sizing: border-box;
}

.rev-gr-btn-dismiss:hover {
    background: #f5f8fa;
    color: #023D5B;
    border-color: #b0c8d8;
}

/* ---- Responsive ---- */
@media (max-width: 520px) {
    .rev-gr-modal {
        padding: 36px 22px 28px;
        border-radius: 14px;
    }

    .rev-gr-title {
        font-size: 18px;
    }

    .rev-gr-stars {
        font-size: 26px;
    }
}
