/* Achievements Page */
.achievements-page {
    padding: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.header-content {
    flex: 1;
}

.page-title {
    font-size: 2rem;
    font-weight: 800;
    color: white;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.page-subtitle {
    color: rgba(255, 255, 255, 0.7);
    margin-top: 0.5rem;
    font-size: 1rem;
}

.header-stats {
    display: flex;
    gap: 1.5rem;
}

.stat-box {
    text-align: center;
    background: rgba(0, 0, 0, 0.2);
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    min-width: 100px;
}

.stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent);
}

.stat-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.25rem;
}

/* Progress Bar */
.overall-progress {
    margin-bottom: 2rem;
    background: rgba(0, 0, 0, 0.2);
    padding: 1.5rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.progress-bar-bg {
    height: 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), #ff9800);
    border-radius: 6px;
    transition: width 1s ease;
    box-shadow: 0 0 10px rgba(255, 193, 7, 0.3);
}

.progress-text {
    display: block;
    text-align: right;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent);
}

/* Filters */
.filters-scroll {
    overflow-x: auto;
    margin-bottom: 2rem;
    padding-bottom: 0.5rem;
    -webkit-overflow-scrolling: touch;
}

.filters-scroll::-webkit-scrollbar {
    height: 4px;
}

.filters-scroll::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
}

.filters {
    display: flex;
    gap: 0.75rem;
    min-width: min-content;
}

.filter-btn {
    padding: 0.6rem 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 99px;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    font-weight: 500;
    font-size: 0.9rem;
}

.filter-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.filter-btn.active {
    background: var(--accent);
    color: #3e2723;
    border-color: var(--accent);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.2);
    font-weight: 700;
}

/* Grid */
.achievements-grid-full {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.achievement-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.achievement-card:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
}

.achievement-card.locked {
    opacity: 0.6;
    filter: grayscale(1);
}

.achievement-card.unlocked {
    border-color: rgba(255, 193, 7, 0.3);
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.05), rgba(255, 255, 255, 0.02));
}

.ach-icon-wrapper {
    position: relative;
    width: 56px;
    height: 56px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    flex-shrink: 0;
}

.ach-status-icon {
    position: absolute;
    bottom: -6px;
    right: -6px;
    width: 24px;
    height: 24px;
    background: #2e7d32;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #3e2723;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.ach-status-icon i {
    width: 14px;
    height: 14px;
    color: white;
}

.achievement-card.locked .ach-status-icon {
    background: #424242;
}

.ach-content {
    flex: 1;
    min-width: 0;
}

.ach-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
    margin: 0 0 0.25rem 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ach-desc {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    margin: 0 0 0.75rem 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ach-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ach-xp {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent);
    background: rgba(255, 193, 7, 0.1);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    border: 1px solid rgba(255, 193, 7, 0.2);
}

.ach-date {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
}

/* Mobile */
@media (max-width: 768px) {
    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }

    .header-stats {
        width: 100%;
        justify-content: space-between;
    }

    .stat-box {
        flex: 1;
        padding: 0.75rem 0.5rem;
    }

    .achievements-grid-full {
        grid-template-columns: 1fr;
    }
}