/* Author Page Styles */

.author-page {
    background: var(--surface, #ffffff);
    color: var(--surface-contrast, #0b1220);
}

html.dark-mode .author-page {
    background: #0b1116;
    color: #eef1ff;
}

.author-header-card {
    position: relative;
    overflow: hidden;
    background: var(--surface, #ffffff) !important;
    color: var(--surface-contrast, #0b1220) !important;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

html.dark-mode .author-header-card {
    background: #151a24 !important;
    color: #eef1ff !important;
    border-color: rgba(255, 255, 255, 0.08);
}

.author-header-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(111, 66, 193, 0.08) 0%, 
        rgba(29, 185, 84, 0.08) 100%);
    pointer-events: none;
}

html.dark-mode .author-header-card::before {
    background: linear-gradient(135deg, 
        rgba(111, 66, 193, 0.12) 0%, 
        rgba(29, 185, 84, 0.12) 100%);
}

.author-info {
    position: relative;
    z-index: 1;
}

.author-bio {
    max-width: 800px;
    color: var(--surface-contrast, #0b1220);
}

html.dark-mode .author-bio {
    color: rgba(234, 240, 255, 0.85);
}

.author-stats {
    display: flex;
    align-items: center;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: rgba(111, 66, 193, 0.1);
    border-radius: 0.5rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

html.dark-mode .stat-item {
    background: rgba(111, 66, 193, 0.15);
    border-color: rgba(255, 255, 255, 0.1);
}

.stat-item i {
    font-size: 1.25rem;
    color: var(--accent-start, #6f42c1);
}

.stat-value {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--surface-contrast, #0b1220);
}

html.dark-mode .stat-value {
    color: #ffffff;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--muted, #6b7280);
}

html.dark-mode .stat-label {
    color: rgba(214, 222, 255, 0.72);
}

.series-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    background: var(--surface, #ffffff);
    color: var(--surface-contrast, #0b1220);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

html.dark-mode .series-card {
    background: #151a24;
    color: #eef1ff;
    border-color: rgba(255, 255, 255, 0.08);
}

.series-card:hover,
.series-card:focus {
    transform: translateY(-4px);
}

html.light-mode .series-card:hover,
html.light-mode .series-card:focus,
html:not(.dark-mode) .series-card:hover,
html:not(.dark-mode) .series-card:focus {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12) !important;
}

html.dark-mode .series-card:hover,
html.dark-mode .series-card:focus {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5) !important;
}

.series-card .card-img-top {
    aspect-ratio: 1 / 1;
    object-fit: cover;
    background: rgba(0, 0, 0, 0.05);
}

html.dark-mode .series-card .card-img-top {
    background: rgba(255, 255, 255, 0.03);
}

.series-card .card-body {
    background: transparent;
    color: inherit;
}

.series-card .card-title {
    color: var(--surface-contrast, #0b1220);
    font-weight: 600;
}

html.dark-mode .series-card .card-title {
    color: #ffffff;
}

.series-card .card-text {
    color: var(--muted, #6b7280);
}

html.dark-mode .series-card .card-text {
    color: rgba(214, 222, 255, 0.72);
}

.hover-lift {
    transition: transform 0.2s ease;
}

/* Breadcrumb styling */
.breadcrumb {
    background: transparent;
    padding: 0;
}

.breadcrumb-item a {
    color: var(--surface-contrast, #0b1220);
}

html.dark-mode .breadcrumb-item a {
    color: rgba(234, 240, 255, 0.85);
}

.breadcrumb-item.active {
    color: var(--muted, #6b7280);
}

html.dark-mode .breadcrumb-item.active {
    color: rgba(214, 222, 255, 0.72);
}

.breadcrumb-item + .breadcrumb-item::before {
    color: var(--muted, #6b7280);
}

html.dark-mode .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(214, 222, 255, 0.5);
}

/* Section headers */
.section-header h2,
.section-header h3 {
    color: var(--surface-contrast, #0b1220);
}

html.dark-mode .section-header h2,
html.dark-mode .section-header h3 {
    color: #ffffff;
}

.section-header p {
    color: var(--muted, #6b7280);
}

html.dark-mode .section-header p {
    color: rgba(214, 222, 255, 0.72);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .author-stats {
        flex-direction: column;
        align-items: stretch;
    }
    
    .stat-item {
        justify-content: center;
    }
}


/* Responsive adjustments */
@media (max-width: 768px) {
    .author-stats {
        flex-direction: column;
        align-items: stretch;
    }
    
    .stat-item {
        justify-content: center;
    }
}


/* Responsive adjustments */
@media (max-width: 768px) {
    .author-stats {
        flex-direction: column;
        align-items: stretch;
    }
    
    .stat-item {
        justify-content: center;
    }
}
