/* Author Profile Enhanced Styles */

.author-header-enhanced {
    background: linear-gradient(135deg, #0e1c33 0%, #163156 56%, #1c4f66 100%);
    padding: 60px 0 100px 0;
    color: white;
    position: relative;
    max-width: 1400px;
    margin: 30px auto 0;
    border-radius: 32px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.25);
    overflow: visible;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.author-header-enhanced::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 40%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(56, 189, 248, 0.18) 0%, transparent 70%);
    border-radius: 32px;
    pointer-events: none;
}

.author-header-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('/images/pattern.png');
    opacity: 0.05;
    pointer-events: none;
}

.author-header-content {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 50px;
    /* Increased margin to push stats cards further down */
    position: relative;
    z-index: 1;
}

.author-avatar-large {
    position: relative;
    flex-shrink: 0;
}

.author-avatar-large img,
.avatar-placeholder-large {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.avatar-placeholder-large {
    background: #334155;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 80px;
    color: #94a3b8;
}

.verified-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: #0ea5e9;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid #1e293b;
    font-size: 18px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.author-header-info {
    flex-grow: 1;
}

.author-name-large {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.verified-inline {
    color: #0ea5e9;
    font-size: 24px;
}

.author-title-large {
    font-size: 1.5rem;
    color: #94a3b8;
    margin-bottom: 15px;
}

.author-tagline {
    font-style: italic;
    color: #cbd5e1;
    margin-bottom: 20px;
    max-width: 600px;
    font-size: 1.1rem;
}

.author-meta-info {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 25px;
}

.meta-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 8px;
}

.meta-item i {
    color: #0ea5e9;
}

.author-social-enhanced {
    display: flex;
    gap: 15px;
}

.author-value-prop {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    max-width: 720px;
    margin: 4px 0 18px;
    padding: 10px 14px;
    border: 1px solid rgba(125, 211, 252, 0.22);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.22);
    color: #dbeafe;
    font-size: 0.96rem;
}

.author-value-prop i {
    color: #7dd3fc;
}

.author-skill-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: -8px 0 24px;
}

.skill-chip {
    display: inline-flex;
    align-items: center;
    padding: 8px 13px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #e0f2fe;
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
}

.skill-chip:hover {
    background: rgba(14, 165, 233, 0.24);
    color: #fff;
    transform: translateY(-2px);
    text-decoration: none;
}

.author-action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

.author-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 42px;
    padding: 10px 16px;
    border-radius: 999px;
    font-weight: 800;
    text-decoration: none;
    transition: all 0.2s ease;
}

.author-action.primary {
    background: #7dd3fc;
    color: #082f49;
    box-shadow: 0 12px 25px rgba(14, 165, 233, 0.25);
}

.author-action.secondary {
    color: #dbeafe;
    border: 1px solid rgba(219, 234, 254, 0.25);
    background: rgba(255, 255, 255, 0.06);
}

.author-action:hover {
    transform: translateY(-2px);
    text-decoration: none;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: white;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.05);
}

.social-link:hover {
    transform: translateY(-5px);
    background: #0ea5e9;
    box-shadow: 0 5px 15px rgba(14, 165, 233, 0.4);
}

.author-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 20px;
    margin-bottom: -40px;
    /* Adjusted overlap to match the new breathing room */
    position: relative;
    z-index: 10;
}

.stat-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 30px 25px;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    gap: 20px;
    color: #1e293b;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.8);
    min-height: 120px;
    position: relative;
    z-index: 5;
}

.stat-card::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20%;
    right: 20%;
    height: 4px;
    background: #00bcd4;
    border-radius: 4px 4px 0 0;
    opacity: 0.7;
}

.stat-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-icon {
    width: 50px;
    height: 50px;
    background: #f1f5f9;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #0ea5e9;
}

.stat-number {
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1.2;
    color: #0f172a;
}

