/* ============================================
   Theme-Specific Override Styles
   ============================================ */

/* Search highlight animation */
@keyframes searchHighlight {
    0% { background-color: var(--accent-light); }
    100% { background-color: transparent; }
}

.search-highlight {
    animation: searchHighlight 2s ease-out;
}

/* Code block line numbers */
pre.line-numbers {
    counter-reset: line;
    padding-left: 3.5em;
}

pre.line-numbers code {
    counter-increment: line;
}

pre.line-numbers code::before {
    content: counter(line);
    display: inline-block;
    width: 2em;
    margin-left: -2.5em;
    margin-right: 1em;
    text-align: right;
    color: var(--text-tertiary);
    user-select: none;
}

/* Hero section */
.api-hero {
    background: var(--accent-gradient);
    border-radius: var(--radius-xl);
    padding: var(--space-10) var(--space-8);
    margin-bottom: var(--space-8);
    color: white;
    position: relative;
    overflow: hidden;
}

.api-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255,255,255,0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(255,255,255,0.05) 0%, transparent 50%);
    pointer-events: none;
}

.api-hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: var(--space-3);
    -webkit-text-fill-color: white;
    color: white;
    border: none;
    padding: 0;
}

.api-hero-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 600px;
    line-height: 1.6;
    color: rgba(255,255,255,0.9);
}

.api-hero-stats {
    display: flex;
    gap: var(--space-8);
    margin-top: var(--space-6);
}

.hero-stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.hero-stat-number {
    font-size: 2rem;
    font-weight: 800;
}

.hero-stat-label {
    font-size: 0.8rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Section header */
.api-section-header {
    margin-bottom: var(--space-6);
}

.section-description {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
}

/* Deprecated property */
.property-deprecated {
    opacity: 0.6;
    text-decoration: line-through;
}

.property-deprecated:hover {
    opacity: 0.8;
}

/* Readonly property indicator */
.property-item[data-readonly="true"]::after {
    content: '🔒';
    font-size: 0.7rem;
    margin-left: var(--space-2);
    opacity: 0.5;
}

/* Card badges container */
.api-card-badges {
    display: flex;
    gap: var(--space-2);
    flex-shrink: 0;
}

/* Mobile menu close button */
.mobile-menu-close {
    display: none;
    position: absolute;
    top: var(--space-3);
    right: var(--space-3);
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--text-secondary);
    padding: var(--space-1);
    border-radius: var(--radius-sm);
}

@media (max-width: 900px) {
    .mobile-menu-close {
        display: block;
    }
}

/* Search shortcut badge */
.search-shortcut {
    position: absolute;
    right: var(--space-3);
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.65rem;
    padding: 1px 6px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-xs);
    color: var(--text-tertiary);
    font-family: var(--font-mono);
    pointer-events: none;
    display: none;
}

@media (min-width: 901px) {
    .search-shortcut {
        display: block;
    }
}

/* Mark tag in search results */
mark {
    background: var(--accent-light);
    color: var(--accent-primary);
    padding: 0 2px;
    border-radius: 2px;
}

/* Print-specific */
@media print {
    .api-hero {
        background: #f0f0f0 !important;
        color: #000 !important;
        border: 1px solid #ddd;
    }
    
    .api-hero-title,
    .api-hero-subtitle {
        color: #000 !important;
        -webkit-text-fill-color: #000 !important;
    }
}