/* WebOrders.Web/wwwroot/css/home.css
   Hero card. Two-column on desktop, single-column on mobile.
   Theme-var driven; primary color controls accents. */

/* ── Outer wrapper aligns to the same content column as .wo-menu ────── */
.wo-hero {
    padding: 1.5rem 1.5rem 0.5rem;
    max-width: 1280px;
    margin: 0 auto;
}

/* The EditableContent component wraps content in .wo-hero-inner. Keep it
   transparent — the .wo-hero-card below provides all chrome. */
.wo-hero-inner {
    display: block;
}

/* ── The card itself ────────────────────────────────────────────────── */
.wo-hero-card {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    align-items: center;
    gap: 2rem;
    padding: 2.5rem 2.5rem;
    border-radius: 18px;
    overflow: hidden;
    isolation: isolate;
    /* Soft gradient — light, primary-tinted */
    background: radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--wo-primary) 12%, transparent) 0%, transparent 55%), radial-gradient(circle at 0% 100%, color-mix(in srgb, var(--wo-primary) 8%, transparent) 0%, transparent 50%), linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

    /* Subtle dot pattern overlay */
    .wo-hero-card::before {
        content: "";
        position: absolute;
        inset: 0;
        background-image: radial-gradient( circle at 1px 1px, color-mix(in srgb, var(--wo-primary) 15%, transparent) 1px, transparent 0);
        background-size: 24px 24px;
        opacity: 0.4;
        z-index: -1;
        mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
    }

/* ── Left column (text) ─────────────────────────────────────────────── */
.wo-hero-left {
    min-width: 0;
}

.wo-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.75rem;
    background: color-mix(in srgb, var(--wo-primary) 12%, #fff);
    color: var(--wo-primary);
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

    .wo-hero-eyebrow::before {
        content: "";
        width: 7px;
        height: 7px;
        border-radius: 50%;
        background: #16a34a;
        box-shadow: 0 0 0 3px color-mix(in srgb, #16a34a 25%, transparent);
    }

.wo-hero-card h1 {
    margin: 0 0 0.75rem;
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 800;
    line-height: 1.1;
    color: #111827;
    letter-spacing: -0.02em;
}

.wo-hero-tag {
    margin: 0 0 1.5rem;
    font-size: 1rem;
    line-height: 1.55;
    color: #4b5563;
    max-width: 48ch;
}

.wo-hero-actions {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

    .wo-hero-actions .wo-btn-primary {
        padding: 0.7rem 1.4rem;
        font-weight: 600;
    }

    /* Ghost button (transparent, primary outline) — define inline so we don't
   have to add a global rule. */
    .wo-hero-actions .wo-btn-ghost {
        display: inline-flex;
        align-items: center;
        padding: 0.7rem 1.2rem;
        background: transparent;
        color: #374151;
        border: 1.5px solid #d1d5db;
        border-radius: 8px;
        text-decoration: none;
        font: inherit;
        font-weight: 600;
        transition: border-color 0.15s, color 0.15s, background 0.15s;
    }

        .wo-hero-actions .wo-btn-ghost:hover {
            border-color: var(--wo-primary);
            color: var(--wo-primary);
            background: color-mix(in srgb, var(--wo-primary) 6%, #fff);
        }

/* ── Right column (illustration) ────────────────────────────────────── */
.wo-hero-right {
    display: flex;
    align-items: center;
    justify-content: center;
}

.wo-hero-art {
    width: 100%;
    max-width: 280px;
    height: auto;
    filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.08));
}

/* ── Responsive ─────────────────────────────────────────────────────── */
@media (max-width: 720px) {
    .wo-hero-card {
        grid-template-columns: 1fr;
        padding: 2rem 1.5rem;
        gap: 1.25rem;
    }

    .wo-hero-right {
        order: -1; /* art above text on mobile */
    }

    .wo-hero-art {
        max-width: 180px;
    }

    .wo-hero-tag {
        font-size: 0.95rem;
    }
}

.wo-hero-image img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.wo-hero-tag {
    font-style: italic;
    opacity: 0.9;
    margin-top: 0.25rem;
}

@media (max-width: 700px) {
    .wo-hero-grid { grid-template-columns: 1fr; text-align: center; }
    .wo-hero-image { max-width: 180px; margin: 0 auto; }
    .wo-hero-inner h1 { font-size: 2rem; }
}

/* ── Search bar ─────────────────────────────────────────────────────── */
.wo-search-wrap {
    max-width: 1200px;
    margin: 2rem auto 1.25rem;
    padding: 0 1.5rem;
}

.wo-search {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    padding: 0.65rem 1.1rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.wo-search:focus-within {
    border-color: var(--wo-primary);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--wo-primary) 25%, transparent);
}

.wo-search-icon { color: #9ca3af; flex: 0 0 auto; }

.wo-search input {
    flex: 1;
    border: 0;
    outline: 0;
    background: transparent;
    font: inherit;
    color: inherit;
}

/* ── Category pills ─────────────────────────────────────────────────── */
.wo-categories {
    max-width: 1200px;
    margin: 0 auto 1.5rem;
    padding: 0 1.5rem;
}

.wo-pills {
    display: flex;
    gap: 0.6rem;
    overflow-x: auto;
    padding: 0.25rem 0 0.75rem;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
}

.wo-pills::-webkit-scrollbar { height: 6px; }
.wo-pills::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 3px;
}

.wo-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.55rem 1.1rem;
    border-radius: 999px;
    border: 1.5px solid var(--wo-primary);
    background: #fff;
    color: var(--wo-primary);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    scroll-snap-align: start;
    transition: background 0.15s, color 0.15s;
}

.wo-pill:hover {
    background: color-mix(in srgb, var(--wo-primary) 8%, #fff);
}

.wo-pill.wo-active {
    background: var(--wo-primary);
    color: var(--wo-primary-text);
}

.wo-pill-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.4rem;
    height: 1.4rem;
    padding: 0 0.45rem;
    border-radius: 0.7rem;
    background: rgba(0,0,0,0.08);
    color: inherit;
    font-size: 0.75rem;
    font-weight: 700;
}

.wo-pill.wo-active .wo-pill-count {
    background: rgba(255,255,255,0.25);
}

/* ── Menu grid placeholder (Slice C will replace) ──────────────────── */
.wo-menu {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.wo-menu-loading {
    text-align: center;
    color: #6b7280;
    padding: 2rem 0;
}

/* ── Empty / NoStore ───────────────────────────────────────────────── */
.wo-empty {
    max-width: 720px;
    margin: 3rem auto;
    padding: 2.5rem 2rem;
    text-align: center;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}

.wo-empty h2 { margin-top: 0; }
