Spaces:
Paused
Paused
File size: 4,870 Bytes
15ac953 | 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 | @import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');
/* ββ Base ββ */
body, .gradio-container {
background-color: #FAF7F2 !important;
font-family: 'Inter', system-ui, sans-serif !important;
}
.gradio-container {
max-width: 1200px !important;
margin: 0 auto !important;
}
/* ββ Typography ββ */
.serif-header {
font-family: 'Playfair Display', Georgia, serif !important;
color: #1c1c19 !important;
font-weight: 700 !important;
}
.cream-bg { background-color: #FAF7F2 !important; }
.highlight-orange { color: #f5841f !important; }
.highlight-amber { color: #944a00 !important; }
/* ββ Cards ββ */
.card-container {
background-color: #f6f3ee !important;
border: 1px solid #ebdccb !important;
border-radius: 16px !important;
padding: 24px !important;
box-shadow: 0 2px 8px rgba(148, 74, 0, 0.03) !important;
}
.accent-border { border-color: #ddc1b0 !important; }
.dark-card-container {
background-color: #122116 !important;
color: #FAF7F2 !important;
border: 1px solid #1e3422 !important;
border-radius: 16px !important;
padding: 24px !important;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
}
/* ββ Hero ββ */
.hero-spotlight {
background: linear-gradient(135deg, #1e3422 0%, #121f15 100%) !important;
color: #FFFFFF !important;
border-radius: 24px !important;
padding: 32px !important;
position: relative;
overflow: hidden;
}
.badge-featured {
background: rgba(245, 132, 31, 0.2);
color: #f5841f;
border: 1px solid rgba(245, 132, 31, 0.3);
border-radius: 9999px;
padding: 4px 10px;
font-size: 11px;
font-weight: 700;
text-transform: uppercase;
display: inline-block;
}
/* ββ Book grid & cards ββ */
.book-shelf-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
gap: 20px;
}
.shelf-card {
background: #f6f3ee;
border: 1px solid #eadacc;
border-radius: 16px;
padding: 16px;
display: flex;
gap: 16px;
transition: all 0.3s ease;
cursor: pointer;
}
.shelf-card:hover {
border-color: #f5841f;
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(148, 74, 0, 0.06);
}
.cover-image {
width: 80px;
height: 110px;
object-fit: cover;
border-radius: 8px;
box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
/* ββ Progress bar ββ */
.progress-bar-bg {
width: 100%;
height: 6px;
background: #ebdccb;
border-radius: 999px;
overflow: hidden;
}
.progress-bar-fill {
height: 100%;
background: #f5841f;
}
/* ββ Recording UX ββ */
@keyframes pulse-ring {
0% { transform: scale(0.85); opacity: 0.6; }
50% { transform: scale(1.15); opacity: 0.25; }
100% { transform: scale(1.4); opacity: 0; }
}
@keyframes pulse {
0%, 100% { opacity: 1; }
50% { opacity: 0.4; }
}
.pulse-circle {
position: relative;
width: 120px;
height: 120px;
border-radius: 50%;
background: #944a00;
color: white;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
margin: 0 auto;
}
.pulse-circle::before,
.pulse-circle::after {
content: '';
position: absolute;
inset: 0;
border-radius: 50%;
border: 3px solid #944a00;
animation: pulse-ring 1.8s ease-out infinite;
}
.pulse-circle::after { animation-delay: 0.6s; }
.recording-active { background: #ef4444 !important; }
.recording-active::before,
.recording-active::after { border-color: #ef4444; }
/* ββ Subtitle / dialog ticker ββ */
.dialog-synced {
background: rgba(0,0,0,0.15);
border: 1px solid rgba(255,166,0,0.1);
color: #ffd3a6;
font-family: 'Playfair Display', Georgia, serif;
font-size: 1.25rem;
font-style: italic;
padding: 24px;
border-radius: 16px;
text-align: center;
min-height: 100px;
display: flex;
align-items: center;
justify-content: center;
}
/* ββ Tabs ββ */
.tabs .tab-nav button {
border-bottom: 2px solid transparent !important;
}
.tabs .tab-nav button.selected {
color: #944a00 !important;
border-bottom-color: #944a00 !important;
font-weight: 700 !important;
}
/* ββ Mobile responsive ββ */
@media (max-width: 768px) {
.gradio-container { max-width: 100% !important; padding: 0 12px !important; }
.book-shelf-grid { grid-template-columns: 1fr !important; }
.hero-spotlight { flex-direction: column !important; padding: 20px !important; }
.shelf-card { flex-direction: column; }
.card-container, .dark-card-container { padding: 16px !important; }
}
@media (max-width: 480px) {
.book-shelf-grid { grid-template-columns: 1fr !important; gap: 12px; }
}
|