/* AI Overview Styling */
.ai-overview-section {
    padding: 20px 0;
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    margin-bottom: 20px;
}

/* Enhanced Loading Animation */
.ai-overview-loading-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
}

.ai-loading-card {
    background: white;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    max-width: 500px;
    width: 100%;
    text-align: center;
}

.ai-loading-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 24px;
}

.ai-loading-icon {
    position: relative;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ai-loading-icon i {
    font-size: 32px;
    color: var(--primary-color);
    z-index: 2;
    position: relative;
}

.ai-loading-pulse {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    background: var(--primary-color);
    opacity: 0.2;
    animation: pulse-ring 1.5s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

@keyframes pulse-ring {
    0% {
        transform: scale(0.95);
        opacity: 0.2;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.1;
    }
    100% {
        transform: scale(0.95);
        opacity: 0.2;
    }
}

.ai-loading-text h4 {
    margin: 0 0 8px 0;
    color: #1e293b;
    font-size: 1.25rem;
    font-weight: 600;
}

.ai-loading-text p {
    margin: 0;
    color: #64748b;
    font-size: 0.95rem;
    transition: opacity 0.3s ease;
}

.ai-loading-progress {
    width: 100%;
    height: 4px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 20px;
}

.ai-loading-progress .progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 4px;
    animation: loading-progress 2s ease-in-out infinite;
}

@keyframes loading-progress {
    0% {
        width: 0%;
        opacity: 0;
    }
    20% {
        width: 20%;
        opacity: 1;
    }
    50% {
        width: 60%;
        opacity: 1;
    }
    80% {
        width: 85%;
        opacity: 1;
    }
    100% {
        width: 100%;
        opacity: 0;
    }
}

.ai-loading-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.ai-loading-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary-color);
    animation: loading-dots 1.4s ease-in-out infinite;
}

.ai-loading-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.ai-loading-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes loading-dots {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* AI Overview Box */
.ai-overview-box {
    background: white;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
    position: relative;
    overflow: hidden;
}

.ai-overview-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--accent-color));
}

.ai-overview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.ai-overview-header h3 {
    margin: 0;
    font-size: 1.35rem;
    color: #1e293b;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ai-overview-header .fa-robot {
    color: var(--primary-color);
    font-size: 1.5rem;
}

.ai-badge {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 6px 16px;
    border-radius: 24px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Collapsible Content */
.ai-overview-content {
    position: relative;
    margin-bottom: 24px;
}

.ai-overview-text {
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.ai-overview-text.collapsed {
    max-height: calc(1.7em * 3); /* 3 lines with line-height 1.7 */
    position: relative;
}

.ai-overview-text.collapsed::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3em;
    background: linear-gradient(to bottom, transparent, white 90%);
    pointer-events: none;
}

.ai-overview-text.expanded {
    max-height: none;
}

.ai-overview-text.expanded::after {
    display: none;
}

.ai-overview-text p {
    margin: 0;
    line-height: 1.7;
    color: #475569;
    font-size: 1.05rem;
}

/* See More Button */
.see-more-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding: 8px 20px;
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
}

.see-more-btn:hover {
    background: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15);
}

.see-more-btn:active {
    transform: translateY(0);
}

.see-more-icon {
    font-size: 0.75rem;
    transition: transform 0.3s ease;
}

/* Key Points Section */
.ai-overview-keypoints {
    margin-top: 20px;
    padding: 20px;
    background: #f8fafc;
    border-radius: 12px;
    margin-bottom: 20px;
}