.stat-label {
    font-size: 0.95rem;
    color: #475569;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

/* Main Content Layout */
.author-profile-content {
    padding: 80px 0 60px 0;
    background: var(--bg-page);
}

.profile-layout {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 40px;
}

.sidebar-card {
    background: var(--bg-surface);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.sidebar-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #1e293b;
}

.sidebar-card h3 i {
    color: #0ea5e9;
}

.author-bio-text {
    line-height: 1.6;
    color: #475569;
}

.author-why-card {
    border: 1px solid rgba(14, 165, 233, 0.16);
    background:
        radial-gradient(circle at top right, rgba(14, 165, 233, 0.1), transparent 34%),
        var(--bg-surface);
}

.author-value-list {
    display: grid;
    gap: 12px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.author-value-list li {
    display: flex;
    gap: 10px;
    color: #475569;
    line-height: 1.45;
}

.author-value-list i {
    color: #10b981;
    margin-top: 3px;
}

.author-spotlight-card {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.9fr);
    gap: 28px;
    align-items: stretch;
    margin-bottom: 24px;
    padding: 28px;
    border-radius: 28px;
    background:
        linear-gradient(135deg, rgba(14, 165, 233, 0.12), rgba(16, 185, 129, 0.08)),
        var(--bg-surface);
    border: 1px solid rgba(14, 165, 233, 0.18);
    box-shadow: 0 22px 45px rgba(15, 23, 42, 0.08);
    overflow: hidden;
}

.spotlight-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    color: #0284c7;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.78rem;
}

.spotlight-copy h2 {
    margin: 0 0 12px;
    color: #0f172a;
    font-size: clamp(1.55rem, 3vw, 2.35rem);
    line-height: 1.08;
    font-weight: 900;
}

.spotlight-copy p {
    color: #52637a;
    line-height: 1.65;
    margin-bottom: 18px;
}

.spotlight-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
    color: #64748b;
    font-size: 0.88rem;
    font-weight: 700;
}

.spotlight-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.spotlight-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #0369a1;
    font-weight: 900;
    text-decoration: none;
}

.spotlight-image {
    display: block;
    min-height: 240px;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.16);
}

.spotlight-image img {
    width: 100%;
    height: 100%;
    min-height: 240px;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.spotlight-image:hover img {
    transform: scale(1.04);
}

.author-brief-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 28px;
}

.author-brief-strip > div {
    padding: 18px;
    border-radius: 18px;
    background: var(--bg-surface);
    border: 1px solid rgba(148, 163, 184, 0.18);
}

.author-brief-strip strong,
.author-brief-strip span {
    display: block;
}

.author-brief-strip strong {
    color: #0f172a;
    margin-bottom: 5px;
    font-size: 0.88rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.author-brief-strip span {
    color: #64748b;
    line-height: 1.45;
}

.author-workbench {
    display: grid;
    grid-template-columns: 1.1fr 1.1fr 0.8fr;
    gap: 14px;
    margin-bottom: 28px;
}

.workbench-card {
    min-height: 132px;
    padding: 18px;
    border-radius: 20px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(248, 250, 252, 0.92)),
        var(--bg-surface);
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.05);
}

.workbench-label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 10px;
    color: #0284c7;
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.workbench-card a,
.workbench-card strong {
    display: block;
    color: #0f172a;
    font-size: 1.05rem;
    line-height: 1.35;
    font-weight: 900;
    text-decoration: none;
}

.workbench-card a:hover {
    color: #0284c7;
}

.workbench-card strong {
    font-size: 2.4rem;
    line-height: 1;
}

.workbench-card small,
.workbench-card p {
    display: block;
    margin-top: 8px;
    color: #64748b;
    line-height: 1.5;
}

/* Achievements */
.achievement-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f1f5f9;
}

.achievement-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.achievement-item i {
    font-size: 24px;
    color: #eab308;
    flex-shrink: 0;
    margin-top: 5px;
}

.achievement-item strong {
    display: block;
    font-size: 1rem;
    color: #1e293b;
}

.achievement-item p {
    font-size: 0.85rem;
    color: #64748b;
    margin: 3px 0 0 0;
}

/* Category Distribution */
.category-bar {
    margin-bottom: 15px;
}

.category-bar-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: #475569;
    margin-bottom: 5px;
    font-weight: 500;
}

.category-bar-fill-bg {
    height: 8px;
    background: #f1f5f9;
    border-radius: 10px;
    overflow: hidden;
}

.category-bar-fill {
    height: 100%;
    background: #0ea5e9;
    border-radius: 10px;
    transition: width 1s ease-out;
}

