/* Sticky Headers for Plantaz Slide - Minimal Design */

.plantaz-sticky-header {
    position: fixed;
    top: 5rem; /* Position below the corner-nav */
    right: 1rem; /* Position on the right side instead of full width */
    width: auto; /* Auto width based on content */
    max-width: 200px; /* Limit width */
    background-color: rgba(0, 0, 0, 0.7); /* More transparent */
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 9;
    padding: 0.3rem 0.8rem; /* Smaller padding */
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateX(100%); /* Slide in from right */
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* Lighter shadow */
    border-radius: 4px; /* Rounded corners */
    border-left: 2px solid rgba(240, 255, 53, 0.7); /* Colored border on left */
    height: 2.5rem; /* Smaller height */
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem; /* Space between headers */
}

.plantaz-sticky-header.active {
    opacity: 0.8; /* Slightly transparent even when active */
    transform: translateX(0);
}

/* Style for the h2 inside the sticky header */
.plantaz-sticky-header h2 {
    margin: 0;
    font-size: 1rem; /* Smaller font */
    line-height: 1.5rem;
    text-align: left;
    /* Preserve the gradient text effect from the original h2 */
    background: -webkit-linear-gradient(263deg, rgb(240 255 53) 0%, rgb(255 169 0) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 600;
    white-space: nowrap; /* Prevent text wrapping */
    overflow: hidden;
    text-overflow: ellipsis; /* Add ellipsis for long text */
}

/* Hover effect */
.plantaz-sticky-header:hover {
    opacity: 1;
    background-color: rgba(20, 20, 20, 0.9);
    transform: translateX(0) scale(1.02);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
}

/* Highlight the current section */
.plantaz-sticky-header.current {
    background-color: rgba(30, 30, 30, 0.9);
    border-left: 3px solid rgb(240, 255, 53); /* Brighter border for current */
    opacity: 1;
}

/* Container for all sticky headers */
#plantaz-sticky-headers-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9;
    pointer-events: none;
    /* No display: none here to ensure it's not hidden by CSS */
}

/* We'll control visibility through JavaScript */

#plantaz-sticky-headers-container .plantaz-sticky-header {
    pointer-events: auto;
}
