/**
 * Custom CSS Theme for Bit by Bit Developers Documentation
 * This file overrides the TypeDoc 0.28.x default theme to match the original branding
 */

/* ============================================================================
 * CSS Variables - Override TypeDoc default theme colors
 * ============================================================================ */
:root {
    /* Fonts - matching Docusaurus Infima framework */
    --font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, sans-serif, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    --font-family-mono: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    
    /* Primary colors */
    --color-primary: #F2C5AA;
    --color-primary-dark: #d4a88e;
    --color-primary-light: #f5d4c2;
    
    /* Dark theme colors (default for bitbybit) */
    --color-background: #1a1c20;
    --color-background-secondary: #22252a;
    --color-background-tertiary: #2a2e35;
    --color-background-card: #282c33;
    --color-background-warning: #4e3a1d;
    
    --color-text: #fff;
    --color-text-muted: #a0a5b0;
    --color-text-aside: #F2C5AA;
    
    --color-link: #AAD6F2;
    --color-link-hover: #c5e4f7;
    
    --color-panel-divider: #F2C5AA;
    --color-menu-divider: #3a3f48;
    --color-menu-divider-focus: #fff;
    --color-menu-label: #707580;
    
    --color-comment-tag: #F2C5AA;
    --color-comment-tag-text: #1a1c20;
    
    --color-ts: #F2C5AA;
    --color-ts-interface: #7cb342;
    --color-ts-enum: #ffa726;
    --color-ts-class: #42a5f5;
    --color-ts-private: #707580;
    
    --color-toolbar: #1a1c20;
    --color-toolbar-text: #fff;
    
    /* Border radius */
    --border-radius: 12px;
    --border-radius-sm: 8px;
    
    /* Shadows */
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 8px 30px rgba(242, 197, 170, 0.15);
    
    /* Override TypeDoc's default color scheme */
    --light-color-background: #1a1c20;
    --light-color-background-secondary: #22252a;
    --light-color-text: #fff;
    --light-color-text-aside: #F2C5AA;
    --light-color-link: #AAD6F2;
    
    --dark-color-background: #1a1c20;
    --dark-color-background-secondary: #22252a;
    --dark-color-text: #fff;
    --dark-color-text-aside: #F2C5AA;
    --dark-color-link: #AAD6F2;
}

/* Force dark mode appearance */
@layer typedoc {
    :root {
        --color-background: #1a1c20;
        --color-background-secondary: #22252a;
        --color-text: #fff;
        --color-text-aside: #F2C5AA;
        --color-link: #AAD6F2;
        --color-accent: #F2C5AA;
    }
    
    html {
        color-scheme: dark;
    }
}

/* ============================================================================
 * Base Styles
 * ============================================================================ */
* {
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    background-color: #1a1c20;
    color: #fff;
    line-height: 1.6;
}

code, pre, .tsd-signature {
    font-family: var(--font-family-mono);
}

a {
    color: #AAD6F2;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--color-link-hover);
    text-decoration: underline;
}

/* ============================================================================
 * Header / Toolbar
 * ============================================================================ */
header.tsd-page-toolbar {
    background: linear-gradient(180deg, #1a1c20 0%, #22252a 100%);
    border-bottom: 1px solid rgba(242, 197, 170, 0.1);
    padding: 15px 24px !important;
    position: sticky;
    top: 0;
    z-index: 100;
}

.tsd-toolbar-contents {
    display: flex;
    align-items: center;
    padding: 0;
}

.tsd-toolbar-contents .title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.25rem;
    font-weight: 500;
    color: #fff;
    text-decoration: none;
}

/* Logo in toolbar */
.tsd-toolbar-contents .title::before {
    content: '';
    display: inline-block;
    width: 36px;
    height: 36px;
    background-image: url('images/logo-bitbybit.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

#tsd-toolbar-links {
    display: flex;
    gap: 8px;
    margin-left: auto;
    margin-right: 16px;
}

#tsd-toolbar-links a {
    color: #fff;
    text-decoration: none;
    padding: 8px 14px;
    border-radius: var(--border-radius-sm);
    font-size: 0.9rem;
    font-weight: 400;
    transition: all 0.2s ease;
    background: transparent;
}

