/* === ВИДЖЕТ ДОСТИЖЕНИЙ === */
.achievements-widget-link {
display: block;
text-decoration: none!important;
color: inherit!important;
}
.achievements-widget {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
border-radius: 12px;
padding: 16px;
color: white;
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
transition: transform 0.2s ease, box-shadow 0.2s ease;
cursor: pointer;
}
.achievements-widget:hover {
transform: translateY(-2px);
box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}
.achievements-widget-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 12px;
}
.achievements-widget-title {
font-weight: 600;
font-size: 1.1rem;
}
.achievements-widget-count {
font-size: 0.9rem;
opacity: 0.9;
}
.achievements-progress-bar {
background: rgba(255, 255, 255, 0.2);
border-radius: 10px;
height: 6px;
margin-bottom: 12px;
overflow: hidden;
}
.achievements-progress-fill {
background: #4ade80;
height: 100%;
border-radius: 10px;
transition: width 0.5s ease;
}
.achievements-items {
display: flex;
justify-content: space-between;
gap: 8px;
}
.widget-achievement {
flex: 1;
position: relative;
text-align: center;
padding: 8px 4px;
border-radius: 8px;
transition: all 0.3s ease;
}
.widget-achievement.unlocked {
background: rgba(255, 255, 255, 0.9);
color: #333;
opacity: 1;
}
.widget-achievement.locked {
background: rgba(255, 255, 255, 0.2);
color: white;
opacity: 0.6;
}
.widget-achievement-icon {
font-size: 1.4rem;
margin-bottom: 4px;
}
.widget-achievement-name {
font-size: 0.65rem;
line-height: 1.2;
margin-bottom: 4px;
height: 2.4rem;
display: flex;
align-items: center;
justify-content: center;
}
.widget-achievement.unlocked .widget-achievement-name {
font-weight: 600;
}
.widget-achievement.locked .widget-achievement-name {
font-weight: 400;
}
.widget-progress-bg {
background: rgba(0, 0, 0, 0.1);
border-radius: 4px;
height: 4px;
overflow: hidden;
margin-top: 2px;
}
.widget-progress-fill {
background: #4ade80;
height: 100%;
transition: width 0.5s ease;
}
.widget-achievement-info {
font-size: 0.55rem;
opacity: 0.7;
margin-top: 2px;
}
.achievements-click-hint {
text-align: center;
margin-top: 10px;
font-size: 0.8rem;
opacity: 0.8;
}

/* === УВЕДОМЛЕНИЯ === */
#achievement-notifications {
position: fixed;
bottom: 20px;
left: 20px;
z-index: 10000;
}
.achievement-notification {
background: rgba(0, 0, 0, 0.85);
color: white!important;
padding: 14px 18px;
border-radius: 8px;
margin-bottom: 12px;
min-width: 280px;
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.35);
transform: translateX(-120%);
opacity: 0;
transition: transform 0.35s ease, opacity 0.35s ease;
font-size: 14px;
cursor: pointer;
text-decoration: none!important;
display: block;
}
.achievement-notification.show {
transform: translateX(0);
opacity: 1;
}

/* === СТРАНИЦА ДОСТИЖЕНИЙ === */
.achievement-card {
border: none;
border-radius: 12px;
overflow: hidden;
position: relative;
transition: transform 0.25s ease, box-shadow 0.25s ease;
will-change: transform;
width: 100%;
height: 100%;
}
.achievement-card:hover {
transform: scale(1.03);
box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
z-index: 1;
}
.achievement-card.unlocked {
background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
color: white;
box-shadow: 0 6px 16px rgba(37, 117, 252, 0.4);
}
.achievement-card.locked {
background: #f8f9fa;
color: #6c757d;
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}
.achievement-icon {
font-size: 3rem;
margin-bottom: 1rem;
}
.achievement-card.unlocked .card-title {
color: white;
}
.achievement-card.unlocked .card-text {
opacity: 0.7;
}
.ach-new-badge {
position: absolute;
top: 8px;
left: 8px;
font-size: 0.7rem;
padding: 4px 6px;
border-radius: 12px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
z-index: 2;
}