/* Activity */
.activity-month {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
    padding-left: 15px;
    border-left: 2px solid #e2e8f0;
    position: relative;
}

.activity-month::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #0ea5e9;
}

.activity-month-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: #1e293b;
}

.activity-month-count {
    font-size: 0.85rem;
    color: #64748b;
}

.activity-month-views {
    font-size: 0.8rem;
    color: #94a3b8;
}

/* Tabs */
.profile-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 1px;
}

.tab {
    padding: 12px 25px;
    font-weight: 600;
    color: #64748b;
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tab:hover {
    color: #0ea5e9;
}

.tab.active {
    color: #0ea5e9;
    border-bottom-color: #0ea5e9;
}

/* Post Cards */
.posts-grid-enhanced {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.post-card-enhanced {
    background: var(--bg-surface);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.post-card-enhanced:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.post-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.post-card-image {
    height: 200px;
    overflow: hidden;
}

.post-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.post-card-enhanced:hover .post-card-image img {
    transform: scale(1.1);
}

.post-card-body {
    padding: 25px;
}

.post-card-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.post-card-category,
.post-type-badge {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
}

.post-card-category {
    color: #0ea5e9;
    background: rgba(14, 165, 233, 0.09);
    padding: 5px 9px;
}

.post-type-badge {
    color: #0f172a;
    background: #e2e8f0;
    padding: 5px 10px;
}

.post-type-badge.review {
    background: rgba(245, 158, 11, 0.16);
    color: #92400e;
}

.post-type-badge.news {
    background: rgba(14, 165, 233, 0.12);
    color: #075985;
}

.post-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 12px;
    color: #1e293b;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-card-excerpt {
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-card-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #94a3b8;
    border-top: 1px solid #f1f5f9;
    padding-top: 15px;
}

.post-card-footer span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.post-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 14px;
}

.post-card-tags span {
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.12);
    color: #64748b;
    font-size: 0.76rem;
    font-weight: 800;
}

.no-posts-message {
    grid-column: 1 / -1;
    padding: 44px 28px;
    border-radius: 24px;
    text-align: center;
    background:
        radial-gradient(circle at center top, rgba(14, 165, 233, 0.1), transparent 42%),
        var(--bg-surface);
    border: 1px dashed rgba(14, 165, 233, 0.28);
    color: #64748b;
}

.no-posts-message i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    margin-bottom: 14px;
    border-radius: 18px;
    background: rgba(14, 165, 233, 0.1);
    color: #0284c7;
    font-size: 24px;
}

.no-posts-message h3 {
    color: #0f172a;
    font-weight: 900;
    margin-bottom: 8px;
}

.no-posts-message a {
    display: inline-flex;
    margin-top: 8px;
    color: #0369a1;
    font-weight: 900;
    text-decoration: none;
}

/* Similar Authors */
.similar-authors-section {
    margin-top: 80px;
}

.similar-authors-section h2 {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    gap: 15px;
    color: #1e293b;
}

.similar-authors-section h2 i {
    color: #0ea5e9;
}

.similar-authors-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.similar-author-card {
    background: var(--bg-surface);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.similar-author-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

.similar-author-avatar {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: #94a3b8;
}

.similar-author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.similar-author-card h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: #1e293b;
}

.similar-author-title {
    font-size: 0.9rem;
    color: #64748b;
    margin-bottom: 15px;
}

.similar-author-stats {
    display: flex;
    justify-content: center;
    gap: 15px;
    font-size: 0.8rem;
    color: #94a3b8;
    font-weight: 500;
}

/* Authors directory */
.authors-page-refresh {
    background:
        radial-gradient(circle at top left, rgba(14, 165, 233, 0.08), transparent 32%),
        var(--bg-page);
}

