/* VHS Components - Unified Visual Components */

/* Hint Panel Component */
.vhs-component__hint-panel {
    background: #FFF7D3;
    border: 1px solid #EDD982;
    border-radius: 6px;
    padding: 15px;
}

.vhs-component__hint-panel h3 {
    margin: 0 0 10px 0;
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.vhs-component__hint-panel p {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    color: #555;
}

/* Tooltip Component */
.vhs-component__tooltip {
    position: absolute;
    z-index: 9999;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 12px;
    max-width: 300px;
    animation: vhsTooltipFadeIn 0.2s ease;
    pointer-events: auto;
    border: 1px solid #ddd;
}

.vhs-component__tooltip::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid white;
}

.vhs-component__tooltip::before {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid #ddd;
}

.vhs-component__tooltip-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.vhs-component__tooltip-content p {
    margin: 0;
    font-size: 13px;
    line-height: 1.4;
    color: #333;
}

@keyframes vhsTooltipFadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Make mode pills interactive with tooltips */
[data-vhs-tooltip] {
    cursor: help;
    position: relative;
}

/* Help pill component - for interactive help terms */
.vhs-component__help-pill {
    display: inline-block;
    padding: 2px 8px;
    background: #f0f0f0;
    border: 1px solid #d0d0d0;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.vhs-component__help-pill:hover {
    background: #e0e0e0;
    border-color: #b0b0b0;
}

/* Request Processing Diagram Component */
.vhs-component__request-diagram {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
}

.vhs-component__diagram-flow {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    flex-wrap: wrap;
    padding: 10px 0;
}

.vhs-component__diagram-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    color: #495057;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.vhs-component__diagram-box:hover {
    background: #e9ecef;
    border-color: #adb5bd;
    transform: translateY(-1px);
}

.vhs-component__diagram-arrow {
    color: #6c757d;
    font-size: 14px;
    user-select: none;
}

/* Tabs Component */
.vhs-component__tabs {
    display: flex;
    flex-direction: column;
}

.vhs-component__tabs-header {
    display: flex;
    gap: 4px;
    background: #f8f9fa;
    padding: 8px 2rem;
    border-bottom: 2px solid #dee2e6;
}

.vhs-component__tab {
    padding: 10px 20px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    font-size: 14px;
    font-weight: 500;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    margin-bottom: -2px;
}

.vhs-component__tab:hover {
    color: #495057;
    background: rgba(0, 0, 0, 0.02);
}

.vhs-component__tab.active {
    color: #007AFF;
    border-bottom-color: #007AFF;
    background: white;
}

.vhs-component__tabs-content {
    position: relative;
}

.vhs-component__tab-panel {
    display: none;
}

.vhs-component__tab-panel.active {
    display: block;
}

/* Responsive tabs */
@media (max-width: 768px) {
    .vhs-component__tabs-header {
        padding: 8px 1rem;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .vhs-component__tab {
        padding: 8px 16px;
        font-size: 13px;
        white-space: nowrap;
    }
}
