/* ====================================================
   Asguard Info Panel — Modal Popup System
   ==================================================== */

/* --- Backdrop Overlay --- */
.asguard-info-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000010;
    background: rgba(5, 6, 7, 0.72);
    backdrop-filter: blur(8px) saturate(0.6);
    -webkit-backdrop-filter: blur(8px) saturate(0.6);
    opacity: 0;
    transition: opacity 0.35s ease;
    cursor: pointer;
}
.asguard-info-overlay.show {
    display: block !important;
    opacity: 1 !important;
}

/* --- Modal Panel --- */
.asguard-info-panel {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -46%);
    width: min(720px, 92vw);
    max-height: 85vh;
    overflow-y: auto;
    z-index: 2000020;
    background: #111825;
    border: 1px solid #f7992b;
    border-top: 3px solid #f7992b;
    box-shadow:
        0 0 0 1px rgba(247,153,43,0.08),
        0 24px 80px rgba(0,0,0,0.85),
        0 0 60px rgba(247,153,43,0.06);
    border-radius: 4px;
    opacity: 0;
    transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.34, 1.2, 0.64, 1);
    font-family: var(--ide-font-mono, 'Fira Code', monospace);
}
.asguard-info-panel.show {
    display: block !important;
    opacity: 1 !important;
    transform: translate(-50%, -50%) !important;
}

/* Scrollbar */
.asguard-info-panel::-webkit-scrollbar { width: 4px; }
.asguard-info-panel::-webkit-scrollbar-track { background: #0d1117; }
.asguard-info-panel::-webkit-scrollbar-thumb { background: #f7992b44; border-radius: 4px; }

/* --- Title Bar (IDE-style) --- */
.asguard-info-titlebar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    background: #1a2030;
    border-bottom: 1px solid #30363d;
    min-height: 40px;
    position: sticky;
    top: 0;
    z-index: 5;
}
.asguard-info-titlebar-dots {
    display: flex;
    gap: 6px;
    align-items: center;
}
.asguard-info-titlebar-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}
.asguard-info-titlebar-dots span:nth-child(1) { background: #ff5f57; }
.asguard-info-titlebar-dots span:nth-child(2) { background: #ffbd2e; }
.asguard-info-titlebar-dots span:nth-child(3) { background: #28c840; }

.asguard-info-titlebar-label {
    font-size: 11px;
    color: #f7992b;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-weight: 700;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

/* --- Close Button --- */
.asguard-info-close {
    background: transparent;
    border: none;
    color: #556372;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    padding: 2px 4px;
    border-radius: 3px;
    transition: color 0.2s, background 0.2s;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}
.asguard-info-close:hover {
    color: #eff0f1;
    background: rgba(247,153,43,0.12);
}

/* --- Content Area --- */
.asguard-info-inner {
    padding: 28px 32px 32px;
}
.asguard-info-content {
    font-size: 15px;
    line-height: 1.7;
    color: #cdd6e0;
    font-family: var(--ide-font-sans, 'Roboto', sans-serif);
}
.asguard-info-content h1,
.asguard-info-content h2,
.asguard-info-content h3 {
    color: #f7992b;
    margin-top: 0;
    font-family: var(--ide-font-mono, 'Fira Code', monospace);
    font-size: 18px;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.asguard-info-content h3::before {
    content: '//';
    color: #f7992b88;
    font-size: 14px;
}

/* Telegram links auto-styled */
.asguard-tg-link {
    color: #3daee9;
    text-decoration: none;
    border-bottom: 1px solid #3daee944;
    transition: color 0.2s, border-color 0.2s;
    font-weight: 600;
}
.asguard-tg-link:hover {
    color: #60c5f0;
    border-color: #3daee9;
}

/* --- Scan line animation (subtle IDE feel) --- */
.asguard-info-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0,0,0,0.04) 2px,
        rgba(0,0,0,0.04) 4px
    );
    pointer-events: none;
    border-radius: 4px;
}

/* --- Footer stripe --- */
.asguard-info-footer {
    padding: 10px 32px;
    background: #0e1420;
    border-top: 1px solid #30363d;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: #445566;
    font-family: var(--ide-font-mono, 'Fira Code', monospace);
}
.asguard-info-footer::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #f7992b;
    box-shadow: 0 0 6px #f7992b;
    animation: asgInfoPulse 2s infinite;
    flex-shrink: 0;
}
@keyframes asgInfoPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}
