.color-card-wrapper{width:100%}.color-card{border-radius:16px;padding:24px;min-height:280px;display:flex;flex-direction:column;justify-content:space-between;position:relative;overflow:hidden;transition:all .3s cubic-bezier(.4,0,.2,1);cursor:pointer;box-shadow:0 8px 32px #0000001a}.color-card:hover{transform:translateY(-8px) scale(1.02);box-shadow:0 20px 60px #0003}.color-card:before{content:"";position:absolute;top:0;left:0;right:0;bottom:0;background:linear-gradient(135deg,rgba(255,255,255,.1) 0%,transparent 50%,rgba(0,0,0,.1) 100%);pointer-events:none}.color-preview{flex:1;min-height:120px;border-radius:12px;background:#ffffff1a;backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);border:1px solid rgba(255,255,255,.2);margin-bottom:20px;position:relative;overflow:hidden}.color-preview:after{content:"";position:absolute;top:50%;left:50%;width:60px;height:60px;background:#fff3;border-radius:50%;transform:translate(-50%,-50%);transition:all .3s ease}.color-card:hover .color-preview:after{width:80px;height:80px;background:#ffffff4d}.color-info{z-index:2;position:relative}.color-name{font-size:18px;font-weight:600;margin-bottom:16px;text-align:center;text-shadow:0 2px 4px rgba(0,0,0,.3)}.color-values{display:flex;flex-direction:column;gap:8px}.color-value{display:flex;justify-content:space-between;align-items:center;padding:8px 12px;background:#ffffff1a;backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);border:1px solid rgba(255,255,255,.2);border-radius:8px;cursor:pointer;transition:all .2s ease;position:relative}.color-value:hover{background:#fff3;transform:translate(4px)}.color-value .label{font-size:12px;font-weight:500;opacity:.8;text-transform:uppercase;letter-spacing:.5px}.color-value .value{display:flex;align-items:center;gap:8px;font-size:13px;font-weight:500;font-family:Monaco,Menlo,monospace}.color-value .value svg{opacity:.6;transition:opacity .2s ease}.color-value:hover .value svg{opacity:1}.color-value[data-tooltip]:hover:before{content:attr(data-tooltip);position:absolute;bottom:100%;left:50%;transform:translate(-50%);background:#000c;color:#fff;padding:6px 10px;border-radius:4px;font-size:11px;white-space:nowrap;margin-bottom:8px;z-index:10}@media (max-width: 768px){.color-card{min-height:240px;padding:20px}.color-preview{min-height:100px;margin-bottom:16px}.color-name{font-size:16px;margin-bottom:12px}.color-value{padding:6px 10px}.color-value .value{font-size:12px}}@media (max-width: 480px){.color-card{min-height:200px;padding:16px}.color-preview{min-height:80px;margin-bottom:12px}.color-name{font-size:14px;margin-bottom:10px}}.export-modal-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:#000000b3;backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);display:flex;align-items:center;justify-content:center;z-index:1000;padding:20px;animation:fadeIn .3s ease-out}.export-modal{width:100%;max-width:800px;max-height:90vh;display:flex;flex-direction:column;animation:slideUp .3s ease-out}@keyframes slideUp{0%{opacity:0;transform:translateY(30px) scale(.95)}to{opacity:1;transform:translateY(0) scale(1)}}.export-header{display:flex;justify-content:space-between;align-items:center;padding:24px;border-bottom:1px solid var(--glass-border)}.export-header h2{color:var(--text-primary);font-size:1.5rem;font-weight:600;margin:0}.close-btn{background:none;border:none;color:var(--text-secondary);cursor:pointer;padding:8px;border-radius:8px;transition:var(--transition);display:flex;align-items:center;justify-content:center}.close-btn:hover{background:#ffffff1a;color:var(--text-primary)}.export-content{padding:24px;display:flex;flex-direction:column;gap:24px;overflow-y:auto;flex:1}.format-selector h3,.preview-section h3{color:var(--text-primary);font-size:1.1rem;font-weight:600;margin-bottom:16px}.format-buttons{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:12px}.format-btn{background:var(--glass-bg);border:1px solid var(--glass-border);border-radius:8px;padding:12px 16px;color:var(--text-primary);font-weight:500;cursor:pointer;transition:var(--transition);font-size:13px;text-align:center}.format-btn:hover{background:#ffffff26;transform:translateY(-2px)}.format-btn.active{background:linear-gradient(135deg,#667eea,#764ba2);border-color:transparent;box-shadow:0 4px 16px #667eea4d}.code-preview{background:#0000004d;border:1px solid var(--glass-border);border-radius:12px;padding:20px;max-height:300px;overflow-y:auto;font-family:Monaco,Menlo,monospace}.code-preview pre{margin:0;white-space:pre-wrap;word-wrap:break-word}.code-preview code{color:#e2e8f0;font-size:13px;line-height:1.5;display:block}.export-actions{display:flex;gap:16px;justify-content:flex-end;border-top:1px solid var(--glass-border);padding-top:24px;margin-top:auto}.code-preview::-webkit-scrollbar{width:6px}.code-preview::-webkit-scrollbar-track{background:#ffffff0d;border-radius:3px}.code-preview::-webkit-scrollbar-thumb{background:#fff3;border-radius:3px}.code-preview::-webkit-scrollbar-thumb:hover{background:#ffffff4d}@media (max-width: 768px){.export-modal-overlay{padding:16px}.export-modal{max-height:95vh}.export-header{padding:20px}.export-header h2{font-size:1.3rem}.export-content{padding:20px;gap:20px}.format-buttons{grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:8px}.format-btn{padding:10px 12px;font-size:12px}.code-preview{padding:16px;max-height:250px}.code-preview code{font-size:12px}.export-actions{flex-direction:column;gap:12px}.export-actions .btn{width:100%;justify-content:center}}@media (max-width: 480px){.export-modal-overlay{padding:12px}.export-header{padding:16px}.export-content{padding:16px;gap:16px}.format-buttons{grid-template-columns:1fr}.code-preview{padding:12px;max-height:200px}}.app{min-height:100vh;padding:20px}.container{max-width:1200px;margin:0 auto;display:flex;flex-direction:column;gap:32px}.header-content{text-align:center;padding:48px 32px}.logo{display:flex;align-items:center;justify-content:center;gap:16px;margin-bottom:16px}.logo h1{font-size:2.5rem;font-weight:700;color:var(--text-primary);margin:0}.subtitle{font-size:1.1rem;color:var(--text-secondary);font-weight:400}.controls{display:grid;grid-template-columns:1fr 1fr;gap:24px}.control-group{padding:24px}.control-group h3{color:var(--text-primary);font-size:1.1rem;font-weight:600;margin-bottom:16px}.purpose-buttons{display:grid;grid-template-columns:1fr 1fr;gap:12px}.purpose-btn{background:var(--glass-bg);border:1px solid var(--glass-border);border-radius:12px;padding:16px 12px;color:var(--text-primary);font-weight:500;cursor:pointer;transition:var(--transition);display:flex;flex-direction:column;align-items:center;gap:8px;font-size:13px;text-align:center;position:relative}.purpose-btn:hover{background:#ffffff26;transform:translateY(-2px)}.purpose-btn.active{background:linear-gradient(135deg,#667eea,#764ba2);border-color:transparent}.palette-select{width:100%;background:var(--glass-bg);border:1px solid var(--glass-border);border-radius:12px;padding:12px 16px;color:var(--text-primary);font-size:14px;margin-bottom:12px;cursor:pointer}.palette-select option{background:#1a1a2e;color:#fff}.description{color:var(--text-secondary);font-size:13px;line-height:1.4}.action-buttons{grid-column:span 2;display:flex;gap:16px;justify-content:center;flex-wrap:wrap}.palette-container{min-height:400px;display:flex;align-items:center;justify-content:center}.color-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:24px;width:100%;max-width:1000px}.placeholder{display:flex;flex-direction:column;align-items:center;gap:16px;padding:80px 40px;color:var(--text-secondary)}.placeholder p{font-size:1.1rem}.saved-palettes{margin-top:40px}.saved-palettes h3{color:var(--text-primary);font-size:1.3rem;font-weight:600;margin-bottom:24px;text-align:center}.saved-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:20px}.saved-palette{padding:20px;cursor:pointer;transition:var(--transition)}.saved-palette:hover{transform:translateY(-4px);background:#ffffff26}.saved-colors{display:flex;height:60px;border-radius:8px;overflow:hidden;margin-bottom:12px}.saved-color{flex:1}.saved-info{display:flex;justify-content:space-between;align-items:center}.saved-type{color:var(--text-primary);font-weight:500;font-size:14px;text-transform:capitalize}.saved-purpose{color:var(--text-secondary);font-size:12px;text-transform:capitalize}.spinning{animation:spin 1s linear infinite}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@media (max-width: 768px){.app{padding:16px}.container{gap:24px}.controls{grid-template-columns:1fr}.action-buttons{grid-column:span 1}.purpose-buttons{grid-template-columns:1fr}.logo h1{font-size:2rem}.header-content{padding:32px 24px}.color-grid{grid-template-columns:1fr;gap:16px}.saved-grid{grid-template-columns:1fr}}@media (max-width: 480px){.action-buttons{flex-direction:column;align-items:center}.btn{width:100%;max-width:250px}}.purpose-btn[data-tooltip]:hover:after{bottom:auto;top:100%;margin-bottom:0;margin-top:8px}:root{--glass-bg: rgba(255, 255, 255, .1);--glass-border: rgba(255, 255, 255, .2);--text-primary: #ffffff;--text-secondary: rgba(255, 255, 255, .8);--shadow: 0 8px 32px rgba(31, 38, 135, .37);--border-radius: 16px;--transition: all .3s cubic-bezier(.4, 0, .2, 1)}*{margin:0;padding:0;box-sizing:border-box}body{font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;background:linear-gradient(135deg,#667eea,#764ba2);min-height:100vh;overflow-x:hidden}.glass{background:var(--glass-bg);backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);border:1px solid var(--glass-border);border-radius:var(--border-radius);box-shadow:var(--shadow)}.btn{background:var(--glass-bg);backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);border:1px solid var(--glass-border);border-radius:12px;padding:12px 24px;color:var(--text-primary);font-weight:500;cursor:pointer;transition:var(--transition);display:inline-flex;align-items:center;gap:8px;text-decoration:none;font-size:14px}.btn:hover{background:#fff3;transform:translateY(-2px);box-shadow:0 12px 40px #1f268780}.btn:active{transform:translateY(0)}.btn-primary{background:linear-gradient(135deg,#667eea,#764ba2);border:none}.btn-primary:hover{background:linear-gradient(135deg,#5a67d8,#6b46c1)}.color-card{background:var(--glass-bg);backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);border:1px solid var(--glass-border);border-radius:var(--border-radius);padding:24px;transition:var(--transition);cursor:pointer}.color-card:hover{transform:translateY(-4px);box-shadow:0 16px 48px #1f268780}.fade-in{animation:fadeIn .6s ease-out}@keyframes fadeIn{0%{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}.slide-in{animation:slideIn .5s ease-out}@keyframes slideIn{0%{opacity:0;transform:translate(-20px)}to{opacity:1;transform:translate(0)}}::-webkit-scrollbar{width:8px}::-webkit-scrollbar-track{background:#ffffff1a;border-radius:4px}::-webkit-scrollbar-thumb{background:#ffffff4d;border-radius:4px}::-webkit-scrollbar-thumb:hover{background:#ffffff80}@media (max-width: 768px){.btn{padding:10px 20px;font-size:13px}}.tooltip{position:relative}.tooltip:after{content:attr(data-tooltip);position:absolute;bottom:100%;left:50%;transform:translate(-50%);background:#000c;color:#fff;padding:8px 12px;border-radius:6px;font-size:12px;white-space:nowrap;opacity:0;pointer-events:none;transition:opacity .3s;margin-bottom:8px}.tooltip:hover:after{opacity:1}
