@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;700&display=swap');

:root {
    --primary-color: #8c52ff;
    --secondary-color: #ff5294;
    --bg-color: #121212;
    --bg-card: #1e1e1e;
    --text-color: #ffffff;
    --text-secondary: #b3b3b3;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Header Styles */
header {
    text-align: center;
    margin-bottom: 4rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.profile {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.profile-image {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 1.5rem;
    border: 4px solid var(--primary-color);
    box-shadow: 0 0 20px rgba(140, 82, 255, 0.5);
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bio {
    max-width: 600px;
    margin: 0 auto 1.5rem auto;
    color: var(--text-secondary);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin: 1rem 0;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--bg-card);
    color: var(--text-color);
    font-size: 1.2rem;
    transition: all 0.3s ease;
    text-decoration: none;  /* Добавлено это свойство */
}

.social-icon:hover {
    transform: translateY(-3px);
    background-color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(140, 82, 255, 0.4);
}

/* Main Content Styles */
.section-title {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
    padding-bottom: 0.5rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
}

.track-card {
    display: flex;
    background-color: var(--bg-card);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.track-card:hover {
    transform: translateY(-5px);
}

.album-cover {
    min-width: 150px;
    height: 150px;
}

.album-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.track-info {
    padding: 1.5rem;
    flex: 1;
}

.track-title {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.track-link {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.track-link:hover {
    color: var(--primary-color);
}

.track-genre {
    font-size: 0.9rem;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.track-description {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.track-links {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.platform-link {
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    background-color: rgba(40, 40, 45, 0.7);  /* Темный фон по умолчанию */
    color: #f0f0f0;  /* Светлый текст по умолчанию */
}

.spotify {
    background-color: rgba(29, 185, 84, 0.6);  /* Более приглушенный Spotify зеленый */
    color: #ffffff;
}

.apple {
    background-color: rgba(251, 35, 59, 0.6);  /* Более приглушенный Apple Music красный */
    color: #ffffff;
}

.youtube {
    background-color: rgba(255, 0, 0, 0.6);  /* Более приглушенный YouTube красный */
    color: #ffffff;
}

.vk {
    border-color: rgba(0, 119, 255, 0.6);
    background-color: rgba(0, 119, 255, 0.15);
}

.yandex {
    border-color: rgba(255, 204, 0, 0.6);
    background-color: rgba(255, 204, 0, 0.15);
    color: rgba(255, 255, 255, 0.9);  /* Для лучшей контрастности с желтым */
}


.platform-link::before {
    font-family: "Font Awesome 6 Brands";
    font-size: 0.9rem;
}

.spotify::before {
    content: "\f1bc"; 
}

.apple::before {
    content: "\f179";  
}

.youtube::before {
    content: "\f167"; 
}

.vk::before {
    content: "\f189";  
}

.yandex::before {
    content: "Y";
    font-family: Arial, sans-serif;
    font-weight: bold;
    width: 16px;
    height: 16px;
    line-height: 16px;
    text-align: center;
    background-color: rgba(255, 204, 0, 0.8);
    color: rgba(0, 0, 0, 0.8);
    border-radius: 50%;
    padding: 2px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}


.platform-link:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
    background-color: rgba(40, 40, 45, 0.9);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Эффект наведения для каждой платформы будет подсвечивать соответствующий цвет */
.spotify:hover {
    border-color: rgba(29, 185, 84, 0.9);
    color: rgba(29, 185, 84, 1);
}

.apple:hover {
    border-color: rgba(251, 35, 59, 0.9);
    color: rgba(251, 35, 59, 1);
}

.youtube:hover {
    border-color: rgba(255, 0, 0, 0.9);
    color: rgba(255, 0, 0, 1);
}

.vk:hover {
    border-color: rgba(0, 119, 255, 0.9);
    color: rgba(0, 119, 255, 1);
}

.yandex:hover {
    border-color: rgba(255, 204, 0, 0.9);
    color: rgba(255, 204, 0, 1);
}

/* Footer Styles */
footer {
    text-align: center;
    padding-top: 2rem;
    margin-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

footer a {
    color: var(--primary-color);
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .track-card {
        flex-direction: column;
    }

    .album-cover {
        width: 100%;
        max-width: 250px;  /* Ограничиваем максимальную ширину */
        height: auto;
        min-width: auto;
        margin: 0 auto;  /* Центрируем обложку */
    }

    .album-cover img {
        width: 100%;
        height: auto;
        aspect-ratio: 1/1;
        object-fit: contain;
    }

    .profile-image {
        width: 150px;
        height: 150px;
    }

    .profile h1 {
        font-size: 2rem;
    }

    .container {
        padding: 1rem;
    }
}

/* Также обновим для еще меньших экранов */
@media (max-width: 480px) {
    .profile-image {
        width: 120px;
        height: 120px;
    }

    /* Делаем обложки еще меньше для маленьких экранов */
    .album-cover {
        max-width: 180px;  /* Уменьшаем еще больше для маленьких экранов */
    }

}