.almas-author-box-wrapper {
    width: 100%;
    margin: 0;
    position: relative;
    z-index: 1;
    contain: paint layout;
    transform: translateZ(0);
}

.almas-author-box-glass {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border-radius: var(--almas-radius-element, 12px);
    border: 1px solid var(--almas-glass-border);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    contain: paint layout;
    transform: translateZ(0);
}

@media (hover: hover){
.almas-author-box-glass:hover {
    --almas-glass-shadow: 0 10px 28px rgba(31, 38, 135, 0.14);
}
}

.almas-author-avatar-col {
    flex-shrink: 0;
}

.almas-author-avatar-col img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 50%;
    display: block;
    border: none;
    padding: 0;
    margin: 0;
}

.almas-author-info-col {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
}

.almas-author-header {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.almas-author-name {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    color: #222;
    cursor: default;
}

body.dark-mode .almas-author-name {
    color: #f3f4f6;
}

.almas-author-badge {
    font-size: 10px;
    background: rgba(0, 115, 230, 0.1);
    color: #0073e6;
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid rgba(0, 115, 230, 0.2);
    font-weight: 600;
    white-space: nowrap;
}

body.dark-mode .almas-author-badge {
    background: rgba(96, 165, 250, 0.1);
    color: #60a5fa;
    border-color: rgba(96, 165, 250, 0.2);
}

.almas-author-bio {
    font-size: 12px;
    color: #444;
    line-height: 1.5;
    margin: 0;
    text-align: justify;
}

body.dark-mode .almas-author-bio {
    color: #d1d5db;
}

@media (max-width: 600px) {
    .almas-author-box-glass {
        padding: 12px;
        gap: 12px;
    }

    .almas-author-avatar-col img {
        width: 50px;
        height: 50px;
    }

    .almas-author-name {
        font-size: 14px;
    }
    
    .almas-author-bio {
        font-size: 12px;
    }
}

@media (hover: hover){
body.dark-mode .almas-author-box-glass:hover {
    --almas-glass-shadow: 0 10px 28px rgba(0, 0, 0, 0.32);
}
}
