/**
 * BW Schema Author Box Styles (v2.0 - Simplified)
 * Clean, minimal author box display
 */

/* Author Box Wrapper */
.bw-author-box-wrapper {
    margin: 30px 0;
    padding: 0;
    clear: both;
}

/* Single Author Box - Compact horizontal layout */
.bw-author-box {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    margin-bottom: 10px;
}

.bw-author-box:last-child {
    margin-bottom: 0;
}

/* Author Image - Smaller */
.bw-author-image {
    flex-shrink: 0;
    margin-right: 12px;
}

.bw-author-image img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

/* Avatar Placeholder */
.bw-author-avatar-placeholder {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #6c757d;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 600;
}

/* Author Info */
.bw-author-info {
    flex: 1;
    min-width: 0;
}

/* Author Name */
.bw-author-name {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    color: #212529;
}

.bw-author-name a {
    color: inherit;
    text-decoration: none;
}

.bw-author-name a:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* Author Title - Inline after name */
.bw-author-title {
    font-size: 13px;
    color: #6c757d;
    font-weight: normal;
    margin-left: 8px;
}

.bw-author-title::before {
    content: "•";
    margin-right: 8px;
    color: #adb5bd;
}

/* Multiple Authors - Stack vertically */
.bw-author-box-wrapper.has-multiple-authors .bw-author-box {
    margin-bottom: 8px;
}

/* Responsive Design */
@media (max-width: 480px) {
    .bw-author-box {
        padding: 10px 12px;
    }

    .bw-author-image img,
    .bw-author-avatar-placeholder {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .bw-author-name {
        font-size: 14px;
    }

    .bw-author-title {
        display: block;
        margin-left: 0;
        margin-top: 2px;
    }

    .bw-author-title::before {
        display: none;
    }
}

/* Theme Compatibility */
.kadence-content-wrap .bw-author-box-wrapper,
.generate-content-area .bw-author-box-wrapper,
.ast-container .bw-author-box-wrapper {
    margin-top: 30px;
}

/* Shortcode Specific */
.bw-author-box-shortcode {
    margin: 20px 0;
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .bw-author-box {
        background: #1a1a1a;
        border-color: #333;
    }

    .bw-author-name {
        color: #f8f9fa;
    }

    .bw-author-title {
        color: #adb5bd;
    }

    .bw-author-avatar-placeholder {
        background: #495057;
    }
}
