/* Tooltip Styling - CSS Only Approach */

/* Hide the JS tooltip container - we're not using it anymore */
#tooltip-container {
    display: none !important;
}

/* Tooltip Triggers */
.context-trigger {
    /* Reset all button defaults */
    all: unset;
    
    /* Inherit text styling */
    font: inherit;
    color: inherit;
    cursor: help;
    
    /* Subtle indicator */
    border-bottom: 1px dashed rgba(255, 255, 255, 0.3);
    
    /* Position context for tooltip */
    position: relative;
    display: inline;
}

.context-trigger:hover,
.context-trigger:focus {
    color: #fff;
    border-bottom-color: rgba(255, 255, 255, 0.6);
}

/* The actual tooltip - CSS only */
.context-trigger::after {
    content: attr(data-context);
    
    /* Positioning */
    position: absolute;
    bottom: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    
    /* Styling */
    background: #0a0a0a;
    color: #e0e0e0;
    padding: 0.75rem 1rem;
    border-radius: 4px;
    
    /* Typography */
    font-family: var(--font-stack);
    font-size: 0.85rem;
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: 0.01em;
    
    /* Dimensions */
    width: max-content;
    max-width: 260px;
    text-align: left;
    
    /* Shadow */
    box-shadow: 
        0 4px 16px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.06);
    
    /* Hidden by default */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    
    /* Transition - fade + drift up */
    transition: 
        opacity 0.2s ease,
        visibility 0.2s ease,
        transform 0.2s ease;
    
    /* Ensure it's on top */
    z-index: 9999;
}

/* Caret/Arrow */
.context-trigger::before {
    content: '';
    position: absolute;
    bottom: calc(100% + 4px);
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    
    /* Triangle */
    border: 6px solid transparent;
    border-top-color: #0a0a0a;
    
    /* Hidden by default */
    opacity: 0;
    visibility: hidden;
    
    /* Transition */
    transition: 
        opacity 0.2s ease,
        visibility 0.2s ease,
        transform 0.2s ease;
    
    z-index: 10000;
}

/* Show on hover/focus */
.context-trigger:hover::after,
.context-trigger:focus::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.context-trigger:hover::before,
.context-trigger:focus::before {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Ambient Background Layers - Stacked with opacity transitions */
.ambient-base,
.ambient-warm,
.ambient-cool,
.ambient-contact {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    transition: opacity 3s ease-in-out;
}

.ambient-base {
    z-index: -4;
    background: var(--bg-color);
}

.ambient-warm {
    z-index: -3;
    background: radial-gradient(circle at 50% 50%, #2a1818 0%, transparent 70%);
    opacity: 0;
}

.ambient-cool {
    z-index: -2;
    background: radial-gradient(circle at 50% 50%, #0e1622 0%, transparent 70%);
    opacity: 0;
}

.ambient-contact {
    z-index: -1;
    background: radial-gradient(circle at 50% 50%, #122a18 0%, transparent 70%);
    opacity: 0;
}

/* Active states */
.ambient-warm.active { opacity: 1; }
.ambient-cool.active { opacity: 1; }
.ambient-contact.active { opacity: 1; }

