/* главный */

/* переменные */
:root {
    /* цвета */
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-card: rgba(18, 18, 26, 0.8);
    --bg-card-hover: rgba(25, 25, 35, 0.9);

    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;

    --accent-primary: #8b5cf6;
    --accent-secondary: #06b6d4;
    --accent-tertiary: #f43f5e;
    --accent-success: #22c55e;
    --accent-warning: #f59e0b;
    --accent-gradient: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));

    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.15);

    /* тени */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 40px rgba(139, 92, 246, 0.15);

    /* шрифты */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

    /* отступы */
    --container-max: 1200px;
    --gap: 20px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    /* переходы */
    --transition-fast: 0.15s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* сброс */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

html, body {
    max-width: 100vw;
}

body {
    font-family: var(--font-sans);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* фон */
.bg-decoration {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.bg-gradient {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(139, 92, 246, 0.15), transparent),
        radial-gradient(ellipse 60% 40% at 100% 50%, rgba(6, 182, 212, 0.1), transparent),
        radial-gradient(ellipse 60% 40% at 0% 80%, rgba(244, 63, 94, 0.08), transparent);
    animation: gradientShift 20s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.bg-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

/* фигуры */
.floating-shapes {
    position: absolute;
    inset: 0;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.5;
    animation: float 20s ease-in-out infinite;
}

.shape-1 {
    width: 300px;
    height: 300px;
    background: var(--accent-primary);
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 200px;
    height: 200px;
    background: var(--accent-secondary);
    top: 60%;
    right: 15%;
    animation-delay: -5s;
}

.shape-3 {
    width: 250px;
    height: 250px;
    background: var(--accent-tertiary);
    bottom: 10%;
    left: 30%;
    animation-delay: -10s;
}

.shape-4 {
    width: 150px;
    height: 150px;
    background: var(--accent-primary);
    top: 40%;
    right: 40%;
    animation-delay: -15s;
}

.shape-5 {
    width: 180px;
    height: 180px;
    background: var(--accent-secondary);
    bottom: 30%;
    right: 5%;
    animation-delay: -7s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -30px) scale(1.1); }
    50% { transform: translate(-20px, 20px) scale(0.9); }
    75% { transform: translate(20px, 10px) scale(1.05); }
}

/* контейнер */
.container {
    max-width: var(--container-max);
    width: 100%;
    margin: 0 auto;
    padding: 40px 20px;
    box-sizing: border-box;
}

/* виджет */
.widget {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    backdrop-filter: blur(10px);
    transition: all var(--transition-base);
    position: relative;
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
}

.widget::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), transparent 50%);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    -webkit-mask-composite: xor;
    pointer-events: none;
}

.widget:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.widget-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    gap: 16px;
    flex-wrap: wrap;
}

.widget-header h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.widget-header h2 svg {
    color: var(--accent-primary);
}

.widget-link {
    font-size: 13px;
    color: var(--text-muted);
    text-decoration: none;
    transition: color var(--transition-fast);
}

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

/* анимации */
.animate-fade-in {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* загрузка */
.skeleton {
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.03) 0%,
        rgba(255, 255, 255, 0.08) 50%,
        rgba(255, 255, 255, 0.03) 100%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-sm);
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* профиль */
.hero-card {
    text-align: center;
    padding: 40px 30px;
    margin-bottom: var(--gap);
    position: relative;
}

.hero-glow {
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.2), transparent 70%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.avatar-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 20px;
}

.avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid transparent;
    background: linear-gradient(var(--bg-card), var(--bg-card)) padding-box,
                var(--accent-gradient) border-box;
}

.avatar-ring {
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    border: 2px solid transparent;
    background: linear-gradient(var(--bg-card), var(--bg-card)) padding-box,
                var(--accent-gradient) border-box;
    animation: rotate 8s linear infinite;
    opacity: 0.5;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.status-indicator {
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 24px;
    height: 24px;
    background: var(--bg-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bg-card);
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--text-muted);
    animation: pulse 2s ease infinite;
}

.status-indicator.online .status-dot { background: var(--accent-success); }
.status-indicator.away .status-dot { background: var(--accent-warning); }
.status-indicator.busy .status-dot { background: var(--accent-tertiary); }
.status-indicator.sleeping .status-dot { background: #6366f1; }
.status-indicator.offline .status-dot { background: var(--text-muted); }

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.7; }
}