#tsd-toolbar-links a:hover {
    background: rgba(242, 197, 170, 0.15);
    color: #F2C5AA;
    text-decoration: none;
}

/* Search button */
#tsd-search-trigger {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-sm);
    padding: 8px 12px;
    color: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
}

#tsd-search-trigger:hover {
    background: rgba(242, 197, 170, 0.15);
    border-color: rgba(242, 197, 170, 0.3);
}

/* ============================================================================
 * Hero Section (Docusaurus-style with animations)
 * ============================================================================ */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(180deg, #1a1c20 0%, #121315 100%);
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.hero-grid {
    position: absolute;
    top: -60px;
    left: -60px;
    right: -60px;
    bottom: -60px;
    background-image: 
        linear-gradient(rgba(242, 197, 170, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(242, 197, 170, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: gridMove 30s ease-in-out infinite;
}

@keyframes gridMove {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(30px, 30px); }
}

/* Hero Particles */
.hero-particles {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
}

.hero-particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: #F2C5AA;
    border-radius: 50%;
    opacity: 0.6;
}

.hero-particle-1 { top: 20%; left: 10%; animation: particleFloat 8s ease-in-out infinite; }
.hero-particle-2 { top: 60%; left: 85%; animation: particleFloat 10s ease-in-out infinite 1s; width: 4px; height: 4px; }
.hero-particle-3 { top: 80%; left: 20%; animation: particleFloat 12s ease-in-out infinite 2s; width: 5px; height: 5px; }
.hero-particle-4 { top: 30%; left: 70%; animation: particleFloat 9s ease-in-out infinite 0.5s; width: 4px; height: 4px; }
.hero-particle-5 { top: 50%; left: 40%; animation: particleFloat 11s ease-in-out infinite 1.5s; width: 3px; height: 3px; }
.hero-particle-6 { top: 15%; left: 60%; animation: particleFloat 7s ease-in-out infinite 3s; width: 5px; height: 5px; }

@keyframes particleFloat {
    0%, 100% { transform: translateY(0) translateX(0); opacity: 0.6; }
    25% { transform: translateY(-30px) translateX(10px); opacity: 0.8; }
    50% { transform: translateY(-15px) translateX(-5px); opacity: 0.4; }
    75% { transform: translateY(-25px) translateX(15px); opacity: 0.7; }
}

/* Hero Geometric Shapes */
.hero-geometric {
    position: absolute;
    z-index: 1;
    opacity: 0.15;
    pointer-events: none;
}

.hero-geo-1 {
    top: 10%;
    left: 5%;
    width: 120px;
    height: 120px;
    animation: float 12s ease-in-out infinite;
}

.hero-geo-2 {
    bottom: 15%;
    right: 8%;
    width: 100px;
    height: 100px;
    animation: floatReverse 10s ease-in-out infinite;
}

.hero-geo-3 {
    top: 50%;
    right: 15%;
    width: 80px;
    height: 80px;
    animation: float 14s ease-in-out infinite 2s;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

@keyframes floatReverse {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(20px) rotate(-5deg); }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    padding: 2rem;
}

/* Logo with 3D Particles */
.hero-logo-container {
    position: relative;
    width: 90px;
    height: 90px;
    margin: 0 auto 30px;
    perspective: 500px;
}

.hero-logo-main {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: logoFloat 5s ease-in-out infinite;
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.hero-logo {
    margin-bottom: 0;
}

.hero-logo img {
    width: 90px;
    height: 90px;
    border-radius: 6px;
    transition: all 0.4s ease;
}

.hero-logo img:hover {
    filter: drop-shadow(0 0 12px rgba(242, 197, 170, 0.25)) drop-shadow(0 0 24px rgba(242, 197, 170, 0.15));
    transform: scale(1.03);
}

.logo-particles {
    position: absolute;
    inset: -60px;
    transform-style: preserve-3d;
    pointer-events: none;
}

.logo-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #F2C5AA;
    border-radius: 50%;
    opacity: 0.7;
}

.logo-p1 { top: 20%; left: 10%; animation: fly3d1 8s ease-in-out infinite; }
.logo-p2 { top: 10%; right: 15%; width: 3px; height: 3px; animation: fly3d2 10s ease-in-out infinite 0.5s; }
.logo-p3 { bottom: 15%; left: 20%; width: 5px; height: 5px; animation: fly3d3 9s ease-in-out infinite 1s; }
.logo-p4 { bottom: 25%; right: 10%; width: 3px; height: 3px; animation: fly3d4 11s ease-in-out infinite 0.3s; }
.logo-p5 { top: 50%; left: 5%; width: 2px; height: 2px; animation: fly3d5 7s ease-in-out infinite 1.5s; }
.logo-p6 { top: 40%; right: 5%; width: 4px; height: 4px; animation: fly3d6 12s ease-in-out infinite 0.8s; }

@keyframes fly3d1 {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); opacity: 0.7; }
    25% { transform: translate3d(15px, -20px, 30px) scale(1.2); opacity: 0.9; }
    50% { transform: translate3d(-10px, -35px, 50px) scale(0.8); opacity: 0.5; }
    75% { transform: translate3d(20px, -15px, 20px) scale(1.1); opacity: 0.8; }
}

