/* BNR Author Manager Styles */

/* Author Box Styles */
.bnr-author-box {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    margin: 20px 0;
    border: 1px solid #e9ecef;
}

.bnr-author-box-compact {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
    margin: 15px 0;
    border: 1px solid #e9ecef;
}

.bnr-author-box-card {
    display: block;
    padding: 25px;
    background: #fff;
    border-radius: 12px;
    margin: 20px 0;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
}

.bnr-author-avatar {
    flex-shrink: 0;
}

.bnr-author-avatar img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.bnr-author-box-compact .bnr-author-avatar img {
    width: 60px;
    height: 60px;
}

.bnr-author-box-card .bnr-author-avatar img {
    width: 120px;
    height: 120px;
    margin: 0 auto 15px;
    display: block;
}

.bnr-author-info {
    flex: 1;
}

.bnr-author-box-card .bnr-author-info {
    text-align: center;
}

.bnr-author-name {
    margin: 0 0 8px 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #2c3e50;
}

.bnr-author-box-card .bnr-author-name {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

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

.bnr-author-name a:hover {
    color: #3498db;
}

.bnr-author-title {
    margin: 0 0 10px 0;
    font-size: 0.9rem;
    color: #7f8c8d;
    font-style: italic;
}

.bnr-author-bio {
    margin: 10px 0;
    line-height: 1.6;
    color: #555;
}

.bnr-author-box-card .bnr-author-bio {
    margin: 15px 0;
    font-size: 1rem;
}

.bnr-author-social {
    display: flex;
    gap: 12px;
    margin-top: 15px;
}

.bnr-author-box-card .bnr-author-social {
    justify-content: center;
    margin-top: 20px;
}

.bnr-author-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: #3498db;
    color: #fff;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 16px;
}

.bnr-author-social a:hover {
    background: #2980b9;
    transform: translateY(-2px);
}

.bnr-author-social a i {
    font-size: 16px;
}

/* Social Media Specific Colors */
.bnr-author-social a[href*="facebook"]:hover { background: #3b5998; }
.bnr-author-social a[href*="twitter"]:hover { background: #1da1f2; }
.bnr-author-social a[href*="instagram"]:hover { background: #e1306c; }
.bnr-author-social a[href*="linkedin"]:hover { background: #0077b5; }
.bnr-author-social a[href*="youtube"]:hover { background: #ff0000; }
.bnr-author-social a[href*="globe"]:hover { background: #27ae60; }

/* Author List Styles */
.bnr-author-list {
    display: grid;
    gap: 30px;
    margin: 30px 0;
}

.bnr-author-list-1-cols {
    grid-template-columns: 1fr;
}

.bnr-author-list-2-cols {
    grid-template-columns: repeat(2, 1fr);
}

.bnr-author-list-3-cols {
    grid-template-columns: repeat(3, 1fr);
}

.bnr-author-list-4-cols {
    grid-template-columns: repeat(4, 1fr);
}

.bnr-author-item {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bnr-author-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.bnr-author-item .bnr-author-avatar {
    margin-bottom: 15px;
}

.bnr-author-item .bnr-author-avatar img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.bnr-author-item .bnr-author-name {
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.bnr-author-item .bnr-author-title {
    margin-bottom: 12px;
    font-size: 0.85rem;
}

.bnr-author-item .bnr-author-bio {
    margin-bottom: 15px;
    font-size: 0.9rem;
    line-height: 1.5;
}

.bnr-author-item .bnr-author-social {
    justify-content: center;
    margin-top: 15px;
}

/* Author Page Styles */
.bnr-author-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    padding-top: 120px;
}

.bnr-author-header {
    margin-bottom: 40px;
    padding: 40px 20px;
    background: transparent;
    color: inherit;
    text-align: left;
}

.bnr-author-content {
    display: flex;
    align-items: center;
    gap: 30px;
    margin: 0;
    justify-content: flex-start;
}

.bnr-author-header .bnr-author-avatar {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bnr-author-header .bnr-author-avatar img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #e9ecef;
    display: block;
}

.bnr-author-header .bnr-author-info {
    flex: 1;
}

.bnr-author-header .bnr-author-name {
    font-size: 2rem;
    margin-bottom: 8px;
    color: inherit;
    font-weight: 700;
}

.bnr-author-header .bnr-author-title {
    font-size: 1rem;
    margin-bottom: 15px;
    color: inherit;
    font-weight: 500;
}

.bnr-author-header .bnr-author-bio {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 15px;
    color: inherit;
}

.bnr-author-header .bnr-author-social {
    margin-top: 15px;
}

.bnr-author-header .bnr-author-social a {
    background: transparent;
    color: inherit;
}

.bnr-author-header .bnr-author-social a:hover {
    background: transparent;
    color: inherit;
}

.bnr-author-posts {
    margin-top: 40px;
}

.bnr-author-posts h2 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: #2c3e50;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
}

.bnr-author-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.bnr-author-post {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bnr-author-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.bnr-author-post-thumbnail {
    height: 200px;
    overflow: hidden;
}

.bnr-author-post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.bnr-author-post:hover .bnr-author-post-thumbnail img {
    transform: scale(1.05);
}

.bnr-author-post-content {
    padding: 20px;
}

.bnr-author-post-title {
    margin: 0 0 10px 0;
    font-size: 1.2rem;
    line-height: 1.4;
}

.bnr-author-post-title a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.bnr-author-post-title a:hover {
    color: #3498db;
}

.bnr-author-post-excerpt {
    color: #7f8c8d;
    line-height: 1.6;
    margin-bottom: 15px;
}

.bnr-author-post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: #95a5a6;
}

.bnr-author-post-date {
    font-style: italic;
}

.bnr-author-post-category {
    background: #3498db;
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.75rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .bnr-author-box {
        flex-direction: column;
        text-align: center;
    }
    
    .bnr-author-box-compact {
        flex-direction: column;
        text-align: center;
    }
    
    .bnr-author-list-2-cols,
    .bnr-author-list-3-cols,
    .bnr-author-list-4-cols {
        grid-template-columns: 1fr;
    }
    
    .bnr-author-header .bnr-author-name {
        font-size: 2rem;
    }
    
    .bnr-author-header .bnr-author-avatar img {
        width: 120px;
        height: 120px;
    }
    
    .bnr-author-posts-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .bnr-author-box,
    .bnr-author-box-compact,
    .bnr-author-box-card {
        padding: 15px;
        margin: 15px 0;
    }
    
    .bnr-author-avatar img {
        width: 80px;
        height: 80px;
    }
    
    .bnr-author-box-card .bnr-author-avatar img {
        width: 100px;
        height: 100px;
    }
    
    .bnr-author-header {
        padding: 30px 15px;
    }
    
    .bnr-author-header .bnr-author-name {
        font-size: 1.8rem;
    }
    
    .bnr-author-header .bnr-author-avatar img {
        width: 75px;
        height: 75px;
    }
}

/* Admin Styles */
.bnr-avatar-upload {
    margin-bottom: 10px;
}

.bnr-avatar-preview {
    display: block;
    margin-bottom: 10px;
    border-radius: 50%;
    border: 2px solid #ddd;
}

.bnr-upload-avatar,
.bnr-remove-avatar {
    margin-right: 10px;
}

/* Loading States */
.bnr-author-loading {
    opacity: 0.6;
    pointer-events: none;
}

.bnr-author-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Print Styles */
@media print {
    .bnr-author-social {
        display: none;
    }
    
    .bnr-author-box,
    .bnr-author-item {
        box-shadow: none;
        border: 1px solid #ccc;
    }
}
