/*
 * Fitify — Fitness for People Who Hate Fitness
 * Ported from static index.html — keeping the EXACT same design
 */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --bg: #fafaf9;
    --surface: #ffffff;
    --text: #1c1917;
    --text-muted: #78716c;
    --text-light: #a8a29e;
    --accent: #f97316;
    --accent-light: #fff7ed;
    --accent-dark: #ea580c;
    --border: #e7e5e4;
    --green: #16a34a;
    --green-light: #f0fdf4;
    --blue: #2563eb;
    --blue-light: #eff6ff;
    --purple: #7c3aed;
    --purple-light: #f5f3ff;
    --gold: #d97706;
    --gold-light: #fef3c7;
    --radius: 16px;
}

body {
    font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Flash messages */
.flash {
    max-width: 720px;
    margin: 0 auto;
    padding: 0.75rem 1.5rem;
}

.flash-notice {
    background: var(--green-light);
    color: var(--green);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
    font-weight: 500;
    margin-top: 1rem;
}

.flash-alert {
    background: #fef2f2;
    color: #dc2626;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
    font-weight: 500;
    margin-top: 1rem;
}

/* Nav */
nav {
    max-width: 720px;
    margin: 0 auto;
    padding: 1.5rem 1.5rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
    letter-spacing: -0.02em;
}

.logo span { color: var(--accent); }

.nav-links {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-link {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-link:hover {
    color: var(--accent);
}

.price-tag {
    font-size: 0.8rem;
    color: var(--accent-dark);
    background: var(--accent-light);
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-weight: 600;
    text-decoration: none;
}

.price-tag:hover {
    background: var(--accent);
    color: white;
}

/* Hero */
.hero {
    max-width: 720px;
    margin: 0 auto;
    padding: 4rem 1.5rem 2rem;
    text-align: center;
}

.hero-emoji {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    display: block;
}

.hero h1 {
    font-size: clamp(1.8rem, 5vw, 2.6rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
}

.hero h1 em {
    font-style: italic;
    color: var(--accent);
}

.hero p {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 480px;
    margin: 0 auto 0.5rem;
}

.hero .subtext {
    font-size: 0.85rem;
    color: var(--text-light);
    font-style: italic;
}

/* Section */
.section {
    max-width: 720px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

.section-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 0.4rem;
}

.section > p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.oauth-connect {
    overflow: hidden;
}

.oauth-connect-logo {
    display: block;
    width: 72px;
    height: 72px;
    border-radius: 16px;
    margin: 0 0 1rem;
    object-fit: cover;
}

.oauth-error-message {
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
    overflow: hidden;
    box-sizing: border-box;
}

/* Tip Cards */
.tip-cards {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
}

.tip-card-wrapper {
    position: relative;
    min-height: 200px;
    /* Remove any extra margins that could cause gaps */
    margin: 0;
}

.tip-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    color: inherit;
    display: block;
    position: relative;
    overflow: hidden;
}

.tip-card .card-banner {
    position: absolute;
    top: 1.25rem;
    right: -2.25rem;
    font-size: 0.55rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    padding: 0.3rem 3rem;
    transform: rotate(35deg);
    text-transform: uppercase;
    min-width: 10rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

/* Badge difficulty tier colors */
.tip-card .card-banner.badge-chill { background: var(--green); color: white; }
.tip-card .card-banner.badge-medium { background: var(--blue); color: white; }
.tip-card .card-banner.badge-tricky { background: var(--purple); color: white; }
.tip-card .card-banner.badge-intense { background: var(--gold); color: white; }

/* Small card banners (mini-card) */
.mini-card .card-banner.badge-chill { background: var(--green) !important; }
.mini-card .card-banner.badge-medium { background: var(--blue) !important; }
.mini-card .card-banner.badge-tricky { background: var(--purple) !important; }
.mini-card .card-banner.badge-intense { background: var(--gold) !important; }

.tip-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

.tip-card--static {
    cursor: default;
}

.tip-card--static:hover {
    transform: none;
    box-shadow: none;
}

.tip-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.tip-icon {
    font-size: 2rem;
    line-height: 1;
    margin-bottom: 0.75rem;
}

.tip-badge {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.25rem 0.6rem;
    border-radius: 20px;
}

.badge-chill { background: var(--green-light); color: var(--green); }
.badge-medium { background: var(--blue-light); color: var(--blue); }
.badge-tricky { background: var(--purple-light); color: var(--purple); }
.badge-intense { background: var(--gold-light); color: var(--gold); }

.tip-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
    letter-spacing: -0.01em;
}

.tip-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    line-height: 1.55;
}

.tip-secret {
    font-size: 0.78rem;
    color: var(--text-light);
    background: var(--bg);
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.tip-secret span { font-size: 0.85rem; }

/* Coming Soon Cards */
.mini-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

/* Whimsical scrolling messages */
.scroll-message-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem 0;
}

.scroll-message {
    background: linear-gradient(135deg, var(--accent-light) 0%, var(--surface) 100%);
    border: 2px dashed var(--accent);
    border-radius: 16px;
    padding: 1.25rem 1.5rem;
    text-align: center;
    max-width: 420px;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.08);
}

.scroll-message-emoji {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.5rem;
    animation: pulse 2s ease-in-out infinite;
}

.scroll-message p {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text);
    line-height: 1.5;
    margin: 0;
    font-style: italic;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Wrapper for mini-card to allow absolute positioning of like button without breaking grid */
.mini-card-wrapper {
    position: relative;
    /* No margin/padding - grid gap handles spacing */
}

.mini-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.15rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s;
}