.authors-hero-panel {
    position: relative;
    overflow: hidden;
    margin-bottom: 42px;
    padding: clamp(32px, 6vw, 64px);
    border-radius: 34px;
    color: #fff;
    background:
        radial-gradient(circle at 82% 18%, rgba(125, 211, 252, 0.28), transparent 34%),
        linear-gradient(135deg, #0b1730 0%, #113257 52%, #0f5d67 100%);
    box-shadow: 0 28px 60px rgba(15, 23, 42, 0.22);
}

.authors-kicker,
.section-eyebrow {
    display: inline-flex;
    margin-bottom: 10px;
    color: #7dd3fc;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.78rem;
}

.authors-hero-panel h1 {
    max-width: 780px;
    margin: 0 0 14px;
    font-size: clamp(2.2rem, 5vw, 4.6rem);
    line-height: 0.98;
    font-weight: 950;
}

.authors-hero-panel p {
    max-width: 700px;
    margin: 0;
    color: #cbd5e1;
    font-size: 1.08rem;
    line-height: 1.7;
}

.authors-hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.authors-hero-stats span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 15px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.09);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #dbeafe;
}

.authors-hero-stats strong {
    color: #fff;
    font-size: 1.05rem;
}

.section-heading-row {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 20px;
}

.section-heading-row h2 {
    margin: 0;
    color: #0f172a;
    font-size: clamp(1.55rem, 3vw, 2.35rem);
    font-weight: 900;
}

.section-heading-row a {
    color: #0369a1;
    font-weight: 800;
    text-decoration: none;
}

.featured-author-strip,
.author-discovery-note {
    margin-bottom: 36px;
}

.featured-author-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.featured-author-card {
    display: grid;
    grid-template-columns: 78px 1fr;
    gap: 16px;
    align-items: center;
    padding: 20px;
    border-radius: 24px;
    background: var(--bg-surface);
    border: 1px solid rgba(14, 165, 233, 0.16);
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.07);
    color: inherit;
    text-decoration: none;
    transition: all 0.2s ease;
}

.featured-author-card:hover {
    transform: translateY(-4px);
    text-decoration: none;
}

.featured-author-avatar {
    width: 78px;
    height: 78px;
    border-radius: 22px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e0f2fe;
    color: #0284c7;
    font-size: 28px;
}

.featured-author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-author-card h3 {
    margin: 0 0 5px;
    color: #0f172a;
    font-weight: 900;
}

.featured-author-card p {
    margin: 0 0 8px;
    color: #64748b;
    line-height: 1.45;
}

.featured-author-card span {
    display: inline-flex;
    gap: 7px;
    color: #0369a1;
    font-size: 0.82rem;
    font-weight: 800;
}

.author-discovery-note {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 20px 24px;
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.1), rgba(16, 185, 129, 0.08));
    border: 1px solid rgba(14, 165, 233, 0.16);
}

.author-discovery-note > div {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #0f172a;
}

.author-discovery-note i {
    color: #0284c7;
}

.author-discovery-note p {
    margin: 0;
    color: #52637a;
}

.all-authors-heading {
    margin-top: 4px;
}

.authors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.author-card-simple {
    background: var(--bg-surface);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.06);
    transition: all 0.3s ease;
    border: 1px solid rgba(148, 163, 184, 0.16);
}

.author-card-simple:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 42px rgba(14, 165, 233, 0.12);
}

.author-card-inner {
    padding: 2.5rem 1.5rem;
    text-align: center;
}

.author-card-avatar {
    width: 104px;
    height: 104px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid rgba(14, 165, 233, 0.12);
}

.author-card-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e0f2fe;
    color: #0284c7;
}

.author-card-name {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
    color: #1a1a2e;
}

.author-card-title {
    color: #0284c7;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.author-card-bio {
    color: #6b7280;
    font-size: 0.92rem;
    line-height: 1.55;
    margin-bottom: 1.2rem;
    min-height: 4.5em;
}

.author-mini-specialties {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 7px;
    margin-bottom: 1.1rem;
}

.author-mini-specialties span {
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(14, 165, 233, 0.09);
    color: #0369a1;
    font-size: 0.76rem;
    font-weight: 800;
}

.author-card-stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    border-top: 1px solid rgba(148, 163, 184, 0.18);
    padding-top: 1rem;
    color: #64748b;
    font-size: 0.85rem;
    font-weight: 700;
}

