/* Level Pass Styles */

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: white;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.back-button {
    position: absolute;
    top: 20px;
    left: 20px;
    padding: 10px 20px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s;
    font-weight: bold;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.back-button:hover {
    background: rgba(0, 0, 0, 0.8);
}

.pass-container {
    width: 90%;
    max-width: 1000px;
    margin-top: 60px;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

h1 {
    margin: 0 0 20px 0;
    font-size: 2.5em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    background: linear-gradient(to right, #fff, #ccc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.level-display {
    font-size: 1.5em;
    margin-bottom: 20px;
    font-weight: bold;
}

.progress-bar-container {
    width: 100%;
    height: 20px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 40px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #00ff00, #00cc00);
    width: 0%;
    transition: width 1s ease-out;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
}

.milestones-container {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
}

.milestones-scroll {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 20px;
    height: 100%;
    align-items: center;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}

.milestones-scroll::-webkit-scrollbar {
    height: 8px;
}

.milestones-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.milestones-scroll::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

.milestone-card {
    min-width: 250px;
    height: 320px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
}

.milestone-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.milestone-card.locked {
    opacity: 0.6;
    filter: grayscale(0.8);
}

.milestone-card.available {
    border: 2px solid #00ff00;
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.3);
    background: rgba(0, 255, 0, 0.05);
}

.milestone-card.claimed {
    border: 2px solid #ffd700;
    background: rgba(255, 215, 0, 0.05);
}

.milestone-level {
    font-size: 1.2em;
    font-weight: bold;
    padding: 5px 15px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 20px;
    margin-bottom: 15px;
}

.reward-preview {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.no-reward {
    color: #888;
    font-style: italic;
}

.claim-button {
    background: linear-gradient(135deg, #00ff00, #00aa00);
    border: none;
    padding: 10px 20px;
    color: black;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    width: 100%;
    font-size: 1em;
}

.claim-button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.5);
}

.claimed-badge {
    color: #ffd700;
    font-weight: bold;
    font-size: 1.1em;
    padding: 10px;
    border: 1px solid #ffd700;
    border-radius: 5px;
    width: 100%;
    text-align: center;
}

.locked-badge {
    color: #aaa;
    font-size: 0.9em;
    padding: 10px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 5px;
    width: 100%;
    text-align: center;
}

.loading {
    width: 100%;
    text-align: center;
    font-size: 1.5em;
    color: #aaa;
    padding: 50px;
}