@keyframes fly3d2 {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); opacity: 0.6; }
    33% { transform: translate3d(-20px, 15px, 40px) scale(1.3); opacity: 0.9; }
    66% { transform: translate3d(10px, -25px, 25px) scale(0.7); opacity: 0.5; }
}

@keyframes fly3d3 {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); opacity: 0.8; }
    20% { transform: translate3d(25px, 10px, 35px) scale(0.9); opacity: 0.6; }
    50% { transform: translate3d(-15px, 30px, 60px) scale(1.4); opacity: 1; }
    80% { transform: translate3d(10px, 5px, 20px) scale(1.1); opacity: 0.7; }
}

@keyframes fly3d4 {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); opacity: 0.7; }
    40% { transform: translate3d(-25px, -10px, 45px) scale(1.2); opacity: 0.9; }
    70% { transform: translate3d(15px, 20px, 30px) scale(0.8); opacity: 0.5; }
}

@keyframes fly3d5 {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); opacity: 0.5; }
    30% { transform: translate3d(20px, -30px, 25px) scale(1.5); opacity: 0.9; }
    60% { transform: translate3d(-10px, -15px, 50px) scale(0.8); opacity: 0.6; }
}

@keyframes fly3d6 {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); opacity: 0.6; }
    25% { transform: translate3d(-30px, 20px, 35px) scale(1.1); opacity: 0.8; }
    50% { transform: translate3d(-15px, -25px, 55px) scale(1.3); opacity: 1; }
    75% { transform: translate3d(10px, 10px, 20px) scale(0.9); opacity: 0.5; }
}