.mini-card .card-banner {
    position: absolute;
    top: 1.1rem;
    right: -1.75rem;
    background: var(--accent);
    color: white;
    font-size: 0.55rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    padding: 0.25rem 2.75rem;
    transform: rotate(35deg);
    min-width: 9rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.mini-emoji { font-size: 1.5rem; margin-bottom: 0.4rem; }
.mini-title { font-size: 0.85rem; font-weight: 600; margin-bottom: 0.2rem; }
.mini-desc { font-size: 0.75rem; color: var(--text-muted); }

/* Muted variant for related/keep-going cards */
.mini-card.muted {
    background: var(--surface);
}

.mini-card.muted:hover {
    background: var(--surface);
}

.mini-card.muted .card-banner {
    background: var(--border);
    color: var(--text-muted);
    font-size: 0.5rem;
    padding: 0.2rem 2.5rem;
    min-width: 8rem;
}

.mini-card.muted .mini-emoji { font-size: 1.25rem; }
.mini-card.muted .mini-title { color: var(--text-muted); font-size: 0.8rem; }
.mini-card.muted .mini-desc { color: var(--text-light); font-size: 0.7rem; }

/* Like button on small tip cards - top-left half-overlap */
.tip-card-like-btn {
    position: absolute;
    top: -8px;
    left: -15px; /* Shifted 2px right from -17px */
    z-index: 10;
    /* LOCKED dimensions - prevents ANY shifting on Turbo Stream replace */
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    min-height: 32px !important;
    max-width: 32px !important;
    max-height: 32px !important;
    overflow: visible;
    /* Prevent any content from causing reflow */
    display: block;
}

.tip-card-like-btn form {
    margin: 0 !important;
    padding: 0 !important;
    display: block;
    width: 32px;
    height: 32px;
}

.tip-card-like-btn .like-btn {
    padding: 0 !important;
    margin: 0 !important;
    font-size: 28px;
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    min-height: 32px !important;
    max-width: 32px !important;
    max-height: 32px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: none;
}

.tip-card-like-btn .like-btn .like-icon {
    display: block !important;
    line-height: 1 !important;
    /* Fixed size for emoji - prevents layout shift */
    width: 28px !important;
    height: 28px !important;
    font-size: 28px !important;
    text-align: center;
    overflow: visible;
    flex-shrink: 0;
}

/* Pump animation on click */
@keyframes heartPump {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

.tip-card-like-btn .like-btn.pump {
    animation: heartPump 0.3s ease-out;
}

/* Prevent ANY layout shift during Turbo Stream replacement */
.tip-card-like-btn form {
    position: absolute;
    top: 0;
    left: 0;
}

/* Kill ALL form default styles that might cause shifts */
.tip-card-like-btn form,
.tip-card-like-btn form button {
    box-sizing: border-box !important;
}

.tip-card-like-btn .like-btn:hover .like-icon {
    transform: scale(1.1);
    transition: transform 0.15s;
}

/* How it works */
.steps {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    counter-reset: step;
}

.step {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.step-num {
    width: 36px;
    height: 36px;
    min-width: 36px;
    background: var(--accent);
    color: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}

.step h3 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.15rem;
}

.step p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* CTA */
.cta-section {
    max-width: 720px;
    margin: 1rem auto 0;
    padding: 2rem 1.5rem 3rem;
    text-align: center;
}

.cta-box {
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 2.5rem 2rem;
}

.cta-box h2 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
    letter-spacing: -0.02em;
}

.cta-box > p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.cta-price {
    display: inline-flex;
    align-items: baseline;
    gap: 0.3rem;
    margin-bottom: 1rem;
}

.cta-price .dollar {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: -0.03em;
}

.cta-price .period {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.cta-note {
    display: block;
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.cta-form {
    display: flex;
    gap: 0.5rem;
    max-width: 400px;
    margin: 0 auto;
}

.cta-form input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s;
}

.cta-form input:focus { border-color: var(--accent); }

.cta-form button, .btn-primary {
    background: var(--accent);
    color: white;
    border: none;
    padding: 0.75rem 1.25rem;
    border-radius: 10px;
    font-family: inherit;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
    text-decoration: none;
    display: inline-block;
}

.cta-form button:hover, .btn-primary:hover { background: var(--accent-dark); }

.btn-secondary {
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
    padding: 0.75rem 1.25rem;
    border-radius: 10px;
    font-family: inherit;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    text-decoration: none;
    display: inline-block;
}

.btn-secondary:hover {
    background: var(--bg);
    border-color: var(--accent);
}

.refresh-btn:hover {
    color: var(--accent);
    border-color: var(--accent);
    background: var(--accent-light);
}

.refresh-icon {
    display: inline-block;
    transition: transform 0.3s;
}

turbo-frame[busy] .refresh-icon {
    animation: spin 0.8s linear infinite;
}

turbo-frame[busy] .tip-card {
    opacity: 0.4;
    transition: opacity 0.2s;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.btn-small {
    padding: 0.5rem 0.85rem;
    font-size: 0.8rem;
}

.cta-success {
    margin-top: 1rem;
    padding: 0.75rem;
    background: var(--green-light);
    color: var(--green);
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Footer */
footer {
    text-align: center;
    padding: 1.5rem;
    font-size: 0.75rem;
    color: var(--text-light);
}

footer a { color: var(--text-light); text-decoration: none; }
footer a:hover { color: var(--text-muted); }

/* Divider */
.divider {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.divider hr {
    border: none;
    border-top: 1px solid var(--border);
}

/* Browse / Grid page */
.tip-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.tip-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* Filter bar */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.filter-pill {
    font-size: 0.78rem;
    font-weight: 500;
    padding: 0.4rem 0.85rem;
    border-radius: 20px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
}

.filter-pill:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.filter-pill.active {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

/* Tip page hero card - larger version */
.tip-card--hero {
    padding: 2.5rem;
}

.tip-card--hero .tip-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.tip-card--hero .tip-title {
    font-size: 1.6rem;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.tip-card--hero .tip-desc {
    font-size: 1.05rem;
    line-height: 1.7;
}

.tip-card--hero .card-banner {
    font-size: 0.6rem;
    padding: 0.3rem 2.5rem;
    top: 1.5rem;
    right: -1.5rem;
}

.tip-secret {
    background: var(--bg);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    max-width: 540px;
}

.tip-secret span { font-size: 1.1rem; }

.tip-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 1rem;
}

.tip-pill {
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    background: var(--accent-light);
    color: var(--accent-dark);
}

.tip-pill-muted {
    background: var(--bg);
    color: var(--text-muted);
    font-weight: 500;
}

/* Tip show page: hero section with breathing room */
.tip-hero-section {
    padding-top: 3rem;
    padding-bottom: 2rem;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.tip-picture {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--surface);
}

.tip-card--hero {
    padding: 2.5rem;
}

/* Tip show page: details section (secret, tags, actions) */
.tip-details-section {
    padding-top: 0;
}

.tip-actions-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.tip-meta-block {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
}

.tip-meta-block .tip-secret {
    background: none;
    padding: 0;
    border-radius: 0;
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1rem;
    max-width: none;
    display: block;
}

.tip-meta-block .tip-secret span {
    margin-right: 0.35rem;
}

.tip-meta-block .tip-tags {
    margin-top: 0;
}

.pill-btn,
.like-btn,
.share-btn,
.refresh-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text-muted);
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.like-btn:hover {
    border-color: #ef4444;
    color: #ef4444;
    background: #fef2f2;
}

.like-btn.liked {
    background: #fef2f2;
    border-color: #ef4444;
    color: #ef4444;
}

.share-btn:hover {
    color: var(--accent);
    border-color: var(--accent);
    background: var(--accent-light);
}

/* Related tips */
.related-section {
    margin-top: 2rem;
}

.related-section h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-muted);
}

/* Category page */
.category-header {
    text-align: center;
    margin-bottom: 2rem;
}

.category-icon {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    display: block;
}

.category-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.category-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.category-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.category-card-icon { 
    font-size: 1.5rem; 
    flex-shrink: 0;
}

.category-card-title { 
    font-size: 0.85rem; 
    font-weight: 600; 
    flex: 1;
}

.category-card-count { 
    font-size: 0.75rem; 
    color: var(--text-muted); 
    flex-shrink: 0;
}

/* Category card colors */
.category-card--difficulty {
    border-width: 2px !important;
}

.category-card--easy {
    border-color: var(--green) !important;
    background: var(--green-light) !important;
}

.category-card--easy:hover {
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.15) !important;
}

.category-card--medium {
    border-color: var(--blue) !important;
    background: var(--blue-light) !important;
}

.category-card--medium:hover {
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15) !important;
}

.category-card--sneaky {
    border-color: var(--purple) !important;
    background: var(--purple-light) !important;
}

.category-card--sneaky:hover {
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.15) !important;
}

