/**
 * Contextual Guide Assistant - MVP Minimal Styling
 * Lightweight, calm, non-intrusive help system
 */

/* ========================================
   Help Icon (Small & Static)
   ======================================== */

.guide-help-icon {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    background: #3B82F6;
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
    z-index: 9998;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.guide-help-icon:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.guide-help-icon:active {
    transform: scale(0.95);
}

.guide-help-icon:focus {
    outline: 2px solid #3B82F6;
    outline-offset: 2px;
}

/* ========================================
   Tooltip/Small Drawer
   ======================================== */

.guide-tooltip {
    position: fixed;
    bottom: 88px;
    right: 24px;
    width: 320px;
    max-width: calc(100vw - 48px);
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding: 16px;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
}

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

/* ========================================
   Tooltip Content
   ======================================== */

.guide-tooltip-content {
    position: relative;
}

.guide-text {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: #374151;
    padding-right: 24px;
}

/* ========================================
   Close Icon
   ======================================== */

.guide-close-icon {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 24px;
    height: 24px;
    background: transparent;
    border: none;
    color: #9CA3AF;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    transition: color 0.2s;
}

.guide-close-icon:hover {
    color: #374151;
}

/* ========================================
   Dismiss Link
   ======================================== */

.guide-dismiss-link {
    display: inline-block;
    margin-top: 12px;
    font-size: 12px;
    color: #6B7280;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    text-decoration: underline;
    transition: color 0.2s;
}

.guide-dismiss-link:hover {
    color: #374151;
}

/* ========================================
   Tooltip Arrow (Optional)
   ======================================== */

.guide-tooltip::after {
    content: '';
    position: absolute;
    bottom: -8px;
    right: 18px;
    width: 16px;
    height: 16px;
    background: white;
    transform: rotate(45deg);
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

/* ========================================
   Mobile Responsive
   ======================================== */

@media (max-width: 640px) {
    .guide-help-icon {
        bottom: 16px;
        right: 16px;
        width: 44px;
        height: 44px;
        font-size: 22px;
    }

    .guide-tooltip {
        bottom: 72px;
        right: 16px;
        left: 16px;
        width: auto;
        max-width: none;
    }

    .guide-tooltip::after {
        right: 12px;
    }

    .guide-text {
        font-size: 13px;
    }
}

/* ========================================
   Print (Hide when printing)
   ======================================== */

@media print {
    .contextual-guide-assistant {
        display: none !important;
    }
}

/* ========================================
   Accessibility
   ======================================== */

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .guide-help-icon,
    .guide-tooltip {
        transition: none;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .guide-tooltip {
        border: 2px solid #000;
    }

    .guide-help-icon {
        border: 2px solid #fff;
    }
}

/* Focus visible */
.guide-help-icon:focus-visible {
    outline: 3px solid #3B82F6;
    outline-offset: 3px;
}

.guide-close-icon:focus-visible,
.guide-dismiss-link:focus-visible {
    outline: 2px solid #3B82F6;
    outline-offset: 2px;
}
