/**
 * Noghte Radial Menu - Core Styles
 * @package Noghte_Radial_Menu
 */

/* ═══ WIDGET BASE ═══ */
.nrm-widget {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
}

.nrm-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 400px;
}

/* ═══ CENTER DOT ═══ */
.nrm-center-dot-wrap {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.nrm-center-dot {
    border-radius: 50% !important;
    border: none !important;
    outline: none;
    cursor: pointer;
    transition: transform 0.3s ease;
    z-index: 2;
    padding: 0;
    margin: 0;
    display: block;
    box-sizing: border-box !important;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    line-height: 1;
    font-size: 0;
    overflow: hidden;
    background: #000000;
}

.nrm-center-dot:hover {
    transform: scale(1.1);
}

.nrm-center-dot:focus-visible {
    outline: 2px solid #333;
    outline-offset: 4px;
}

.nrm-dot-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    pointer-events: none;
    box-shadow: 0 0 15px 5px currentColor;
    opacity: 0.4;
}

/* ═══ PULSE ═══ */
.nrm-pulse-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    z-index: 1;
    pointer-events: none;
}

.nrm-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    min-width: 20px;
    min-height: 20px;
    border-radius: 50%;
    background-color: var(--pulse-color, rgba(0,0,0,0.15));
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -50%) scale(1);
}

/* ═══ RADAR ═══ */
.nrm-radar-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    z-index: 1;
    pointer-events: none;
}

/* ═══ SVG LINES ═══ */
.nrm-lines-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
    pointer-events: none;
    z-index: 1;
}

.nrm-line {
    stroke-linecap: round;
    fill: none;
    opacity: 0;
}

/* ═══ MENU ITEMS CONTAINER ═══ */
.nrm-menu-items {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    pointer-events: none;
}

/* ═══ SINGLE MENU ITEM WRAPPER ═══ */
.nrm-menu-item-wrap {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -50%) scale(0);
    will-change: transform, opacity;
    z-index: 6;
}

.nrm-widget--open .nrm-menu-item-wrap {
    pointer-events: auto;
}

/* ═══ MENU ITEM LINK ═══ */
.nrm-menu-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 0;
    text-decoration: none;
    color: #000000;
    white-space: nowrap;
    position: relative;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    pointer-events: auto;
    cursor: pointer;
    transition: color 0.3s ease;
}

.nrm-menu-item:hover {
    background: transparent !important;
    box-shadow: none !important;
}

.nrm-menu-item:active {
    background: transparent !important;
}

.nrm-menu-item__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 16px;
}

.nrm-menu-item__icon svg,
.nrm-menu-item__icon i {
    width: 1em;
    height: 1em;
}

.nrm-menu-item__title {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
}

.nrm-menu-item__tooltip {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    padding: 4px 12px;
    background-color: #333;
    color: #fff;
    font-size: 12px;
    border-radius: 4px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 100;
}

.nrm-menu-item:hover .nrm-menu-item__tooltip {
    opacity: 1;
}

/* ═══ OPEN STATE ═══ */
.nrm-widget--open .nrm-center-dot {
    transform: scale(1);
}

/* ═══ ACCESSIBILITY ═══ */
.nrm-menu-item:focus-visible {
    outline: 2px solid #333;
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    .nrm-pulse,
    .nrm-center-dot,
    .nrm-menu-item,
    .nrm-menu-item-wrap,
    .nrm-line,
    .nrm-radar {
        transition: none !important;
        animation: none !important;
    }
}
