/* /assets/css/learn.css */
/* Страница обучения с тепловой картой */

.learn-page {
    padding: 1rem 0 3rem;
}

.learn-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.learn-title {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 0 0 0.35rem;
    background: linear-gradient(135deg, #fff, #a78bfa);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.learn-subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin: 0;
}

.learn-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 1.25rem;
    align-items: start;
}

.learn-map-wrap {
    position: relative;
}

.learn-map {
    width: 100%;
    height: 640px;
    background: var(--bg-secondary);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border-glass);
}

.learn-legend {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    background: rgba(10, 10, 15, 0.9);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 0.85rem 1rem;
    font-size: 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    z-index: 10;
}

.learn-legend-title {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.learn-legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
}

.learn-legend-item i {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 3px;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.4);
}

.learn-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.learn-sidebar-section {
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
}

.learn-sidebar-section h3 {
    margin: 0 0 1rem;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    font-weight: 700;
}

/* Сложные */
.learn-hardest-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.learn-hardest-item {
    padding: 0.65rem 0.85rem;
    background: rgba(239, 68, 68, 0.06);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.learn-hardest-item:hover {
    background: rgba(239, 68, 68, 0.12);
    transform: translateX(4px);
}

.learn-hardest-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: #fff;
    margin-bottom: 0.2rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.learn-hardest-stat {
    font-size: 0.75rem;
    color: #f87171;
}

/* Детали */
.learn-detail-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.35rem;
    line-height: 1.3;
}

.learn-detail-level {
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 0.85rem;
    color: var(--text-secondary);
}

.learn-detail-bar {
    height: 10px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 0.35rem;
}

.learn-detail-bar-fill {
    height: 100%;
    border-radius: 999px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.learn-detail-percent {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-align: right;
    margin-bottom: 1rem;
}

.learn-detail-stats {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0.5rem;
}

.learn-detail-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.6rem 0.4rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    font-size: 0.7rem;
    color: var(--text-muted);
    text-align: center;
}

.learn-detail-stat b {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.05rem;
    color: #fff;
    margin: 0.2rem 0;
}

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

    .learn-map {
        height: 420px;
    }
}

@media (max-width: 560px) {
    .learn-map {
        height: 340px;
    }

    .learn-legend {
        font-size: 0.75rem;
        padding: 0.6rem 0.75rem;
    }
}