/* ========================================
   BIAS Levels Roadmap Page Styles
   Premium fonts: Space Grotesk + Inter
======================================== */

/* Current Level Section */
.current-level-section {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 32px;
    padding: 32px;
    background: rgba(10, 10, 20, 0.7);
    border-radius: 16px;
    backdrop-filter: blur(20px);
    margin-bottom: 32px;
    align-items: center;
}

.level-ring-large {
    position: relative;
    width: 120px;
    height: 120px;
}

.level-ring-large svg {
    transform: rotate(-90deg);
}

.level-ring-large .level-ring-bg {
    fill: none;
    stroke: rgba(66, 153, 225, 0.2);
    stroke-width: 8;
}

.level-ring-large .level-ring-progress {
    fill: none;
    stroke: url(#levelGradient);
    stroke-width: 8;
    stroke-linecap: round;
    transition: stroke-dashoffset 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.level-number-large {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Space Grotesk', monospace;
    font-size: 36px;
    font-weight: 700;
    color: #ffffff;
}

.current-level-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.level-title {
    font-family: 'Space Grotesk', monospace;
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    background: linear-gradient(135deg, #4299e1, #667eea);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.level-description {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    line-height: 1.6;
}

.level-stats {
    display: flex;
    gap: 24px;
    margin-top: 8px;
}

.level-stat {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

.level-stat i {
    color: #4299e1;
}

.current-level-perks {
    padding: 24px;
    background: rgba(66, 153, 225, 0.05);
    border-radius: 12px;
    border-left: 3px solid #4299e1;
    min-width: 250px;
}

.current-level-perks h3 {
    font-family: 'Space Grotesk', monospace;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 16px 0;
}

.perks-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.perk-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
}

.perk-item i {
    color: #00ff88;
    font-size: 14px;
}

/* XP Summary */
.xp-summary {
    display: flex;
    gap: 24px;
    padding: 16px 24px;
    background: rgba(10, 10, 20, 0.7);
    border-radius: 12px;
}

.xp-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.xp-label {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.xp-value {
    font-family: 'Space Grotesk', monospace;
    font-size: 20px;
    font-weight: 700;
    color: #4299e1;
}

/* Tier Tabs */
.tier-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 32px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.tier-tab {
    flex: 1;
    min-width: 140px;
    padding: 16px 20px;
    background: rgba(10, 10, 20, 0.7);
    border: 2px solid rgba(66, 153, 225, 0.3);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.tier-tab i {
    font-size: 24px;
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.3s ease;
}

.tier-tab span {
    font-family: 'Space Grotesk', monospace;
    font-size: 15px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
}

.tier-tab small {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
}

.tier-tab:hover {
    border-color: rgba(66, 153, 225, 0.6);
    background: rgba(66, 153, 225, 0.05);
}

.tier-tab.active {
    border-color: #4299e1;
    background: rgba(66, 153, 225, 0.15);
    box-shadow: 0 4px 12px rgba(66, 153, 225, 0.3);
}

.tier-tab.active i {
    color: #4299e1;
}

.tier-tab.active span {
    color: #ffffff;
}

/* Levels Roadmap */
.levels-roadmap {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.level-card {
    background: rgba(10, 10, 20, 0.7);
    border-radius: 16px;
    padding: 24px;
    backdrop-filter: blur(20px);
    border: 2px solid rgba(66, 153, 225, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.level-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--tier-color-1), var(--tier-color-2));
    opacity: 0.6;
}

.level-card:hover {
    transform: translateY(-4px);
    border-color: rgba(66, 153, 225, 0.5);
    box-shadow: 0 8px 24px rgba(66, 153, 225, 0.2);
}

.level-card.current {
    border-color: #4299e1;
    background: rgba(66, 153, 225, 0.1);
    box-shadow: 0 8px 32px rgba(66, 153, 225, 0.4);
}

.level-card.unlocked {
    opacity: 0.6;
}

.level-card.locked {
    opacity: 0.4;
}

.level-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.level-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--tier-color-1), var(--tier-color-2));
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Space Grotesk', monospace;
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
    flex-shrink: 0;
}

.level-card-info {
    flex: 1;
}

.level-number-small {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.level-name {
    font-family: 'Space Grotesk', monospace;
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    margin: 4px 0 0 0;
}

.level-xp {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: #4299e1;
    margin-top: 8px;
}

.level-perks-mini {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.perk-mini {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
}

.perk-mini i {
    color: var(--tier-color-1);
    margin-top: 2px;
    flex-shrink: 0;
}

/* Tier Colors */
.tier-novice {
    --tier-color-1: #48bb78;
    --tier-color-2: #38a169;
}

.tier-intermediate {
    --tier-color-1: #4299e1;
    --tier-color-2: #3182ce;
}

.tier-advanced {
    --tier-color-1: #ed8936;
    --tier-color-2: #dd6b20;
}

.tier-expert {
    --tier-color-1: #9f7aea;
    --tier-color-2: #805ad5;
}

.tier-master {
    --tier-color-1: #ffd700;
    --tier-color-2: #ff8c00;
}

/* Status Badges */
.level-status {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 10px;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.level-status.current {
    background: rgba(66, 153, 225, 0.3);
    color: #4299e1;
    border: 1px solid #4299e1;
}

.level-status.unlocked {
    background: rgba(0, 255, 136, 0.2);
    color: #00ff88;
    border: 1px solid rgba(0, 255, 136, 0.3);
}

.level-status.locked {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Responsive */
@media (max-width: 968px) {
    .current-level-section {
        grid-template-columns: 1fr;
        text-align: center;
        justify-items: center;
    }

    .current-level-info {
        align-items: center;
    }

    .level-stats {
        justify-content: center;
        flex-wrap: wrap;
    }

    .current-level-perks {
        width: 100%;
    }

    .tier-tabs {
        gap: 8px;
    }

    .tier-tab {
        min-width: 100px;
        padding: 12px 16px;
    }

    .tier-tab i {
        font-size: 20px;
    }

    .tier-tab span {
        font-size: 13px;
    }

    .levels-roadmap {
        grid-template-columns: 1fr;
    }

    .main-content {
        padding-bottom: 80px;
    }
}

@media (max-width: 640px) {
    .xp-summary {
        flex-direction: column;
        gap: 12px;
    }

    .level-title {
        font-size: 24px;
    }

    .level-description {
        font-size: 14px;
    }
}
