Files
ytrecap/public/styles.css
T
Frank Schwenk 5b8042b173 feat: hide recap creation behind five goldfish logo taps
Replace the visible create button with a secret tap gesture that still
opens the PIN-protected recap flow.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-16 16:05:13 +02:00

465 lines
7.5 KiB
CSS

:root {
--blue-deep: #0B3D5C;
--blue-mid: #145374;
--orange: #FF9F43;
--orange-dark: #E8892E;
--cream: #FFF8F0;
--cream-dark: #F5EDE3;
--text: #1A2B3C;
--text-muted: #5A6B7C;
--radius: 16px;
--shadow: 0 8px 32px rgba(11, 61, 92, 0.12);
}
* {
box-sizing: border-box;
}
html, body {
margin: 0;
min-height: 100%;
font-family: "Fredoka", system-ui, sans-serif;
background: linear-gradient(160deg, var(--cream) 0%, #E8F4FC 50%, var(--cream-dark) 100%);
color: var(--text);
}
a {
color: inherit;
text-decoration: none;
}
#app {
min-height: 100vh;
display: flex;
flex-direction: column;
}
.hero {
background: var(--blue-deep);
color: white;
padding: 1.5rem 1rem 2rem;
}
.heroInner {
max-width: 960px;
margin: 0 auto;
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: space-between;
gap: 1rem;
}
.logoRow {
display: flex;
align-items: center;
gap: 1rem;
}
.logo {
filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
cursor: pointer;
user-select: none;
-webkit-user-select: none;
transition: transform 0.15s;
}
.logo:active {
transform: scale(0.92);
}
.logoWiggle {
animation: goldfishWiggle 0.3s ease;
}
@keyframes goldfishWiggle {
0%, 100% { transform: rotate(0deg); }
25% { transform: rotate(-8deg) scale(1.05); }
75% { transform: rotate(8deg) scale(1.05); }
}
.hero h1 {
margin: 0;
font-size: 1.75rem;
font-weight: 700;
}
.tagline {
margin: 0.25rem 0 0;
opacity: 0.9;
font-size: 0.95rem;
max-width: 28rem;
}
.main {
flex: 1;
max-width: 960px;
margin: 0 auto;
padding: 1.5rem 1rem 3rem;
width: 100%;
}
.sectionTitle {
margin: 0 0 1rem;
font-size: 1.25rem;
color: var(--blue-deep);
}
.recapGrid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
gap: 1rem;
}
.recapCard {
background: white;
border-radius: var(--radius);
overflow: hidden;
box-shadow: var(--shadow);
transition: transform 0.15s, box-shadow 0.15s;
display: flex;
flex-direction: column;
}
.recapCard:hover {
transform: translateY(-3px);
box-shadow: 0 12px 40px rgba(11, 61, 92, 0.18);
}
.recapThumb {
width: 100%;
aspect-ratio: 16 / 9;
object-fit: cover;
background: var(--cream-dark);
}
.recapCardBody {
padding: 1rem;
display: flex;
flex-direction: column;
gap: 0.5rem;
}
.recapCardBody h3 {
margin: 0;
font-size: 1rem;
line-height: 1.3;
}
.recapTldr {
margin: 0;
font-size: 0.9rem;
color: var(--text-muted);
line-height: 1.4;
display: -webkit-box;
-webkit-line-clamp: 3;
-webkit-box-orient: vertical;
overflow: hidden;
}
.recapMeta {
font-size: 0.8rem;
color: var(--text-muted);
}
.verdictBadge {
display: inline-block;
font-size: 0.75rem;
font-weight: 600;
padding: 0.25rem 0.6rem;
border-radius: 999px;
width: fit-content;
}
.verdict-watch { background: #D4EDDA; color: #155724; }
.verdict-skim { background: #FFF3CD; color: #856404; }
.verdict-skip { background: #E2E3E5; color: #383D41; }
.btn {
font-family: inherit;
font-weight: 600;
font-size: 0.95rem;
border: none;
border-radius: 999px;
padding: 0.65rem 1.25rem;
cursor: pointer;
transition: transform 0.1s, opacity 0.1s;
}
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.6; cursor: not-allowed; }
.btn-primary {
background: var(--orange);
color: var(--blue-deep);
}
.btn-primary:hover { background: var(--orange-dark); }
.btn-ghost {
background: transparent;
color: inherit;
border: 2px solid rgba(255,255,255,0.4);
}
.recapPage .btn-ghost {
border-color: var(--blue-mid);
color: var(--blue-deep);
}
.btn-sm {
font-size: 0.85rem;
padding: 0.4rem 0.9rem;
}
.footer {
text-align: center;
padding: 1.5rem;
color: var(--text-muted);
font-size: 0.9rem;
}
.emptyState, .errorText {
color: var(--text-muted);
text-align: center;
padding: 2rem;
}
.errorText { color: #C0392B; }
.modal {
border: none;
border-radius: var(--radius);
padding: 0;
max-width: 420px;
width: calc(100% - 2rem);
box-shadow: var(--shadow);
}
.modal::backdrop {
background: rgba(11, 61, 92, 0.5);
}
.modalBody {
padding: 1.5rem;
margin: 0;
}
.modalBody h2 {
margin: 0 0 0.5rem;
color: var(--blue-deep);
}
.modalHint {
margin: 0 0 1rem;
color: var(--text-muted);
font-size: 0.9rem;
}
.textInput {
width: 100%;
font-family: inherit;
font-size: 1rem;
padding: 0.75rem 1rem;
border: 2px solid var(--cream-dark);
border-radius: 12px;
margin-bottom: 0.75rem;
}
.textInput:focus {
outline: none;
border-color: var(--orange);
}
.checkboxRow {
display: flex;
align-items: center;
gap: 0.5rem;
font-size: 0.9rem;
margin-bottom: 1rem;
cursor: pointer;
}
.modalActions {
display: flex;
gap: 0.75rem;
justify-content: flex-end;
}
.progressBox {
margin-top: 1rem;
text-align: center;
color: var(--text-muted);
font-size: 0.9rem;
}
.spinner {
width: 36px;
height: 36px;
border: 3px solid var(--cream-dark);
border-top-color: var(--orange);
border-radius: 50%;
animation: spin 0.8s linear infinite;
margin: 0 auto 0.75rem;
}
@keyframes spin {
to { transform: rotate(360deg); }
}
/* Recap detail page */
.recapPage .topBar {
display: flex;
justify-content: space-between;
align-items: center;
padding: 1rem;
max-width: 720px;
margin: 0 auto;
width: 100%;
}
.backLink {
color: var(--blue-deep);
font-weight: 600;
}
.recapMain {
max-width: 720px;
margin: 0 auto;
padding: 0 1rem 3rem;
width: 100%;
}
.videoHero {
margin-bottom: 1.25rem;
}
.thumb {
width: 100%;
border-radius: var(--radius);
aspect-ratio: 16 / 9;
object-fit: cover;
box-shadow: var(--shadow);
}
.videoMeta {
margin-top: 1rem;
}
.videoMeta h1 {
margin: 0.5rem 0 0.25rem;
font-size: 1.5rem;
line-height: 1.25;
}
.channelName {
margin: 0;
color: var(--text-muted);
}
.card {
background: white;
border-radius: var(--radius);
padding: 1.25rem;
margin-bottom: 1rem;
box-shadow: var(--shadow);
}
.card h2 {
margin: 0 0 0.75rem;
font-size: 1.1rem;
color: var(--blue-deep);
}
.tldrCard p {
margin: 0;
line-height: 1.5;
}
.vibeText {
margin-top: 0.75rem !important;
font-style: italic;
color: var(--text-muted);
}
.sectionHint {
margin: -0.5rem 0 1rem;
font-size: 0.85rem;
color: var(--text-muted);
}
.sectionsList {
display: flex;
flex-direction: column;
gap: 0.75rem;
}
.sectionCard {
display: grid;
grid-template-columns: auto auto 1fr;
gap: 0.75rem;
align-items: start;
padding: 1rem;
background: var(--cream);
border-radius: 12px;
transition: background 0.15s, transform 0.1s;
}
.sectionCard:hover {
background: var(--cream-dark);
transform: translateX(4px);
}
.sectionTime {
font-family: "JetBrains Mono", monospace;
font-size: 0.85rem;
font-weight: 500;
color: var(--orange-dark);
white-space: nowrap;
}
.sectionEmoji {
font-size: 1.25rem;
}
.sectionCard h3 {
margin: 0 0 0.25rem;
font-size: 0.95rem;
}
.sectionCard p {
margin: 0;
font-size: 0.9rem;
color: var(--text-muted);
line-height: 1.4;
}
.goldfishCard {
background: linear-gradient(135deg, var(--blue-deep), var(--blue-mid));
color: white;
text-align: center;
}
.goldfishCard p {
margin: 0;
font-size: 1.05rem;
line-height: 1.5;
}
.adminRow {
text-align: center;
margin-top: 1rem;
}
.loadingState, .errorState {
text-align: center;
padding: 4rem 1rem;
color: var(--text-muted);
}
@media (max-width: 480px) {
.hero h1 { font-size: 1.4rem; }
.sectionCard { grid-template-columns: 1fr; }
.sectionTime { order: -1; }
}