Spaces:
Sleeping
Sleeping
File size: 4,471 Bytes
72fb4c5 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 | /* ========================================
NOVA AI GAMES - Components
Reusable UI Components
======================================== */
/* Glass Card Effect */
.glass-card {
background: var(--bg-glass);
backdrop-filter: blur(20px);
-webkit-backdrop-filter: blur(20px);
border: 1px solid rgba(255, 255, 255, 0.08);
border-radius: var(--radius-lg);
padding: var(--spacing-lg);
}
/* Buttons */
.btn {
padding: var(--spacing-md) var(--spacing-xl);
border: none;
border-radius: var(--radius-md);
font-size: 16px;
font-weight: 600;
cursor: pointer;
transition: all var(--transition-fast);
}
.btn:active {
transform: scale(0.98);
}
.btn-primary {
background: var(--accent-gradient);
color: white;
box-shadow: var(--shadow-glow);
}
.btn-secondary {
background: var(--bg-glass);
color: var(--text-primary);
border: 1px solid rgba(255, 255, 255, 0.1);
}
/* Progress Bar */
.progress-bar {
flex: 1;
height: 8px;
background: var(--bg-tertiary);
border-radius: var(--radius-full);
overflow: hidden;
}
.progress-fill {
height: 100%;
background: var(--accent-gradient);
border-radius: var(--radius-full);
transition: width var(--transition-normal);
}
/* Toggle Switch */
.toggle {
position: relative;
width: 48px;
height: 28px;
}
.toggle input {
opacity: 0;
width: 0;
height: 0;
}
.toggle-slider {
position: absolute;
inset: 0;
background: var(--bg-tertiary);
border-radius: var(--radius-full);
cursor: pointer;
transition: all var(--transition-fast);
}
.toggle-slider::before {
content: '';
position: absolute;
width: 22px;
height: 22px;
left: 3px;
top: 3px;
background: white;
border-radius: var(--radius-full);
transition: all var(--transition-fast);
}
.toggle input:checked+.toggle-slider {
background: var(--accent-gradient);
}
.toggle input:checked+.toggle-slider::before {
transform: translateX(20px);
}
/* Difficulty Badges */
.difficulty {
font-size: 11px;
padding: 2px 8px;
border-radius: var(--radius-sm);
font-weight: 500;
}
.difficulty.easy {
background: rgba(34, 197, 94, 0.2);
color: var(--easy);
}
.difficulty.medium {
background: rgba(245, 158, 11, 0.2);
color: var(--medium);
}
.difficulty.hard {
background: rgba(239, 68, 68, 0.2);
color: var(--hard);
}
.duration {
font-size: 11px;
color: var(--text-muted);
}
/* Coins Display */
.coins-display {
display: flex;
align-items: center;
gap: 6px;
background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(234, 179, 8, 0.1));
border: 1px solid rgba(245, 158, 11, 0.3);
padding: 6px 12px;
border-radius: var(--radius-full);
font-weight: 600;
color: #fbbf24;
}
.coins-display .coin-icon {
font-size: 16px;
}
.coins-display .coin-amount {
font-size: 14px;
}
/* AI Indicator Badge */
.ai-indicator {
display: flex;
justify-content: center;
margin-bottom: var(--spacing-md);
}
.ai-badge {
display: inline-flex;
align-items: center;
gap: 6px;
padding: 6px 14px;
border-radius: var(--radius-full);
font-size: 12px;
font-weight: 600;
animation: badgePulse 2s ease infinite;
}
.ai-badge:not(.local) {
background: linear-gradient(135deg, rgba(99, 102, 241, 0.3), rgba(168, 85, 247, 0.3));
border: 1px solid rgba(139, 92, 246, 0.5);
color: #a78bfa;
box-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
}
.ai-badge.local {
background: rgba(100, 116, 139, 0.2);
border: 1px solid rgba(148, 163, 184, 0.3);
color: var(--text-secondary);
}
@keyframes badgePulse {
0%,
100% {
opacity: 1;
}
50% {
opacity: 0.7;
}
}
/* Particle Effects */
.particles-container {
position: absolute;
inset: 0;
pointer-events: none;
overflow: hidden;
}
.particle {
position: absolute;
border-radius: 50%;
animation: particleFloat 0.8s ease-out forwards;
}
@keyframes particleFloat {
0% {
opacity: 1;
transform: translate(0, 0) scale(1);
}
100% {
opacity: 0;
transform: translate(var(--tx), var(--ty)) scale(0);
}
} |