/* Authors Module CSS */

/* Index Authors Grid */
.index-authors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* Index Author Card */
.index-author-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: none;
}

.index-author-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

/* Index Author Image */
.index-author-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1rem;
    border: 3px solid var(--border-color);
    transition: all 0.3s ease;
}

.index-author-card:hover .index-author-image {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

/* Index Author Name */
.index-author-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

/* Index Author Title */
.index-author-title {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

/* Index Author Profile Button */
.index-btn-author-profile {
    background: var(--light-gray);
    color: var(--text-color);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.index-btn-author-profile:hover {
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
}

/* Authors Page Styles */
.authors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.author-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.author-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), #fd7e14);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.author-card:hover::before {
    transform: scaleX(1);
}

.author-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

/* Author Image */
.author-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1.5rem;
    border: 4px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
}

.author-card:hover .author-image {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

/* Author Info */
.author-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.author-title {
    font-size: 1rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.author-bio {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* Author Stats */
.author-stats {
    display: flex;
    justify-content: space-around;
    margin-bottom: 1.5rem;
    padding: 1rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.author-stat {
    text-align: center;
}

.author-stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    display: block;
}

.author-stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Author Actions */
.author-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
}

.btn-author-profile,
.btn-author-articles {
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-author-profile {
    background: var(--primary-color);
    color: white;
    border: 2px solid var(--primary-color);
}

.btn-author-profile:hover {
    background: transparent;
    color: var(--primary-color);
    text-decoration: none;
    transform: translateY(-1px);
}

.btn-author-articles {
    background: transparent;
    color: var(--text-color);
    border: 2px solid var(--border-color);
}

.btn-author-articles:hover {
    background: var(--light-gray);
    border-color: var(--primary-color);
    color: var(--primary-color);
    text-decoration: none;
    transform: translateY(-1px);
}

/* Author Social Links */
.author-social {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1rem;
}

.author-social-link {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    text-decoration: none;
}

.author-social-link:hover {
    color: white;
    border-color: var(--primary-color);
    background: var(--primary-color);
    transform: translateY(-2px);
    text-decoration: none;
}

/* Dark Mode */
body.dark-mode .index-author-card,
body.dark-mode .author-card {
    background: var(--card-bg);
    border-color: #404040;
}

body.dark-mode .index-author-card:hover,
body.dark-mode .author-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

body.dark-mode .index-author-image,
body.dark-mode .author-image {
    border-color: #404040;
}

body.dark-mode .index-author-card:hover .index-author-image,
body.dark-mode .author-card:hover .author-image {
    border-color: var(--primary-color);
}

body.dark-mode .index-btn-author-profile {
    background: #2d2d2d;
    color: var(--text-color);
}

body.dark-mode .index-btn-author-profile:hover {
    background: var(--primary-color);
    color: white;
}

body.dark-mode .author-stats {
    border-top-color: #404040;
    border-bottom-color: #404040;
}

body.dark-mode .btn-author-articles {
    border-color: #404040;
    color: var(--text-color);
}

body.dark-mode .btn-author-articles:hover {
    background: #2d2d2d;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

body.dark-mode .author-social-link {
    border-color: #404040;
    color: var(--text-muted);
}

body.dark-mode .author-social-link:hover {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: white;
}

/* Responsive Design */
@media (max-width: 991.98px) {
    .index-authors-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 1.25rem;
    }
    
    .authors-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }
    
    .author-card {
        padding: 1.5rem;
    }
    
    .author-image {
        width: 100px;
        height: 100px;
    }
}

@media (max-width: 575.98px) {
    .index-authors-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .authors-grid {
        grid-template-columns: 1fr;
    }
    
    .index-author-card {
        padding: 1rem;
    }
    
    .index-author-image {
        width: 60px;
        height: 60px;
    }
    
    .index-author-name {
        font-size: 1rem;
    }
    
    .index-author-title {
        font-size: 0.8rem;
    }
    
    .author-actions {
        flex-direction: column;
    }
    
    .author-stats {
        flex-direction: column;
        gap: 1rem;
    }
}