/* Cross-Meeting Search Styles */

.global-search {
    background: linear-gradient(135deg, #1a365d 0%, #2b6cb0 100%);
    color: white;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 30px;
}

.global-search h2 {
    margin-top: 0;
    margin-bottom: 20px;
}

.search-box {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

#global-search {
    flex: 1;
    padding: 14px 20px;
    font-size: 16px;
    border: none;
    border-radius: 25px;
    outline: none;
}

#global-search:focus {
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

#search-btn {
    background: white;
    color: #1a365d;
    border: none;
    padding: 14px 28px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

#search-btn:hover {
    background: #f7fafc;
    transform: translateY(-2px);
}

.search-filters {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 14px;
}

.search-filters label {
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-filters select,
.search-filters input[type="date"] {
    padding: 8px 12px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.9);
}

.search-results {
    display: none;
    margin-top: 20px;
    background: white;
    color: #1a365d;
    border-radius: 12px;
    padding: 20px;
    max-height: 600px;
    overflow-y: auto;
}

.results-count {
    font-size: 14px;
    color: #718096;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e2e8f0;
}

.results-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.meeting-group {
    background: #f7fafc;
    border-radius: 8px;
    overflow: hidden;
}

.meeting-group .meeting-header {
    background: #2b6cb0;
    color: white;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.meeting-group .meeting-header h3 {
    margin: 0;
    font-size: 16px;
}

.meeting-group .meeting-date {
    font-size: 14px;
    opacity: 0.9;
}

.result-item {
    padding: 15px;
    border-bottom: 1px solid #e2e8f0;
    cursor: pointer;
    transition: background 0.2s;
}

.result-item:hover {
    background: #edf2f7;
}

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

.result-meta {
    display: flex;
    gap: 15px;
    font-size: 13px;
    color: #718096;
    margin-bottom: 8px;
}

.result-speaker {
    color: #2b6cb0;
    font-weight: 600;
}

.result-timestamp {
    color: #38a169;
}

.result-agenda {
    color: #805ad5;
}

.result-snippet {
    font-size: 15px;
    line-height: 1.5;
    color: #1a365d;
}

.result-snippet mark {
    background: #fff3cd;
    padding: 2px 4px;
    border-radius: 3px;
}

.result-actions {
    margin-top: 10px;
    display: flex;
    gap: 10px;
}

.btn-view, .btn-cite {
    padding: 6px 14px;
    border-radius: 15px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-view {
    background: #2b6cb0;
    color: white;
}

.btn-view:hover {
    background: #1a365d;
}

.btn-cite {
    background: #e2e8f0;
    color: #1a365d;
}

.btn-cite:hover {
    background: #cbd5e0;
}

.no-results {
    text-align: center;
    padding: 30px;
    color: #718096;
    font-size: 16px;
}

/* Toast notification */
.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #38a169;
    color: white;
    padding: 14px 24px;
    border-radius: 8px;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 1000;
}

.toast.show {
    opacity: 1;
}

/* Highlight for deep-linked segments */
.transcript-segment.highlight {
    background: #bee3f8 !important;
    animation: fadeHighlight 2s ease-out;
}

@keyframes fadeHighlight {
    from { background: #90cdf4; }
    to { background: #bee3f8; }
}

/* Responsive */
@media (max-width: 768px) {
    .search-filters {
        flex-direction: column;
    }

    .result-meta {
        flex-direction: column;
        gap: 5px;
    }

    .result-actions {
        flex-direction: column;
    }
}
