/* Expert Block Styles — based on seo-author-block design */

.expert-block {
    background-color: var(--bg-surface, #151A23);
    border: 1px solid var(--border-color, #2A3140);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
    margin-top: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    width: 100%;
    box-sizing: border-box;
}

/* Avatar wrapper with animated dashed border */
.expert-avatar-wrap {
    flex-shrink: 0;
    position: relative;
}

.expert-avatar-wrap::before {
    content: '';
    position: absolute;
    top: -4px; left: -4px; right: -4px; bottom: -4px;
    border: 2px dashed var(--accent-color, #00E574);
    border-radius: 50%;
    animation: expertRotateDash 10s linear infinite;
}

@keyframes expertRotateDash {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Placeholder when no image */
.expert-avatar-placeholder {
    width: 80px;
    height: 80px;
    background: var(--bg-main, #0D1117);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted, #8A93A6);
    position: relative;
    z-index: 2;
}

/* Real image */
.expert-avatar-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    position: relative;
    z-index: 2;
    display: block;
}

/* Info section */
.expert-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.expert-header {
    margin-bottom: 4px;
}

.expert-name {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-main, #FFFFFF);
    margin: 0 0 4px 0;
    line-height: 1.2;
}

.expert-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--accent-color, #00E574);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
}

.expert-bio {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-muted, #8A93A6);
}

.expert-bio p {
    margin: 0 0 8px 0;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-muted, #8A93A6);
}

.expert-bio p:last-child {
    margin-bottom: 0;
}

/* Social links */
.expert-socials {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.expert-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--bg-main, #0D1117);
    border: 1px solid var(--border-color, #2A3140);
    border-radius: 50%;
    color: var(--text-muted, #8A93A6) !important;
    text-decoration: none;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.expert-social-link:hover {
    background: var(--accent-color, #00E574);
    color: #000;
    border-color: var(--accent-color, #00E574);
    transform: translateY(-3px);
}

.expert-social-link svg {
    width: 16px;
    height: 16px;
}

/* Desktop: horizontal layout */
@media (min-width: 768px) {
    .expert-block {
        flex-direction: row;
        text-align: left;
        align-items: flex-start;
        padding: 30px;
    }

    .expert-avatar-placeholder,
    .expert-avatar-img {
        width: 100px;
        height: 100px;
    }

    .expert-socials {
        justify-content: flex-start;
    }
}
