@import url('https://fonts.googleapis.com/css2?family=Bytesized&family=Press+Start+2P&family=Micro+5&family=Jersey+10&family=Tiny5&Inter:wght@300;400;500;600;700&family=Manrope:wght@800&display=swap');

:root {
    --text-color: #f3f4f6;
    --background-color: rgba(62, 35, 109,1);
    --card-background: rgba(255, 255, 255,0.1);
    --accent-color: rgb(163, 110, 255);
    --webring-color: rgb(190, 152, 255);
    --gray-text-color: rgb(163, 110, 255);
    --radius-3xl: 1.5rem;
    --font-sans: "Manrope", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
    --font-title: "Manrope", sans-serif;
}

body {
    margin: 0;
    font-family: var(--font-sans);
    color: var(--text-color);
    background-color: var(--background-color);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 1rem;
}

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

img, svg {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

.page-container {
    max-width: 80rem;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    min-height: 100vh;
}

/* --- Стили для переключаемых блоков --- */
.pages-wrapper {
    width: 100%;
    max-width: 42rem;
    position: relative;
}

.page {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease-in-out;
}

.page.active {
    position: relative;
    opacity: 1;
    visibility: visible;
}

.main-card {
    padding: 1.5rem 1rem;
    background-color: var(--card-background);
    border-radius: var(--radius-3xl);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}
/* --- Конец общих стилей --- */

.webring-container {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 0 1rem;
    margin-bottom: 2rem;
}

.webring-content {
    background-color: var(--card-background);
    color: var(--gray-text-color);
    text-align: center;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-3xl);
    font-family: monospace;
    font-size: 0.875rem;
    line-height: 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 24rem;
}

.webring-link {
    font-weight: 500;
    transition: color 0.3s ease-in-out;
}

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



.profile-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
    width: 100%;
}

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

.profile-picture {
    width: 6rem;
    height: 6rem;
    border-radius: 24px;
}

.profile-name {
    font-family: var(--font-title);
    font-size: 2.25rem;
    line-height: 2.5rem;
    font-weight: 700;
    white-space: nowrap;
}

.pink-text {
    color: var(--accent-color);
}

.name-text {
    font-family: var(--font-title);
    font-weight: 400;
    color: var(--gray-text-color);
}

.profile-description {
    font-size: 1rem;
    line-height: 1.5rem;
    color: var(--gray-text-color);
    margin-bottom: 0.5rem;
}

/* Стили для social-links-container, как у language-grid */
.social-links-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    width: 100%;
}

/* Стили для social-link, как у language-item */
.social-link {
    background-color: var(--card-background);
    color: var(--gray-text-color);
    padding: 0.75rem 1rem;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
    line-height: 1.25rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease-in-out;
}

.social-link:hover {
    color: var(--accent-color);
    border-color: var(--accent-color);
    transform: translateY(-2px);
}

.projects-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
}

.block-title {
    font-family: var(--font-title);
    font-size: 1.5rem;
    line-height: 2rem;
    font-weight: 700;
    color: var(--accent-color);
    text-align: center;
}

.project-card {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: var(--radius-3xl);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    transition: all 0.3s ease-in-out;
    position: relative;
    cursor: pointer;
}

.project-card:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.project-card h3 {
    font-size: 1.125rem;
    line-height: 1.75rem;
    font-weight: 600;
    color: var(--text-color);
}

.project-card p {
    font-size: 0.875rem;
    line-height: 1.25rem;
    color: var(--gray-text-color);
}

.project-link {
    font-size: 0.875rem;
    line-height: 1.25rem;
    font-weight: 500;
    color: var(--accent-color);
    text-decoration: underline;
    text-decoration-color: transparent;
    transition: text-decoration-color 0.3s ease-in-out;
}

.project-link:hover {
    text-decoration-color: var(--accent-color);
}


.language-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    width: 100%;
}

.language-item {
    background-color: var(--card-background);
    color: var(--gray-text-color);
    padding: 0.75rem;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease-in-out;
}

.language-item:hover {
    background-color: var(--card-background);
    color: var(--accent-color);
}

.language-icon {
    width: 2.5rem;
    height: 2.5rem;
    filter: invert(70%);
    transition: filter 0.3s ease-in-out;
}

.language-item:hover .language-icon {
    filter: invert(100%);
}

.language-item a {
    color: var(--gray-text-color);
    font-weight: 600;
    font-size: 0.875rem;
    line-height: 1.25rem;
    transition: color 0.3s ease-in-out;
}

.language-item:hover a {
    color: var(--accent-color);
}



/* Новый класс для статистики */
.stats-content-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
}

/* Дополнительные стили для карточек статистики */
.data-card {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
    text-align: center;
}

.data-card .album-cover,
.data-card .game-cover {
    width: 6rem;
    height: 6rem;
    border-radius: 12px;
    overflow: hidden;
}

.data-card .album-cover img,
.data-card .game-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
        align-self: center;
    align-content: center;
    justify-self: center;
    justify-content: center;
    justify-items: center;
}

.song-info,
.game-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    text-align: center;
}

/* Стили для бейджика статистики */
.play-badge {
    position: absolute; /* Делаем его позиционированным относительно карточки */
    top: 1rem;
    right: 1rem;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    background-color: oklch(68.71% 0.202 24.112); /* Цвет для `dev-badge` */
    color: oklch(38.024% 0.08469 46.721); /* Цвет для `dev-badge` */
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}
.play-badge p{
    color: oklch(43.975% 0.14284 25.254); /* Цвет для `dev-badge` */
}
/* --- Стили для тегов проектов --- */
.project-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.active-badge {
    background-color: oklch(0.85 0.15 154.449);
    color: oklch(40.547% 0.15 154.449);
}

.dev-badge {
    background-color: oklch(0.88 0.182 98.111);
    color: oklch(40.547% 0.182 98.111);
}

.closed-badge {
    background-color: oklch(0.78 0.114 19.571);
    color: oklch(40.547% 0.05883 20.555);
}

@media (min-width: 640px) {
    .page-container {
        min-height: auto;
        justify-content: flex-start;
    }
    body {
        align-items: center;
    }
    .main-card {
        padding: 2rem;
    }
    .profile-header {
        flex-direction: row;
        align-items: flex-start;
        text-align: left;
        gap: 2rem;
    }
    .profile-text-container {
        align-items: flex-start;
        text-align: left;
    }
    .profile-picture {
        width: 8rem;
        height: 8rem;
        margin-bottom: 0;
    }
    .profile-name {
        font-size: 3rem;
        line-height: 1;
    }
    .profile-description {
        font-size: 1.125rem;
        line-height: 1.75rem;
    }
    .block-title {
        text-align: left;
    }
    .language-grid {
        justify-content: flex-start;
        width: auto;
    }
    .social-links-container {
        justify-content: flex-start;
    }
    .projects-list {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.5rem;
    }
    /* Стили для блока статистики на больших экранах */
    .stats-content-wrapper {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.5rem;
    }
}