/* ============================================
   ACHIEVEMENT MENU - MODERN DESIGN
   ============================================ */

.achievement-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 999;
}

.achievement-menu-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(135deg, rgba(10, 15, 25, 0.98) 0%, rgba(15, 25, 35, 0.98) 100%);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    z-index: 999;
}

/* Header */
.achievement-menu .menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 30px;
    background: rgba(0, 0, 0, 0.5);
    border-bottom: 2px solid rgba(0, 255, 136, 0.3);
    position: relative;
    flex-shrink: 0;
}

.achievement-menu h1 {
    color: #00ff88;
    text-shadow: 0 0 20px rgba(0, 255, 136, 0.5);
    font-size: 26px;
    font-weight: 700;
    margin: 0;
    letter-spacing: 2px;
}

.achievement-menu .close-btn {
    background: rgba(255, 107, 107, 0.2);
    border: 2px solid #ff6b6b;
    color: #ff6b6b;
    font-size: 24px;
    font-weight: 700;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.achievement-menu .close-btn:hover {
    background: rgba(255, 107, 107, 0.4);
    box-shadow: 0 0 20px rgba(255, 107, 107, 0.5);
    transform: scale(1.1);
}

/* Menu Navigation - используется общий файл menu-navigation.css */

/* Container */
.achievements-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 20px;
}

/* Stats Section */
.achievements-stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 15px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    border: 2px solid rgba(0, 255, 136, 0.3);
    flex-shrink: 0;
}

.achievements-stats .stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.achievements-stats .stat-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.achievements-stats .stat-value {
    font-size: 28px;
    font-weight: 700;
    color: #00ff88;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

/* Achievements List */
.achievements-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px;
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Achievement Item */
.achievement-item {
    transition: all 0.3s ease;
    position: relative;
}

.achievement-card {
    background: linear-gradient(135deg, rgba(20, 30, 50, 0.95) 0%, rgba(15, 25, 40, 0.95) 100%);
    border: 2px solid rgba(0, 255, 136, 0.2);
    border-radius: 12px;
    padding: 16px 20px;
    display: flex;
    gap: 16px;
    align-items: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-height: 90px;
}

.achievement-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 136, 0.1), transparent);
    transition: left 0.5s ease;
}

.achievement-item:hover .achievement-card::before {
    left: 100%;
}

.achievement-item.unlocked .achievement-card {
    border-color: rgba(0, 255, 136, 0.4);
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.08) 0%, rgba(15, 25, 40, 0.95) 100%);
}

.achievement-item.unlocked .achievement-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #00ff88, #00cc6a);
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

.achievement-item.locked .achievement-card {
    opacity: 0.6;
    filter: grayscale(0.5);
}

.achievement-item:hover .achievement-card {
    transform: translateX(5px);
    box-shadow: 0 4px 20px rgba(0, 255, 136, 0.3);
    border-color: rgba(0, 255, 136, 0.6);
}

/* Achievement Image */
.achievement-image {
    position: relative;
    width: 60px;
    height: 60px;
    flex-shrink: 0;
}

.achievement-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
    filter: drop-shadow(0 0 8px rgba(0, 255, 136, 0.3));
}

.achievement-icon {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    background: rgba(0, 255, 136, 0.1);
    border-radius: 8px;
    border: 2px solid rgba(0, 255, 136, 0.3);
}

.achievement-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #00ff88, #00cc6a);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: #000;
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.6);
    animation: badge-pulse 2s infinite;
    border: 2px solid rgba(0, 0, 0, 0.3);
}

.achievement-lock {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 24px;
    height: 24px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

@keyframes badge-pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 15px rgba(0, 255, 136, 0.6);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 0 25px rgba(0, 255, 136, 0.8);
    }
}

/* Achievement Info */
.achievement-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.achievement-title {
    font-size: 16px;
    font-weight: 700;
    color: #00ff88;
    margin: 0;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.3);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.achievement-desc {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.achievement-reward {
    font-size: 13px;
    font-weight: 600;
    color: #00ff88;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.achievement-reward .stat-icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
    vertical-align: middle;
    filter: drop-shadow(0 0 4px rgba(0, 255, 136, 0.5));
    margin-right: 2px;
}

.achievement-status {
    font-size: 13px;
    font-weight: 600;
    color: rgba(0, 255, 136, 0.6);
    display: flex;
    align-items: center;
    gap: 5px;
    font-style: italic;
    margin-top: 4px;
}

/* Progress Bar */
.achievement-progress {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 6px;
}

.achievement-progress .progress-text {
    font-size: 12px;
    font-weight: 600;
    color: rgba(0, 255, 136, 0.8);
    text-shadow: 0 0 8px rgba(0, 255, 136, 0.4);
    white-space: nowrap;
    min-width: 60px;
}

.achievement-progress .progress-bar {
    flex: 1;
    height: 8px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid rgba(0, 255, 136, 0.3);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.5);
    position: relative;
}

.achievement-progress .progress-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.1) 50%, 
        transparent 100%);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

.achievement-progress .progress-fill {
    height: 100%;
    min-width: 2px;
    background: linear-gradient(90deg, 
        #00cc70 0%, 
        #00ff88 50%, 
        #00ffaa 100%);
    border-radius: 3px;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 0 10px rgba(0, 255, 136, 0.6),
        inset 0 1px 1px rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.achievement-progress .progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.3) 50%,
        transparent 100%);
    animation: progress-shine 2s infinite;
}

@keyframes progress-shine {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(200%);
    }
}

/* Scrollbar */
.achievements-grid::-webkit-scrollbar {
    width: 8px;
}

.achievements-grid::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
}

.achievements-grid::-webkit-scrollbar-thumb {
    background: rgba(0, 255, 136, 0.3);
    border-radius: 4px;
}

.achievements-grid::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 255, 136, 0.5);
}

/* Button Icon */
.achievement-menu-btn .menu-btn-emoji {
    font-size: 24px;
    line-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    filter: drop-shadow(0 0 4px rgba(255, 215, 0, 0.5));
    transition: all 0.3s ease;
}

.achievement-menu-btn:hover .menu-btn-emoji {
    transform: scale(1.1);
    filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.8));
}

.achievement-menu-btn.active-menu .menu-btn-emoji {
    transform: scale(1.15);
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 1));
}
