.qa-tab-content {
    min-height: 400px;
}

.qa-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
    animation: fadeIn 0.5s ease-in;
}

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

.qa-loading .loading-spinner {
    width: 56px;
    height: 56px;
    border: 5px solid var(--color-border);
    border-top-color: var(--color-accent);
    border-right-color: var(--color-accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 24px;
    box-shadow: 0 0 20px var(--color-accent-glow);
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.qa-loading p {
    color: var(--color-text-secondary);
    font-size: 16px;
    margin: 0;
    animation: pulse 2s ease-in-out infinite;
}

.qa-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}

.qa-error svg {
    color: var(--color-accent);
    margin-bottom: 20px;
}

.qa-error h3 {
    margin: 0 0 10px 0;
    color: var(--color-text-primary);
    font-size: 20px;
}

.qa-error p {
    color: var(--color-text-secondary);
    margin: 0 0 20px 0;
}

.qa-error .retry-button {
    padding: 10px 24px;
    background: var(--color-accent);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all var(--transition-fast);
}

.qa-error .retry-button:hover {
    background: var(--color-accent-hover);
    transform: translateY(-2px);
}

.qa-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}

.qa-empty svg {
    color: var(--color-text-muted);
    margin-bottom: 20px;
}

.qa-empty p {
    color: var(--color-text-muted);
    font-size: 16px;
    margin: 0;
}

.qa-container {
    padding: 20px 0;
}

.qa-header {
    margin-bottom: 32px;
    text-align: center;
}

.qa-header h2 {
    margin: 0 0 8px 0;
    font-size: 28px;
    color: var(--color-text-primary);
}

.qa-subtitle {
    margin: 0;
    color: var(--color-text-secondary);
    font-size: 16px;
}

.qa-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.qa-item {
    background: var(--color-bg-input);
    border-radius: var(--radius-lg);
    padding: 24px;
    border: 1px solid var(--color-border);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.qa-item::after {
    content: attr(data-index);
    position: absolute;
    top: 16px;
    right: 16px;
    width: 28px;
    height: 28px;
    background: var(--color-accent-subtle);
    color: var(--color-text-muted);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    transition: all var(--transition-fast);
}

.qa-item:hover::after {
    background: var(--color-accent-glow);
    color: var(--color-text-primary);
    transform: scale(1.15);
}

.qa-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--color-accent-subtle) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.qa-item:hover {
    background: var(--color-bg-input-focus);
    border-color: var(--color-border-accent);
    transform: translateY(-4px) scale(1.01);
    box-shadow: var(--shadow-accent);
}

.qa-item:hover::before {
    opacity: 1;
}

.qa-question {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
}

.qa-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.qa-icon-question {
    background: var(--color-accent-subtle);
    color: var(--color-accent);
}

.qa-icon-answer {
    background: rgba(255, 165, 0, 0.15);
    color: var(--color-warning);
}

.qa-item:hover .qa-icon-question {
    background: var(--color-accent-glow);
    transform: rotate(5deg) scale(1.1);
    box-shadow: 0 4px 8px var(--color-accent-glow);
}

.qa-item:hover .qa-icon-answer {
    background: rgba(255, 165, 0, 0.25);
    transform: rotate(-5deg) scale(1.1);
}

.qa-icon svg {
    transition: transform 0.3s ease;
}

.qa-item:hover .qa-icon svg {
    transform: scale(1.1);
}

.qa-text {
    flex: 1;
    line-height: 1.6;
}

.qa-text strong {
    color: var(--color-text-primary);
    font-weight: 600;
    margin-right: 8px;
}

h3.qa-text {
    margin: 0;
}

.qa-question .qa-text {
    font-size: 18px;
    color: var(--color-text-primary);
    font-weight: bold;
}

.qa-answer {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding-left: 8px;
}

.qa-answer .qa-text {
    font-size: 16px;
    color: var(--color-text-secondary);
}

@media only screen and (max-width: 768px) {
    .qa-container { padding: 10px 0; }
    .qa-header h2 { font-size: 24px; }
    .qa-subtitle { font-size: 14px; }
    .qa-item { padding: 16px; }
    .qa-question .qa-text { font-size: 16px; }
    .qa-answer .qa-text { font-size: 14px; }
    .qa-icon { width: 32px; height: 32px; }
    .qa-icon svg { width: 18px; height: 18px; }
}

@media only screen and (min-width: 769px) and (max-width: 1024px) {
    .qa-container { padding: 15px 0; }
    .qa-header h2 { font-size: 26px; }
}

@keyframes streamIn {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
        filter: blur(4px);
    }
    60% {
        opacity: 0.8;
        transform: translateY(-5px) scale(1.01);
        filter: blur(0px);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0px);
    }
}

@keyframes shimmer {
    0% { background-position: -1000px 0; }
    100% { background-position: 1000px 0; }
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(0.98); }
}

.qa-item {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.qa-item-entering {
    animation: streamIn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.qa-item:nth-child(1) { animation-delay: 0s; }
.qa-item:nth-child(2) { animation-delay: 0.1s; }
.qa-item:nth-child(3) { animation-delay: 0.2s; }
.qa-item:nth-child(4) { animation-delay: 0.3s; }
.qa-item:nth-child(5) { animation-delay: 0.4s; }

.qa-streaming-indicator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--color-text-muted);
    font-size: 14px;
    margin-top: 20px;
    padding: 12px 20px;
    background: var(--color-accent-subtle);
    border-radius: var(--radius-xl);
    border: 1px solid var(--color-border-accent);
    transition: all var(--transition-fast);
}

.qa-streaming-indicator::before {
    content: '';
    width: 10px;
    height: 10px;
    background: var(--color-accent);
    border-radius: 50%;
    animation: pulse 1.5s ease-in-out infinite;
    box-shadow: 0 0 10px var(--color-accent-glow);
}

@keyframes dots {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60%, 100% { content: '...'; }
}

.qa-streaming-indicator::after {
    content: '...';
    animation: dots 1.5s infinite;
    width: 20px;
    display: inline-block;
}

.qa-skeleton {
    background: var(--color-bg-input);
    border-radius: var(--radius-lg);
    padding: 24px;
    border: 1px solid var(--color-border);
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
}

.qa-skeleton::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.05) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    animation: shimmer 2s infinite;
}

.qa-skeleton-line {
    height: 16px;
    background: var(--color-border);
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
}

.qa-skeleton-line:nth-child(1) { width: 80%; }
.qa-skeleton-line:nth-child(2) { width: 95%; }
.qa-skeleton-line:nth-child(3) { width: 70%; }

/* Free transcript excerpt under the summary (server-rendered for crawlers too) */
.transcript-excerpt {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--color-border);
}

.transcript-excerpt-title {
    font-size: 20px;
    margin: 0 0 12px 0;
    color: var(--color-text-primary);
}

.transcript-excerpt-body p {
    margin: 0 0 8px 0;
    font-size: 15px;
    line-height: 1.6;
    color: var(--color-text-secondary);
}

.transcript-excerpt-more-premium {
    margin: 12px 0 0 0;
    font-size: 14px;
    color: var(--color-text-secondary);
}

.transcript-excerpt-more {
    background: none;
    border: none;
    padding: 0;
    margin-top: 8px;
    color: var(--color-accent);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.transcript-excerpt-more:hover,
.transcript-excerpt-more:focus-visible {
    text-decoration: underline;
}
