/* Custom overlay effect for hovered card */
.group:hover {
    z-index: 50 !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

/* Search Icon Dynamic Colors - Default (Light BG) */
.summit-search-icon {
    color: var(--brand1);
}

.summit-search-icon:hover {
    color: var(--brand2);
}

.summit-search-hint {
    color: #9ca3af; /* gray-400 */
}

/* Search Icon Dynamic Colors - Dark BG */
nav:has(#mega-menu-header_menu.on-dark-bg) .summit-search-icon {
    color: white;
}

nav:has(#mega-menu-header_menu.on-dark-bg) .summit-search-icon:hover {
    color: rgba(255, 255, 255, 0.8);
}

nav:has(#mega-menu-header_menu.on-dark-bg) .summit-search-hint {
    color: rgba(255, 255, 255, 0.6);
}

/* Fallback for browsers that don't support :has() */
.on-dark-bg-parent .summit-search-icon {
    color: white;
}

.on-dark-bg-parent .summit-search-icon:hover {
    color: rgba(255, 255, 255, 0.8);
}

.on-dark-bg-parent .summit-search-hint {
    color: rgba(255, 255, 255, 0.6);
}

/* Search Modal Styles */
#summit-search-modal.show {
    opacity: 1;
}

#summit-search-modal.show #summit-search-container {
    transform: scale(1);
}

#summit-search-container {
    overflow: hidden;
}

#summit-search-results {
    overflow-x: hidden;
}

.search-result-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    cursor: pointer;
    transition: background-color 0.15s ease;
    border-bottom: 1px solid #f3f4f6;
    position: relative;
    overflow: hidden;
    min-width: 0;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background-color: #f9fafb;
}

.search-result-item.active {
    background-color: rgba(var(--brand1-rgb), 0.05);
    border-color: rgba(var(--brand1-rgb), 0.2);
}

.search-result-item.active:hover {
    background-color: rgba(var(--brand1-rgb), 0.1);
}

/* Content container with fade effect */
.search-result-item .flex-1 {
    position: relative;
    min-width: 0;
    padding-right: 2rem;
}

.search-result-item .flex-1::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 2rem;
    background: linear-gradient(to right, transparent, #ffffff 70%);
    pointer-events: none;
    z-index: 1;
}

.search-result-item:hover .flex-1::after {
    background: linear-gradient(to right, transparent, #f9fafb 70%);
}

.search-result-item.active .flex-1::after {
    background: linear-gradient(to right, transparent, rgba(var(--brand1-rgb), 0.05) 70%);
}

.search-result-item.active:hover .flex-1::after {
    background: linear-gradient(to right, transparent, rgba(var(--brand1-rgb), 0.1) 70%);
}

/* Text truncation */
.search-result-item h4,
.search-result-item p {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

/* Arrow container - always visible */
.search-result-item .search-result-arrow {
    flex-shrink: 0;
    margin-left: 1rem;
    z-index: 2;
    position: relative;
}

/* Keyboard shortcuts styling */
kbd {
    font-family: ui-monospace, SFMono-Regular, "SF Mono", Consolas, "Liberation Mono", Menlo, monospace;
} 