/* ============================================================
   3. WIKI SIMULATORS, WIDGETS & PRINT STYLES
   ============================================================ */

/* ============================================================
   Annotated Screenshot Card (Modern Device Frame & 2x2 Grid)
   ============================================================ */
.screenshot-annotated-wrap {
    position: relative;
    background: linear-gradient(145deg, rgba(13, 21, 39, 0.95), rgba(6, 10, 20, 0.98));
    border: 1.5px solid rgba(59, 130, 246, 0.35);
    border-radius: 20px;
    padding: 24px 28px;
    margin: 28px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

@media (min-width: 860px) {
    .screenshot-annotated-wrap {
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        gap: 36px;
        padding: 28px 32px;
    }
}

.screenshot-container {
    position: relative;
    display: block;
    width: 100%;
    max-width: 170px !important;
    margin: 0 auto;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.7), 0 0 20px rgba(37, 99, 235, 0.2);
    cursor: zoom-in;
    border: 2px solid rgba(255, 255, 255, 0.12);
    background: #020617;
    flex-shrink: 0;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
}

.screenshot-container:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 32px rgba(37, 99, 235, 0.35), 0 0 24px rgba(59, 130, 246, 0.4);
    border-color: rgba(59, 130, 246, 0.6);
}

.screenshot-container img {
    width: 100% !important;
    height: auto !important;
    max-height: 350px !important;
    object-fit: contain;
    display: block;
    border-radius: 14px;
    transition: filter 0.25s ease;
}

.screenshot-container:hover img {
    filter: brightness(1.08);
}

.screenshot-overlay-hint {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(15, 23, 42, 0.88);
    color: #93c5fd;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    pointer-events: none;
    border: 1px solid rgba(59, 130, 246, 0.45);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    white-space: nowrap;
}

/* Callout Pins Grid (2-Column Balanced Grid) */
.callout-pins-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    width: 100%;
    flex: 1;
}

@media (min-width: 580px) {
    .callout-pins-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

.pin-item {
    background: var(--surface-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.pin-item:hover {
    background: rgba(30, 41, 59, 0.75);
    border-color: rgba(59, 130, 246, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4), 0 0 14px rgba(59, 130, 246, 0.15);
}

.pin-badge {
    background: var(--primary);
    color: #ffffff;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 800;
    flex-shrink: 0;
    margin-top: 2px;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.pin-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    font-size: 0.88rem;
    color: var(--text-light);
    line-height: 1.5;
}

.pin-text strong {
    color: #f8fafc;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.35;
}

.pin-text span {
    color: #94a3b8;
    font-size: 0.84rem;
    line-height: 1.45;
}

/* Interactive Signal Decay Simulator */
.simulator-card {
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.25), rgba(17, 24, 39, 0.95));
    border: 2px solid #3b82f6;
    border-radius: 18px;
    padding: 28px;
    margin: 28px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.simulator-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}

.simulator-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.simulator-badge {
    background: #3b82f6;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 6px;
}

.simulator-slider-wrap {
    margin: 24px 0;
}

.simulator-slider-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 8px;
    font-weight: 600;
}

.simulator-slider {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: #374151;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.simulator-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #60a5fa;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(96, 165, 250, 0.8);
}

.simulator-slider::-moz-range-thumb {
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 50%;
    background: #60a5fa;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(96, 165, 250, 0.8);
}

.simulator-output-box {
    background: var(--surface-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.simulator-live-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 8px;
    font-weight: 800;
    font-size: 1rem;
    width: fit-content;
}

.simulator-live-badge.buy {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
    border: 1px solid #10b981;
}

.simulator-live-badge.hold {
    background: rgba(59, 130, 246, 0.2);
    color: #93c5fd;
    border: 1px solid #3b82f6;
}

.simulator-live-badge.sell {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
    border: 1px solid #ef4444;
}

/* Target Tracker Calculator */
.tt-calc-card {
    background: linear-gradient(135deg, rgba(17, 24, 39, 0.95), rgba(30, 58, 138, 0.2));
    border: 1.5px solid rgba(59, 130, 246, 0.4);
    border-radius: 16px;
    padding: 24px;
    margin: 24px 0;
}

.tt-calc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.tt-input-group label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 6px;
    font-weight: 600;
}

.tt-input-group input {
    width: 100%;
    background: var(--surface);
    border: 1px solid var(--border);
    color: #ffffff;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.95rem;
    outline: none;
}

.tt-output-pill {
    display: inline-flex;
    padding: 6px 12px;
    border-radius: 8px;
    font-weight: 800;
    font-size: 0.95rem;
}

.tt-output-pill.positive {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
    border: 1px solid #10b981;
}

.tt-output-pill.negative {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
    border: 1px solid #ef4444;
}

/* Print Styles */
@media print {
    .wiki-nav-top, .wiki-sidebar, #back-to-top, .btn-print-manual, .btn-spotlight-trigger {
        display: none !important;
    }
    body, html, .wiki-layout, .wiki-content {
        height: auto !important;
        overflow: visible !important;
        background: #ffffff !important;
        color: #000000 !important;
    }
    .wiki-section {
        border: 1px solid #cbd5e1 !important;
        background: #ffffff !important;
        color: #000000 !important;
        page-break-inside: avoid;
    }
}

/* Horizon Button Groups */
.horizon-btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.horizon-btn {
    background: var(--surface-card);
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 7px 14px;
    border-radius: 8px;
    font-size: 0.84rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.horizon-btn:hover {
    border-color: var(--primary-light);
    color: #ffffff;
}

.horizon-btn.active {
    background: var(--primary);
    border-color: var(--primary-light);
    color: #ffffff;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.4);
}

.simulator-box {
    background: var(--surface-card);
    border: 1.5px solid rgba(59, 130, 246, 0.4);
    border-radius: 16px;
    padding: 24px;
    margin: 24px 0;
}

.simulator-explanation {
    background: rgba(17, 24, 39, 0.7);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 14px 18px;
    font-size: 0.92rem;
    color: var(--text-light);
    line-height: 1.6;
}

.ui-mockup-box {
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    margin: 16px 0;
}

.simulator-control {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 16px 0;
}

.simulator-output-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
