/* Общие стили для страниц авторов */
.authors-body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 20px;
    background: #1a1a1a;
    color: #ffffff;
}

.authors-container {
    max-width: 1200px;
    margin: 0 auto;
    background: #2d2d2d;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    overflow: hidden;
}

.authors-header {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: white;
    padding: 30px;
    text-align: center;
}

.authors-content {
    padding: 30px;
    background: #2d2d2d;
}

/* Аватар автора */
.authors-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: #3498db;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    font-weight: bold;
    border: 4px solid rgba(255,255,255,0.2);
    overflow: hidden;
    position: relative;
}

.authors-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.authors-avatar .authors-fallback {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #3498db;
    color: white;
    font-size: 48px;
    font-weight: bold;
}

/* Аватар для списка (меньший размер) */
.authors-avatar.authors-small {
    width: 80px;
    height: 80px;
    font-size: 24px;
    margin: 0 auto 15px;
}

.authors-avatar.authors-small .authors-fallback {
    font-size: 24px;
}

/* Профиль автора */
.authors-profile {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
}

.authors-info h1 {
    margin: 0 0 10px 0;
    font-size: 32px;
}

/* Статистика автора */
.authors-stats {
    display: flex;
    gap: 30px;
    justify-content: center;
    margin-top: 20px;
}

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

.authors-stat-value {
    font-size: 24px;
    font-weight: bold;
    display: block;
    color: #3498db;
}

.authors-stat-label {
    font-size: 14px;
    opacity: 0.9;
}

/* Навигация */
.authors-breadcrumb {
    margin-bottom: 30px;
}

.authors-breadcrumb a {
    color: #3498db;
    text-decoration: none;
}

.authors-breadcrumb a:hover {
    text-decoration: underline;
    color: #5dade2;
}

/* Биография автора */
.authors-bio {
    background: #3a3a3a;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    line-height: 1.6;
    border-left: 4px solid #3498db;
}

.authors-bio h3 {
    margin-top: 0;
    color: #ffffff;
}

/* Настройки отображения */
.authors-display-settings {
    background: #3a3a3a;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid #3498db;
}

.authors-size-form {
    display: flex;
    align-items: center;
    gap: 10px;
}

.authors-size-form label {
    color: #ffffff;
    font-weight: 500;
    margin: 0;
}

.authors-size-form select {
    padding: 8px 12px;
    border: 1px solid #404040;
    border-radius: 5px;
    background: #2d2d2d;
    color: #ffffff;
    cursor: pointer;
}

.authors-size-form select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 5px rgba(52, 152, 219, 0.3);
}

/* Форма поиска */
.authors-search-form {
    background: #3a3a3a;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    border-left: 4px solid #3498db;
}

.authors-search-form input, .authors-search-form select {
    padding: 10px;
    border: 1px solid #404040;
    border-radius: 5px;
    margin-right: 10px;
    margin-bottom: 10px;
    background: #2d2d2d;
    color: #ffffff;
}

.authors-search-form input:focus, .authors-search-form select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 5px rgba(52, 152, 219, 0.3);
}

.authors-search-form button {
    background: #3498db;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.authors-search-form button:hover {
    background: #2980b9;
    transform: translateY(-1px);
}

/* Сетка авторов */
.authors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

/* Карточка автора */
.authors-card {
    background: #3a3a3a;
    border: 1px solid #404040;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.authors-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
    border-color: #3498db;
}

.authors-name {
    font-size: 18px;
    font-weight: bold;
    color: #ffffff;
    text-align: center;
    margin-bottom: 10px;
}

.authors-status {
    text-align: center;
    margin-bottom: 15px;
}

/* Кнопки */
.authors-view-profile {
    background: #3498db;
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 5px;
    display: block;
    text-align: center;
    transition: all 0.3s ease;
}

.authors-view-profile:hover {
    background: #2980b9;
    transform: translateY(-1px);
}

.authors-follow-button {
    background: #3498db;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.authors-follow-button:hover {
    background: #2980b9;
    transform: translateY(-1px);
}

.authors-follow-button.authors-following {
    background: #7f8c8d;
}

.authors-follow-button.authors-following:hover {
    background: #6c7b7d;
}

/* Статьи */
.authors-articles-section {
    margin-top: 30px;
}

.authors-articles-section h3 {
    color: #ffffff;
    margin-bottom: 20px;
}

.authors-articles-grid {
    display: grid;
    gap: 20px;
}

.authors-article-card {
    border: 1px solid #404040;
    border-radius: 8px;
    padding: 20px;
    background: #3a3a3a;
    transition: all 0.3s ease;
}

.authors-article-card:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
    border-color: #3498db;
    transform: translateY(-2px);
}

.authors-article-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.authors-article-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #3498db;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    overflow: hidden;
    flex-shrink: 0;
}

.authors-article-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.authors-article-info {
    flex-grow: 1;
}

.authors-article-author {
    font-weight: bold;
    color: #ffffff;
    font-size: 16px;
    margin-bottom: 5px;
}

.authors-article-date {
    color: #bdc3c7;
    font-size: 14px;
}

.authors-article-views {
    color: #bdc3c7;
    font-size: 14px;
    text-align: right;
}

.authors-article-excerpt {
    color: #ecf0f1;
    line-height: 1.6;
    margin-bottom: 15px;
    word-wrap: break-word;
}

.authors-article-links {
    text-align: right;
}

.authors-article-links-container {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.authors-article-link {
    color: #3498db;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    padding: 5px 10px;
    border: 1px solid #3498db;
    border-radius: 4px;
    background: transparent;
}

.authors-article-link:hover {
    color: #ffffff;
    background: #3498db;
    text-decoration: none;
}

/* Пагинация */
.authors-pagination {
    display: flex;
    justify-content: center;
    margin-top: 30px;
    gap: 10px;
}

.authors-pagination a, .authors-pagination span {
    padding: 10px 15px;
    border: 1px solid #404040;
    text-decoration: none;
    color: #ffffff;
    border-radius: 5px;
    background: #3a3a3a;
    transition: all 0.3s ease;
}

.authors-pagination a:hover {
    background: #3498db;
    border-color: #3498db;
}

.authors-pagination .authors-current {
    background: #3498db;
    color: white;
    border-color: #3498db;
}

/* Сообщения об отсутствии данных */
.authors-no-articles, .authors-no-authors {
    text-align: center;
    padding: 50px;
    color: #bdc3c7;
    font-size: 18px;
}

/* Адаптивность */
@media (max-width: 768px) {
    .authors-profile {
        flex-direction: column;
        gap: 20px;
    }
    
    .authors-stats {
        flex-direction: column;
        gap: 15px;
    }
    
    .authors-grid {
        grid-template-columns: 1fr;
    }
    
    .authors-search-form input, .authors-search-form select {
        width: 100%;
        margin-right: 0;
    }
    
    .authors-size-form {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .authors-article-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .authors-article-views {
        text-align: left;
    }
    
    .authors-article-links {
        text-align: left;
    }
    
    .authors-article-links-container {
        justify-content: flex-start;
        gap: 10px;
    }
} 