﻿/* ======================================================
   KashtoCash App UI - CLEAN & STABLE
   ====================================================== */

/* ---------- Base theme (light) ---------- */
:root {
    --kc-bg: #f5f7fb;
    --kc-surface: #ffffff;
    --kc-surface-soft: #f9fafb;
    --kc-border-subtle: #e5e7eb;
    --kc-text: #111827;
    --kc-muted: #6b7280;
    --kc-primary: #2563eb; /* digital blue */
    --kc-primary-soft: #dbeafe;
    --kc-accent: #f5b300; /* Kashmiri gold */
    --kc-accent-soft: #fff7e0;
    --kc-success: #16a34a;
    --kc-shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.1);
    --kc-radius-lg: 16px;
    --kc-radius-md: 10px;
    --kc-header-height: 88px;
    --eco-green: #16a34a;
    --eco-leaf: #22c55e;
    --eco-glow: 0 10px 30px rgba(34, 197, 94, 0.25);
    --step--1: clamp(0.86rem, 0.84rem + 0.2vw, 0.95rem);
    --step-0: clamp(1.00rem, 0.96rem + 0.5vw, 1.10rem);
    --step-1: clamp(1.10rem, 1.02rem + 0.8vw, 1.35rem);
    --step-2: clamp(1.25rem, 1.10rem + 1.2vw, 1.75rem);
}

/* simple future-proof hook if you ever use [data-theme="light"] */
[data-theme="light"] {
    background-color: var(--kc-bg);
}
:root {
    --kc-bg: #f5f7fb;
    --kc-surface: #ffffff;
    --kc-border: #e5e7eb;
    --kc-text: #111827;
    --kc-muted: #6b7280;
    --kc-primary: #2563eb;
    --kc-accent: #f59e0b;
}

/* ---------- RESET ---------- */
* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    height: 100%;
    margin: 0;
}

    body.kc-body {
        font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
        background: #f5f7fb;
        color: var(--kc-text);
    }

/* ---------- HEADER ---------- */

.kc-header {
    height: 56px;
    background: #ffffff;
    border-bottom: 1px solid var(--kc-border);
    box-shadow: 0 1px 6px rgba(0,0,0,0.06);
    position: sticky;
    top: 0;
    z-index: 1000;
}

    .kc-header .row {
        padding-top: 4px !important;
        padding-bottom: 4px !important;
    }

    /* Ensure header buttons visible */
    .kc-header a,
    .kc-header button,
    .kc-header i {
        color: #111827 !important;
    }

.btn-outline-light {
    color: #111827 !important;
    border-color: #d1d5db !important;
    background: #ffffff !important;
}

    .btn-outline-light:hover {
        background: #f3f4f6 !important;
    }

/* ---------- LOGO ---------- */

/* ===== BRAND GLASS LOGO ===== */
.kc-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.05;
    padding: 6px 14px;
    border-radius: 14px;
    /* Glass effect */
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px) saturate(160%);
    -webkit-backdrop-filter: blur(10px) saturate(160%);
    border: 1px solid rgba(255,255,255,0.18);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

/* Brand name */
.kc-brand-name {
    font-size: 1.9rem;
    font-weight: 800;
    letter-spacing: 0.4px;
    font-family: "Outfit", "Segoe UI", system-ui, sans-serif;
}

/* Kashto = Maroon → Dark Orange */
.kc-kash {
    color: #0f5c2f;
    text-shadow: 0 1px 0 rgba(255,255,255,0.2);
}
.kc-to {
    color: #c00a0a;
    text-shadow: 0 1px 0 rgba(255,255,255,0.2);
}
/* Cash = Dark Green */
.kc-cash {
    color: #2d3224;
    text-shadow: 0 1px 0 rgba(255,255,255,0.2);
}

/* Tagline */
.kc-brand-tagline {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: #0f5c2f;
    opacity: 0.9;
}

/* Hover effect */
.kashto-logo:hover .kc-brand {
    transform: translateY(-1px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.22);
    transition: all 0.25s ease;
}

/* ---------- MAIN ---------- */

.page-content {
    padding: 12px;
}

/* ---------- FOOTER ---------- */