/* Responsive */
@media (max-width: 1200px) {
    .profile-layout {
        grid-template-columns: 1fr;
    }

    .author-header-enhanced {
        margin: 10px;
        border-radius: 15px;
        padding: 40px 0 60px 0;
    }

    .author-stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .featured-author-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 992px) {
    .similar-authors-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .author-header-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .author-name-large {
        justify-content: center;
        font-size: 2.2rem;
    }

    .author-meta-info {
        justify-content: center;
    }

    .author-social-enhanced {
        justify-content: center;
    }

    .author-value-prop {
        border-radius: 18px;
        text-align: left;
    }

    .author-skill-cloud,
    .author-action-row {
        justify-content: center;
    }

    .author-spotlight-card {
        grid-template-columns: 1fr;
        padding: 20px;
    }

    .author-brief-strip {
        grid-template-columns: 1fr;
    }

    .author-workbench {
        grid-template-columns: 1fr;
    }

    .posts-grid-enhanced {
        grid-template-columns: 1fr;
    }

    .author-stats-grid {
        margin-bottom: 20px;
    }

    .author-profile-content {
        padding-top: 40px;
    }
}

@media (max-width: 480px) {
    .author-stats-grid {
        grid-template-columns: 1fr;
    }

    .similar-authors-grid {
        grid-template-columns: 1fr;
    }

    .authors-grid {
        grid-template-columns: 1fr;
    }

    .authors-hero-panel {
        border-radius: 22px;
    }

    .authors-hero-stats {
        align-items: stretch;
        flex-direction: column;
    }

    .section-heading-row,
    .author-discovery-note {
        align-items: flex-start;
        flex-direction: column;
    }

    .featured-author-card {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .featured-author-avatar {
        margin: 0 auto;
    }
}

/* Dark Mode Support (if needed) */
[data-theme='dark'] .sidebar-card,
[data-theme='dark'] .stat-card,
[data-theme='dark'] .post-card-enhanced,
[data-theme='dark'] .similar-author-card {
    background: #1e293b;
    color: #f1f5f9;
}

[data-theme='dark'] .author-profile-content {
    background: #0f172a;
}

[data-theme='dark'] .sidebar-card h3,
[data-theme='dark'] .stat-card {
    color: #f1f5f9;
}

[data-theme='dark'] .author-bio-text,
[data-theme='dark'] .post-card-excerpt {
    color: #94a3b8;
}

[data-theme='dark'] .author-why-card,
[data-theme='dark'] .author-spotlight-card,
[data-theme='dark'] .author-brief-strip > div,
[data-theme='dark'] .workbench-card,
[data-theme='dark'] .featured-author-card,
[data-theme='dark'] .author-card-simple {
    background:
        radial-gradient(circle at top right, rgba(56, 189, 248, 0.08), transparent 38%),
        #1e293b;
    border-color: rgba(96, 165, 250, 0.16);
}

[data-theme='dark'] .author-value-list li,
[data-theme='dark'] .spotlight-copy p,
[data-theme='dark'] .spotlight-meta,
[data-theme='dark'] .author-brief-strip span,
[data-theme='dark'] .workbench-card small,
[data-theme='dark'] .workbench-card p,
[data-theme='dark'] .featured-author-card p,
[data-theme='dark'] .author-discovery-note p,
[data-theme='dark'] .author-card-bio,
[data-theme='dark'] .author-card-stats {
    color: #a9b8cc;
}

[data-theme='dark'] .spotlight-copy h2,
[data-theme='dark'] .author-brief-strip strong,
[data-theme='dark'] .workbench-card a,
[data-theme='dark'] .workbench-card strong,
[data-theme='dark'] .no-posts-message h3,
[data-theme='dark'] .section-heading-row h2,
[data-theme='dark'] .featured-author-card h3,
[data-theme='dark'] .author-discovery-note > div,
[data-theme='dark'] .author-card-name {
    color: #e6eef8;
}

[data-theme='dark'] .spotlight-kicker,
[data-theme='dark'] .spotlight-link,
[data-theme='dark'] .workbench-label,
[data-theme='dark'] .section-heading-row a,
[data-theme='dark'] .featured-author-card span,
[data-theme='dark'] .author-card-title {
    color: #7dd3fc;
}

[data-theme='dark'] .author-discovery-note {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.12), rgba(16, 185, 129, 0.07));
    border-color: rgba(96, 165, 250, 0.16);
}