.category-card--legendary {
    border-color: #d97706 !important;
    background: #fef3c7 !important;
}

.category-card--legendary:hover {
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.15) !important;
}

.category-card--body-part {
    background: linear-gradient(135deg, var(--surface) 0%, var(--bg) 100%);
}

.category-card--type {
    background: linear-gradient(135deg, var(--accent-light) 0%, var(--surface) 100%);
    border-color: #fed7aa;
}

.category-section-heading {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.category-subsection {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-light);
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Pagination */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
    padding-bottom: 1rem;
}

.pagination a, .pagination span {
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    color: var(--text-muted);
    border: 1px solid var(--border);
    transition: all 0.2s;
}

.pagination a:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.pagination .current {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

.pagination .disabled {
    opacity: 0.4;
    cursor: default;
}

/* Auth forms */
.auth-page {
    max-width: 420px;
    margin: 3rem auto;
    padding: 0 1.5rem;
}

.auth-box {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
}

.auth-box h2 {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 0.4rem;
    text-align: center;
}

.auth-box .subtitle {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-align: center;
    margin-bottom: 1.5rem;
}

/* Sign in with Google */
.google-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.7rem 1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    transition: background 0.15s, box-shadow 0.15s;
}

.google-btn:hover {
    background: var(--bg);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1.25rem 0;
    color: var(--text-light);
    font-size: 0.8rem;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1;
    border-top: 1px solid var(--border);
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 0.35rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"] {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="password"]:focus {
    border-color: var(--accent);
}

