/**
 * DataJam Pulse - Guide Mode Styles
 * Phase 5 - CSS Extraction (Batch 1)
 * Extracted: Dec 14, 2025
 * Source: index.html lines 5737-6085
 * Version: v5.4.10
 */

/* ============================================
   GUIDE MODE v2.0 - Hover-Based Contextual Help
   ============================================ */

/* Guide Mode indicator when active */
body.guide-mode-active {
    cursor: help;
}

body.guide-mode-active *:hover {
    cursor: help;
}

/* Highlight effect on hoverable elements when Guide Mode is ON */
body.guide-mode-active [data-guide-id]:hover,
body.guide-mode-active .kpi-card:hover,
body.guide-mode-active .chart-container:hover,
body.guide-mode-active .action-tile:hover,
body.guide-mode-active .nav-item:hover,
body.guide-mode-active button:hover,
body.guide-mode-active .card:hover {
    outline: 2px dashed rgba(230, 47, 110, 0.6);
    outline-offset: 4px;
    transition: outline 0.15s ease;
}

/* Guide Mode Tooltip */
.guide-tooltip {
    position: fixed;
    width: 320px;
    max-width: calc(100vw - 32px);
    background: var(--bg-secondary);
    border: 1px solid rgba(230, 47, 110, 0.4);
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    z-index: 10002;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.2s ease;
    pointer-events: none;
    overflow: hidden;
}

.guide-tooltip.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.guide-tooltip-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: linear-gradient(135deg, rgba(230, 47, 110, 0.15) 0%, rgba(233, 75, 82, 0.08) 100%);
    border-bottom: 1px solid rgba(230, 47, 110, 0.2);
}

.guide-tooltip-icon {
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #E62F6E 0%, #E94B52 100%);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.guide-tooltip-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    flex: 1;
}

.guide-tooltip-body {
    padding: 14px 16px;
}

.guide-section {
    margin-bottom: 12px;
}

.guide-section:last-child {
    margin-bottom: 0;
}

.guide-section-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.guide-section-text {
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-primary);
}

.guide-section.what .guide-section-label { color: #60a5fa; }
.guide-section.why .guide-section-label { color: #34d399; }
.guide-section.then .guide-section-label { color: #fbbf24; }

.guide-tooltip-footer {
    padding: 10px 16px;
    background: var(--bg-tertiary);
    border-top: 1px solid var(--border-color);
    font-size: 11px;
    color: var(--text-muted);
    text-align: center;
}

.guide-tooltip-footer kbd {
    background: var(--bg-primary);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 10px;
    border: 1px solid var(--border-color);
}

/* Light theme */
[data-theme="light"] .guide-tooltip {
    background: #ffffff;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .guide-tooltip-footer {
    background: #f7fafc;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .guide-tooltip {
        width: calc(100vw - 24px);
        max-width: none;
        left: 12px !important;
        right: 12px !important;
    }
}

/* Guide Mode notification animations */
@keyframes guideNotifyIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

@keyframes guideNotifyOut {
    from {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    to {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
}

/* Floating Guide Mode Button */
.floating-guide-btn {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    cursor: pointer;
    z-index: 9998;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

.floating-guide-btn:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    transform: scale(1.05);
}

.floating-guide-btn.active {
    background: linear-gradient(135deg, #E62F6E 0%, #E94B52 100%);
    color: white;
    border-color: transparent;
}

/* Hide on mobile when sidebar is open */
@media (max-width: 768px) {
    .floating-guide-btn {
        bottom: 70px;
        right: 12px;
        width: 44px;
        height: 44px;
    }
}

/* v5.0.2: Help Dropdown (merged Guide Mode + Help Guide) */
/* v5.0.3: Nav Dropdown (for Portfolio menu) */
.nav-dropdown-container {
    position: relative;
    display: block;
    width: 100%;
}

.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    z-index: 1001;
}

.nav-dropdown-container.open .nav-dropdown-menu {
    display: block;
}

.nav-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    width: 100%;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 13px;
    cursor: pointer;
    text-align: left;
    transition: background 0.15s ease;
}

.nav-dropdown-item:hover {
    background: var(--bg-tertiary);
}

.nav-dropdown-item.active {
    background: rgba(230, 47, 110, 0.1);
    color: #E62F6E;
}

.nav-dropdown-item .item-icon {
    font-size: 16px;
    flex-shrink: 0;
}

.nav-dropdown-item .item-label {
    flex: 1;
}

.nav-dropdown-item .item-desc {
    font-size: 11px;
    color: var(--text-secondary);
    margin-left: auto;
}

.help-dropdown-container {
    position: relative;
    display: inline-block;
    width: 100%;
}

.help-dropdown-menu {
    display: none;
    position: absolute;
    bottom: calc(100% + 4px);
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    z-index: 1001;
}

.help-dropdown-container.open .help-dropdown-menu {
    display: block;
}

.help-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    width: 100%;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 14px;
    cursor: pointer;
    text-align: left;
    transition: background 0.15s ease;
}

.help-dropdown-item:hover {
    background: var(--bg-tertiary);
}

.help-dropdown-item.active {
    background: rgba(230, 47, 110, 0.1);
    color: #E62F6E;
}

.help-dropdown-item svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.help-dropdown-item .item-label {
    flex: 1;
}

.help-dropdown-item .item-shortcut {
    font-size: 11px;
    color: var(--text-muted);
    opacity: 0.7;
}

.help-dropdown-divider {
    height: 1px;
    background: var(--border-color);
    margin: 4px 0;
}