[data-theme='dark'] .author-mini-specialties span {
    background: rgba(56, 189, 248, 0.14);
    color: #bae6fd;
}

[data-theme='dark'] .post-card-category,
[data-theme='dark'] .post-type-badge.news {
    background: rgba(56, 189, 248, 0.14);
    color: #bae6fd;
}

[data-theme='dark'] .post-type-badge.review {
    background: rgba(245, 158, 11, 0.16);
    color: #fcd34d;
}

[data-theme='dark'] .post-card-tags span {
    background: rgba(148, 163, 184, 0.16);
    color: #cbd5e1;
}

[data-theme='dark'] .no-posts-message {
    background:
        radial-gradient(circle at center top, rgba(56, 189, 248, 0.08), transparent 42%),
        #1e293b;
    border-color: rgba(96, 165, 250, 0.2);
    color: #a9b8cc;
}

/* Theme balancing: improved readability and calmer contrast */
[data-theme='dark'] .author-header-enhanced {
    background: linear-gradient(135deg, #081225 0%, #0e1f3a 56%, #113148 100%);
    border-color: rgba(96, 165, 250, 0.18);
    box-shadow: 0 26px 55px rgba(0, 0, 0, 0.42);
}

[data-theme='dark'] .author-header-enhanced::after {
    background: radial-gradient(circle at top right, rgba(56, 189, 248, 0.11) 0%, transparent 72%);
}

[data-theme='dark'] .author-title-large {
    color: #a9b8cc;
}

[data-theme='dark'] .author-tagline {
    color: #c5d3e5;
}

[data-theme='dark'] .meta-item {
    background: rgba(148, 163, 184, 0.12);
    color: #bfcee2;
    border: 1px solid rgba(148, 163, 184, 0.14);
}

[data-theme='dark'] .social-link {
    background: rgba(96, 165, 250, 0.1);
    color: #dbeafe;
}

[data-theme='dark'] .social-link:hover {
    background: #2c6ea3;
    box-shadow: 0 10px 22px rgba(30, 64, 175, 0.32);
    transform: translateY(-2px);
}

[data-theme='dark'] .stat-card {
    background: linear-gradient(180deg, rgba(17, 35, 58, 0.98) 0%, rgba(14, 29, 48, 0.98) 100%);
    border-color: rgba(96, 165, 250, 0.14);
}

[data-theme='dark'] .stat-icon {
    background: rgba(56, 189, 248, 0.14);
    color: #7dd3fc;
}

[data-theme='dark'] .stat-number,
[data-theme='dark'] .sidebar-card h3,
[data-theme='dark'] .post-card-title,
[data-theme='dark'] .similar-author-card h4,
[data-theme='dark'] .activity-month-name {
    color: #e6eef8;
}

[data-theme='dark'] .stat-label,
[data-theme='dark'] .achievement-item p,
[data-theme='dark'] .activity-month-count,
[data-theme='dark'] .category-bar-label,
[data-theme='dark'] .post-card-footer,
[data-theme='dark'] .similar-author-title,
[data-theme='dark'] .similar-author-stats {
    color: #9eb0c6;
}

[data-theme='dark'] .profile-tabs {
    border-bottom-color: rgba(148, 163, 184, 0.3);
}

[data-theme='dark'] .tab {
    color: #9db0c8;
}

[data-theme='dark'] .tab:hover,
[data-theme='dark'] .tab.active {
    color: #7dd3fc;
}

[data-theme='dark'] .tab.active {
    border-bottom-color: #60a5fa;
}

[data-theme='dark'] .post-card-footer {
    border-top-color: rgba(148, 163, 184, 0.2);
}

[data-theme='dark'] .achievement-item {
    border-bottom-color: rgba(148, 163, 184, 0.18);
}

[data-theme='dark'] .category-bar-fill-bg {
    background: rgba(148, 163, 184, 0.2);
}

[data-theme='dark'] .activity-month {
    border-left-color: rgba(148, 163, 184, 0.3);
}

[data-theme='dark'] .similar-author-avatar {
    background: rgba(148, 163, 184, 0.16);
}

[data-theme='dark'] .stat-icon {
    background: #334155;
}

[data-theme='dark'] .category-bar-fill-bg {
    background: #334155;
}
