Achivement System
This commit is contained in:
@@ -1026,3 +1026,351 @@ body {
|
||||
gap: 1.5rem;
|
||||
}
|
||||
}
|
||||
|
||||
/* ==================== ACHIEVEMENT STYLES ==================== */
|
||||
|
||||
.achievements-section {
|
||||
margin-bottom: 3rem;
|
||||
}
|
||||
|
||||
.achievements-header {
|
||||
text-align: center;
|
||||
margin-bottom: 2rem;
|
||||
}
|
||||
|
||||
.achievements-header h2 {
|
||||
font-size: 2.5rem;
|
||||
font-weight: 700;
|
||||
background: linear-gradient(135deg, #ffd700, #ff6b35);
|
||||
-webkit-background-clip: text;
|
||||
-webkit-text-fill-color: transparent;
|
||||
background-clip: text;
|
||||
margin-bottom: 0.5rem;
|
||||
}
|
||||
|
||||
.achievements-header p {
|
||||
color: #8892b0;
|
||||
font-size: 1.1rem;
|
||||
}
|
||||
|
||||
/* Achievement Stats */
|
||||
.achievement-stats {
|
||||
display: flex;
|
||||
gap: 1rem;
|
||||
margin-bottom: 2rem;
|
||||
flex-wrap: wrap;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.achievement-stat {
|
||||
background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
|
||||
border: 1px solid #2a2a3e;
|
||||
border-radius: 1rem;
|
||||
padding: 1.5rem;
|
||||
text-align: center;
|
||||
min-width: 150px;
|
||||
flex: 1;
|
||||
max-width: 200px;
|
||||
}
|
||||
|
||||
.achievement-stat .stat-number {
|
||||
font-size: 2rem;
|
||||
font-weight: 700;
|
||||
color: #00d4ff;
|
||||
margin-bottom: 0.5rem;
|
||||
}
|
||||
|
||||
.achievement-stat .stat-label {
|
||||
color: #8892b0;
|
||||
font-size: 0.9rem;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
/* Achievement Categories */
|
||||
.achievement-categories {
|
||||
background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
|
||||
border: 1px solid #2a2a3e;
|
||||
border-radius: 1rem;
|
||||
padding: 2rem;
|
||||
}
|
||||
|
||||
.category-tabs {
|
||||
display: flex;
|
||||
gap: 0.5rem;
|
||||
margin-bottom: 2rem;
|
||||
flex-wrap: wrap;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.category-tab {
|
||||
background: transparent;
|
||||
border: 1px solid #2a2a3e;
|
||||
color: #8892b0;
|
||||
padding: 0.75rem 1.5rem;
|
||||
border-radius: 0.5rem;
|
||||
cursor: pointer;
|
||||
transition: all 0.3s ease;
|
||||
font-family: inherit;
|
||||
font-size: 0.9rem;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.category-tab:hover {
|
||||
background: #2a2a3e;
|
||||
color: #ffffff;
|
||||
}
|
||||
|
||||
.category-tab.active {
|
||||
background: linear-gradient(135deg, #00d4ff, #ff6b35);
|
||||
border-color: transparent;
|
||||
color: #ffffff;
|
||||
}
|
||||
|
||||
/* Achievements Grid */
|
||||
.achievements-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
|
||||
gap: 1.5rem;
|
||||
}
|
||||
|
||||
.achievement-card {
|
||||
background: linear-gradient(135deg, #0f1419 0%, #1a1a2e 100%);
|
||||
border: 1px solid #2a2a3e;
|
||||
border-radius: 1rem;
|
||||
padding: 1.5rem;
|
||||
cursor: pointer;
|
||||
transition: all 0.3s ease;
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.achievement-card:hover {
|
||||
transform: translateY(-2px);
|
||||
border-color: #00d4ff;
|
||||
box-shadow: 0 8px 25px rgba(0, 212, 255, 0.1);
|
||||
}
|
||||
|
||||
.achievement-card.completed {
|
||||
border-color: #10b981;
|
||||
background: linear-gradient(135deg, #064e3b 0%, #1a1a2e 100%);
|
||||
}
|
||||
|
||||
.achievement-card.completed:hover {
|
||||
border-color: #10b981;
|
||||
box-shadow: 0 8px 25px rgba(16, 185, 129, 0.1);
|
||||
}
|
||||
|
||||
.achievement-card.incomplete {
|
||||
opacity: 0.7;
|
||||
}
|
||||
|
||||
.achievement-card.incomplete:hover {
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
.achievement-icon {
|
||||
font-size: 2.5rem;
|
||||
margin-bottom: 1rem;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.achievement-content {
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.achievement-name {
|
||||
font-size: 1.2rem;
|
||||
font-weight: 600;
|
||||
color: #ffffff;
|
||||
margin-bottom: 0.5rem;
|
||||
}
|
||||
|
||||
.achievement-description {
|
||||
color: #8892b0;
|
||||
font-size: 0.9rem;
|
||||
line-height: 1.4;
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
|
||||
.achievement-meta {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
flex-wrap: wrap;
|
||||
gap: 0.5rem;
|
||||
}
|
||||
|
||||
.achievement-points {
|
||||
color: #ffd700;
|
||||
font-weight: 600;
|
||||
font-size: 0.9rem;
|
||||
}
|
||||
|
||||
.achievement-progress {
|
||||
color: #00d4ff;
|
||||
font-size: 0.8rem;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.achievement-status {
|
||||
position: absolute;
|
||||
top: 1rem;
|
||||
right: 1rem;
|
||||
font-size: 1.2rem;
|
||||
}
|
||||
|
||||
/* Achievement Loading States */
|
||||
.achievements-loading {
|
||||
text-align: center;
|
||||
padding: 3rem;
|
||||
color: #8892b0;
|
||||
}
|
||||
|
||||
.achievements-not-available {
|
||||
text-align: center;
|
||||
padding: 3rem;
|
||||
}
|
||||
|
||||
.not-available-content {
|
||||
max-width: 400px;
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
.not-available-icon {
|
||||
font-size: 4rem;
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
|
||||
.not-available-content h3 {
|
||||
color: #ffffff;
|
||||
margin-bottom: 1rem;
|
||||
font-size: 1.5rem;
|
||||
}
|
||||
|
||||
.not-available-content p {
|
||||
color: #8892b0;
|
||||
margin-bottom: 2rem;
|
||||
line-height: 1.5;
|
||||
}
|
||||
|
||||
/* No Achievements State */
|
||||
.no-achievements {
|
||||
text-align: center;
|
||||
padding: 3rem;
|
||||
color: #8892b0;
|
||||
grid-column: 1 / -1;
|
||||
}
|
||||
|
||||
.no-achievements-icon {
|
||||
font-size: 3rem;
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
|
||||
.no-achievements h3 {
|
||||
color: #ffffff;
|
||||
margin-bottom: 0.5rem;
|
||||
font-size: 1.3rem;
|
||||
}
|
||||
|
||||
/* Achievement Notifications */
|
||||
.achievement-notification {
|
||||
position: fixed;
|
||||
top: 2rem;
|
||||
right: 2rem;
|
||||
background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
|
||||
border: 1px solid #10b981;
|
||||
border-radius: 1rem;
|
||||
padding: 1.5rem;
|
||||
box-shadow: 0 8px 25px rgba(16, 185, 129, 0.2);
|
||||
z-index: 1000;
|
||||
max-width: 350px;
|
||||
animation: slideInRight 0.3s ease;
|
||||
}
|
||||
|
||||
@keyframes slideInRight {
|
||||
from {
|
||||
transform: translateX(100%);
|
||||
opacity: 0;
|
||||
}
|
||||
to {
|
||||
transform: translateX(0);
|
||||
opacity: 1;
|
||||
}
|
||||
}
|
||||
|
||||
.notification-content {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 1rem;
|
||||
}
|
||||
|
||||
.notification-icon {
|
||||
font-size: 2rem;
|
||||
}
|
||||
|
||||
.notification-text h4 {
|
||||
color: #ffffff;
|
||||
margin-bottom: 0.25rem;
|
||||
font-size: 1.1rem;
|
||||
}
|
||||
|
||||
.notification-text p {
|
||||
color: #8892b0;
|
||||
font-size: 0.9rem;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.notification-close {
|
||||
background: none;
|
||||
border: none;
|
||||
color: #8892b0;
|
||||
font-size: 1.5rem;
|
||||
cursor: pointer;
|
||||
padding: 0;
|
||||
margin-left: auto;
|
||||
transition: color 0.3s ease;
|
||||
}
|
||||
|
||||
.notification-close:hover {
|
||||
color: #ffffff;
|
||||
}
|
||||
|
||||
/* Mobile Responsiveness for Achievements */
|
||||
@media (max-width: 768px) {
|
||||
.achievements-header h2 {
|
||||
font-size: 2rem;
|
||||
}
|
||||
|
||||
.achievement-stats {
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.achievement-stat {
|
||||
width: 100%;
|
||||
max-width: 250px;
|
||||
}
|
||||
|
||||
.category-tabs {
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.category-tab {
|
||||
width: 100%;
|
||||
max-width: 200px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.achievements-grid {
|
||||
grid-template-columns: 1fr;
|
||||
gap: 1rem;
|
||||
}
|
||||
|
||||
.achievement-notification {
|
||||
top: 1rem;
|
||||
right: 1rem;
|
||||
left: 1rem;
|
||||
max-width: none;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user