/* ===== Authority Score Badge (next to author name) ===== */
.aoh-authority-wrap {
    display: inline-block;
    margin-left: 8px;
    vertical-align: middle;
}
.aoh-authority-badge {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 2px 10px 2px 2px;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.25s ease;
    user-select: none;
    line-height: 1;
}
.aoh-authority-badge:hover {
    border-color: #d0d0d0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}
.aoh-mini-circle {
    flex-shrink: 0;
}
.aoh-badge-text {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

/* ===== Score Details Panel (click to open) ===== */
.aoh-score-details {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    width: 320px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 16px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 99999;
    cursor: default;
}
.aoh-authority-badge.aoh-open .aoh-score-details {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}
/* Arrow */
.aoh-score-details::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 12px;
    height: 12px;
    background: #fff;
    box-shadow: -2px -2px 4px rgba(0, 0, 0, 0.04);
}
.aoh-score-details-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 14px;
}
/* Avatar */
.aoh-avatar-wrap {
    position: relative;
    width: 60px;
    height: 60px;
    flex-shrink: 0;
}
.aoh-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px #e8e8e8, 0 2px 6px rgba(0,0,0,0.08);
    display: block;
}
.aoh-avatar-score {
    position: absolute;
    bottom: -4px;
    right: -4px;
    min-width: 26px;
    height: 26px;
    padding: 0 4px;
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    border: 2px solid #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    animation: aoh-pop-in 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes aoh-pop-in {
    from { transform: scale(0); }
    to { transform: scale(1); }
}
.aoh-score-meta {
    flex: 1;
    min-width: 0;
}
.aoh-score-meta-title {
    font-size: 10px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    margin-bottom: 2px;
}
.aoh-score-meta-label {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 3px;
}
.aoh-score-meta-name {
    font-size: 12px;
    color: #555;
    text-decoration: none;
    display: inline-block;
    transition: color 0.2s ease;
}
.aoh-score-meta-name:hover {
    color: #000;
    text-decoration: underline;
}
.aoh-score-breakdown {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.aoh-score-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
}
.aoh-score-row-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    background: #f9fafb;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}
.aoh-score-row-label {
    flex: 1;
    color: #555;
}
.aoh-score-row-value {
    font-weight: 700;
    color: #222;
}

/* ===== Activity Heatmap ===== */
.aoh-heatmap-section {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #f0f0f0;
}
.aoh-heatmap-title {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #999;
    font-weight: 600;
    margin-bottom: 10px;
}
.aoh-heatmap-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 3px;
}
.aoh-heatmap-cell {
    aspect-ratio: 1;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: default;
    transition: transform 0.2s ease;
}
.aoh-heatmap-cell:hover {
    transform: scale(1.3);
    z-index: 2;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}
.aoh-heatmap-cell::after {
    content: attr(data-month) ': ' attr(data-count) ' posts';
    position: absolute;
    bottom: calc(100% + 4px);
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 10px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 3;
    pointer-events: none;
}
.aoh-heatmap-cell:hover::after {
    opacity: 1;
    visibility: visible;
}
.aoh-heatmap-label {
    font-size: 8px;
    font-weight: 700;
    color: rgba(0, 0, 0, 0.35);
    line-height: 1;
}
.aoh-heat-0 { background: #ebedf0; }
.aoh-heat-1 { background: #c6e48b; }
.aoh-heat-2 { background: #7bc96f; }
.aoh-heat-3 { background: #239a3b; }
.aoh-heat-4 { background: #196127; }
.aoh-heat-3 .aoh-heatmap-label,
.aoh-heat-4 .aoh-heatmap-label {
    color: rgba(255, 255, 255, 0.7);
}
.aoh-heatmap-footer {
    margin-top: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 10px;
}
.aoh-heatmap-total {
    font-weight: 700;
    color: #333;
}
.aoh-heatmap-legend {
    display: flex;
    align-items: center;
    gap: 1px;
    color: #888;
}
.aoh-heatmap-legend span {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 2px;
    margin: 0 1px;
}

/* ===== Latest Posts Section ===== */
.aoh-recent-posts {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #f0f0f0;
}
.aoh-recent-title {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #999;
    font-weight: 600;
    margin-bottom: 8px;
}
.aoh-recent-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 6px;
    transition: all 0.2s ease;
    text-decoration: none !important;
    color: inherit;
    margin: 0 -10px 2px;
}
.aoh-recent-item:hover {
    background: #f8f9fb;
}
.aoh-recent-item:hover .aoh-recent-arrow {
    color: #333;
    transform: translateX(2px);
}
.aoh-recent-info {
    flex: 1;
    min-width: 0;
}
.aoh-recent-post-title {
    font-size: 12px;
    font-weight: 600;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-bottom: 2px;
    line-height: 1.3;
}
.aoh-recent-date {
    font-size: 10px;
    color: #999;
}
.aoh-recent-arrow {
    color: #ccc;
    font-size: 16px;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

/* ===== Reading Journey Section ===== */
.aoh-journey-section {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #f0f0f0;
}
.aoh-journey-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #999;
    font-weight: 600;
    margin-bottom: 8px;
}
.aoh-journey-count {
    font-size: 9px;
    padding: 2px 8px;
    background: #FFF3E0;
    color: #E65100;
    border-radius: 8px;
    font-weight: 700;
}
.aoh-journey-empty {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: linear-gradient(135deg, #FFF8E1, #FFFDE7);
    border-radius: 8px;
    font-size: 11px;
    color: #5d4037;
    line-height: 1.4;
}
.aoh-journey-empty-icon {
    font-size: 16px;
    flex-shrink: 0;
}
.aoh-journey-summary {
    background: linear-gradient(135deg, #E8F5E9, #F1F8E9);
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 12px;
    color: #2E7D32;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 1.4;
}
.aoh-journey-summary strong {
    color: #1B5E20;
}
.aoh-journey-emoji {
    font-size: 16px;
    flex-shrink: 0;
}
.aoh-journey-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.aoh-journey-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 10px;
    border-radius: 6px;
    transition: background 0.2s ease;
    text-decoration: none !important;
    color: inherit;
    margin: 0 -10px;
}
.aoh-journey-item:hover {
    background: #f8f9fb;
}
.aoh-journey-check {
    width: 18px;
    height: 18px;
    background: #4CAF50;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    flex-shrink: 0;
}
.aoh-journey-info {
    flex: 1;
    min-width: 0;
}
.aoh-journey-post-title {
    font-size: 11px;
    font-weight: 600;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.3;
}
.aoh-journey-post-date {
    font-size: 9px;
    color: #999;
    margin-top: 1px;
}