.hero-name {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-role {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.hero-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.timezone {
    display: flex;
    align-items: center;
    gap: 6px;
}

.status-text {
    font-family: var(--font-mono);
    font-size: 13px;
}

/* цитата */
.hero-quote {
    margin: 0 0 24px 0;
    padding: 0;
    border: none;
}

.quote-text {
    font-size: 14px;
    font-style: normal;
    color: var(--text-secondary);
    opacity: 0.8;
    position: relative;
    display: inline-block;
}

.quote-text::before,
.quote-text::after {
    color: var(--accent-primary);
    opacity: 0.5;
}

/* соцсети */
.social-links {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    text-decoration: none;
    transition: all var(--transition-base);
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    transform: translateY(-3px);
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.3);
}

.hero-footer {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
    font-size: 12px;
    color: var(--text-muted);
}

/* статистика */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--gap);
    margin-bottom: var(--gap);
}

.stat-card {
    text-align: center;
    padding: 24px 16px;
}

.stat-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: rgba(139, 92, 246, 0.1);
    color: var(--accent-primary);
    margin-bottom: 12px;
}

.stat-icon.stars {
    background: rgba(245, 158, 11, 0.1);
    color: var(--accent-warning);
}
.stat-icon.followers {
    background: rgba(6, 182, 212, 0.1);
    color: var(--accent-secondary);
}
.stat-icon.following {
    background: rgba(34, 197, 94, 0.1);
    color: var(--accent-success);
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    font-family: var(--font-mono);
    margin-bottom: 4px;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

/* колонки */
.two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--gap);
    width: 100%;
    min-width: 0;
}

.column {
    display: flex;
    flex-direction: column;
    gap: var(--gap);
    min-width: 0;
    max-width: 100%;
}

/* репозитории */
.repos-grid {
    display: grid;
    gap: 12px;
    width: 100%;
    min-width: 0;
}

.repo-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    min-height: 100px;
    min-width: 0;
}

.repo-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent-primary);
}

.repo-card.skeleton {
    height: 100px;
}

.repo-header {
    display: flex;
    align-items: center;
    gap: 8px;
}

.repo-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.repo-name:hover {
    color: var(--accent-primary);
}

.repo-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.repo-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: auto;
    font-size: 12px;
    color: var(--text-muted);
}

.repo-lang {
    display: flex;
    align-items: center;
    gap: 6px;
}

.lang-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.repo-stat {
    display: flex;
    align-items: center;
    gap: 4px;
}

.repo-stat svg {
    width: 14px;
    height: 14px;
}

/* языки */
.languages-bar {
    height: 10px;
    border-radius: 5px;
    overflow: hidden;
    display: flex;
    margin-bottom: 16px;
    background: rgba(255, 255, 255, 0.05);
}

.lang-bar-skeleton {
    width: 100%;
    height: 100%;
}

.lang-segment {
    height: 100%;
    transition: width var(--transition-base);
}

.languages-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.lang-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-secondary);
}

.lang-item .lang-dot {
    width: 8px;
    height: 8px;
}

.lang-percent {
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 12px;
}

/* навыки */
.skills-widget {
    margin-bottom: var(--gap);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 12px;
}

.skill-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    cursor: default;
    min-height: 90px;
}

.skill-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--accent-primary);
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.15);
}

.skill-item.skeleton {
    height: 90px;
}

.skill-icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    transition: transform var(--transition-base);
}

.skill-icon-text {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: var(--accent-primary);
    background: rgba(139, 92, 246, 0.15);
    border-radius: 8px;
    transition: transform var(--transition-base);
}

.skill-item:hover .skill-icon,
.skill-item:hover .skill-icon-text {
    transform: scale(1.15);
}

.skill-name {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

@media (max-width: 768px) {
    .skills-grid {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    }

    .skill-item {
        padding: 12px 8px;
    }

    .skill-icon {
        width: 32px;
        height: 32px;
    }

    .skill-name {
        font-size: 11px;
    }
}

/* активность */
.activity-feed {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 300px;
    overflow-y: auto;
    width: 100%;
    min-width: 0;
}

.activity-feed::-webkit-scrollbar {
    width: 4px;
}

.activity-feed::-webkit-scrollbar-track {
    background: transparent;
}

.activity-feed::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 2px;
}