/* Hero Badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(242, 197, 170, 0.1);
    border: 1px solid rgba(242, 197, 170, 0.3);
    border-radius: 30px;
    padding: 8px 20px;
    margin-bottom: 30px;
    font-size: 14px;
    color: #F2C5AA;
    backdrop-filter: blur(10px);
    animation: fadeInUp 0.8s ease-out;
}

.badge-icon {
    font-size: 16px;
    animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.2); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-title {
    font-size: clamp(36px, 8vw, 72px);
    font-weight: 300;
    margin-bottom: 20px;
    color: #ffffff;
    line-height: 1.1;
    letter-spacing: 4px;
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.hero-version {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, rgba(242, 197, 170, 0.15), rgba(242, 197, 170, 0.25));
    border: 1px solid rgba(242, 197, 170, 0.4);
    border-radius: 50px;
    padding: 8px 20px;
    margin-bottom: 24px;
    animation: fadeInUp 0.8s ease-out 0.3s backwards, pulseGlow 3s ease-in-out infinite;
    box-shadow: 0 0 20px rgba(242, 197, 170, 0.2);
}

.hero-version .version-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255, 255, 255, 0.7);
}

.hero-version .version-number {
    font-size: 16px;
    font-weight: 700;
    color: #F2C5AA;
    font-family: 'SF Mono', SFMono-Regular, ui-monospace, 'DejaVu Sans Mono', Menlo, Consolas, monospace;
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(242, 197, 170, 0.2);
    }
    50% {
        box-shadow: 0 0 30px rgba(242, 197, 170, 0.4);
    }
}

.highlight {
    background: linear-gradient(135deg, #d4a88e, #F2C5AA, #fff6f3);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #F2C5AA, #fff6f3);
    border-radius: 2px;
    transform: scaleX(0);
    animation: underlineExpand 0.8s ease-out 1s forwards;
}

@keyframes underlineExpand {
    to { transform: scaleX(1); }
}

.hero-subtitle {
    font-size: clamp(16px, 2.5vw, 22px);
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2.5rem;
    line-height: 1.6;
    animation: fadeInUp 0.8s ease-out 0.4s backwards;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 50px;
    animation: fadeInUp 0.8s ease-out 0.6s backwards;
}

.hero-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

.hero-button svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.hero-button-primary {
    background: linear-gradient(135deg, #d4a88e, #F2C5AA, #fff6f3);
    color: #1a1c20;
    box-shadow: 0 4px 20px rgba(242, 197, 170, 0.3);
}

.hero-button-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s ease;
}

.hero-button-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(242, 197, 170, 0.5);
    color: #1a1c20;
    text-decoration: none;
}

.hero-button-primary:hover::before {
    left: 100%;
}

.hero-button-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(242, 197, 170, 0.4);
    color: #F2C5AA;
}

.hero-button-secondary:hover {
    background: rgba(242, 197, 170, 0.15);
    border-color: rgba(242, 197, 170, 0.6);
    color: #F2C5AA;
    text-decoration: none;
    transform: translateY(-2px);
}

/* Hero Stats */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    padding-top: 40px;
    border-top: 1px solid rgba(242, 197, 170, 0.15);
    animation: fadeInUp 0.8s ease-out 0.8s backwards;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 300;
    color: #F2C5AA;
    letter-spacing: 2px;
}

.stat-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 8px;
}

/* ============================================================================
 * Page Title (Non-homepage)
 * ============================================================================ */
.tsd-page-title {
    padding: 40px 0 24px 0;
    margin: 0 0 32px 0;
    background: transparent;
    box-shadow: none;
}

.tsd-page-title h1 {
    margin: 0;
    color: #fff;
    font-size: 2rem;
    font-weight: 600;
}

/* Homepage specific - hide default title when hero is present */
body.homepage .col-content > .tsd-page-title {
    display: none;
}

/* ============================================================================
 * Main Container
 * ============================================================================ */
.container-main {
    padding: 0 24px 40px;
}

.container-main .col-content {
    padding-right: 24px;
}

/* ============================================================================
 * Variable Cards Section
 * ============================================================================ */
.api-cards-section {
    margin-bottom: 48px;
}

.api-cards-section h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #fff;
    margin: 0 0 24px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(242, 197, 170, 0.3);
}

.api-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.api-card {
    background: var(--color-background-card);
    border-radius: var(--border-radius);
    padding: 20px 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
    text-decoration: none;
    display: block;
}

.api-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(242, 197, 170, 0.3);
    text-decoration: none;
}

/* Card highlight animation when clicking hash links */
.api-card-highlight {
    animation: cardHighlightPulse 2s ease-out;
    border-color: rgba(242, 197, 170, 0.8) !important;
    box-shadow: 
        0 0 0 3px rgba(242, 197, 170, 0.3),
        0 8px 30px rgba(242, 197, 170, 0.4) !important;
    transform: scale(1.02);
}

@keyframes cardHighlightPulse {
    0% {
        box-shadow: 
            0 0 0 0 rgba(242, 197, 170, 0.6),
            0 8px 30px rgba(242, 197, 170, 0.5);
    }
    50% {
        box-shadow: 
            0 0 0 10px rgba(242, 197, 170, 0),
            0 8px 30px rgba(242, 197, 170, 0.3);
    }
    100% {
        box-shadow: 
            0 0 0 3px rgba(242, 197, 170, 0.3),
            0 8px 30px rgba(242, 197, 170, 0.4);
    }
}