.kc-footer {
    background: #ffffff;
    border-top: 1px solid var(--kc-border);
    padding: 6px 0;
}

/* ---------- BOTTOM NAV (ANDROID STYLE) ---------- */

.kc-bottom-nav {
    position: fixed !important;
    left: 0;
    right: 0;
    bottom: 0;
    height: 64px;
    display: flex;
    background: #ffffff;
    border-top: 1px solid var(--kc-border);
    box-shadow: 0 -2px 10px rgba(0,0,0,0.08);
    z-index: 9999;
}

.kc-bottom-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    text-decoration: none !important;
    color: #6b7280 !important;
    font-size: 11px;
    font-weight: 600;
}

    .kc-bottom-btn i {
        font-size: 22px;
    }

    .kc-bottom-btn.active {
        color: var(--kc-primary) !important;
    }

    .kc-bottom-btn:active {
        background: #f3f4f6;
    }

/* ---------- RESERVE SPACE FOR BOTTOM NAV ---------- */

@supports (padding: max(0px)) {
    body.kc-body {
        padding-bottom: max(80px, env(safe-area-inset-bottom));
    }
}

/* ---------- PRODUCT CARD ---------- */

.kc-product-card {
    border-radius: 12px;
    border: none;
    background: #ffffff;
    box-shadow: 0 1px 2px rgba(0,0,0,0.08), 0 3px 6px rgba(0,0,0,0.06);
}

/* ---------- REMOVE FOCUS BLUE BOX ---------- */

a, button {
    outline: none !important;
}

    a:focus,
    a:active,
    button:focus,
    button:active {
        outline: none !important;
        box-shadow: none !important;
    }

/* ---------- PAGE TRANSITIONS (SAFE) ---------- */

body {
    opacity: 1;
    transition: opacity 0.18s ease;
}

    body.app-leaving {
        opacity: 0;
    }

    body.app-enter {
        opacity: 0;
    }

    body.app-enter-active {
        opacity: 1;
    }
/* ===== FOOTER LINK CHIPS ===== */

.kc-footer-links-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.kc-footer-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none !important;
    color: #92400e;
    background: linear-gradient(180deg, #fff7ed, #ffedd5);
    border: 1px solid #fed7aa;
    transition: all 0.2s ease;
}

    /* Hover / active */
    .kc-footer-link:hover,
    .kc-footer-link:active {
        background: linear-gradient(180deg, #ffedd5, #fed7aa);
        color: #7c2d12;
        transform: translateY(-1px);
        box-shadow: 0 4px 10px rgba(245, 158, 11, 0.25);
    }
/* ===== APP TOP BAR (MOBILE) ===== */
.kc-app-topbar {
    position: sticky;
    top: 56px; /* below your header */
    z-index: 100;
    background: #ffffff;
    height: 52px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 12px;
    border-bottom: 1px solid #e5e7eb;
}

.kc-back-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #111;
}

    .kc-back-btn:active {
        background: #f3f4f6;
    }

.kc-app-title {
    font-weight: 700;
    font-size: 1.1rem;
}
.kc-filter-row {
    display: flex;
    gap: 8px;
    align-items: center;
    overflow-x: auto;
    padding: 8px 0;
}

.kc-chips {
    display: flex;
    gap: 8px;
    overflow-x: auto;
}

.kc-chip {
    border: 1px solid #e5e7eb;
    background: #fff;
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

    .kc-chip.active {
        background: #2563eb;
        color: #fff;
        border-color: #2563eb;
    }

.kc-sort {
    max-width: 160px;
}
.kc-badge-new, .kc-badge-hot {
    position: absolute;
    top: 8px;
    left: 8px;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 999px;
    color: #fff;
}

.kc-badge-new {
    background: #16a34a;
}

.kc-badge-hot {
    background: #dc2626;
}
.kc-product-card {
    position: relative;
}
.kc-skeleton-card {
    height: 240px;
    border-radius: 12px;
    background: linear-gradient(90deg,#eee,#f5f5f5,#eee);
    background-size: 200% 100%;
    animation: shimmer 1.2s infinite;
}

@keyframes shimmer {
    from {
        background-position: 0% 0;
    }

    to {
        background-position: -200% 0;
    }
}

