/* FF Satisfaction Survey v3.2 — Frontend */

.ff-sat-wrap {
    text-align: center;
    padding: 32px 16px;
    box-sizing: border-box;
    width: 100%;
}

.ff-sat-question {
    color: var(--ff-text, #222);
    font-size: var(--ff-font-size, 32px);
    font-family: var(--ff-font-family, inherit);
    font-weight: 600;
    margin: 0 0 28px;
    line-height: 1.3;
}

/* ─── IKONE ─────────────────────────────────────────────── */

.ff-sat-stars {
    display: flex;
    flex-wrap: wrap;          /* prelom v novo vrsto če ni prostora */
    justify-content: center;
    gap: clamp(6px, 2vw, 20px);
    width: 100%;
}

.ff-sat-star {
    background: none;
    border: none;
    outline: none;
    padding: 0;
    cursor: pointer;
    /* fiksna širina = nastavljeni px, ne raztegovanje */
    flex: 0 0 var(--ff-icon-size, 120px);
    width: var(--ff-icon-size, 120px);
    line-height: 0;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}
.ff-sat-star:focus { outline: none; }
.ff-sat-star:focus-visible { outline: 2px dashed var(--ff-star, #CC1B1B); border-radius: 4px; }
.ff-sat-star:active,
.ff-sat-star.selected {
    background-color: var(--ff-active-bg, transparent);
    border-radius: 6px;
}

.ff-sat-star svg {
    width: var(--ff-icon-size, 120px);
    height: var(--ff-icon-size, 120px);
    display: block;
    fill: var(--ff-star-empty, #E0E0E0);
    transition: fill 0.12s ease, transform 0.15s ease;
}

/* Hover / selected → polna barva */
.ff-sat-star.hovered svg,
.ff-sat-star.selected svg {
    fill: var(--ff-star, #CC1B1B);
}

.ff-sat-star:hover svg,
.ff-sat-star.touch-active svg {
    transform: scale(1.1);
}

/* Pulse ob kliku */
@keyframes ff-star-pulse {
    0%   { transform: scale(1); }
    40%  { transform: scale(1.28); }
    100% { transform: scale(1); }
}
.ff-sat-star.pulse svg {
    animation: ff-star-pulse 0.35s ease;
}

/* ─── HVALA ─────────────────────────────────────────────── */

.ff-sat-hvala {
    font-size: calc(var(--ff-font-size, 32px) * 1.1);
    font-family: var(--ff-font-family, inherit);
    font-weight: 700;
    color: var(--ff-star, #CC1B1B);
    margin-top: 24px;
    min-height: 1.4em;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.ff-sat-hvala.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Ko je zahvala vidna — onemogoči klikanje, ikone ostanejo vidne */
.ff-sat-wrap.voted .ff-sat-stars {
    pointer-events: none;
}

/* Loading state — skrij ikone dokler JS ne naloži prave */
.ff-sat-stars.loading {
    opacity: 0;
}
.ff-sat-stars {
    transition: opacity 0.2s ease;
}
