/* ============================================================
   JOJI Merch Enhancer — Styles
   ============================================================ */

/* ---- Currency Switcher ---- */
#joji-switcher {
    position: fixed;
    top: 16px;
    right: 20px;
    z-index: 999999;
    font-family: inherit;
}

#joji-switcher-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 20px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.03em;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: background 0.2s, border-color 0.2s;
    white-space: nowrap;
}

#joji-switcher-btn:hover {
    background: rgba(0, 0, 0, 0.92);
    border-color: rgba(255, 255, 255, 0.5);
}

.joji-sym  { font-size: 14px; }
.joji-code { font-size: 12px; opacity: 0.85; }

.joji-arrow {
    margin-left: 2px;
    transition: transform 0.2s;
    flex-shrink: 0;
}

#joji-switcher.open .joji-arrow {
    transform: rotate(180deg);
}

/* Dropdown */
#joji-switcher-dropdown {
    display: none;
    list-style: none;
    margin: 6px 0 0 0;
    padding: 6px 0;
    position: absolute;
    right: 0;
    top: 100%;
    min-width: 190px;
    background: rgba(15, 15, 15, 0.97);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.35);
}

#joji-switcher.open #joji-switcher-dropdown {
    display: block;
    animation: joji-fade-in 0.15s ease;
}

@keyframes joji-fade-in {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0);    }
}

.joji-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 14px;
    cursor: pointer;
    color: rgba(255,255,255,0.8);
    font-size: 13px;
    transition: background 0.12s, color 0.12s;
}

.joji-option:hover {
    background: rgba(255,255,255,0.08);
    color: #fff;
}

.joji-option.joji-active {
    color: #fff;
    background: rgba(255,255,255,0.12);
}

.joji-option.joji-active::after {
    content: "✓";
    margin-left: auto;
    font-size: 12px;
    color: rgba(255,255,255,0.6);
}

.joji-opt-sym  { font-size: 15px; font-weight: 500; min-width: 18px; text-align: center; }
.joji-opt-code { font-weight: 600; font-size: 13px; min-width: 32px; }
.joji-opt-name { font-size: 12px; opacity: 0.65; }

/* Loading overlay during currency switch */
#joji-loading {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.3);
    z-index: 1000000;
    align-items: center;
    justify-content: center;
}
#joji-loading.active { display: flex; }
#joji-loading-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: joji-spin 0.7s linear infinite;
}
@keyframes joji-spin { to { transform: rotate(360deg); } }

/* ---- Rating stars v zozname produktov ---- */
.joji-loop-rating {
    margin: 4px 0 6px;
    line-height: 1;
}

.joji-loop-rating .star-rating {
    font-size: 12px;
    color: #f0a500;
}

/* ---- SEO admin stĺpec ---- */
.column-joji_seo_status {
    width: 90px;
}
