/**
 * Manga Team Profiles Styles - Dark Theme Compatible
 * Version: 1.0
 */

.manga-team-profile {
    background: #1e1e1e;
    border-radius: 20px;
    padding: 25px;
    margin: 20px 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

/* ======== ШАПКА КОМАНДЫ ======== */
.team-header {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.team-cover {
    flex: 0 0 200px;
}

.team-cover img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    border: 3px solid #FCA311;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.team-info {
    flex: 1;
}

.team-name {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 15px 0;
    position: relative;
    display: inline-block;
}

.team-name:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 60px;
    height: 3px;
    background: #FCA311;
    border-radius: 2px;
}

/* ======== СОЦИАЛЬНЫЕ СЕТИ ======== */
.team-social {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.social-link {
    display: inline-block;
    padding: 8px 16px;
    background: #2d2d2d;
    border-radius: 8px;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.social-link:hover {
    background: #FCA311;
    color: #1e1e1e;
    transform: translateY(-2px);
}

/* ======== СТАТИСТИКА ======== */
.team-stats {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    margin-bottom: 25px;
    padding: 15px 20px;
    background: #2d2d2d;
    border-radius: 12px;
}

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

.stat-value {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: #FCA311;
}

.stat-label {
    font-size: 12px;
    color: #aaa;
}

.team-stats-preview {
    padding: 15px 20px;
    background: #2d2d2d;
    border-radius: 12px;
    margin-bottom: 25px;
    text-align: center;
}

.team-stats-preview p {
    color: #aaa;
    margin: 0;
}

.team-stats-preview a {
    color: #FCA311;
    text-decoration: none;
    font-weight: 500;
}

.team-stats-preview a:hover {
    text-decoration: underline;
}

/* ======== ОПИСАНИЕ ======== */
.team-description h3 {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    margin: 0 0 10px 0;
}

.team-description p {
    color: #ccc;
    line-height: 1.6;
}

/* ======== ТАЙТЛЫ КОМАНДЫ ======== */
.team-titles h2 {
    font-size: 22px;
    font-weight: 600;
    color: #fff;
    margin: 0 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #FCA311;
    display: inline-block;
}

.team-titles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.team-title-item {
    text-align: center;
    transition: transform 0.2s ease;
}

.team-title-item:hover {
    transform: translateY(-5px);
}

.team-title-item a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.title-cover {
    position: relative;
    width: 100%;
    aspect-ratio: 3/4;
    border: 3px solid #FCA311;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 10px;
    background: #2d2d2d;
}

.title-cover img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.title-rating {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0,0,0,0.8);
    color: #FCA311;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}

.title-info h3 {
    font-size: 14px;
    font-weight: 500;
    margin: 0 0 5px 0;
    line-height: 1.3;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    word-break: break-word;
    color: #fff;
}

.title-info h3:hover {
    color: #FCA311;
}

.title-views {
    font-size: 12px;
    color: #FCA311;
    font-weight: 600;
}

/* ======== ДОПОЛНИТЕЛЬНЫЕ ЭЛЕМЕНТЫ ======== */
.team-titles p {
    color: #aaa;
    text-align: center;
    padding: 40px;
}

/* ======== АДАПТИВНОСТЬ ======== */
@media (max-width: 768px) {
    .manga-team-profile {
        padding: 15px;
    }
    
    .team-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .team-name:after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .team-stats {
        justify-content: center;
    }
    
    .team-titles-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .team-titles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .team-stats {
        gap: 15px;
    }
    
    .stat-value {
        font-size: 20px;
    }
}