/* ========================================================
   Piscicultura Online — Design System & Custom Animations
   Padrão: WebCis LP Creator / Frontend Specialist
   ======================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Outfit:wght@400;500;600;700;800;900&display=swap');

:root {
    --color-primary: #0284c7;
    --color-primary-dark: #0369a1;
    --color-navy-deep: #041324;
    --color-navy-surface: #07192e;
    --color-cyan: #38bdf8;
    --color-whatsapp: #25D366;
    --color-whatsapp-dark: #128C7E;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #1e293b;
    background-color: #f8fafc;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

h1, h2, h3, h4, .font-heading {
    font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif;
    letter-spacing: -0.02em;
}

/* Orbes e Atmosfera Dinâmica */
@keyframes blurDrift {
    0% { transform: translate(0px, 0px) scale(1); }
    33% { transform: translate(30px, -50px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
    100% { transform: translate(0px, 0px) scale(1); }
}

.orb-drift {
    animation: blurDrift 22s ease-in-out infinite alternate;
}

.orb-drift-reverse {
    animation: blurDrift 28s ease-in-out infinite alternate-reverse;
}

/* Rotação Suave para os Arcos Orbitais SVG (Exemplo Print 1 & 2) */
@keyframes orbitSlow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

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

.animate-orbit {
    transform-origin: center center;
    animation: orbitSlow 60s linear infinite;
}

.animate-orbit-reverse {
    transform-origin: center center;
    animation: orbitReverse 85s linear infinite;
}

/* Dot Grid de Fundo Sofisticado (Exemplo Print 2) */
.bg-dot-grid {
    background-image: radial-gradient(rgba(56, 189, 248, 0.12) 1.2px, transparent 1.2px);
    background-size: 28px 28px;
}

.bg-dot-grid-light {
    background-image: radial-gradient(rgba(2, 132, 199, 0.08) 1.2px, transparent 1.2px);
    background-size: 24px 24px;
}

/* Badges Flutuantes em Cápsula (Exemplo Print 2) */
.badge-capsule {
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(56, 189, 248, 0.25);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5), 0 0 15px rgba(14, 165, 233, 0.15);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.badge-capsule:hover {
    transform: translateY(-2px);
    border-color: rgba(56, 189, 248, 0.5);
}

/* Linhas Horizontais de Diferenciais (Exemplo Print 2) */
.feature-row {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(51, 65, 85, 0.6);
    border-radius: 1.25rem;
    padding: 1.25rem 1.5rem;
    transition: all 0.3s ease;
}

.feature-row:hover {
    background: rgba(15, 23, 42, 0.9);
    border-color: rgba(56, 189, 248, 0.4);
    transform: translateX(4px);
    box-shadow: 0 10px 30px -10px rgba(2, 132, 199, 0.2);
}

/* Efeito Hover nos Cards de Peixe */
.fish-card {
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, border-color 0.25s ease;
}

.fish-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 28px -6px rgba(2, 132, 199, 0.12);
    border-color: rgba(56, 189, 248, 0.5);
}

.fish-card .aspect-video,
.fish-card .aspect-\[4\/3\],
.fish-card img {
    border-radius: 7px !important;
    -webkit-border-radius: 7px !important;
    overflow: hidden !important;
}

.fish-card .aspect-\[4\/3\] {
    max-width: 200px !important;
    margin-left: auto;
    margin-right: auto;
}

.fish-card img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    transition: transform 0.3s ease;
}

.fish-card:hover img {
    transform: scale(1.05);
}

/* Botão Pulsante do WhatsApp Flutuante */
@keyframes pulseGlow {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6); }
    70% { box-shadow: 0 0 0 14px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.btn-whatsapp-pulse {
    animation: pulseGlow 2.5s infinite;
}

/* Utilitário para ocultar barra de rolagem horizontal em sliders mobile */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* ========================================================
   Chips de Categoria do Catálogo (Contraste Perfeito & Slider Mobile)
   ======================================================== */
.category-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.38rem 0.85rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1.25;
    background-color: #ffffff !important;
    color: #1e293b !important; /* slate-800: alta legibilidade */
    border: 1.5px solid #cbd5e1 !important;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    user-select: none;
    white-space: nowrap !important;
    flex-shrink: 0;
}

@media (min-width: 640px) {
    .category-chip {
        padding: 0.45rem 1.15rem;
        font-size: 0.8125rem;
    }
}

.category-chip:hover:not(.active) {
    background-color: #f1f5f9 !important;
    color: #0284c7 !important;
    border-color: #94a3b8 !important;
}

.category-chip.active {
    background-color: #0284c7 !important; /* Azul primário forte */
    color: #ffffff !important; /* Branco puro: contraste absoluto */
    border-color: #0284c7 !important;
    box-shadow: 0 4px 14px -2px rgba(2, 132, 199, 0.45) !important;
    transform: translateY(-1px);
}

/* Tabelas e CMS */
th.sortable-th {
    cursor: pointer;
    user-select: none;
    transition: color 0.15s ease;
}

th.sortable-th:hover {
    color: #38bdf8;
}

th.sortable-th .sort-icon {
    margin-left: 6px;
    font-size: 11px;
    opacity: 0.35;
}

th.sort-asc .sort-icon, th.sort-desc .sort-icon {
    opacity: 1 !important;
    color: #38bdf8;
}

table th, table td {
    white-space: nowrap !important;
}

.input-cms {
    border-width: 2px !important;
    background-color: #0f172a;
    border-color: #334155;
    color: #f8fafc;
    transition: all 0.2s ease;
}

.input-cms:focus {
    border-color: #0284c7 !important;
    outline: none;
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.2);
}

/* ========================================================
   Scroll Reveal Animations (Transições ao Descer a Página)
   ======================================================== */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1), transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.reveal-on-scroll.revealed {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.reveal-fade {
    opacity: 0;
    transition: opacity 0.85s ease;
    will-change: opacity;
}

.reveal-fade.revealed {
    opacity: 1 !important;
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.94);
    transition: opacity 0.75s ease, transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.reveal-scale.revealed {
    opacity: 1 !important;
    transform: scale(1) !important;
}

.delay-100 { transition-delay: 0.08s; }
.delay-200 { transition-delay: 0.16s; }
.delay-300 { transition-delay: 0.24s; }
.delay-400 { transition-delay: 0.32s; }
