/* =============================================
   STATUS SELECTOR — DRIXS Profile Settings
   Mobile: click-to-open | Desktop: hover-to-open
   Theme-compatible via CSS variables
   ============================================= */

/* ── Row wrapper ─────────────────────────────── */
.status-selector-group {
    margin-bottom: 0;
}

/* ── Relative container for dropdown positioning */
.status-selector {
    position: relative;
    width: 100%;
}

/* ── Trigger pill button ─────────────────────── */
.status-trigger {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.9);
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
    text-align: left;
    letter-spacing: 0.03em;
}

.status-trigger:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.22);
}

/* ── Chevron icon ────────────────────────────── */
.status-chevron {
    margin-left: auto;
    font-size: 0.75rem;
    opacity: 0.5;
    transition: transform 0.25s ease;
}

.status-selector.open .status-chevron {
    transform: rotate(180deg);
}

/* ── Status icon img on the trigger ─────────── */
.status-trigger-dot {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    display: block;
}

/* ── Dropdown panel ──────────────────────────── */
.status-dropdown {
    position: absolute;
    bottom: calc(100% + 6px);
    top: auto;
    right: 0;
    left: auto;
    width: 220px;
    background: rgba(15, 15, 25, 0.92);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 12px;
    padding: 6px;
    z-index: 9999;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);

    /* Hidden by default */
    opacity: 0;
    pointer-events: none;
    transform: translateY(6px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

/* Mobile: open via .open class (JS-toggled) */
.status-selector.open .status-dropdown {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
}

/* Desktop: ALSO open on hover (pure CSS, no JS needed) */
@media (hover: hover) and (pointer: fine) {
    .status-selector:hover .status-dropdown {
        opacity: 1;
        pointer-events: all;
        transform: translateY(0);
    }
}

/* ── Individual option button ────────────────── */
.status-option {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 10px 12px;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.85);
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.15s ease;
    text-align: left;
}

.status-option:hover {
    background: rgba(255, 255, 255, 0.08);
}

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

/* ── Status img icons inside dropdown options ── */
.status-dot-option {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    display: block;
}

/* ── Option text block ───────────────────────── */
.status-option-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.status-option-name {
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.03em;
}

.status-option-desc {
    font-size: 0.72rem;
    opacity: 0.5;
    letter-spacing: 0;
}

/* ── Theme: Onyx ─────────────────────────────── */
[data-theme="onyx"] .status-trigger {
    border-color: rgba(212, 175, 55, 0.2);
}

[data-theme="onyx"] .status-dropdown {
    border-color: rgba(212, 175, 55, 0.2);
}

[data-theme="onyx"] .status-option:hover {
    background: rgba(212, 175, 55, 0.08);
}

[data-theme="onyx"] .status-option.active {
    background: rgba(212, 175, 55, 0.12);
}

/* ── Theme: Darkish ──────────────────────────── */
[data-theme="darkish"] .status-trigger {
    border-color: rgba(130, 200, 255, 0.15);
}

[data-theme="darkish"] .status-dropdown {
    border-color: rgba(130, 200, 255, 0.15);
    background: rgba(10, 14, 22, 0.95);
}

[data-theme="darkish"] .status-option:hover {
    background: rgba(130, 200, 255, 0.06);
}

/* ── Mobile tweaks ───────────────────────────── */
@media (max-width: 480px) {
    .status-dropdown {
        width: 100%;
        right: 0;
        left: 0;
    }
}
