Spaces:
Running
Running
File size: 5,707 Bytes
d8c9b50 e75fa0d d8c9b50 e75fa0d d8c9b50 e75fa0d d8c9b50 e75fa0d d8c9b50 e75fa0d d8c9b50 | 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 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 | /* Additional custom styles for CardForge */
/* Smooth transitions for all interactive elements */
button, input, textarea {
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
/* Line clamp utilities */
.line-clamp-3 {
display: -webkit-box;
-webkit-line-clamp: 3;
-webkit-box-orient: vertical;
overflow: hidden;
}
.line-clamp-4 {
display: -webkit-box;
-webkit-line-clamp: 4;
-webkit-box-orient: vertical;
overflow: hidden;
}
/* Animation for section expansion */
@keyframes slideDown {
from {
opacity: 0;
transform: translateY(-10px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.section-collapse.open {
animation: slideDown 0.3s ease;
}
/* Custom focus styles */
.glass-input:focus {
caret-color: #818cf8;
}
/* Glass morphism enhancement for WebKit browsers */
@supports (-webkit-backdrop-filter: none) or (backdrop-filter: none) {
.glass-panel {
-webkit-backdrop-filter: blur(12px);
backdrop-filter: blur(12px);
}
}
/* Firefox scrollbar styling */
* {
scrollbar-width: thin;
scrollbar-color: rgba(99, 102, 241, 0.5) rgba(15, 23, 42, 0.5);
}
/* Prevent image dragging */
img {
-webkit-user-drag: none;
user-select: none;
}
/* Textarea resize animation */
textarea {
transition: height 0.2s ease;
}
/* Button press effect */
.btn-primary:active, .btn-secondary:active {
transform: scale(0.98);
}
/* Loading spinner for async operations */
@keyframes spin {
to {
transform: rotate(360deg);
}
}
.loading {
animation: spin 1s linear infinite;
}
/* Shimmer loading effect */
@keyframes shimmer {
0% {
background-position: -200% 0;
}
100% {
background-position: 200% 0;
}
}
.shimmer {
background: linear-gradient(90deg, rgba(255,255,255,0.05) 25%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0.05) 75%);
background-size: 200% 100%;
animation: shimmer 2s infinite;
}
/* Floating animation */
@keyframes float {
0%, 100% {
transform: translateY(0px);
}
50% {
transform: translateY(-10px);
}
}
.float {
animation: float 3s ease-in-out infinite;
}
/* Pulse glow */
@keyframes pulse-glow {
0%, 100% {
box-shadow: 0 0 5px rgba(99, 102, 241, 0.5);
}
50% {
box-shadow: 0 0 20px rgba(99, 102, 241, 0.8);
}
}
.pulse-glow {
animation: pulse-glow 2s ease-in-out infinite;
}
/* Smooth section transitions */
.section-collapse {
max-height: 0;
overflow: hidden;
transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
opacity: 0;
}
.section-collapse.open {
opacity: 1;
}
/* Better toggle icon rotation */
.toggle-icon {
transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
/* Gradient text animation */
@keyframes gradient-shift {
0%, 100% {
background-position: 0% 50%;
}
50% {
background-position: 100% 50%;
}
}
.animate-gradient {
background-size: 200% 200%;
animation: gradient-shift 3s ease infinite;
}
/* Field status indicators */
.field-status-complete {
color: #4ade80;
}
.field-status-empty {
color: #6b7280;
}
/* Card hover lift effect */
.character-card {
transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.character-card:hover {
transform: translateY(-2px);
box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}
/* Custom scrollbar for extract content */
#extract-content::-webkit-scrollbar {
width: 6px;
}
#extract-content::-webkit-scrollbar-thumb {
background: rgba(99, 102, 241, 0.3);
border-radius: 3px;
}
#extract-content::-webkit-scrollbar-thumb:hover {
background: rgba(99, 102, 241, 0.5);
}
/* Card shine effect */
.character-card::before {
content: '';
position: absolute;
top: 0;
left: -100%;
width: 100%;
height: 100%;
background: linear-gradient(
90deg,
transparent,
rgba(255, 255, 255, 0.1),
transparent
);
transition: left 0.5s;
pointer-events: none;
}
.character-card:hover::before {
left: 100%;
}
/* Tag hover effect */
.tag-pill {
transition: all 0.2s ease;
}
.tag-pill:hover {
transform: translateY(-1px);
background: rgba(99, 102, 241, 0.3);
box-shadow: 0 2px 8px rgba(99, 102, 241, 0.2);
}
/* Toast animation refinement */
#toast-container > div {
animation: toastSlide 0.3s ease forwards;
}
@keyframes toastSlide {
from {
opacity: 0;
transform: translateX(100%) scale(0.9);
}
to {
opacity: 1;
transform: translateX(0) scale(1);
}
}
/* Responsive adjustments */
@media (max-width: 1024px) {
.glass-panel {
backdrop-filter: blur(8px);
}
#create-mode {
height: auto;
min-height: calc(100vh - 8rem);
}
.character-card {
max-width: 400px;
margin: 0 auto;
}
}
@media (max-width: 640px) {
.glass-panel {
padding: 1rem;
}
.preview-avatar {
height: 200px;
}
}
/* Print styles for exported cards */
@media print {
body {
background: white;
}
.glass-panel {
background: white;
border: 1px solid #ccc;
box-shadow: none;
}
}
/* High contrast mode support */
@media (prefers-contrast: high) {
.glass-input {
border-width: 2px;
}
.btn-primary {
border: 2px solid currentColor;
}
}
/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
* {
animation-duration: 0.01ms !important;
animation-iteration-count: 1 !important;
transition-duration: 0.01ms !important;
}
} |