
/* =========================================================
   KUGL COMBO V1
   ---------------------------------------------------------
   Skupni zlato-jantarni izbirnik za celoten KUGL

   Datoteka:
   /bv/css/kugl-combo.css

   Uporaba:
   select.kugl-combo

   - Enoten videz
   - Lasten odprti seznam
   - Hover in pointer
   - Označena izbrana vrednost
   - Prilagoditev za telefon
========================================================= */


/* =========================================================
   1. GLAVNI VSEBNIK
========================================================= */

.kugl-combo-wrap {

    position: relative;

    display: inline-flex;
    align-items: center;

    flex: 0 0 auto;

    width: max-content;
    max-width: 100%;

    vertical-align: middle;

    font-family: inherit;

    z-index: 20;

}

.kugl-combo-wrap.open {

    z-index: 200;

}


/* =========================================================
   2. ORIGINALNI SELECT
   Ostane v DOM zaradi obstoječe logike.
========================================================= */

.kugl-combo-native {

    position: absolute !important;

    width: 1px !important;
    height: 1px !important;

    margin: 0 !important;
    padding: 0 !important;

    opacity: 0 !important;

    overflow: hidden !important;

    clip-path: inset(50%) !important;

    pointer-events: none !important;

}


/* =========================================================
   3. GLAVNI GUMB
========================================================= */

.kugl-combo-trigger {

    display: inline-flex;
    align-items: center;
    justify-content: space-between;

    gap: 18px;

    min-width: 150px;
    min-height: 50px;

    padding:
        0 16px 0 18px;

    box-sizing: border-box;

    border:
        2px solid #e5ad37;

    border-radius: 12px;

    background:
        linear-gradient(
            180deg,
            #493719 0%,
            #2d220f 100%
        );

    color: #ffe29a;

    font-family: inherit;
    font-size: 18px;
    font-weight: 850;
    line-height: 1.2;

    text-align: left;

    white-space: nowrap;

    cursor: pointer;

    box-shadow:
        0 0 12px rgba(229, 173, 55, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);

    transition:
        border-color 0.18s ease,
        box-shadow 0.18s ease,
        background 0.18s ease;

}


/* =========================================================
   4. HOVER GLAVNEGA GUMBA
========================================================= */

.kugl-combo-trigger:hover {

    border-color: #ffd15c;

    background:
        linear-gradient(
            180deg,
            #5a441f 0%,
            #382b13 100%
        );

    box-shadow:
        0 0 18px rgba(255, 209, 92, 0.30);

}


/* =========================================================
   5. ODPRT COMBO
========================================================= */

.kugl-combo-wrap.open .kugl-combo-trigger {

    border-color: #ffe29a;

    box-shadow:
        0 0 0 2px rgba(255, 209, 92, 0.15),
        0 0 18px rgba(255, 209, 92, 0.25);

}


/* =========================================================
   6. FOCUS
========================================================= */

.kugl-combo-trigger:focus-visible {

    outline:
        2px solid #ffe29a;

    outline-offset: 3px;

}


/* =========================================================
   7. BESEDILO IZBRANE VREDNOSTI
========================================================= */

.kugl-combo-label {

    display: block;

    min-width: 0;

    color: #ffe29a;

    font-size: inherit;
    font-weight: inherit;

    white-space: nowrap;

}


/* =========================================================
   8. PUŠČICA
========================================================= */

.kugl-combo-arrow {

    display: inline-flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    color: #ffd15c;

    font-size: 18px;
    line-height: 1;

    transition:
        transform 0.18s ease;

}

.kugl-combo-wrap.open .kugl-combo-arrow {

    transform: rotate(180deg);

}


/* =========================================================
   9. ODPRTI SEZNAM
========================================================= */

.kugl-combo-menu {

    position: absolute;

    top: calc(100% + 6px);
    left: 0;

    width: 100%;
    min-width: 100%;

    max-height: 300px;

    padding: 6px;

    box-sizing: border-box;

    overflow-y: auto;
    overscroll-behavior: contain;

    border:
        1px solid #e5ad37;

    border-radius: 10px;

    background:
        #171c22;

    box-shadow:
        0 12px 28px rgba(0, 0, 0, 0.45),
        0 0 16px rgba(229, 173, 55, 0.12);

    z-index: 300;

}


/* =========================================================
   10. ZAPRT SEZNAM
========================================================= */

.kugl-combo-menu[hidden] {

    display: none !important;

}


/* =========================================================
   11. POSAMEZNA MOŽNOST
========================================================= */

.kugl-combo-option {

    display: flex;
    align-items: center;

    width: 100%;
    min-height: 42px;

    padding:
        10px 12px;

    box-sizing: border-box;

    border: 0;
    border-radius: 7px;

    background: transparent;

    color: #f1e3be;

    font-family: inherit;
    font-size: 16px;
    font-weight: 750;
    line-height: 1.2;

    text-align: left;

    white-space: nowrap;

    cursor: pointer;

    transition:
        background-color 0.15s ease,
        color 0.15s ease;

}


/* =========================================================
   12. HOVER MOŽNOSTI
========================================================= */

.kugl-combo-option:hover,
.kugl-combo-option:focus-visible {

    background:
        #59431c;

    color:
        #ffe29a;

    outline: none;

    cursor: pointer;

}


/* =========================================================
   13. TRENUTNO IZBRANA MOŽNOST
========================================================= */

.kugl-combo-option.selected {

    background:
        #382b13;

    color:
        #ffd15c;

    font-weight: 900;

    box-shadow:
        inset 3px 0 0 #e5ad37;

}

.kugl-combo-option.selected:hover,
.kugl-combo-option.selected:focus-visible {

    background:
        #654b1e;

    color:
        #fff0c1;

}


/* =========================================================
   14. ONEMOGOČENA MOŽNOST
========================================================= */

.kugl-combo-option:disabled {

    opacity: 0.4;

    cursor: not-allowed;

}


/* =========================================================
   15. SCROLLBAR
========================================================= */

.kugl-combo-menu {

    scrollbar-width: thin;

    scrollbar-color:
        #a77d2a #171c22;

}

.kugl-combo-menu::-webkit-scrollbar {

    width: 7px;

}

.kugl-combo-menu::-webkit-scrollbar-track {

    background: #171c22;

}

.kugl-combo-menu::-webkit-scrollbar-thumb {

    background: #a77d2a;

    border-radius: 6px;

}


/* =========================================================
   16. TELEFON
========================================================= */

@media (max-width: 600px) {

    .kugl-combo-trigger {

        min-width: 140px;
        min-height: 48px;

        padding:
            0 13px 0 15px;

        font-size: 17px;

    }

    .kugl-combo-option {

        min-height: 44px;

        font-size: 16px;

    }

    .kugl-combo-menu {

        max-height: 260px;

    }

}