.activity-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius-sm);
    transition: background var(--transition-fast);
    min-height: 60px;
}

.activity-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.activity-item.skeleton {
    height: 60px;
}

.activity-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    background: rgba(139, 92, 246, 0.1);
    color: var(--accent-primary);
    flex-shrink: 0;
}

.activity-content {
    flex: 1;
    min-width: 0;
}

.activity-text {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.4;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.activity-text a {
    color: var(--text-primary);
    text-decoration: none;
    word-break: break-word;
}

.activity-text a:hover {
    color: var(--accent-primary);
}

.activity-time {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* вкладки */
.tabs {
    display: flex;
    gap: 4px;
    padding: 4px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-sm);
}

.tab {
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.tab:hover {
    color: var(--text-secondary);
}

.tab.active {
    background: rgba(139, 92, 246, 0.2);
    color: var(--accent-primary);
}

/* книги */
.books-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    min-width: 0;
}

.book-item {
    display: flex;
    gap: 16px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    min-height: 120px;
}

.book-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--border-hover);
}

.book-item.has-link {
    text-decoration: none;
    cursor: pointer;
}

.book-item.has-link:hover {
    border-color: var(--accent-primary);
}

.book-link-badge {
    display: inline-block;
    margin-top: 6px;
    font-size: 11px;
    font-weight: 600;
    color: var(--accent-primary);
    background: rgba(139, 92, 246, 0.15);
    padding: 3px 8px;
    border-radius: 4px;
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.book-item:hover .book-link-badge {
    opacity: 1;
}

.book-item.skeleton {
    height: 120px;
}

.book-cover {
    width: 70px;
    height: 100px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.05);
}

.book-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.book-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.3;
}

.book-author {
    font-size: 13px;
    color: var(--text-secondary);
}

.book-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: auto;
}

.book-progress {
    font-size: 12px;
    font-family: var(--font-mono);
    color: var(--text-muted);
}

.book-rating {
    display: flex;
    gap: 2px;
}

.star {
    width: 14px;
    height: 14px;
    color: var(--text-muted);
}

.star.filled {
    color: var(--accent-warning);
}

.book-status {
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 500;
}

.book-status.reading {
    background: rgba(6, 182, 212, 0.2);
    color: var(--accent-secondary);
}

.book-status.finished {
    background: rgba(34, 197, 94, 0.2);
    color: var(--accent-success);
}

/* фильмы */
.movies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 16px;
    width: 100%;
    min-width: 0;
}

.movie-card {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    transition: all var(--transition-base);
    min-height: 200px;
}

.movie-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-primary);
    box-shadow: 0 8px 30px rgba(139, 92, 246, 0.2);
}

.movie-card.skeleton {
    height: 200px;
}

.movie-poster {
    width: 100%;
    aspect-ratio: 2/3;
    object-fit: cover;
}

.movie-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 50%);
    padding: 12px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    opacity: 0;
    transition: opacity var(--transition-base);
}

.movie-card:hover .movie-overlay {
    opacity: 1;
}

.movie-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.3;
    margin-bottom: 4px;
}

.movie-meta {
    font-size: 11px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}

.movie-type {
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: 600;
    text-transform: uppercase;
}

.movie-type.movie {
    background: rgba(139, 92, 246, 0.3);
    color: var(--accent-primary);
}

.movie-type.series {
    background: rgba(6, 182, 212, 0.3);
    color: var(--accent-secondary);
}

.movie-card.has-link {
    cursor: pointer;
    text-decoration: none;
    display: block;
}

.imdb-link {
    display: inline-block;
    margin-top: 6px;
    font-size: 11px;
    font-weight: 600;
    color: #f5c518;
    background: rgba(245, 197, 24, 0.15);
    padding: 3px 8px;
    border-radius: 4px;
    transition: all var(--transition-fast);
}

.movie-card:hover .imdb-link {
    background: rgba(245, 197, 24, 0.25);
}

.movie-rating {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.7);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    color: var(--accent-warning);
    display: flex;
    align-items: center;
    gap: 4px;
}

