/* External styles for ai-search-demo */

/* Navigation styling */
.navbar-scrolled {
    background-color: rgba(33, 37, 41, 0.85) !important;
    backdrop-filter: blur(10px);
    transition: background-color 0.3s ease-in-out;
}

/* Hero section styling */
.text-teal {
    color: #1aa79c;
}

.hero-section .btn-light {
    color: #1aa79c !important;
}

.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    padding-top: 8rem;
}

.hero-content-positioning {
    justify-content: flex-start;
}

.hero-subheading {
    font-size: 1.5rem;
    font-weight: 400;
    line-height: 1.4;
    max-width: 80%;
}

.hero-description-text {
    font-size: 1.25rem;
    line-height: 1.5;
}

.text-white-75 {
    color: rgba(255, 255, 255, 0.9);
}

/* Overview section styling */
.overview-section {
    background-color: #f8f9fa;
}

.overview-text {
    font-size: 1.4rem;
    line-height: 1.6;
    color: #495057;
    font-weight: 400;
}

/* AI Overview styling */
.ai-overview {
    background-color: ghostwhite;
    padding: 20px;
}

/* AI Overview Layout Adjustments */
.ai-overview-container {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.ai-overview-main {
    flex: 1;
    min-width: 0; /* Allows text to wrap properly */
    max-width: 1200px;
    order: 1; /* Main content first */
}

.related-articles {
    width: 280px;
    flex-shrink: 0;
    order: 2; /* Sidebar on the right */
}

/* Loading placeholder styles */
.ai-overview-loading {
    position: relative;
    min-height: 200px;
}

.related-articles {
    width: 300px;
    flex-shrink: 0;
}

.placeholder-line.title {
    height: 14px;
    margin-bottom: 6px;
}

.placeholder-line.title.small {
    width: 85%;
}

.placeholder-line.title.medium {
    width: 90%;
}

.placeholder-line.title.large {
    width: 95%;
}

.placeholder-line.content {
    margin-bottom: 4px;
}

.placeholder-line.content.small {
    height: 11px;
    width: 50%;
}

.placeholder-line.content.medium {
    height: 11px;
    width: 60%;
}

.placeholder-line.content.large {
    height: 11px;
    width: 70%;
}

.placeholder-line.content.full {
    height: 12px;
    width: 100%;
}

.placeholder-line.content.almost-full {
    height: 12px;
    width: 95%;
}

.placeholder-line.content.most {
    height: 12px;
    width: 80%;
}

.ai-overview-main {
    max-width: 1200px;
}

.placeholder-line.blur {
    filter: blur(1px);
}

.placeholder-line.blur.title-large {
    height: 18px;
    width: 85%;
    margin-bottom: 12px;
}

.placeholder-line.blur.content-full {
    height: 16px;
    width: 100%;
    margin-bottom: 8px;
}

.placeholder-line.blur.content-almost-full {
    height: 16px;
    width: 95%;
    margin-bottom: 8px;
}

.placeholder-line.blur.content-large {
    height: 16px;
    width: 88%;
    margin-bottom: 8px;
}

.placeholder-line.blur.content-medium {
    height: 16px;
    width: 78%;
    margin-bottom: 8px;
}

.placeholder-line.blur.content-high {
    height: 16px;
    width: 92%;
    margin-bottom: 8px;
}

.placeholder-line.blur.content-small {
    height: 16px;
    width: 65%;
    margin-bottom: 12px;
}

/* Performance optimized animations - using transform and opacity only */
.optimized-pulse {
    animation: optimizedPulse 2s ease-in-out infinite;
}

@keyframes optimizedPulse {
    0%, 100% {
        opacity: 0.6;
    }
    50% {
        opacity: 1;
    }
}

.optimized-fade {
    animation: optimizedFade 1.5s ease-in-out infinite;
}

@keyframes optimizedFade {
    0%, 100% {
        opacity: 0.3;
    }
    50% {
        opacity: 0.8;
    }
}

/* Improved performance for background animations */
.will-change-optimized {
    will-change: transform, opacity;
}

/* Remove will-change after animation completes to free up resources */
.animation-complete {
    will-change: auto;
}

/* Search Results Styling */
.card.h-100 {
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Show More/Show Less Button Styling */
.btn-outline-primary {
    color: #1aa79c !important;
    border-color: #1aa79c !important;
}

.btn-outline-primary:hover {
    background-color: #1aa79c !important;
    border-color: #1aa79c !important;
    color: white !important;
}

/* Product Walkthrough Styles */
.walkthrough-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    pointer-events: none;
    animation: fadeInOverlay 0.4s ease-in-out;
}

@keyframes fadeInOverlay {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.walkthrough-bubble {
    position: absolute;
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    max-width: 300px;
    z-index: 10000;
    pointer-events: all;
    border: 2px solid #1aa79c;
    transition: all 0.6s ease-in-out;
    opacity: 0;
    transform: scale(0.8) translateY(-10px);
}

.walkthrough-bubble.show {
    opacity: 1;
    transform: scale(1) translateY(0);
}

.walkthrough-bubble::before {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border-style: none;
}

.walkthrough-bubble.arrow-bottom::before {
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 10px 10px 0 10px;
    border-color: white transparent transparent transparent;
}

.walkthrough-bubble.arrow-top::before {
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 0 10px 10px 10px;
    border-color: transparent transparent white transparent;
}

.walkthrough-bubble.arrow-left::before {
    left: -10px;
    top: 50%;
    transform: translateY(-50%);
    border-width: 10px 10px 10px 0;
    border-color: transparent white transparent transparent;
}

.walkthrough-bubble h4 {
    color: #1aa79c;
    margin-bottom: 10px;
    
    font-weight: 600;
}

.walkthrough-bubble p {
    margin-bottom: 15px;
    color: #333;
    font-size: 14px;
    line-height: 1.5;
}

.walkthrough-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.walkthrough-progress {
    font-size: 12px;
    color: #666;
}

.walkthrough-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s;
}

.walkthrough-btn-skip {
    background: #f8f9fa;
    color: #666;
}

.walkthrough-btn-skip:hover {
    background: #e9ecef;
}

.walkthrough-btn-next {
    background: #1aa79c;
    color: white;
}

.walkthrough-btn-next:hover {
    background: #16958b;
}

.walkthrough-highlight {
    border-radius: 8px;
    box-shadow: 0 0 0 3px #1aa79c, 0 0 20px rgba(26, 167, 156, 0.3);
    /* Remove position: relative and z-index to prevent layering issues */
    /* The highlight should stay in normal document flow */
}