balloonDesign/style.css

455 lines
13 KiB
CSS

/* Minimal extras (Tailwind handles most styling) */
body { color: #1f2937; }
#balloon-canvas { touch-action: none; }
.balloon-canvas {
background: #fff;
border-radius: 1rem;
box-shadow: 0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -1px rgba(0,0,0,.06);
border: 1px black solid;
}
/* Buttons */
.tool-btn {
display: flex;
align-items: center;
justify-content: center;
gap: 0.5rem;
padding: .5rem .75rem;
border: 1px solid #e2e8f0;
border-radius: .75rem;
background: #fff;
color: #1e293b;
font-weight: 600;
transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.tool-btn svg { width: 1.1em; height: 1.1em; fill: currentColor; }
.tool-btn:hover { transform: translateY(-1px); box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
.tool-btn[aria-pressed="true"] { background:#3b82f6; color:#fff; border-color:#3b82f6; box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3); }
/* Base button style - Slate Gradient */
.btn-dark { background: linear-gradient(135deg, #334155, #0f172a); color:#fff; padding:.6rem .8rem; border-radius:.75rem; transition: all 0.2s; box-shadow: 0 2px 8px rgba(15, 23, 42, 0.15); }
.btn-dark:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(15, 23, 42, 0.25); }
/* Primary Action - Vibrant Blue/Indigo Gradient */
.btn-blue { background: linear-gradient(135deg, #6366f1, #3b82f6); color:#fff; padding:.6rem .8rem; border-radius:.75rem; transition: all 0.2s; box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3); }
.btn-blue:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(99, 102, 241, 0.4); }
/* Success/Save - Emerald Gradient */
.btn-green { background: linear-gradient(135deg, #10b981, #059669); color:#fff; padding:.6rem .8rem; border-radius:.75rem; transition: all 0.2s; box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3); }
.btn-green:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4); }
/* Secondary Action - White Glass */
.btn-yellow { background: rgba(255,255,255,0.9); color:#334155; border: 1px solid #cbd5e1; padding:.55rem .75rem; border-radius:.75rem; transition: all 0.2s; }
.btn-yellow:hover { background:#fff; border-color:#94a3b8; box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
/* Destructive - Red Gradient */
.btn-danger { background: linear-gradient(135deg, #ef4444, #dc2626); color:#fff; padding:.6rem .8rem; border-radius:.75rem; transition: all 0.2s; box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3); }
.btn-danger:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(239, 68, 68, 0.4); }
/* Accent - Indigo/Purple Gradient */
.btn-indigo { background: linear-gradient(135deg, #8b5cf6, #6366f1); color:#fff; padding:.6rem .8rem; border-radius:.75rem; transition: all 0.2s; box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3); }
.btn-indigo:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(139, 92, 246, 0.4); }
.btn-dark.text-sm { padding:.35rem .55rem; }
.copy-message{ opacity:0; transition:opacity .3s; }
.copy-message.show{ opacity:1; }
.hint { font-size:.8rem; color:#64748b; }
/* Palette / Swatches */
.palette-box {
display: flex;
flex-direction: column;
gap: .5rem;
padding: .5rem;
background: rgba(255,255,255,0.6); /* More transparent */
border: 1px solid #e5e7eb;
border-radius: .75rem;
max-height: 260px;
overflow-y: auto;
-webkit-overflow-scrolling: touch;
}
.swatch {
appearance: none;
padding: 0;
position: relative;
width: 2rem;
height: 2rem;
border-radius: 9999px;
border: 2px solid rgba(0,0,0,.05);
box-shadow: 0 2px 4px rgba(0,0,0,.05);
cursor: pointer;
transition: transform 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}
.swatch:hover { transform: scale(1.1); z-index: 10; }
.swatch:focus-visible { outline: 2px solid #6366f1; outline-offset: 2px; }
.swatch.active { outline: 2px solid #6366f1; outline-offset: 2px; }
.swatch-row { display:flex; flex-wrap:wrap; gap:.5rem; }
.family-title { font-weight:700; color:#334155; margin-top:.25rem; font-size:.9rem; letter-spacing: -0.01em; }
.badge {
position:absolute;
right:-6px; top:-6px;
min-width: 1.25rem;
height: 1.25rem;
padding: 0 .25rem;
background:#1e293b;
color:#fff;
border-radius: 9999px;
font-size:.7rem;
display:flex;
align-items:center;
justify-content:center;
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
/* Selects */
.select {
width: 100%;
padding: .5rem .6rem;
border: 1px solid #cbd5e1;
border-radius: .5rem;
background: #fff;
color: #334155;
}
#classic-swatch-grid .sw { width: 24px; height: 24px; border-radius: 6px; border: 1px solid rgba(0,0,0,.1); cursor: pointer; }
#classic-swatch-grid .sw:focus { outline: 2px solid #2563eb; outline-offset: 2px; }
.slot-btn[aria-pressed="true"] { background:#3b82f6; color:#fff; }
.slot-container {
display: flex;
flex-direction: column;
gap: 0.5rem;
margin-bottom: 1rem;
}
.slot-row {
display: flex;
align-items: center;
gap: 0.75rem;
}
.slot-swatch {
width: 2.5rem;
height: 2.5rem;
border-radius: 9999px;
border: 3px solid #e5e7eb;
cursor: pointer;
box-shadow: 0 1px 3px rgba(0,0,0,0.1);
transition: border-color .2s, transform .2s;
display: flex;
align-items: center;
justify-content: center;
font-weight: 600;
color: rgba(0,0,0,0.4);
background-size: cover;
background-position: center;
}
.slot-swatch:hover {
border-color: #9ca3af;
}
.slot-swatch.active {
border-color: #2563eb;
transform: scale(1.1);
}
.slot-label {
font-weight: 600;
color: #4b5563;
}
/* Panel styling */
.panel-heading {
font-weight: 800;
color: #334155;
margin-bottom: .35rem;
letter-spacing: -0.02em;
}
.panel-card {
background: rgba(255,255,255,0.7);
backdrop-filter: blur(12px);
-webkit-backdrop-filter: blur(12px);
border: 1px solid rgba(255,255,255,0.6);
border-radius: 0.75rem;
padding: 0.75rem;
box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}
.control-stack {
display: flex;
flex-direction: column;
}
/* ---------- Control sheet ---------- */
.control-sheet {
position: fixed;
left: 0;
right: 0;
bottom: 3.8rem;
max-height: 60vh;
background: rgba(255,255,255,0.85);
backdrop-filter: blur(16px);
-webkit-backdrop-filter: blur(16px);
border-top: 1px solid rgba(255,255,255,0.5);
box-shadow: 0 -4px 30px rgba(0,0,0,0.08);
border-radius: 1.25rem 1.25rem 0 0;
padding: 1rem 0.75rem;
overflow-y: auto;
z-index: 30;
-webkit-overflow-scrolling: touch;
transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}
.control-sheet.hidden { display: none; }
/* .control-sheet.minimized removed from global scope to fix desktop visibility */
.panel-title {
font-weight: 900;
font-size: 1.1rem;
background: linear-gradient(to right, #4f46e5, #db2777);
-webkit-background-clip: text;
color: transparent;
margin-bottom: .5rem;
}
.panel-header-row {
display: flex;
align-items: center;
justify-content: space-between;
gap: .75rem;
margin-bottom: .4rem;
}
.sheet-close-btn {
padding: .45rem .75rem;
border-radius: 999px;
border: 1px solid #e5e7eb;
background: #f3f4f6;
font-weight: 700;
color: #111827;
}
.control-stack {
display: flex;
flex-direction: column;
}
@media (max-width: 1023px) {
body { padding-bottom: 88px; }
html, body { height: 100%; }
.control-sheet.minimized { transform: translateY(100%); }
.control-sheet .control-stack { display: none; }
body[data-mobile-tab="controls"] #controls-panel [data-mobile-tab="controls"],
body[data-mobile-tab="colors"] #controls-panel [data-mobile-tab="colors"],
body[data-mobile-tab="save"] #controls-panel [data-mobile-tab="save"],
body[data-mobile-tab="controls"] #classic-controls-panel [data-mobile-tab="controls"],
body[data-mobile-tab="colors"] #classic-controls-panel [data-mobile-tab="colors"],
body[data-mobile-tab="save"] #classic-controls-panel [data-mobile-tab="save"] {
display: block;
}
}
.mobile-tabbar {
position: fixed;
left: 0;
width: 100%;
bottom: 0;
display: flex;
justify-content: space-around;
align-items: stretch;
padding: .55rem .85rem .8rem;
background: rgba(15, 23, 42, 0.95);
backdrop-filter: blur(12px);
-webkit-backdrop-filter: blur(12px);
color: #fff;
z-index: 9999;
gap: .35rem;
box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
}
.mobile-tool-btn {
width: 2.5rem;
height: 2.5rem;
display: flex;
align-items: center;
justify-content: center;
border-radius: 0.75rem;
color: #94a3b8;
transition: all 0.2s ease;
}
.mobile-tool-btn svg { width: 1.5rem; height: 1.5rem; fill: currentColor; }
.mobile-tool-btn.active {
background: rgba(255,255,255,0.1);
color: #38bdf8; /* Sky blue */
}
.mobile-tool-btn:active { transform: scale(0.9); }
#dock-classic { width: 100%; }
#dock-organic { align-items: center; }
.classic-drawer {
position: fixed;
left: 0;
right: 0;
bottom: 4.2rem;
z-index: 9500;
display: flex;
flex-direction: column;
gap: 0.6rem;
padding: 0.75rem 1rem;
background: rgba(15,23,42,0.96);
backdrop-filter: blur(14px);
-webkit-backdrop-filter: blur(14px);
border-top: 1px solid rgba(255,255,255,0.08);
box-shadow: 0 -8px 30px rgba(0,0,0,0.3);
}
.classic-drawer.hidden { display: none; }
.drawer-row {
display: flex;
align-items: center;
gap: 0.5rem;
flex-wrap: wrap;
}
.drawer-label { color: #cbd5e1; font-weight: 700; font-size: 0.9rem; }
.drawer-pill-group { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.dial-row { flex-direction: column; align-items: flex-start; }
.topper-row { gap: 0.75rem; }
.topper-inline { display: flex; align-items: center; gap: 0.45rem; }
.select-xs { padding: 0.3rem 0.45rem; font-size: 0.85rem; height: 2.2rem; }
.nudge-pad { display: flex; flex-direction: column; align-items: center; gap: 0.35rem; }
.topper-size-wrap { display: flex; flex-direction: column; gap: 0.1rem; min-width: 120px; }
.topper-size-wrap input[type=range] { accent-color: #2563eb; }
.dock-color-btn {
width: 3rem;
height: 3rem;
display: inline-flex;
align-items: center;
justify-content: center;
border-radius: 9999px;
border: 4px solid #fff;
box-shadow: 0 8px 20px rgba(0,0,0,0.18);
transition: transform 0.15s ease;
}
.dock-color-btn:active { transform: scale(0.95); }
.dock-variant-btn {
min-width: 2.4rem;
height: 2.4rem;
padding: 0 .5rem;
border-radius: 0.65rem;
background: rgba(255,255,255,0.08);
color: #e2e8f0;
border: 1px solid rgba(255,255,255,0.15);
font-weight: 700;
font-size: .95rem;
transition: all 0.2s ease;
}
.dock-variant-btn.active {
background: #38bdf8;
color: #0f172a;
border-color: #38bdf8;
box-shadow: 0 6px 18px rgba(56,189,248,0.35);
}
.dock-variant-btn:active { transform: scale(0.95); }
.dock-row {
display: flex;
align-items: center;
gap: 0.5rem;
flex-wrap: wrap;
background: rgba(255,255,255,0.04);
border: 1px solid rgba(255,255,255,0.12);
border-radius: 0.9rem;
padding: 0.4rem 0.65rem;
}
.dock-label {
font-size: 0.85rem;
font-weight: 700;
color: #cbd5e1;
}
.dock-pill-group {
display: flex;
gap: 0.4rem;
flex: 1;
min-width: 0;
}
.dock-pill {
padding: 0.5rem 0.8rem;
border-radius: 0.8rem;
background: rgba(255,255,255,0.08);
color: #e2e8f0;
border: 1px solid rgba(255,255,255,0.14);
font-weight: 700;
font-size: 0.95rem;
transition: all 0.2s ease;
white-space: nowrap;
}
.dock-pill:hover { background: rgba(255,255,255,0.14); }
.dock-pill.active {
background: #38bdf8;
color: #0f172a;
border-color: #38bdf8;
box-shadow: 0 6px 18px rgba(56,189,248,0.35);
}
.dock-pill:active { transform: scale(0.96); }
.classic-quick-label { font-weight: 700; color: #334155; font-size: 0.9rem; }
.btn-nudge {
background: #0f172a;
color: #fff;
width: 2.4rem;
height: 2.4rem;
border-radius: 0.6rem;
display: inline-flex;
align-items: center;
justify-content: center;
font-weight: 700;
box-shadow: 0 4px 12px rgba(0,0,0,0.18);
transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-nudge:active { transform: translateY(1px) scale(0.97); box-shadow: 0 2px 8px rgba(0,0,0,0.18); }
.length-dial {
display: flex;
gap: 0.5rem;
overflow-x: auto;
padding: 0.35rem 0.25rem;
scroll-snap-type: x mandatory;
-webkit-overflow-scrolling: touch;
position: relative;
mask-image: linear-gradient(90deg, transparent 0, #000 12%, #000 88%, transparent 100%);
}
.length-dial .dock-pill {
scroll-snap-align: center;
min-width: 72px;
text-align: center;
transition: transform 0.15s ease, box-shadow 0.2s ease;
}
.length-dial .dock-pill.active {
transform: scale(1.02);
box-shadow: 0 6px 18px rgba(37,99,235,0.28);
}
.length-dial .dock-pill.ping {
animation: tap-pulse 260ms ease;
}
@keyframes tap-pulse {
0% { transform: scale(0.95); }
50% { transform: scale(1.08); }
100% { transform: scale(1.0); }
}
/* Removed old mobile-tab-btn styles as they are replaced by the new layout */
@media (min-width: 1024px) {
.control-sheet {
left: 1rem;
top: 7rem;
bottom: auto;
width: 340px;
max-height: calc(100vh - 8rem);
border-radius: 1.5rem;
position: sticky;
overflow-y: auto;
background: rgba(255,255,255,0.6);
border: 1px solid rgba(255,255,255,0.4);
}
body { padding-bottom: 0; overflow: auto; }
}