feat: sessão #3 — lib (db/auth/email/validations), API routes, NextAuth v5, middleware, páginas account/shelters/shelter-dashboard, Prisma v7 fix
This commit is contained in:
823
app/globals.css
823
app/globals.css
@@ -1,130 +1,721 @@
|
||||
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,700;0,900;1,700;1,900&family=Lora:ital,wght@0,400;0,500;1,400&family=Fragment+Mono&display=swap');
|
||||
@import "tailwindcss";
|
||||
@import "tw-animate-css";
|
||||
@import "shadcn/tailwind.css";
|
||||
|
||||
@custom-variant dark (&:is(.dark *));
|
||||
|
||||
@theme inline {
|
||||
--color-background: var(--background);
|
||||
--color-foreground: var(--foreground);
|
||||
--font-sans: var(--font-sans);
|
||||
--font-mono: var(--font-geist-mono);
|
||||
--font-heading: var(--font-sans);
|
||||
--color-sidebar-ring: var(--sidebar-ring);
|
||||
--color-sidebar-border: var(--sidebar-border);
|
||||
--color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
|
||||
--color-sidebar-accent: var(--sidebar-accent);
|
||||
--color-sidebar-primary-foreground: var(--sidebar-primary-foreground);
|
||||
--color-sidebar-primary: var(--sidebar-primary);
|
||||
--color-sidebar-foreground: var(--sidebar-foreground);
|
||||
--color-sidebar: var(--sidebar);
|
||||
--color-chart-5: var(--chart-5);
|
||||
--color-chart-4: var(--chart-4);
|
||||
--color-chart-3: var(--chart-3);
|
||||
--color-chart-2: var(--chart-2);
|
||||
--color-chart-1: var(--chart-1);
|
||||
--color-ring: var(--ring);
|
||||
--color-input: var(--input);
|
||||
--color-border: var(--border);
|
||||
--color-destructive: var(--destructive);
|
||||
--color-accent-foreground: var(--accent-foreground);
|
||||
--color-accent: var(--accent);
|
||||
--color-muted-foreground: var(--muted-foreground);
|
||||
--color-muted: var(--muted);
|
||||
--color-secondary-foreground: var(--secondary-foreground);
|
||||
--color-secondary: var(--secondary);
|
||||
--color-primary-foreground: var(--primary-foreground);
|
||||
--color-primary: var(--primary);
|
||||
--color-popover-foreground: var(--popover-foreground);
|
||||
--color-popover: var(--popover);
|
||||
--color-card-foreground: var(--card-foreground);
|
||||
--color-card: var(--card);
|
||||
--radius-sm: calc(var(--radius) * 0.6);
|
||||
--radius-md: calc(var(--radius) * 0.8);
|
||||
--radius-lg: var(--radius);
|
||||
--radius-xl: calc(var(--radius) * 1.4);
|
||||
--radius-2xl: calc(var(--radius) * 1.8);
|
||||
--radius-3xl: calc(var(--radius) * 2.2);
|
||||
--radius-4xl: calc(var(--radius) * 2.6);
|
||||
}
|
||||
/* ─── PawLink Design System — Editorial Orgânico ────────────── */
|
||||
|
||||
:root {
|
||||
--background: oklch(1 0 0);
|
||||
--foreground: oklch(0.145 0 0);
|
||||
--card: oklch(1 0 0);
|
||||
--card-foreground: oklch(0.145 0 0);
|
||||
--popover: oklch(1 0 0);
|
||||
--popover-foreground: oklch(0.145 0 0);
|
||||
--primary: oklch(0.205 0 0);
|
||||
--primary-foreground: oklch(0.985 0 0);
|
||||
--secondary: oklch(0.97 0 0);
|
||||
--secondary-foreground: oklch(0.205 0 0);
|
||||
--muted: oklch(0.97 0 0);
|
||||
--muted-foreground: oklch(0.556 0 0);
|
||||
--accent: oklch(0.97 0 0);
|
||||
--accent-foreground: oklch(0.205 0 0);
|
||||
--destructive: oklch(0.577 0.245 27.325);
|
||||
--border: oklch(0.922 0 0);
|
||||
--input: oklch(0.922 0 0);
|
||||
--ring: oklch(0.708 0 0);
|
||||
--chart-1: oklch(0.87 0 0);
|
||||
--chart-2: oklch(0.556 0 0);
|
||||
--chart-3: oklch(0.439 0 0);
|
||||
--chart-4: oklch(0.371 0 0);
|
||||
--chart-5: oklch(0.269 0 0);
|
||||
--radius: 0.625rem;
|
||||
--sidebar: oklch(0.985 0 0);
|
||||
--sidebar-foreground: oklch(0.145 0 0);
|
||||
--sidebar-primary: oklch(0.205 0 0);
|
||||
--sidebar-primary-foreground: oklch(0.985 0 0);
|
||||
--sidebar-accent: oklch(0.97 0 0);
|
||||
--sidebar-accent-foreground: oklch(0.205 0 0);
|
||||
--sidebar-border: oklch(0.922 0 0);
|
||||
--sidebar-ring: oklch(0.708 0 0);
|
||||
/* ── Núcleo da paleta ─────────────────────────── */
|
||||
--soil: #231408;
|
||||
--terra: #C4501A;
|
||||
--amber: #D4880A;
|
||||
--sage: #3A6347;
|
||||
--cream: #F9F4ED;
|
||||
--linen: #EFE6D8;
|
||||
--parchment: #E4D8C8;
|
||||
|
||||
/* ── Variações funcionais ─────────────────────── */
|
||||
--terra-dim: #9A3A12;
|
||||
--terra-glow: rgba(196,80,26,0.12);
|
||||
--sage-dim: #274534;
|
||||
--soil-mid: #5C4033;
|
||||
--soil-faint: #9C8070;
|
||||
|
||||
/* ── Atmosfera ────────────────────────────────── */
|
||||
--shadow-warm-sm: 0 1px 0 var(--parchment), 0 4px 16px rgba(35,20,8,0.06);
|
||||
--shadow-warm-md: 0 2px 0 var(--parchment), 0 12px 40px rgba(35,20,8,0.10);
|
||||
--shadow-warm-lg: 0 4px 0 var(--parchment), 0 24px 64px rgba(35,20,8,0.14);
|
||||
|
||||
/* ── Modo escuro ──────────────────────────────── */
|
||||
--dark-void: #150D05;
|
||||
--dark-surface: #221508;
|
||||
--dark-raised: #2E1E0E;
|
||||
--dark-border: #3D2910;
|
||||
--dark-text: #F2E8D8;
|
||||
--dark-muted: #9A7A60;
|
||||
--dark-terra: #E06830;
|
||||
|
||||
/* ── Tipografia ───────────────────────────────── */
|
||||
--font-display: 'Playfair Display', Georgia, serif;
|
||||
--font-body: 'Lora', 'Georgia', serif;
|
||||
--font-accent: 'Fragment Mono', 'Courier New', monospace;
|
||||
|
||||
/* ── Espacejamento ────────────────────────────── */
|
||||
--space-1: 4px;
|
||||
--space-2: 8px;
|
||||
--space-3: 12px;
|
||||
--space-4: 16px;
|
||||
--space-5: 24px;
|
||||
--space-6: 32px;
|
||||
--space-7: 48px;
|
||||
--space-8: 64px;
|
||||
--space-9: 96px;
|
||||
--space-10: 128px;
|
||||
|
||||
/* ── Raios ────────────────────────────────────── */
|
||||
--radius-sm: 8px;
|
||||
--radius-md: 12px;
|
||||
--radius-lg: 16px;
|
||||
--radius-pill: 100px;
|
||||
|
||||
/* ── Easing ───────────────────────────────────── */
|
||||
--ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
|
||||
--ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
|
||||
--ease-standard: cubic-bezier(0.4, 0, 0.2, 1);
|
||||
|
||||
/* ── Transições ───────────────────────────────── */
|
||||
--transition-fast: 150ms var(--ease-standard);
|
||||
--transition-base: 220ms var(--ease-standard);
|
||||
--transition-slow: 320ms var(--ease-out-expo);
|
||||
|
||||
/* ── shadcn compat ────────────────────────────── */
|
||||
--background: var(--cream);
|
||||
--foreground: var(--soil);
|
||||
--card: var(--linen);
|
||||
--card-foreground: var(--soil);
|
||||
--popover: var(--linen);
|
||||
--popover-foreground: var(--soil);
|
||||
--primary: var(--terra);
|
||||
--primary-foreground: #FFFFFF;
|
||||
--secondary: var(--linen);
|
||||
--secondary-foreground: var(--soil);
|
||||
--muted: var(--linen);
|
||||
--muted-foreground: var(--soil-mid);
|
||||
--accent: var(--terra-glow);
|
||||
--accent-foreground: var(--terra);
|
||||
--destructive: #C0392B;
|
||||
--border: var(--parchment);
|
||||
--input: var(--parchment);
|
||||
--ring: var(--terra);
|
||||
--radius: 0.625rem;
|
||||
|
||||
/* ── Aliases semânticos (compat. código anterior) */
|
||||
--color-bg: var(--cream);
|
||||
--color-surface: var(--linen);
|
||||
--color-border: var(--parchment);
|
||||
--color-text: var(--soil);
|
||||
--color-muted: var(--soil-mid);
|
||||
--color-terra: var(--terra);
|
||||
--color-terra-light: rgba(196,80,26,0.08);
|
||||
--color-amber: var(--amber);
|
||||
--color-sage: var(--sage);
|
||||
--color-soil-muted: var(--soil-faint);
|
||||
--color-fog: var(--parchment);
|
||||
--color-linen: var(--linen);
|
||||
--color-cream: var(--cream);
|
||||
--color-soil: var(--soil);
|
||||
}
|
||||
|
||||
.dark {
|
||||
--background: oklch(0.145 0 0);
|
||||
--foreground: oklch(0.985 0 0);
|
||||
--card: oklch(0.205 0 0);
|
||||
--card-foreground: oklch(0.985 0 0);
|
||||
--popover: oklch(0.205 0 0);
|
||||
--popover-foreground: oklch(0.985 0 0);
|
||||
--primary: oklch(0.922 0 0);
|
||||
--primary-foreground: oklch(0.205 0 0);
|
||||
--secondary: oklch(0.269 0 0);
|
||||
--secondary-foreground: oklch(0.985 0 0);
|
||||
--muted: oklch(0.269 0 0);
|
||||
--muted-foreground: oklch(0.708 0 0);
|
||||
--accent: oklch(0.269 0 0);
|
||||
--accent-foreground: oklch(0.985 0 0);
|
||||
--destructive: oklch(0.704 0.191 22.216);
|
||||
--border: oklch(1 0 0 / 10%);
|
||||
--input: oklch(1 0 0 / 15%);
|
||||
--ring: oklch(0.556 0 0);
|
||||
--chart-1: oklch(0.87 0 0);
|
||||
--chart-2: oklch(0.556 0 0);
|
||||
--chart-3: oklch(0.439 0 0);
|
||||
--chart-4: oklch(0.371 0 0);
|
||||
--chart-5: oklch(0.269 0 0);
|
||||
--sidebar: oklch(0.205 0 0);
|
||||
--sidebar-foreground: oklch(0.985 0 0);
|
||||
--sidebar-primary: oklch(0.488 0.243 264.376);
|
||||
--sidebar-primary-foreground: oklch(0.985 0 0);
|
||||
--sidebar-accent: oklch(0.269 0 0);
|
||||
--sidebar-accent-foreground: oklch(0.985 0 0);
|
||||
--sidebar-border: oklch(1 0 0 / 10%);
|
||||
--sidebar-ring: oklch(0.556 0 0);
|
||||
/* ─── Modo Escuro ────────────────────────────────────────────── */
|
||||
[data-theme="dark"], .dark {
|
||||
--cream: var(--dark-void);
|
||||
--linen: var(--dark-surface);
|
||||
--parchment: var(--dark-border);
|
||||
--soil: var(--dark-text);
|
||||
--soil-mid: var(--dark-muted);
|
||||
--terra: var(--dark-terra);
|
||||
|
||||
--shadow-warm-sm: 0 1px 0 rgba(0,0,0,0.3), 0 4px 16px rgba(0,0,0,0.2);
|
||||
--shadow-warm-md: 0 2px 0 rgba(0,0,0,0.3), 0 12px 40px rgba(0,0,0,0.3);
|
||||
--shadow-warm-lg: 0 4px 0 rgba(0,0,0,0.3), 0 24px 64px rgba(0,0,0,0.4);
|
||||
|
||||
--background: var(--dark-void);
|
||||
--foreground: var(--dark-text);
|
||||
--card: var(--dark-surface);
|
||||
--border: var(--dark-border);
|
||||
--input: var(--dark-border);
|
||||
|
||||
--color-bg: var(--dark-void);
|
||||
--color-surface: var(--dark-surface);
|
||||
--color-border: var(--dark-border);
|
||||
--color-text: var(--dark-text);
|
||||
--color-muted: var(--dark-muted);
|
||||
--color-terra: var(--dark-terra);
|
||||
--color-linen: var(--dark-surface);
|
||||
--color-cream: var(--dark-void);
|
||||
--color-soil: var(--dark-text);
|
||||
}
|
||||
|
||||
/* ─── Transição suave entre temas ────────────────────────────── */
|
||||
*, *::before, *::after {
|
||||
transition: background-color 300ms ease,
|
||||
border-color 300ms ease,
|
||||
color 100ms ease;
|
||||
}
|
||||
|
||||
[class*="btn"], .animal-card, .filter-chip, .menu-btn {
|
||||
transition: none;
|
||||
}
|
||||
|
||||
/* ─── Reset Base ─────────────────────────────────────────────── */
|
||||
@layer base {
|
||||
* {
|
||||
@apply border-border outline-ring/50;
|
||||
}
|
||||
body {
|
||||
@apply bg-background text-foreground;
|
||||
*, *::before, *::after {
|
||||
box-sizing: border-box;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
html {
|
||||
@apply font-sans;
|
||||
background-color: var(--cream);
|
||||
color: var(--soil);
|
||||
font-family: var(--font-body);
|
||||
font-size: 16px;
|
||||
line-height: 1.6;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
-moz-osx-font-smoothing: grayscale;
|
||||
scroll-behavior: smooth;
|
||||
}
|
||||
|
||||
body {
|
||||
background-color: var(--cream);
|
||||
color: var(--soil);
|
||||
min-height: 100dvh;
|
||||
font-family: var(--font-body);
|
||||
}
|
||||
|
||||
h1, h2, h3, h4, h5, h6 {
|
||||
font-family: var(--font-display);
|
||||
line-height: 1.1;
|
||||
color: var(--soil);
|
||||
letter-spacing: -0.02em;
|
||||
}
|
||||
|
||||
a {
|
||||
color: inherit;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
img {
|
||||
max-width: 100%;
|
||||
display: block;
|
||||
}
|
||||
|
||||
button {
|
||||
cursor: pointer;
|
||||
font-family: var(--font-body);
|
||||
background: none;
|
||||
border: none;
|
||||
}
|
||||
|
||||
:focus-visible {
|
||||
outline: 2.5px solid var(--terra);
|
||||
outline-offset: 4px;
|
||||
border-radius: 4px;
|
||||
}
|
||||
}
|
||||
|
||||
/* ─── Container ──────────────────────────────────────────────── */
|
||||
.container {
|
||||
width: 100%;
|
||||
max-width: 1280px;
|
||||
margin: 0 auto;
|
||||
padding: 0 var(--space-5);
|
||||
}
|
||||
@media (min-width: 768px) {
|
||||
.container { padding: 0 var(--space-7); }
|
||||
}
|
||||
|
||||
/* ─── Botões ─────────────────────────────────────────────────── */
|
||||
.btn {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
padding: 13px 24px;
|
||||
border-radius: var(--radius-pill);
|
||||
font: 500 13px/1 var(--font-accent);
|
||||
letter-spacing: 0.08em;
|
||||
text-transform: uppercase;
|
||||
cursor: pointer;
|
||||
border: 2px solid transparent;
|
||||
white-space: nowrap;
|
||||
text-decoration: none;
|
||||
min-height: 44px;
|
||||
transition: transform 180ms var(--ease-spring),
|
||||
box-shadow 180ms ease,
|
||||
background 150ms ease,
|
||||
color 150ms ease,
|
||||
border-color 150ms ease !important;
|
||||
}
|
||||
.btn:active { transform: scale(0.96) !important; }
|
||||
|
||||
.btn-primary {
|
||||
background: var(--terra);
|
||||
color: white;
|
||||
}
|
||||
.btn-primary:hover {
|
||||
background: var(--terra-dim);
|
||||
transform: translateY(-2px) !important;
|
||||
box-shadow: 0 8px 24px var(--terra-glow);
|
||||
}
|
||||
|
||||
.btn-secondary {
|
||||
background: transparent;
|
||||
color: var(--terra);
|
||||
border-color: var(--terra);
|
||||
}
|
||||
.btn-secondary:hover {
|
||||
background: var(--terra-glow);
|
||||
transform: translateY(-1px) !important;
|
||||
}
|
||||
|
||||
.btn-ghost {
|
||||
background: transparent;
|
||||
color: var(--soil-mid);
|
||||
padding: 11px 20px;
|
||||
}
|
||||
.btn-ghost:hover {
|
||||
background: var(--parchment);
|
||||
color: var(--soil);
|
||||
}
|
||||
|
||||
.btn-sage {
|
||||
background: var(--sage);
|
||||
color: white;
|
||||
}
|
||||
.btn-sage:hover {
|
||||
background: var(--sage-dim);
|
||||
transform: translateY(-2px) !important;
|
||||
box-shadow: 0 8px 24px rgba(58,99,71,0.25);
|
||||
}
|
||||
|
||||
/* ─── Header ─────────────────────────────────────────────────── */
|
||||
.header {
|
||||
position: sticky;
|
||||
top: 0;
|
||||
z-index: 100;
|
||||
padding: 0 var(--space-5);
|
||||
height: 64px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
background: rgba(249,244,237,0.85);
|
||||
backdrop-filter: blur(16px) saturate(180%);
|
||||
-webkit-backdrop-filter: blur(16px) saturate(180%);
|
||||
border-bottom: 1px solid transparent;
|
||||
transition: border-color 200ms ease, box-shadow 200ms ease !important;
|
||||
}
|
||||
[data-theme="dark"] .header, .dark .header {
|
||||
background: rgba(21,13,5,0.85);
|
||||
}
|
||||
.header.scrolled {
|
||||
border-bottom-color: var(--parchment);
|
||||
box-shadow: 0 1px 0 var(--parchment), 0 8px 32px rgba(35,20,8,0.06);
|
||||
}
|
||||
|
||||
.logo {
|
||||
font: 700 italic 22px/1 var(--font-display);
|
||||
color: var(--terra);
|
||||
letter-spacing: -0.02em;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
/* ── Hambúrguer animado ──────────────────────────────────────── */
|
||||
.menu-btn {
|
||||
width: 44px;
|
||||
height: 44px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
gap: 5px;
|
||||
padding: 10px;
|
||||
border-radius: var(--radius-md);
|
||||
cursor: pointer;
|
||||
background: transparent;
|
||||
border: none;
|
||||
transition: background 150ms ease !important;
|
||||
}
|
||||
.menu-btn:hover { background: var(--parchment); }
|
||||
|
||||
.menu-btn span {
|
||||
display: block;
|
||||
height: 1.5px;
|
||||
background: var(--soil);
|
||||
border-radius: 2px;
|
||||
transition: transform 250ms var(--ease-spring),
|
||||
opacity 200ms ease !important;
|
||||
}
|
||||
.menu-btn.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
|
||||
.menu-btn.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
|
||||
.menu-btn.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
|
||||
|
||||
/* ─── Side Menu ──────────────────────────────────────────────── */
|
||||
.side-menu-overlay {
|
||||
position: fixed;
|
||||
inset: 0;
|
||||
background: rgba(35,20,8,0.4);
|
||||
backdrop-filter: blur(4px);
|
||||
z-index: 200;
|
||||
opacity: 0;
|
||||
pointer-events: none;
|
||||
transition: opacity 300ms ease !important;
|
||||
}
|
||||
.side-menu-overlay.open {
|
||||
opacity: 1;
|
||||
pointer-events: all;
|
||||
}
|
||||
|
||||
.side-menu {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
width: min(360px, 88vw);
|
||||
background: var(--cream);
|
||||
z-index: 201;
|
||||
padding: 0;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
transform: translateX(100%);
|
||||
transition: transform 320ms cubic-bezier(0.32, 0, 0.15, 1) !important;
|
||||
overflow-y: auto;
|
||||
box-shadow: -8px 0 48px rgba(35,20,8,0.15);
|
||||
}
|
||||
.side-menu.open {
|
||||
transform: translateX(0);
|
||||
}
|
||||
|
||||
.menu-item {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: var(--space-3);
|
||||
padding: var(--space-4) var(--space-5);
|
||||
border-radius: var(--radius-md);
|
||||
font: 500 16px/1 var(--font-body);
|
||||
color: var(--soil);
|
||||
cursor: pointer;
|
||||
text-decoration: none;
|
||||
transition: background 150ms ease, color 150ms ease !important;
|
||||
min-height: 44px;
|
||||
}
|
||||
.menu-item:hover {
|
||||
background: var(--linen);
|
||||
color: var(--terra);
|
||||
}
|
||||
.menu-item svg { color: var(--soil-mid); flex-shrink: 0; }
|
||||
.menu-item:hover svg { color: var(--terra); }
|
||||
|
||||
.theme-toggle {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
padding: var(--space-4) var(--space-3);
|
||||
border-radius: var(--radius-md);
|
||||
background: var(--linen);
|
||||
cursor: pointer;
|
||||
border: none;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
/* ─── Animal Card ────────────────────────────────────────────── */
|
||||
.animal-card {
|
||||
background: var(--linen);
|
||||
border-radius: var(--radius-lg);
|
||||
border: 1px solid var(--parchment);
|
||||
box-shadow: var(--shadow-warm-sm);
|
||||
overflow: hidden;
|
||||
cursor: pointer;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
animation: cardReveal 500ms cubic-bezier(0.22, 1, 0.36, 1) both;
|
||||
transition: transform 220ms cubic-bezier(0.34, 1.56, 0.64, 1),
|
||||
box-shadow 220ms ease !important;
|
||||
}
|
||||
.animal-card:hover {
|
||||
transform: translateY(-6px) scale(1.005);
|
||||
box-shadow: var(--shadow-warm-lg);
|
||||
}
|
||||
|
||||
.animal-card:nth-child(1) { animation-delay: 0ms; }
|
||||
.animal-card:nth-child(2) { animation-delay: 80ms; }
|
||||
.animal-card:nth-child(3) { animation-delay: 160ms; }
|
||||
.animal-card:nth-child(4) { animation-delay: 240ms; }
|
||||
.animal-card:nth-child(5) { animation-delay: 320ms; }
|
||||
.animal-card:nth-child(6) { animation-delay: 400ms; }
|
||||
.animal-card:nth-child(7) { animation-delay: 480ms; }
|
||||
.animal-card:nth-child(8) { animation-delay: 560ms; }
|
||||
|
||||
/* ─── Badge Urgente ──────────────────────────────────────────── */
|
||||
.badge-urgent {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 4px;
|
||||
background: var(--amber);
|
||||
color: white;
|
||||
font: 500 10px/1 var(--font-accent);
|
||||
letter-spacing: 0.1em;
|
||||
text-transform: uppercase;
|
||||
padding: 6px 10px;
|
||||
border-radius: var(--radius-pill);
|
||||
animation: urgentPulse 2.5s ease-in-out infinite;
|
||||
}
|
||||
|
||||
/* ─── Filtros ────────────────────────────────────────────────── */
|
||||
.filters-strip {
|
||||
display: flex;
|
||||
gap: var(--space-2);
|
||||
overflow-x: auto;
|
||||
padding: var(--space-2) 0 var(--space-3);
|
||||
scrollbar-width: none;
|
||||
-webkit-overflow-scrolling: touch;
|
||||
mask-image: linear-gradient(90deg, transparent 0, black 24px, black calc(100% - 24px), transparent 100%);
|
||||
}
|
||||
.filters-strip::-webkit-scrollbar { display: none; }
|
||||
|
||||
.filter-chip {
|
||||
flex-shrink: 0;
|
||||
padding: 9px 16px;
|
||||
border-radius: var(--radius-pill);
|
||||
border: 1.5px solid var(--parchment);
|
||||
background: var(--cream);
|
||||
font: 400 13px/1 var(--font-accent);
|
||||
letter-spacing: 0.04em;
|
||||
color: var(--soil-mid);
|
||||
cursor: pointer;
|
||||
white-space: nowrap;
|
||||
min-height: 44px;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
transition: all 150ms ease !important;
|
||||
}
|
||||
.filter-chip:hover {
|
||||
border-color: var(--terra);
|
||||
color: var(--terra);
|
||||
background: rgba(196,80,26,0.04);
|
||||
}
|
||||
.filter-chip.active {
|
||||
background: var(--terra);
|
||||
border-color: var(--terra);
|
||||
color: white;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
/* ─── Skeleton Loading ───────────────────────────────────────── */
|
||||
.skeleton {
|
||||
background: linear-gradient(
|
||||
90deg,
|
||||
var(--linen) 25%,
|
||||
var(--parchment) 50%,
|
||||
var(--linen) 75%
|
||||
);
|
||||
background-size: 1200px 100%;
|
||||
animation: shimmer 1.8s ease-in-out infinite;
|
||||
border-radius: var(--radius-sm);
|
||||
}
|
||||
|
||||
.skeleton-card {
|
||||
background: var(--linen);
|
||||
border-radius: var(--radius-lg);
|
||||
border: 1px solid var(--parchment);
|
||||
overflow: hidden;
|
||||
}
|
||||
.skeleton-image { height: 180px; }
|
||||
.skeleton-title { height: 22px; width: 65%; margin: 16px 16px 8px; }
|
||||
.skeleton-sub { height: 14px; width: 80%; margin: 0 16px 12px; }
|
||||
.skeleton-location { height: 14px; width: 50%; margin: 0 16px 20px; }
|
||||
|
||||
/* ─── Tags ───────────────────────────────────────────────────── */
|
||||
.animal-tag {
|
||||
padding: 6px 14px;
|
||||
background: var(--linen);
|
||||
border: 1px solid var(--parchment);
|
||||
border-radius: var(--radius-pill);
|
||||
font: 400 10px/1 var(--font-accent);
|
||||
letter-spacing: 0.1em;
|
||||
text-transform: uppercase;
|
||||
color: var(--soil-mid);
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
}
|
||||
.animal-tag.positive {
|
||||
background: rgba(58,99,71,0.08);
|
||||
border-color: rgba(58,99,71,0.2);
|
||||
color: var(--sage);
|
||||
}
|
||||
|
||||
/* ─── Grid de Animais ────────────────────────────────────────── */
|
||||
.animal-grid {
|
||||
display: grid;
|
||||
gap: var(--space-5);
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
@media (min-width: 640px) {
|
||||
.animal-grid { grid-template-columns: repeat(2, 1fr); }
|
||||
}
|
||||
@media (min-width: 1024px) {
|
||||
.animal-grid { grid-template-columns: repeat(3, 1fr); }
|
||||
}
|
||||
@media (min-width: 1280px) {
|
||||
.animal-grid { grid-template-columns: repeat(4, 1fr); }
|
||||
}
|
||||
|
||||
/* ─── Secção / Tipografia ────────────────────────────────────── */
|
||||
.section-title {
|
||||
font: 700 clamp(28px, 5vw, 40px)/1.1 var(--font-display);
|
||||
color: var(--soil);
|
||||
letter-spacing: -0.02em;
|
||||
}
|
||||
.section-subtitle {
|
||||
font: 400 18px/1.65 var(--font-body);
|
||||
color: var(--soil-mid);
|
||||
}
|
||||
.eyebrow {
|
||||
font: 400 11px/1 var(--font-accent);
|
||||
letter-spacing: 0.16em;
|
||||
text-transform: uppercase;
|
||||
color: var(--soil-faint);
|
||||
}
|
||||
|
||||
/* ─── Hero ───────────────────────────────────────────────────── */
|
||||
.hero {
|
||||
position: relative;
|
||||
min-height: 85svh;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
padding: var(--space-9) var(--space-5);
|
||||
overflow: hidden;
|
||||
background: var(--cream);
|
||||
}
|
||||
|
||||
.hero-grain {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
|
||||
background-size: 256px 256px;
|
||||
opacity: 0.6;
|
||||
pointer-events: none;
|
||||
z-index: 0;
|
||||
}
|
||||
|
||||
.hero-glow {
|
||||
position: absolute;
|
||||
width: 600px;
|
||||
height: 600px;
|
||||
border-radius: 50%;
|
||||
background: radial-gradient(circle, rgba(196,80,26,0.08) 0%, transparent 70%);
|
||||
top: -100px;
|
||||
right: -200px;
|
||||
pointer-events: none;
|
||||
z-index: 0;
|
||||
}
|
||||
|
||||
.hero-content { position: relative; z-index: 1; max-width: 720px; }
|
||||
|
||||
.hero-eyebrow {
|
||||
font: 400 11px/1 var(--font-accent);
|
||||
letter-spacing: 0.16em;
|
||||
text-transform: uppercase;
|
||||
color: var(--soil-faint);
|
||||
margin-bottom: var(--space-4);
|
||||
animation: heroReveal 600ms 100ms ease both;
|
||||
}
|
||||
|
||||
.hero-title {
|
||||
font: 900 clamp(52px, 9vw, 100px)/0.95 var(--font-display);
|
||||
color: var(--soil);
|
||||
letter-spacing: -0.03em;
|
||||
margin-bottom: var(--space-5);
|
||||
animation: heroReveal 600ms 200ms ease both;
|
||||
}
|
||||
.hero-title em {
|
||||
font-style: italic;
|
||||
color: var(--terra);
|
||||
}
|
||||
|
||||
.hero-sub {
|
||||
font: 400 18px/1.5 var(--font-body);
|
||||
color: var(--soil-mid);
|
||||
margin-bottom: var(--space-7);
|
||||
max-width: 400px;
|
||||
animation: heroReveal 600ms 350ms ease both;
|
||||
}
|
||||
|
||||
.hero-actions {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: var(--space-3);
|
||||
animation: heroReveal 600ms 450ms ease both;
|
||||
}
|
||||
|
||||
/* ─── Scrollbar ──────────────────────────────────────────────── */
|
||||
::-webkit-scrollbar { width: 6px; height: 6px; }
|
||||
::-webkit-scrollbar-track { background: transparent; }
|
||||
::-webkit-scrollbar-thumb { background: var(--parchment); border-radius: 3px; }
|
||||
::-webkit-scrollbar-thumb:hover { background: var(--soil-faint); }
|
||||
|
||||
/* ─── Toast / Confirmação ────────────────────────────────────── */
|
||||
.confirmation-overlay {
|
||||
position: fixed;
|
||||
inset: 0;
|
||||
background: linear-gradient(135deg, var(--cream) 0%, var(--linen) 100%);
|
||||
z-index: 200;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
animation: fadeIn 300ms ease;
|
||||
}
|
||||
|
||||
/* ─── Lightbox ───────────────────────────────────────────────── */
|
||||
.lightbox {
|
||||
position: fixed;
|
||||
inset: 0;
|
||||
background: rgba(0,0,0,0.9);
|
||||
z-index: 200;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
animation: fadeIn 200ms ease;
|
||||
padding: var(--space-5);
|
||||
}
|
||||
|
||||
/* ─── Animações ─────────────────────────────────────────────── */
|
||||
@keyframes cardReveal {
|
||||
from { opacity: 0; transform: translateY(32px); }
|
||||
to { opacity: 1; transform: translateY(0); }
|
||||
}
|
||||
|
||||
@keyframes heroReveal {
|
||||
from { opacity: 0; transform: translateY(20px); }
|
||||
to { opacity: 1; transform: translateY(0); }
|
||||
}
|
||||
|
||||
@keyframes shimmer {
|
||||
0% { background-position: -600px 0; }
|
||||
100% { background-position: 600px 0; }
|
||||
}
|
||||
|
||||
@keyframes urgentPulse {
|
||||
0%, 100% { box-shadow: 0 0 0 0 rgba(212,136,10,0.4); }
|
||||
50% { box-shadow: 0 0 0 8px rgba(212,136,10,0); }
|
||||
}
|
||||
|
||||
@keyframes fadeIn {
|
||||
from { opacity: 0; }
|
||||
to { opacity: 1; }
|
||||
}
|
||||
|
||||
@keyframes fadeSlideUp {
|
||||
from { opacity: 0; transform: translateY(24px); }
|
||||
to { opacity: 1; transform: translateY(0); }
|
||||
}
|
||||
|
||||
@keyframes slideInRight {
|
||||
from { transform: translateX(100%); }
|
||||
to { transform: translateX(0); }
|
||||
}
|
||||
|
||||
/* ─── Acessibilidade ─────────────────────────────────────────── */
|
||||
.btn, .menu-item, .filter-chip, .animal-card, .menu-btn {
|
||||
min-height: 44px;
|
||||
}
|
||||
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
*, *::before, *::after {
|
||||
animation-duration: 0.01ms !important;
|
||||
animation-iteration-count: 1 !important;
|
||||
transition-duration: 0.01ms !important;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user