/* Milestones Page Styles - Premium Galaxy Edition */

/* Level Header */
.level-header {
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 20px 40px;
    border-radius: 20px;
    margin-bottom: 50px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.level-circle {
    position: relative;
    width: 80px;
    height: 80px;
}

.circular-chart {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    max-height: 100%;
}

.circle-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.1);
    stroke-width: 3;
}

.circle {
    fill: none;
    stroke: var(--primary-color);
    stroke-width: 3;
    stroke-linecap: round;
    transition: stroke-dasharray 1s ease;
}

.level-number {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    line-height: 1;
}

.level-number .label {
    display: block;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.6);
}

.level-number .value {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
}

.xp-info {
    flex: 1;
}

.xp-text {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

.xp-bar-container {
    width: 100%;
    height: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 8px;
}

.xp-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 10px;
    transition: width 0.5s ease;
    box-shadow: 0 0 10px var(--primary-color);
}

.xp-next {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
}

.streak-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 25px;
    border-radius: 15px;
    border: 1px solid rgba(255, 100, 50, 0.3);
}

.streak-badge i {
    font-size: 1.5rem;
    color: #ff6b35;
    margin-bottom: 5px;
    animation: flicker 2s infinite;
}

@keyframes flicker {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.8;
        transform: scale(1.1);
    }
}

/* Galaxy Path */
.galaxy-path-container {
    padding: 40px;
    border-radius: 24px;
    margin-bottom: 40px;
    min-height: 400px;
}

.galaxy-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 20px;
}

.galaxy-stats {
    display: flex;
    gap: 20px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.galaxy-path {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    padding: 40px 0;
}

.galaxy-path::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-50%);
    z-index: 0;
}

.galaxy-node {
    position: relative;
    z-index: 1;
    width: 60px;
    height: 60px;
    background: var(--card-bg);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.galaxy-node.completed {
    border-color: #4caf50;
    background: rgba(76, 175, 80, 0.2);
    box-shadow: 0 0 15px rgba(76, 175, 80, 0.4);
}

.galaxy-node.current {
    border-color: var(--primary-color);
    background: rgba(0, 243, 255, 0.2);
    box-shadow: 0 0 20px var(--primary-color);
    transform: scale(1.2);
}

.galaxy-node.locked {
    opacity: 0.5;
    cursor: not-allowed;
}

.node-icon {
    font-size: 1.2rem;
    color: #fff;
}

.node-label {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.badges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 15px;
}

.badge-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 10px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.badge-item.locked {
    opacity: 0.3;
    filter: grayscale(100%);
}

.badge-icon {
    font-size: 2rem;
    margin-bottom: 5px;
}

.badge-name {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Career Cards Enhancements */
.career-card {
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.career-card.active {
    border: 2px solid var(--primary-color);
    background: rgba(0, 243, 255, 0.15);
    box-shadow: 0 0 30px rgba(0, 243, 255, 0.3);
    transform: scale(1.05);
    z-index: 2;
}

.career-card.waited {
    border: 1px solid rgba(173, 216, 230, 0.2);
    background: rgba(173, 216, 230, 0.05);
    opacity: 0.8;
}

.active-tag {
    position: absolute;
    top: -12px;
    right: 20px;
    background: var(--primary-color);
    color: #000;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 0 10px var(--primary-color);
}

.career-card.active h3 {
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(0, 243, 255, 0.5);
}

/* Responsive */
@media (max-width: 768px) {
    .level-header {
        flex-direction: column;
        text-align: center;
    }

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

    .galaxy-path {
        flex-direction: column;
        gap: 40px;
    }

    .galaxy-path::before {
        width: 2px;
        height: 100%;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
    }

    .node-label {
        bottom: auto;
        left: 80px;
        top: 50%;
        transform: translateY(-50%);
        text-align: left;
    }
}