﻿/* ============================================
   BJNFNE — Custom Context Menu
   Designed & developed by DosX
   ============================================ */

/* --- Custom Context Menu --- */
.ctx-menu {
    position: fixed;
    z-index: 10000;
    min-width: 200px;
    max-width: 280px;
    padding: 6px 0;
    background: rgba(12, 12, 22, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.04) inset;
    opacity: 0;
    transform: scale(0.96);
    transform-origin: top left;
    transition:
        opacity 0.15s,
        transform 0.15s;
    font-family: var(--font-sans);
}

.ctx-menu__item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 8px 14px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.82rem;
    font-family: var(--font-sans);
    cursor: pointer;
    transition: background 0.12s;
    text-align: left;
    line-height: 1.3;
}

.ctx-menu__item:hover {
    background: rgba(77, 144, 228, 0.15);
}

.ctx-menu__item--disabled {
    opacity: 0.3;
    pointer-events: none;
}

.ctx-menu__icon {
    flex-shrink: 0;
    width: 18px;
    text-align: center;
    font-size: 0.9rem;
    color: rgba(147, 197, 253, 0.7);
}

.ctx-menu__label {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ctx-menu__sep {
    height: 1px;
    margin: 4px 12px;
    background: rgba(255, 255, 255, 0.06);
}

/* Toast notification */
.ctx-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(12px);
    padding: 8px 18px;
    background: rgba(12, 12, 22, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    color: rgba(255, 255, 255, 0.85);
    font-family: var(--font-sans);
    font-size: 0.8rem;
    opacity: 0;
    transition:
        opacity 0.25s,
        transform 0.25s;
    z-index: 10001;
    pointer-events: none;
}

.ctx-toast--show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* About overlay */
.ctx-about {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10002;
    opacity: 0;
    transition: opacity 0.25s;
}

.ctx-about--show {
    opacity: 1;
}

.ctx-about__box {
    position: relative;
    max-width: 340px;
    width: 88vw;
    background: rgba(10, 10, 20, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    backdrop-filter: blur(32px);
    -webkit-backdrop-filter: blur(32px);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6);
    transform: translateY(16px) scale(0.98);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 28px 24px 20px;
    text-align: center;
}

.ctx-about--show .ctx-about__box {
    transform: translateY(0) scale(1);
}

.ctx-about__close {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.75rem;
    cursor: pointer;
    transition:
        background 0.15s,
        color 0.15s;
}

.ctx-about__close:hover {
    background: rgba(196, 43, 28, 0.5);
    border-color: rgba(196, 43, 28, 0.4);
    color: #fff;
}

.ctx-about__header {
    margin-bottom: 16px;
}

.ctx-about__logo {
    font-family: var(--font-mono);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.ctx-about__tagline {
    color: rgba(147, 197, 253, 0.8);
    font-size: 0.82rem;
    margin: 8px 0 0;
    font-family: var(--font-sans);
}

.ctx-about__body {
    font-family: var(--font-sans);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    line-height: 1.6;
}

.ctx-about__desc {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.45);
    margin: 0 0 16px;
}

.ctx-about__links {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.ctx-about__links a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    background: rgba(77, 144, 228, 0.1);
    border: 1px solid rgba(77, 144, 228, 0.18);
    border-radius: 6px;
    color: rgba(147, 197, 253, 0.9);
    font-size: 0.78rem;
    font-family: var(--font-sans);
    transition:
        background 0.15s,
        border-color 0.15s;
}

.ctx-about__links a:hover {
    background: rgba(77, 144, 228, 0.22);
    border-color: rgba(77, 144, 228, 0.35);
}

.ctx-about__links a svg {
    flex-shrink: 0;
}

.ctx-about__meta {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.3);
    margin: 16px 0 0;
    font-family: var(--font-sans);
}

.ctx-about__meta a {
    color: rgba(147, 197, 253, 0.6);
    transition: color 0.15s;
}

.ctx-about__meta a:hover {
    color: #93c5fd;
}