.api-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.api-card-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    background: linear-gradient(135deg, rgba(242, 197, 170, 0.2) 0%, rgba(242, 197, 170, 0.05) 100%);
    color: #F2C5AA;
}

.api-card-icon .api-icon,
.api-card-icon img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    filter: brightness(0) saturate(100%) invert(85%) sepia(15%) saturate(500%) hue-rotate(331deg) brightness(100%) contrast(92%);
}

/* Hero button icons (inline SVGs and CDN images) */
.hero-button svg,
.hero-button img {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.hero-button-primary svg {
    stroke: #1a1c20;
}

.hero-button-primary img {
    filter: brightness(0) saturate(100%);
}

.hero-button-secondary svg {
    stroke: #F2C5AA;
}

.hero-button-secondary img {
    filter: brightness(0) saturate(100%) invert(85%) sepia(15%) saturate(500%) hue-rotate(331deg) brightness(100%) contrast(92%);
}

.api-card-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #fff;
    margin: 0;
}

.api-card-description {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin: 0;
    line-height: 1.5;
}

/* ============================================================================
 * Default Member Summaries (Enhanced)
 * ============================================================================ */
.tsd-panel-group.tsd-member-group {
    background: var(--color-background-secondary);
    border-radius: var(--border-radius);
    padding: 24px;
    margin-bottom: 24px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.tsd-panel-group .tsd-accordion-summary {
    padding: 0;
    margin-bottom: 20px;
}

.tsd-panel-group .tsd-accordion-summary h2 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #F2C5AA;
    margin: 0;
}

.tsd-member-summaries {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
    margin: 0;
    padding: 0;
}

/* Hide empty dd elements (descriptions without content) */
.tsd-member-summaries dd.tsd-member-summary:empty {
    display: none;
}

/* Make dt elements (titles) span full grid cell when dd is hidden/empty */
.tsd-member-summaries dt.tsd-member-summary {
    grid-column: span 1;
}

.tsd-member-summary {
    background: var(--color-background-card);
    border-radius: var(--border-radius-sm);
    padding: 16px 20px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.2s ease;
    display: block;
}

.tsd-member-summary:hover {
    border-color: rgba(242, 197, 170, 0.3);
    background: var(--color-background-tertiary);
}

.tsd-member-summary-name {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tsd-member-summary-name a {
    font-size: 1.05rem;
    font-weight: 500;
    color: #AAD6F2;
}

.tsd-member-summary-name .tsd-kind-icon {
    width: 20px;
    height: 20px;
    color: #F2C5AA;
}

.tsd-member-summary-name .tsd-anchor-icon {
    opacity: 0;
    transition: opacity 0.2s ease;
}

.tsd-member-summary:hover .tsd-anchor-icon {
    opacity: 0.5;
}

/* ============================================================================
 * Navigation
 * ============================================================================ */
.col-sidebar {
    background: var(--color-background-secondary);
    border-left: 1px solid rgba(255, 255, 255, 0.05);
}

.tsd-navigation {
    padding: 16px;
}

.tsd-navigation a {
    color: #fff;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: var(--border-radius-sm);
    display: block;
    transition: all 0.2s ease;
    border-left: 2px solid transparent;
}

.tsd-navigation a:hover {
    background: rgba(242, 197, 170, 0.1);
    text-decoration: none;
}

.tsd-navigation .current > a {
    font-weight: 500;
    border-left-color: #F2C5AA;
    background: rgba(242, 197, 170, 0.1);
}

.tsd-navigation li.label span {
    color: var(--color-menu-label);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

#tsd-sidebar-links {
    padding: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

#tsd-sidebar-links a {
    display: block;
    padding: 8px 12px;
    color: var(--color-text-muted);
    font-size: 0.9rem;
    border-radius: var(--border-radius-sm);
    transition: all 0.2s ease;
}

#tsd-sidebar-links a:hover {
    color: #F2C5AA;
    background: rgba(242, 197, 170, 0.1);
    text-decoration: none;
}

