/* Styling for the expanded documentation section */
.docs-content {
    max-width: 900px;
    margin: 0 auto;
}

.docs-section {
    background-color: white;
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-md);
}

.docs-section:last-child {
    margin-bottom: 0;
}

.docs-section h2 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-light);
}

.docs-section h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 1.5rem 0 1rem;
    color: var(--text-primary);
}

.docs-section h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 1.25rem 0 0.75rem;
    color: var(--text-secondary);
}

.docs-step {
    display: flex;
    margin-bottom: 1.5rem;
    gap: 1.5rem;
}

.step-number {
    background-color: var(--primary-color);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
}

.docs-tips, .docs-faqs {
    list-style: none;
    margin-top: 1rem;
}

.docs-tips li, .docs-faqs li {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
}

.docs-tips li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 600;
}

.docs-faqs li {
    margin-bottom: 2rem;
    padding-left: 0;
}

.docs-faqs li h4 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.docs-faqs li h4::before {
    content: "Q:";
    color: var(--primary-color);
    font-weight: 700;
    margin-right: 0.5rem;
}

.faq-answer {
    padding-left: 1.5rem;
    position: relative;
}

.faq-answer::before {
    content: "A:";
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: 700;
}

.docs-code-block {
    margin: 1.5rem 0;
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
}

.docs-code-block pre {
    margin: 0;
    padding: 1.25rem;
    background-color: #282c34;
    border-radius: var(--radius-md);
    overflow-x: auto;
}

.docs-code-block code {
    font-family: 'Fira Code', 'Roboto Mono', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
}

.docs-code-copy {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
    cursor: pointer;
    transition: var(--transition);
}

.docs-code-copy:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.keyboard-shortcut {
    display: inline-block;
    background-color: #f3f4f6;
    padding: 0.2rem 0.4rem;
    border-radius: 0.25rem;
    font-family: 'Fira Code', 'Roboto Mono', monospace;
    font-size: 0.85rem;
    color: var(--text-primary);
    border: 1px solid #e2e8f0;
    margin: 0 0.2rem;
}

.model-comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

.model-comparison-table th, 
.model-comparison-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.model-comparison-table th {
    background-color: var(--primary-light);
    color: var(--primary-color);
    font-weight: 600;
}

.model-comparison-table tr:last-child td {
    border-bottom: none;
}

.model-comparison-table tr:nth-child(even) {
    background-color: #f9fafc;
}

.feature-available {
    color: var(--success-color);
}

.feature-unavailable {
    color: var(--text-tertiary);
}

.docs-toggle-section {
    margin: 1.5rem 0;
}

.docs-toggle-btn {
    background-color: var(--primary-light);
    color: var(--primary-color);
    border: none;
    border-radius: var(--radius-md);
    padding: 0.75rem 1rem;
    width: 100%;
    text-align: left;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.docs-toggle-btn:hover {
    background-color: rgba(79, 70, 229, 0.2);
}

.docs-toggle-btn.active {
    background-color: var(--primary-color);
    color: white;
}

.toggle-icon {
    font-weight: bold;
    font-size: 1.2rem;
}

.docs-toggle-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 1rem;
    background-color: #f9fafc;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    border: 1px solid var(--border-color);
    border-top: none;
}

.tip-important {
    background-color: rgba(79, 70, 229, 0.1);
    border-left: 4px solid var(--primary-color);
    padding: 1rem;
    margin: 1.5rem 0;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.tip-warning {
    background-color: rgba(251, 191, 36, 0.1);
    border-left: 4px solid #f59e0b;
    padding: 1rem;
    margin: 1.5rem 0;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

/* Search Bar Styles */
.docs-search-container {
    max-width: 900px;
    margin: 0 auto 2rem auto;
}

.docs-search-bar {
    position: relative;
    display: flex;
    align-items: center;
    background-color: white;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 0.75rem 1rem;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.docs-search-bar:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.docs-search-bar svg {
    color: var(--text-tertiary);
    margin-right: 0.75rem;
    flex-shrink: 0;
}

#docs-search {
    flex: 1;
    border: none;
    outline: none;
    font-size: 1rem;
    color: var(--text-primary);
    background: transparent;
}

#docs-search::placeholder {
    color: var(--text-tertiary);
}

.clear-search-btn {
    background: none;
    border: none;
    color: var(--text-tertiary);
    cursor: pointer;
    padding: 0.25rem;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    margin-left: 0.5rem;
}

.clear-search-btn:hover {
    color: var(--text-secondary);
    background-color: var(--primary-light);
}

.search-results-count {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 0.75rem;
    padding: 0.5rem;
    background-color: var(--primary-light);
    border-radius: var(--radius-md);
}

/* Search highlighting */
.search-highlight {
    background-color: #fef08a;
    color: #713f12;
    padding: 0.1rem 0.2rem;
    border-radius: 0.25rem;
    font-weight: 500;
}

/* Hidden sections during search */
.docs-section.search-hidden {
    display: none;
}

.docs-search-no-results {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--text-tertiary);
}

.docs-search-no-results svg {
    width: 48px;
    height: 48px;
    margin-bottom: 1rem;
    color: var(--text-tertiary);
}

.docs-search-no-results h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.docs-search-no-results p {
    font-size: 0.95rem;
    max-width: 400px;
    margin: 0 auto;
}