/**
 * BW Schema Author Box Styles
 * Frontend styles for the author box display
 */

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

/* Single Author Box */
.bw-author-box {
    display: flex;
    align-items: flex-start;
    padding: 25px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.bw-author-box:hover {
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

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

.bw-author-image img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Avatar Placeholder */
.bw-author-avatar-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #6c757d;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: bold;
    text-transform: uppercase;
    border: 3px solid #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

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

/* Author Name */
.bw-author-name {
    margin: 0 0 10px 0;
    font-size: 20px;
    line-height: 1.3;
    color: #212529;
}

.bw-author-name a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

/* Author Title */
.bw-author-title {
    display: block;
    font-size: 14px;
    color: #6c757d;
    font-weight: normal;
    margin-top: 5px;
}

/* Author Bio */
.bw-author-bio {
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
    color: #495057;
}

/* Multiple Authors - Grid Layout */
.bw-author-box-wrapper.has-multiple-authors {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
}

.bw-author-box-wrapper.has-multiple-authors .bw-author-box {
    margin-bottom: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .bw-author-box {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    
    .bw-author-image {
        margin: 0 0 15px 0;
    }
    
    .bw-author-box-wrapper.has-multiple-authors {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .bw-author-image img,
    .bw-author-avatar-placeholder {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }
    
    .bw-author-name {
        font-size: 18px;
    }
    
    .bw-author-bio {
        font-size: 14px;
    }
}

/* Theme Compatibility */
/* Kadence Theme */
.kadence-content-wrap .bw-author-box-wrapper {
    margin-top: 50px;
}

/* GeneratePress Theme */
.generate-content-area .bw-author-box-wrapper {
    margin-top: 40px;
}

/* Astra Theme */
.ast-container .bw-author-box-wrapper {
    margin-top: 40px;
}

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

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .bw-author-box {
        background: #1a1a1a;
        border-color: #333;
    }
    
    .bw-author-box:hover {
        background: #222;
    }
    
    .bw-author-name {
        color: #f8f9fa;
    }
    
    .bw-author-bio {
        color: #adb5bd;
    }
    
    .bw-author-avatar-placeholder {
        background: #495057;
    }
}