/* Novice Refleksije – frontend stili v1.3.0 */

.nr-okvir {
    margin: 2.5rem 0 1.5rem;
    padding: 1rem 0;
    font-family: inherit;
}

.nr-naslov {
    margin: 0 0 1.2rem;
    font-size: 1rem;
    font-weight: 600;
    color: #334155;
    text-align: center;
}

/* Postavitev: vodoravno (privzeto) */
.nr-gumbi {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    justify-content: center;
    align-items: center;
}

/* Postavitev: navpično */
.nr-gumbi.nr-navpicno {
    flex-direction: column;
    align-items: flex-start;
}

/* --- Velikosti --- */

/* Majhna */
.nr-gumbi.nr-majhna .nr-gumb {
    min-height: 36px;
    font-size: 0.78rem;
}
.nr-gumbi.nr-majhna .nr-krog {
    width: 30px;
    height: 30px;
    min-width: 30px;
    margin: 3px;
}
.nr-gumbi.nr-majhna .nr-ikona {
    font-size: 0.9rem;
}
.nr-gumbi.nr-majhna .nr-napis {
    padding: 0 0.9rem 0 1rem;
}

/* Srednja (privzeto) */
.nr-gumbi.nr-srednja .nr-gumb {
    min-height: 52px;
    font-size: 1rem;
}
.nr-gumbi.nr-srednja .nr-krog {
    width: 46px;
    height: 46px;
    min-width: 46px;
    margin: 3px;
}
.nr-gumbi.nr-srednja .nr-ikona {
    font-size: 1.3rem;
}
.nr-gumbi.nr-srednja .nr-napis {
    padding: 0 1.4rem 0 1.6rem;
}

/* Velika */
.nr-gumbi.nr-velika .nr-gumb {
    min-height: 66px;
    font-size: 1.15rem;
}
.nr-gumbi.nr-velika .nr-krog {
    width: 58px;
    height: 58px;
    min-width: 58px;
    margin: 4px;
}
.nr-gumbi.nr-velika .nr-ikona {
    font-size: 1.6rem;
}
.nr-gumbi.nr-velika .nr-napis {
    padding: 0 1.8rem 0 2rem;
}

/* --- Gumb --- */
.nr-gumb {
    display: inline-flex;
    align-items: center;
    padding: 0;
    border: none;
    border-radius: 50px;
    background: #2271b1;
    cursor: pointer;
    color: #ffffff;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    overflow: hidden;
    box-shadow: 0 3px 8px rgba(0,0,0,0.18);
    text-decoration: none;
}

.nr-gumb:hover:not(.nr-disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.22);
}

.nr-gumb.nr-disabled {
    cursor: default;
    opacity: 0.6;
    box-shadow: none;
}

/* Napis */
.nr-napis {
    white-space: nowrap;
    line-height: 1;
}

/* Desni krog — wrapper */
.nr-krog {
    position: relative;
    flex-shrink: 0;
}

/* Ikona — beli krog, privzeto viden */
.nr-ikona {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #ffffff;
    color: inherit;
    transition: opacity 0.2s ease, transform 0.2s ease;
    opacity: 1;
    transform: scale(1);
}

/* Števec — privzeto skrit */
.nr-stevec {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    font-size: 0.9rem;
    font-weight: 700;
    color: #fff;
    transition: opacity 0.2s ease, transform 0.2s ease;
    opacity: 0;
    transform: scale(0.6);
}

/* Hover: skrij ikono, pokaži števec */
.nr-gumb:hover:not(.nr-disabled) .nr-ikona {
    opacity: 0;
    transform: scale(0.6);
}

.nr-gumb:hover:not(.nr-disabled) .nr-stevec {
    opacity: 1;
    transform: scale(1);
}

.nr-sporocilo {
    margin: 1rem 0 0;
    text-align: center;
    font-size: 0.88rem;
    color: #64748b;
}

.nr-sporocilo.nr-napaka {
    color: #dc2626;
}

/* Touch naprave (iPad, iPhone) */
@media (hover: none) and (pointer: coarse) {
    .nr-gumb {
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
        cursor: pointer;
    }

    /* Na touch napravah ni hovra — prikaži števec vedno */
    .nr-stevec {
        opacity: 1 !important;
        transform: scale(1) !important;
    }

    .nr-ikona {
        opacity: 0 !important;
        transform: scale(0.6) !important;
    }
}

/* Mobilna prilagoditev */
@media (max-width: 480px) {
    .nr-gumbi:not(.nr-navpicno) {
        flex-direction: column;
        align-items: stretch;
    }

    .nr-gumb {
        justify-content: space-between;
    }

    .nr-napis {
        flex: 1;
        text-align: center;
    }

    /* Na mobilnem ni hovra — prikaži števec vedno */
    .nr-stevec {
        opacity: 1;
        transform: scale(1);
    }

    .nr-ikona {
        opacity: 0;
        transform: scale(0.6);
    }
}