.movie-rating svg {
    width: 12px;
    height: 12px;
}

/* серверы */
.servers-summary {
    display: flex;
    gap: 20px;
    margin-bottom: 16px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-sm);
}

.summary-item {
    font-size: 13px;
    color: var(--text-muted);
}

.summary-value {
    font-weight: 600;
    font-family: var(--font-mono);
    color: var(--accent-success);
}

.refresh-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.refresh-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--accent-primary);
    border-color: var(--accent-primary);
}

.refresh-btn.loading svg {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.servers-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    min-width: 0;
}

.server-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius-sm);
    transition: background var(--transition-fast);
    min-height: 50px;
}

.server-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.server-item.skeleton {
    height: 50px;
}

.server-status {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.server-status.up {
    background: var(--accent-success);
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.5);
}

.server-status.down {
    background: var(--accent-tertiary);
    box-shadow: 0 0 10px rgba(244, 63, 94, 0.5);
}

.server-status.degraded {
    background: var(--accent-warning);
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
}

.server-info {
    flex: 1;
}

.server-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

.server-meta {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}

.server-latency {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-muted);
}

/* музыка */
.spotify-widget .widget-header h2 svg {
    color: #1DB954;
}

.spotify-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 300px;
    overflow-y: auto;
    width: 100%;
    min-width: 0;
}

.spotify-track {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius-sm);
    transition: background var(--transition-fast);
    min-height: 60px;
}

.spotify-track.now-playing {
    background: rgba(29, 185, 84, 0.1);
    border: 1px solid rgba(29, 185, 84, 0.3);
}

.spotify-track:hover {
    background: rgba(29, 185, 84, 0.1);
}

.spotify-track.skeleton {
    height: 60px;
}

.track-cover {
    width: 44px;
    height: 44px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
}

.track-info {
    flex: 1;
    min-width: 0;
}

.track-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.track-artist {
    font-size: 12px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.track-time {
    font-size: 11px;
    color: var(--text-muted);
    flex-shrink: 0;
}

.track-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #1DB954;
    color: white;
    text-decoration: none;
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.spotify-track:hover .track-link {
    opacity: 1;
}

/* уведомления */
.toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toast {
    padding: 12px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    backdrop-filter: blur(10px);
    animation: slideIn 0.3s ease;
    font-size: 14px;
    color: var(--text-primary);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* адаптив */
@media (max-width: 1024px) {
    .two-columns {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 20px 16px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-name {
        font-size: 26px;
    }

    .hero-card {
        padding: 30px 20px;
    }

    .widget {
        padding: 20px;
    }

    .movies-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-meta {
        flex-direction: column;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 16px 12px;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .widget {
        padding: 16px;
    }

    .widget-header {
        flex-wrap: wrap;
    }

    .movies-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .book-item {
        min-width: 0;
    }

    .book-info {
        min-width: 0;
    }

    .book-title {
        word-wrap: break-word;
    }

    .repo-card {
        min-width: 0;
    }

    .repo-name {
        word-wrap: break-word;
    }

    .repo-desc {
        word-wrap: break-word;
    }

    .activity-item {
        min-width: 0;
    }

    .activity-content {
        min-width: 0;
    }

    .server-item {
        min-width: 0;
    }

    .spotify-track {
        min-width: 0;
    }

    .track-info {
        min-width: 0;
    }

    .lang-item {
        min-width: 0;
    }

    .skill-item {
        min-width: 0;
    }
}

/* скролл */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--border-hover);
}

/* выделение */
::selection {
    background: rgba(139, 92, 246, 0.3);
    color: var(--text-primary);
}

/* эффекты */

/* граница */
.widget.glow-border {
    position: relative;
}

.widget.glow-border::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    background: linear-gradient(
        45deg,
        var(--accent-primary),
        var(--accent-secondary),
        var(--accent-tertiary),
        var(--accent-primary)
    );
    background-size: 300% 300%;
    z-index: -1;
    opacity: 0;
    transition: opacity var(--transition-base);
    animation: gradientBorder 4s ease infinite;
}

.widget.glow-border:hover::after {
    opacity: 1;
}

@keyframes gradientBorder {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* курсор */
.typing-cursor::after {
    content: '|';
    animation: blink 1s step-end infinite;
    color: var(--accent-primary);
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* глитч */
.glitch {
    position: relative;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
}

.glitch:hover::before {
    animation: glitch-1 0.3s linear;
    color: var(--accent-primary);
    z-index: -1;
    opacity: 0.8;
}

.glitch:hover::after {
    animation: glitch-2 0.3s linear;
    color: var(--accent-secondary);
    z-index: -2;
    opacity: 0.8;
}

@keyframes glitch-1 {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(-3px, 3px); }
    40% { transform: translate(-3px, -3px); }
    60% { transform: translate(3px, 3px); }
    80% { transform: translate(3px, -3px); }
}

@keyframes glitch-2 {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(3px, -3px); }
    40% { transform: translate(3px, 3px); }
    60% { transform: translate(-3px, -3px); }
    80% { transform: translate(-3px, 3px); }
}

/* подъём */
.lift-hover {
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.lift-hover:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 0 60px rgba(139, 92, 246, 0.2);
}

/* блеск */
.shine {
    position: relative;
    overflow: hidden;
}

.shine::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 40%,
        rgba(255, 255, 255, 0.1) 50%,
        transparent 60%
    );
    transform: translateX(-100%) rotate(45deg);
    transition: none;
}

