/* ══════════════════════════════════════════
   Cura — Shared Styles
   ══════════════════════════════════════════ */

/* Base */
* { -webkit-tap-highlight-color: transparent; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { overscroll-behavior-y: none; }

/* Page entry animation */
.page-enter { animation: pageIn 0.3s cubic-bezier(0.22, 1, 0.36, 1) forwards; }
@keyframes pageIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Card stagger animation */
.card-anim {
    opacity: 0;
    animation: cardIn 0.35s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes cardIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Scrollbar hide */
.scroll-hide::-webkit-scrollbar { display: none; }
.scroll-hide { -ms-overflow-style: none; scrollbar-width: none; }

/* Custom select arrow */
.select-clean {
    appearance: none; -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239A9590' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
}

/* Press effect */
.press { transition: transform 0.1s ease; }
.press:active { transform: scale(0.97); }

/* Card hover */
.card-hover {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card-hover:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
}

/* ── Bottom Nav (Mobile) ─────────────────── */
.nav-item {
    display: flex; flex-direction: column; align-items: center;
    padding: 6px 16px; border-radius: 14px;
    transition: all 0.2s ease;
    text-decoration: none;
}
.nav-item.active { color: #4a7c59; background: rgba(74, 124, 89, 0.08); }
.nav-item:not(.active) { color: #9A9590; }

/* ── Desktop Top Nav ─────────────────────── */
.topnav-link {
    font-size: 14px; font-weight: 500; color: #737373;
    transition: color 0.15s ease; text-decoration: none;
    padding: 6px 12px; border-radius: 8px;
}
.topnav-link:hover { color: #4a7c59; background: rgba(74, 124, 89, 0.05); }
.topnav-link.active { color: #4a7c59; font-weight: 600; }

/* ── WhatsApp button ─────────────────────── */
.wa-btn {
    background: linear-gradient(135deg, #25D366, #128C7E);
    transition: all 0.2s ease;
}
.wa-btn:hover { box-shadow: 0 6px 24px rgba(37, 211, 102, 0.3); transform: translateY(-1px); }
.wa-btn:active { transform: scale(0.98) translateY(0); }

/* ── Primary CTA button (sage) ──────────── */
.primary-cta {
    background: linear-gradient(135deg, #4a7c59, #3b6347);
    transition: all 0.2s ease;
}
.primary-cta:hover { box-shadow: 0 6px 24px rgba(74, 124, 89, 0.3); transform: translateY(-1px); }
.primary-cta:active { transform: scale(0.98) translateY(0); }

/* ── Pulse dot ───────────────────────────── */
.pulse-dot {
    width: 6px; height: 6px; border-radius: 50%; background: #4a7c59;
    animation: pulse 2s ease-in-out infinite; flex-shrink: 0;
}
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.5); }
}

/* ── Filter chip active/inactive ─────────── */
.chip { transition: all 0.15s ease; cursor: pointer; user-select: none; }
.chip.active { background: #4a7c59; color: #fff; border-color: #4a7c59; }
.chip:not(.active):hover { border-color: #b9d1be; color: #4a7c59; }

/* ── Desktop sidebar filter radio ────────── */
.filter-radio { cursor: pointer; transition: all 0.15s ease; }
.filter-radio:hover { color: #4a7c59; }
.filter-radio.selected { color: #4a7c59; font-weight: 600; }

/* ── Filter pill (segmented control) ─────── */
.filter-pill { cursor: pointer; transition: all 0.15s ease; }
.filter-pill.selected { background: #f0f5f1; color: #4a7c59; font-weight: 600; }
.filter-pill:not(.selected):hover { background: #F8F7F4; color: #4a7c59; }

/* ── Loader ──────────────────────────────── */
.loader-spinner {
    width: 28px; height: 28px;
    border: 2px solid #dce8de; border-top-color: #4a7c59;
    border-radius: 50%; animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Section labels ──────────────────────── */
.section-label {
    font-size: 10px; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.15em; color: #9A9590; margin-bottom: 10px;
}

/* ── Collapsible sidebar ────────────────── */
.sidebar-panel {
    width: 280px;
    transition: width 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    overflow: hidden;
}
.sidebar-panel.sidebar-collapsed {
    width: 0;
    border-right-color: transparent;
}
.sidebar-panel.sidebar-collapsed .sidebar-inner {
    opacity: 0;
    pointer-events: none;
}
.sidebar-panel .sidebar-inner {
    width: 280px;
    transition: opacity 0.2s ease;
}