/* ============================================================================
 * Page Menu / Settings
 * ============================================================================ */
.page-menu {
    padding: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.tsd-navigation.settings {
    background: var(--color-background-tertiary);
    border-radius: var(--border-radius-sm);
    padding: 12px;
}

.settings-label {
    color: var(--color-text-muted);
    font-size: 0.85rem;
}

/* ============================================================================
 * Panels
 * ============================================================================ */
.tsd-panel {
    background-color: var(--color-background-secondary);
    border-radius: var(--border-radius);
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.tsd-panel-group {
    border-color: rgba(242, 197, 170, 0.2);
}

/* ============================================================================
 * Signatures
 * ============================================================================ */
.tsd-signature {
    background-color: var(--color-background-tertiary);
    border-left: 3px solid #F2C5AA;
    padding: 16px;
    border-radius: 0 var(--border-radius-sm) var(--border-radius-sm) 0;
    overflow-x: auto;
}

.tsd-signature-type {
    color: #F2C5AA;
}

/* ============================================================================
 * Comments / Tags
 * ============================================================================ */
.tsd-comment {
    color: #fff;
    padding: 16px 0;
}

.tsd-comment .tsd-tag,
code.tsd-tag {
    background-color: #F2C5AA;
    color: #1a1c20;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.85em;
    font-weight: 500;
}

.tsd-tag-group {
    margin-top: 1em;
}

/* ============================================================================
 * Breadcrumbs
 * ============================================================================ */
.tsd-breadcrumb {
    margin: 0 0 8px 0;
    padding: 0;
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.tsd-breadcrumb a {
    color: #F2C5AA;
    text-decoration: none;
}

.tsd-breadcrumb a:hover {
    text-decoration: underline;
}

.tsd-breadcrumb li {
    display: inline;
}

.tsd-breadcrumb li:after {
    content: ' / ';
    color: var(--color-text-muted);
}

.tsd-breadcrumb li:last-child:after {
    content: '';
}

/* ============================================================================
 * Code Blocks
 * ============================================================================ */
pre {
    background-color: var(--color-background-tertiary);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--border-radius-sm);
    padding: 16px;
    overflow-x: auto;
}

code {
    background-color: rgba(255, 255, 255, 0.08);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
}

pre code {
    background-color: transparent;
    padding: 0;
}

/* ============================================================================
 * Search Dialog
 * ============================================================================ */
#tsd-search {
    background: var(--color-background-secondary);
    border: 1px solid rgba(242, 197, 170, 0.2);
    border-radius: var(--border-radius);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

#tsd-search-input {
    background: var(--color-background-tertiary);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-sm);
    padding: 12px 16px;
    font-size: 1rem;
}

#tsd-search-input:focus {
    border-color: #F2C5AA;
    outline: none;
}

#tsd-search-results {
    max-height: 400px;
    overflow-y: auto;
}

#tsd-search-results li {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: background 0.2s ease;
}

#tsd-search-results li:hover,
#tsd-search-results li.state.current {
    background: rgba(242, 197, 170, 0.1);
}

/* ============================================================================
 * Footer
 * ============================================================================ */
footer {
    background: var(--color-background-secondary);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 24px;
    text-align: center;
}

.tsd-generator {
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.tsd-generator a {
    color: #AAD6F2;
}

/* ============================================================================
 * Filter / Visibility Controls
 * ============================================================================ */
.tsd-filter-visibility {
    background: transparent;
}

.tsd-filter-input {
    accent-color: #F2C5AA;
}

#tsd-filter-options {
    list-style: none;
    padding: 0;
    margin: 8px 0;
}

#tsd-filter-options li {
    margin: 8px 0;
}

/* ============================================================================
 * Theme Toggle - Hidden (force dark)
 * ============================================================================ */
#tsd-theme {
    display: none !important;
}

.tsd-theme-toggle {
    display: none !important;
}

/* ============================================================================
 * Responsive
 * ============================================================================ */