.shine:hover::before {
    animation: shine 0.8s ease forwards;
}

@keyframes shine {
    to {
        transform: translateX(100%) rotate(45deg);
    }
}

/* пульс */
.pulse-ring {
    position: relative;
}

.pulse-ring::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid var(--accent-primary);
    opacity: 0;
}

.pulse-ring:hover::before {
    animation: pulseRing 1s ease-out infinite;
}

@keyframes pulseRing {
    0% {
        transform: scale(0.8);
        opacity: 0.8;
    }
    100% {
        transform: scale(1.2);
        opacity: 0;
    }
}

/* неон */
.neon-text {
    text-shadow:
        0 0 5px var(--accent-primary),
        0 0 10px var(--accent-primary),
        0 0 20px var(--accent-primary),
        0 0 40px var(--accent-primary);
}

/* градиент */
.gradient-text-animated {
    background: linear-gradient(
        90deg,
        var(--accent-primary),
        var(--accent-secondary),
        var(--accent-tertiary),
        var(--accent-primary)
    );
    background-size: 300% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientText 5s ease infinite;
}

@keyframes gradientText {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* плавание */
.float-slow {
    animation: floatSlow 6s ease-in-out infinite;
}

.float-medium {
    animation: floatMedium 4s ease-in-out infinite;
}

.float-fast {
    animation: floatFast 3s ease-in-out infinite;
}

@keyframes floatSlow {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes floatMedium {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

@keyframes floatFast {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* задержки */
.stagger-item:nth-child(1) { animation-delay: 0.1s; }
.stagger-item:nth-child(2) { animation-delay: 0.2s; }
.stagger-item:nth-child(3) { animation-delay: 0.3s; }
.stagger-item:nth-child(4) { animation-delay: 0.4s; }
.stagger-item:nth-child(5) { animation-delay: 0.5s; }
.stagger-item:nth-child(6) { animation-delay: 0.6s; }

/* наклон */
.tilt-card {
    perspective: 1000px;
    transform-style: preserve-3d;
}

.tilt-card:hover {
    transform: rotateX(2deg) rotateY(-2deg);
}

/* прогресс */
.progress-bar {
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: var(--accent-gradient);
    border-radius: 2px;
    animation: progressPulse 2s ease-in-out infinite;
}

@keyframes progressPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* кнопка */
.magnetic-btn {
    transition: transform 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* шум */
.noise-overlay::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    opacity: 0.03;
    pointer-events: none;
}

/* луч */
.border-beam {
    position: relative;
    overflow: hidden;
}

.border-beam::before {
    content: '';
    position: absolute;
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
    top: 0;
    left: -100px;
    animation: borderBeam 3s linear infinite;
}

@keyframes borderBeam {
    0% { left: -100px; }
    100% { left: 100%; }
}

/* точки */
.dot-pattern {
    background-image: radial-gradient(circle, rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 20px 20px;
}