.form-group input[type="checkbox"] {
    width: auto;
}

.form-submit {
    width: 100%;
    margin-top: 0.5rem;
}

.auth-links {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.auth-links a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
}

.auth-links a:hover {
    text-decoration: underline;
}

/* Onboarding */
.onboarding-page {
    max-width: 480px;
    margin: 3rem auto;
    padding: 0 1.5rem;
    text-align: center;
}

.onboarding-step {
    margin-bottom: 2rem;
}

.onboarding-step h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.onboarding-step p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.onboarding-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.onboarding-option {
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 1.25rem 1rem;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.onboarding-option:hover {
    border-color: var(--accent);
}

.onboarding-option.selected {
    border-color: var(--accent);
    background: var(--accent-light);
}

.onboarding-option .option-emoji {
    font-size: 2rem;
    margin-bottom: 0.4rem;
    display: block;
}

.onboarding-option .option-label {
    font-size: 0.85rem;
    font-weight: 600;
}

.onboarding-option .option-sub {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.15rem;
}

.onboarding-progress {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.onboarding-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border);
}

.onboarding-dot.active {
    background: var(--accent);
}

.onboarding-dot.done {
    background: var(--green);
}

/* Dashboard (paid users) */
.dashboard {
    max-width: 720px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

.dashboard-greeting {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.dashboard-sub {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.daily-tips-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.daily-tips-header h2 {
    font-size: 1.1rem;
    font-weight: 600;
}

.daily-tips-header .date {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Error pages */
.error-page {
    max-width: 480px;
    margin: 4rem auto;
    text-align: center;
    padding: 0 1.5rem;
}

.error-page h1 {
    font-size: 4rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.error-page p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.settings-section {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
}

.settings-section h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.settings-field {
    margin-bottom: 1rem;
}

.settings-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 0.35rem;
}

.settings-input {
    width: 100%;
    padding: 0.65rem 0.85rem;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    font-size: 0.9rem;
    font-family: inherit;
    background: var(--bg);
    color: var(--text);
    transition: border-color 0.2s;
}

.settings-input:focus {
    outline: none;
    border-color: var(--accent);
}

.settings-profile-group {
    margin-bottom: 1.75rem;
}

.settings-profile-group h4 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.settings-danger {
    border-color: #fca5a5;
    background: #fef2f2;
}

.settings-danger h3 {
    color: #dc2626;
}

.btn-danger {
    display: inline-block;
    padding: 0.6rem 1.25rem;
    background: #dc2626;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-danger:hover {
    background: #b91c1c;
}

/* Filter Drawer */
.filter-drawer-trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.15rem;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-drawer-trigger:hover {
    border-color: var(--accent);
    background: var(--accent-light);
    color: var(--accent);
}

.filter-drawer-trigger .filter-count {
    color: var(--accent);
    font-weight: 700;
}

.filter-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    z-index: 998;
}

.filter-drawer-overlay.visible {
    opacity: 1;
    visibility: visible;
}

.filter-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 380px;
    background: var(--surface);
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15);
    transform: translateX(100%);
    transition: transform 0.3s ease-out;
    z-index: 999;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.filter-drawer.open {
    transform: translateX(0);
}

.filter-drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    background: var(--surface);
    z-index: 10;
}

.filter-drawer-header h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0;
}