.ai-overview-keypoints h5 {
    font-size: 0.95rem;
    color: #334155;
    margin-bottom: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ai-overview-keypoints h5 i {
    color: var(--primary-color);
    font-size: 0.9rem;
}

.ai-overview-keypoints ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ai-overview-keypoints li {
    margin-bottom: 8px;
    padding-left: 24px;
    position: relative;
    color: #475569;
    line-height: 1.6;
}

.ai-overview-keypoints li::before {
    content: '✓';
    position: absolute;
    left: 8px;
    color: var(--success-color);
    font-weight: bold;
}

/* Sources Section */
.ai-overview-sources {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.ai-overview-sources h5 {
    font-size: 0.95rem;
    color: #334155;
    margin-bottom: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ai-overview-sources h5 i {
    color: var(--primary-color);
    font-size: 0.9rem;
}

.ai-overview-sources ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ai-overview-sources li {
    background: #f1f5f9;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.ai-overview-sources li:hover {
    background: #e2e8f0;
    transform: translateY(-2px);
}

.ai-overview-sources a {
    color: #475569;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
}

.ai-overview-sources a i {
    font-size: 0.7rem;
    opacity: 0.7;
}

.ai-overview-sources a:hover {
    color: var(--primary-color);
}

/* Related Topics */
.ai-overview-related {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.ai-overview-related h5 {
    font-size: 0.95rem;
    color: #334155;
    margin-bottom: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ai-overview-related h5 i {
    color: var(--primary-color);
    font-size: 0.9rem;
}

.related-topics-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.related-topic-badge {
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    padding: 8px 16px;
    border-radius: 24px;
    font-size: 0.85rem;
    color: #475569;
    border: 1px solid #e2e8f0;
    transition: all 0.3s;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.related-topic-badge i {
    font-size: 0.7rem;
    opacity: 0;
    transition: opacity 0.3s;
}

.related-topic-badge:hover {
    background: white;
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
    text-decoration: none;
}

.related-topic-badge:hover i {
    opacity: 1;
}

/* Footer */
.ai-overview-footer {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.ai-overview-footer small {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #64748b;
    font-size: 0.85rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .ai-loading-card {
        padding: 24px;
    }
    
    .ai-loading-header {
        flex-direction: column;
        gap: 16px;
    }
    
    .ai-loading-icon {
        width: 50px;
        height: 50px;
    }
    
    .ai-loading-icon i {
        font-size: 28px;
    }
    
    .ai-overview-box {
        padding: 20px;
        border-radius: 12px;
    }
    
    .ai-overview-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .ai-overview-header h3 {
        font-size: 1.15rem;
    }
    
    .ai-overview-header .fa-robot {
        font-size: 1.25rem;
    }
    
    .ai-overview-content p {
        font-size: 1rem;
    }
    
    .ai-overview-sources ul {
        flex-direction: column;
    }
    
    .ai-overview-sources li {
        width: fit-content;
    }
    
    .ai-overview-keypoints {
        padding: 16px;
    }
    
    .see-more-btn {
        padding: 6px 16px;
        font-size: 0.85rem;
    }
}

/* Dark mode support (optional) */
@media (prefers-color-scheme: dark) {
    .ai-overview-section {
        background-color: #1e293b;
    }
    
    .ai-loading-card {
        background: #0f172a;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    }
    
    .ai-loading-text h4 {
        color: #f1f5f9;
    }
    
    .ai-loading-text p {
        color: #94a3b8;
    }
    
    .ai-loading-progress {
        background: #334155;
    }
    
    .ai-overview-box {
        background: #0f172a;
        border-color: #334155;
    }
    
    .ai-overview-header h3 {
        color: #f1f5f9;
    }
    
    .ai-overview-text.collapsed::after {
        background: linear-gradient(to bottom, transparent, #0f172a 90%);
    }
    
    .ai-overview-content p {
        color: #cbd5e1;
    }
    
    .ai-overview-keypoints {/* Keep all existing styles for home page intact */
/* Only add/modify AI Overview specific styles below */

/* AI Overview Styling - Search Page Only */
.ai-overview-section {
    padding: 20px 0;
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    margin-bottom: 20px;
}

/* Enhanced Loading Animation */
.ai-overview-loading-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
}

.ai-loading-card {
    background: white;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    max-width: 500px;
    width: 100%;
    text-align: center;
}

.ai-loading-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 24px;
}

.ai-loading-icon {
    position: relative;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ai-loading-icon i {
    font-size: 32px;
    color: var(--primary-color);
    z-index: 2;
    position: relative;
}

.ai-loading-pulse {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    background: var(--primary-color);
    opacity: 0.2;
    animation: pulse-ring 1.5s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

@keyframes pulse-ring {
    0% {
        transform: scale(0.95);
        opacity: 0.2;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.1;
    }
    100% {
        transform: scale(0.95);
        opacity: 0.2;
    }
}

.ai-loading-text h4 {
    margin: 0 0 8px 0;
    color: #1e293b;
    font-size: 1.25rem;
    font-weight: 600;
}

.ai-loading-text p {
    margin: 0;
    color: #64748b;
    font-size: 0.95rem;
    transition: opacity 0.3s ease;
}

.ai-loading-progress {
    width: 100%;
    height: 4px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 20px;
}

.ai-loading-progress .progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 4px;
    animation: loading-progress 2s ease-in-out infinite;
}

@keyframes loading-progress {
    0% {
        width: 0%;
        opacity: 0;
    }
    20% {
        width: 20%;
        opacity: 1;
    }
    50% {
        width: 60%;
        opacity: 1;
    }
    80% {
        width: 85%;
        opacity: 1;
    }
    100% {
        width: 100%;
        opacity: 0;
    }
}

.ai-loading-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.ai-loading-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary-color);
    animation: loading-dots 1.4s ease-in-out infinite;
}

.ai-loading-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.ai-loading-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes loading-dots {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* AI Overview Box */
.ai-overview-box {
    background: white;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
    position: relative;
    overflow: visible; /* Changed from hidden to show button properly */
}

.ai-overview-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    border-radius: 16px 16px 0 0;
}

/* Collapsible Content Container */
.ai-overview-collapsible {
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.ai-overview-collapsible.collapsed {
    /* Total height: header (~40px) + 3 lines of content (~81px) = ~121px */
    max-height: 81px; /* 3 lines at 1.7em line height */
    position: relative;
    overflow: hidden;
}

.ai-overview-collapsible.collapsed::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: -28px; /* Compensate for parent padding */
    right: -28px; /* Compensate for parent padding */
    height: 60px;
    background: linear-gradient(to bottom, 
        transparent 0%, 
        rgba(255, 255, 255, 0.7) 30%, 
        rgba(255, 255, 255, 0.9) 60%, 
        white 100%);
    pointer-events: none;
}

.ai-overview-collapsible.expanded {
    max-height: none;
}

.ai-overview-collapsible.expanded::after {
    display: none;
}

/* See More Button - Positioned absolutely when collapsed */
.see-more-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

/* When expanded, make button relative */
.ai-overview-box:has(.ai-overview-collapsible.expanded) .see-more-btn {
    position: relative;
    bottom: auto;
    left: auto;
    transform: none;
    margin-top: 16px;
    margin-bottom: 0;
}

.see-more-btn:hover {
    background: white;
    border-color: var(--primary-color);
    transform: translateX(-50%) translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15);
}

.ai-overview-box:has(.ai-overview-collapsible.expanded) .see-more-btn:hover {
    transform: translateY(-2px);
}

.see-more-btn:active {
    transform: translateX(-50%) translateY(0);
}

.ai-overview-box:has(.ai-overview-collapsible.expanded) .see-more-btn:active {
    transform: translateY(0);
}

/* Adjust padding when collapsed to accommodate button */
.ai-overview-box:has(.ai-overview-collapsible.collapsed) {
    padding-bottom: 60px; /* Extra space for absolute positioned button */
}

/* Hide elements that would break the 3-line layout when collapsed */
.ai-overview-collapsible.collapsed .ai-overview-keypoints,
.ai-overview-collapsible.collapsed .ai-overview-sources,
.ai-overview-collapsible.collapsed .ai-overview-related,
.ai-overview-collapsible.collapsed .ai-overview-footer {
    opacity: 0;
    visibility: hidden;
    height: 0;
    margin: 0;
    padding: 0;
}

.ai-overview-collapsible.expanded .ai-overview-keypoints,
.ai-overview-collapsible.expanded .ai-overview-sources,
.ai-overview-collapsible.expanded .ai-overview-related,
.ai-overview-collapsible.expanded .ai-overview-footer {
    opacity: 1;
    visibility: visible;
    height: auto;
    margin-top: 20px;
    transition: opacity 0.3s ease 0.2s;
}

/* Ensure smooth transitions */
.ai-overview-keypoints,
.ai-overview-sources,
.ai-overview-related,
.ai-overview-footer {
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .ai-overview-collapsible.collapsed {
        max-height: 75px; /* Slightly less for mobile */
    }
    
    .see-more-btn {
        padding: 6px 16px;
        font-size: 0.85rem;
        bottom: 15px;
    }
    
    .ai-overview-box:has(.ai-overview-collapsible.collapsed) {
        padding-bottom: 50px;
    }
}

/* Content styling */
.ai-overview-content {
    margin-bottom: 0;
}

.ai-overview-content p {
    margin: 0;
    line-height: 1.7;
    color: #475569;
    font-size: 1.05rem;
}

/* See More Button */
.see-more-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    margin-bottom: 20px;
    padding: 8px 20px;
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
}

.see-more-btn:hover {
    background: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15);
}

.see-more-btn:active {
    transform: translateY(0);
}

.see-more-icon {
    font-size: 0.75rem;
    transition: transform 0.3s ease;
}

/* Key Points Section */
.ai-overview-keypoints {
    margin-top: 20px;
    padding: 20px;
    background: #f8fafc;
    border-radius: 12px;
    margin-bottom: 20px;
}

.ai-overview-keypoints h5 {
    font-size: 0.95rem;
    color: #334155;
    margin-bottom: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ai-overview-keypoints h5 i {
    color: var(--primary-color);
    font-size: 0.9rem;
}

.ai-overview-keypoints ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ai-overview-keypoints li {
    margin-bottom: 8px;
    padding-left: 24px;
    position: relative;
    color: #475569;
    line-height: 1.6;
}

.ai-overview-keypoints li::before {
    content: '✓';
    position: absolute;
    left: 8px;
    color: var(--success-color, #10b981);
    font-weight: bold;
}

/* Sources Section */
.ai-overview-sources {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.ai-overview-sources h5 {
    font-size: 0.95rem;
    color: #334155;
    margin-bottom: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ai-overview-sources h5 i {
    color: var(--primary-color);
    font-size: 0.9rem;
}

.ai-overview-sources ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ai-overview-sources li {
    background: #f1f5f9;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.ai-overview-sources li:hover {
    background: #e2e8f0;
    transform: translateY(-2px);
}

.ai-overview-sources a {
    color: #475569;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
}

.ai-overview-sources a i {
    font-size: 0.7rem;
    opacity: 0.7;
}

.ai-overview-sources a:hover {
    color: var(--primary-color);
}

/* Related Topics */
.ai-overview-related {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.ai-overview-related h5 {
    font-size: 0.95rem;
    color: #334155;
    margin-bottom: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ai-overview-related h5 i {
    color: var(--primary-color);
    font-size: 0.9rem;
}

.related-topics-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.related-topic-badge {
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    padding: 8px 16px;
    border-radius: 24px;
    font-size: 0.85rem;
    color: #475569;
    border: 1px solid #e2e8f0;
    transition: all 0.3s;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.related-topic-badge i {
    font-size: 0.7rem;
    opacity: 0;
    transition: opacity 0.3s;
}

.related-topic-badge:hover {
    background: white;
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
    text-decoration: none;
}

.related-topic-badge:hover i {
    opacity: 1;
}

/* Footer */
.ai-overview-footer {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.ai-overview-footer small {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #64748b;
    font-size: 0.85rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .ai-loading-card {
        padding: 24px;
    }
    
    .ai-loading-header {
        flex-direction: column;
        gap: 16px;
    }
    
    .ai-loading-icon {
        width: 50px;
        height: 50px;
    }
    
    .ai-loading-icon i {
        font-size: 28px;
    }
    
    .ai-overview-box {
        padding: 20px;
        border-radius: 12px;
    }
    
    .ai-overview-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .ai-overview-header h3 {
        font-size: 1.15rem;
    }
    
    .ai-overview-header .fa-robot {
        font-size: 1.25rem;
    }
    
    .ai-overview-content p {
        font-size: 1rem;
    }
    
    .ai-overview-sources ul {
        flex-direction: column;
    }
    
    .ai-overview-sources li {
        width: fit-content;
    }
    
    .ai-overview-keypoints {
        padding: 16px;
    }
    
    .see-more-btn {
        padding: 6px 16px;
        font-size: 0.85rem;
    }
}
        background: #1e293b;
    }
    
    .ai-overview-sources li {
        background: #1e293b;
    }
    
    .related-topic-badge {
        background: #1e293b;
        border-color: #334155;
        color: #cbd5e1;
    }
    
    .see-more-btn {
        background: #1e293b;
        border-color: #334155;
        color: var(--primary-color);
    }
    
    .see-more-btn:hover {
        background: #334155;
    }
}