@media (max-width: 1024px) {
    .hero-section {
        min-height: auto;
        padding: 80px 24px;
    }
    
    .hero-title {
        font-size: 2.5rem;
        letter-spacing: 2px;
    }
    
    .hero-version {
        padding: 6px 16px;
        gap: 6px;
    }
    
    .hero-version .version-number {
        font-size: 14px;
    }
    
    .hero-stats {
        gap: 40px;
    }
    
    .api-cards-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }
}

@media (max-width: 768px) {
    .tsd-toolbar-contents {
        padding: 12px 16px;
    }
    
    #tsd-toolbar-links {
        display: none;
    }
    
    .hero-section {
        padding: 60px 20px;
    }
    
    .hero-title {
        font-size: 1.8rem;
        letter-spacing: 1px;
    }
    
    .hero-version {
        padding: 5px 14px;
        gap: 5px;
        margin-bottom: 16px;
    }
    
    .hero-version .version-label {
        font-size: 10px;
    }
    
    .hero-version .version-number {
        font-size: 13px;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-button {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 24px;
    }
    
    .api-cards-grid {
        grid-template-columns: 1fr;
    }
    
    .tsd-member-summaries {
        grid-template-columns: 1fr;
    }
    
    .container-main {
        padding: 0 16px 32px;
    }
    
    .tsd-panel-group.tsd-member-group {
        padding: 16px;
    }
}

/* ============================================================================
 * Animations
 * ============================================================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-section,
.api-cards-section {
    animation: fadeInUp 0.6s ease-out;
}

.api-card {
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.api-card:nth-child(1) { animation-delay: 0.1s; }
.api-card:nth-child(2) { animation-delay: 0.15s; }
.api-card:nth-child(3) { animation-delay: 0.2s; }
.api-card:nth-child(4) { animation-delay: 0.25s; }
.api-card:nth-child(5) { animation-delay: 0.3s; }
.api-card:nth-child(6) { animation-delay: 0.35s; }

/* Ensure dark mode is always active */
html[data-theme="light"] {
    --color-background: #1a1c20 !important;
    --color-background-secondary: #22252a !important;
    --color-text: #fff !important;
    --color-text-aside: #F2C5AA !important;
    --color-link: #AAD6F2 !important;
}

/* ============================================================================
 * Kind-specific icon colors and alignment
 * ============================================================================ */
.tsd-kind-icon {
    color: #F2C5AA;
    vertical-align: middle;
    flex-shrink: 0;
}

/* Fix icon alignment in accordion summaries and navigation */
.tsd-accordion-summary a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.tsd-accordion-summary > svg {
    vertical-align: middle;
}

.tsd-navigation a {
    display: flex;
    align-items: center;
    gap: 6px;
}

.tsd-navigation .tsd-kind-icon {
    width: 16px;
    height: 16px;
}

.tsd-kind-interface .tsd-kind-icon,
.tsd-kind-type-alias .tsd-kind-icon {
    color: #7cb342;
}

.tsd-kind-enum .tsd-kind-icon {
    color: #ffa726;
}

.tsd-kind-class .tsd-kind-icon {
    color: #42a5f5;
}

.tsd-kind-namespace .tsd-kind-icon,
.tsd-kind-module .tsd-kind-icon {
    color: #F2C5AA;
}

.tsd-kind-private .tsd-kind-icon {
    color: #707580;
}

.tsd-kind-variable .tsd-kind-icon {
    color: #ab47bc;
}

/* ============================================================================
 * Hierarchy
 * ============================================================================ */
.tsd-hierarchy {
    list-style: none;
    padding-left: 1.5em;
}

.tsd-hierarchy .target {
    font-weight: 600;
    color: #F2C5AA;
}

/* ============================================================================
 * Member Details Page
 * ============================================================================ */
.tsd-member {
    padding: 24px;
    margin-bottom: 16px;
    background: var(--color-background-secondary);
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.tsd-member-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tsd-parameters {
    margin: 16px 0;
    padding: 16px;
    background: var(--color-background-tertiary);
    border-radius: var(--border-radius-sm);
}

.tsd-parameters-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #F2C5AA;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.tsd-parameter-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tsd-parameter-list li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.tsd-parameter-list li:last-child {
    border-bottom: none;
}
