/**
 * Custom CSS
 * 
 * This file is loaded after all other theme styles.
 * You can override existing styles or add new ones here.
 * 
 * Example:
 * .your-class {
 *     color: red;
 * }
 */

/* ==========================================================================
   YouTube Consent Tooltip
   Uses native Popover API with CSS styling
   ========================================================================== */

#youtube-consent-tooltip {
    /* Reset popover defaults */
    position: fixed;
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
    overflow: visible;
    
    /* Tooltip container */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    
    padding: 1rem 1.25rem;
    background-color: #1a1a1a;
    color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
    
    max-width: 280px;
    font-size: 14px;
    line-height: 1.5;
    text-align: center;
    
    z-index: 999999;
    
    /* Animation */
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

#youtube-consent-tooltip:popover-open {
    opacity: 1;
    transform: translateY(0);
}

/* Hide default backdrop */
#youtube-consent-tooltip::backdrop {
    background: transparent;
}

/* Arrow indicator */
#youtube-consent-tooltip::before {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border: 8px solid transparent;
    left: calc(50% + var(--arrow-offset, 0px));
    transform: translateX(-50%);
}

/* Arrow for top position (pointing down) */
#youtube-consent-tooltip.tooltip--top::before {
    bottom: -8px;
    border-top-color: #1a1a1a;
    border-bottom: none;
}

/* Arrow for bottom position (pointing up) */
#youtube-consent-tooltip.tooltip--bottom::before {
    top: -8px;
    border-bottom-color: #1a1a1a;
    border-top: none;
}

/* Tooltip content */
#youtube-consent-tooltip p {
    margin: 0;
}

/* Accept button */
#youtube-consent-tooltip .youtube-consent-accept {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    
    background-color: #fff;
    color: #1a1a1a;
    
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    
    border: none;
    border-radius: 4px;
    cursor: pointer;
    
    transition: background-color 0.15s ease, transform 0.1s ease;
}

#youtube-consent-tooltip .youtube-consent-accept:hover {
    background-color: #f0f0f0;
}

#youtube-consent-tooltip .youtube-consent-accept:active {
    transform: scale(0.98);
}

/* Focus styles for accessibility */
#youtube-consent-tooltip .youtube-consent-accept:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}