.filter-drawer-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.filter-drawer-close:hover {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

.filter-drawer-form {
    flex: 1;
    padding: 1.5rem;
    padding-bottom: 100px;
}

.filter-drawer-section {
    margin-bottom: 2rem;
}

.filter-drawer-section-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}

.filter-drawer-subsection {
    margin-bottom: 1.5rem;
}

.filter-drawer-subsection:last-child {
    margin-bottom: 0;
}

.filter-drawer-subsection-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
    padding-left: 0.25rem;
}

.filter-drawer-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-drawer-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0.85rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--bg);
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.9rem;
}

.filter-drawer-option:hover {
    border-color: var(--accent);
    background: var(--surface);
}

.filter-drawer-option input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--accent);
}

.filter-drawer-option input[type="checkbox"]:checked + span {
    font-weight: 600;
    color: var(--accent);
}

.filter-drawer-actions {
    position: fixed;
    bottom: 0;
    right: 0;
    width: 100%;
    max-width: 380px;
    display: flex;
    gap: 0.75rem;
    padding: 1.25rem 1.5rem;
    background: var(--surface);
    border-top: 1px solid var(--border);
    z-index: 10;
}

.filter-drawer-actions .btn-secondary {
    flex: 0 0 auto;
}

.filter-drawer-actions .btn-primary {
    flex: 1;
}

/* Responsive */
@media (max-width: 480px) {
    .hero { padding: 3rem 1.25rem 1.5rem; }
    .section { padding: 1.5rem 1.25rem; }
    .mini-grid { grid-template-columns: 1fr; }
    .cta-form { flex-direction: column; }
    .cta-section { padding: 1.5rem 1.25rem 2.5rem; }
    .category-grid { grid-template-columns: 1fr; }
    .onboarding-options { grid-template-columns: 1fr; }
    .tip-card { padding: 1.5rem; }

    /* Filter drawer full width on mobile */
    .filter-drawer {
        max-width: 100%;
    }

    .filter-drawer-actions {
        max-width: 100%;
    }

    /* 🔥 VIRAL-READY MOBILE TYPOGRAPHY 🔥 */
    /* Double the sizes - screenshots need to be READABLE when shared */
    .tip-desc {
        font-size: 1.8rem;
        line-height: 1.5;
    }

    .tip-title {
        font-size: 2.3rem;
        line-height: 1.2;
    }

    .tip-card--hero .tip-title {
        font-size: 3.2rem;
        line-height: 1.2;
    }

    .tip-card--hero .tip-desc {
        font-size: 2.1rem;
        line-height: 1.5;
    }

    .tip-icon {
        font-size: 4rem;
    }

    .tip-secret {
        font-size: 1.8rem;
        padding: 1rem 1.5rem;
    }

    .tip-secret span {
        font-size: 2rem;
    }
}
