﻿/* wwwroot/css/store.css
   RosyVelvet Storefront Theme — modern, bright, glassy.
   Scoped to .rv-store so Admin can stay clean.
*/

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Sora:wght@500;600;700&display=swap");

.rv-store {
    /* Typography */
    --rv-font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --rv-font-display: "Sora", "Inter", system-ui, sans-serif;
    /* Core colors */
    --rv-ink: #0b1220;
    --rv-muted: rgba(11, 18, 32, .62);
    --rv-border: rgba(11, 18, 32, .10);
    /* Accent */
    --rv-lilac: #6d28d9;
    --rv-cyan: #06b6d4;
    --rv-rose: #ff3d8d; /* sparingly */
    /* Surfaces */
    --rv-surface: rgba(255,255,255,.84);
    --rv-surface-2: rgba(255,255,255,.70);
    --rv-shadow: 0 22px 70px rgba(11, 18, 32, .12);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: var(--rv-font);
    color: var(--rv-ink);
    background: radial-gradient(900px 520px at 12% -8%, rgba(109,40,217,.16), transparent 62%), radial-gradient(900px 520px at 88% -4%, rgba(6,182,212,.16), transparent 62%), radial-gradient(900px 520px at 45% 110%, rgba(255,61,141,.05), transparent 60%), linear-gradient(180deg, #fbfcff, #f3f7ff 45%, #f7f8fc);
    position: relative;
    overflow-x: hidden;
}

    /* Subtle tech grid */
    .rv-store::before {
        content: "";
        position: fixed;
        inset: 0;
        pointer-events: none;
        background: linear-gradient(to right, rgba(11,18,32,.04) 1px, transparent 1px), linear-gradient(to bottom, rgba(11,18,32,.04) 1px, transparent 1px);
        background-size: 72px 72px;
        opacity: .20;
        mask-image: radial-gradient(800px 520px at 50% 10%, #000 50%, transparent 78%);
    }

    /* Headings */
    .rv-store h1, .rv-store h2, .rv-store h3, .rv-store .rv-hero-title {
        font-family: var(--rv-font-display);
        letter-spacing: -0.02em;
    }

    .rv-store, .rv-store * {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }

        /* -------------------------------------------------
   Header / Nav
------------------------------------------------- */
        .rv-store .navbar,
        .rv-nav {
            background: rgba(255,255,255,.72) !important;
            backdrop-filter: blur(14px);
            -webkit-backdrop-filter: blur(14px);
            border-bottom: 1px solid rgba(11, 18, 32, .08);
            box-shadow: 0 10px 30px rgba(11,18,32,.06);
        }

.rv-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.rv-brand-text {
    font-weight: 800;
    color: var(--rv-ink);
}

/* Brand mark is an avatar now (circle) */
.rv-brand-mark {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border-radius: 9999px;
    overflow: hidden;
    line-height: 0;
    box-shadow: 0 12px 28px rgba(11,18,32,.10);
    border: 1px solid rgba(11,18,32,.10);
    background: rgba(255,255,255,.9);
}

.rv-brand-avatar {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    border-radius: 9999px;
}

/* Nav buttons */
.rv-navbtn {
    border: 1px solid rgba(11,18,32,.12);
    background: rgba(255,255,255,.55);
    color: rgba(11,18,32,.82);
    border-radius: 999px;
    padding: 6px 12px;
    font-size: .875rem;
    text-decoration: none;
    transition: transform .12s ease, background .12s ease, border-color .12s ease, box-shadow .12s ease;
    white-space: nowrap;
}

    .rv-navbtn:hover {
        background: rgba(255,255,255,.85);
        border-color: rgba(11,18,32,.16);
        transform: translateY(-1px);
    }

    .rv-navbtn.is-active {
        color: #fff;
        border: none;
        background: linear-gradient(90deg, var(--rv-lilac), var(--rv-cyan));
        box-shadow: 0 10px 26px rgba(6,182,212,.14);
    }

/* -------------------------------------------------
   Main surface
------------------------------------------------- */
.rv-main {
    flex: 1 0 auto;
    padding-bottom: 24px;
}

.rv-surface {
    background: var(--rv-surface);
    border: 1px solid rgba(11,18,32,.08);
    border-radius: 26px;
    box-shadow: var(--rv-shadow);
    padding: 24px;
}

/* -------------------------------------------------
   Hero (Home)
------------------------------------------------- */
.rv-hero {
    background: radial-gradient(520px 260px at 18% 12%, rgba(109,40,217,.16), transparent 62%), radial-gradient(520px 260px at 86% 26%, rgba(6,182,212,.16), transparent 62%), var(--rv-surface-2);
    border: 1px solid rgba(11,18,32,.08);
    border-radius: 22px;
    padding: 22px;
    box-shadow: 0 14px 44px rgba(11,18,32,.08);
}

.rv-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--rv-muted);
    font-size: .92rem;
    font-weight: 600;
}

.rv-dot {
    width: 9px;
    height: 9px;
    border-radius: 99px;
    background: linear-gradient(90deg, var(--rv-lilac), var(--rv-cyan));
    box-shadow: 0 0 0 4px rgba(6,182,212,.10);
}

.rv-hero-title {
    font-size: 1.75rem;
    font-weight: 800;
    margin: 10px 0 0 0;
}

.rv-muted {
    color: var(--rv-muted);
}

/* -------------------------------------------------
   Buttons
------------------------------------------------- */
.btn-rv,
.rv-store .btn-primary {
    border: none !important;
    color: #fff !important;
    background: linear-gradient(90deg, var(--rv-lilac), var(--rv-cyan)) !important;
    box-shadow: 0 12px 30px rgba(6,182,212,.12);
    border-radius: 12px;
}

    .btn-rv:hover,
    .rv-store .btn-primary:hover {
        filter: brightness(1.03);
    }

.btn-rv-outline {
    border: 1px solid rgba(11,18,32,.14) !important;
    background: rgba(255,255,255,.60) !important;
    color: rgba(11,18,32,.86) !important;
    border-radius: 12px;
}

    .btn-rv-outline:hover {
        background: rgba(255,255,255,.88) !important;
    }

.rv-store .btn-success {
    border: none !important;
    color: #fff !important;
    background: linear-gradient(90deg, var(--rv-cyan), var(--rv-lilac)) !important;
    box-shadow: 0 12px 30px rgba(109,40,217,.12);
    border-radius: 12px;
}

/* -------------------------------------------------
   Inputs + cards
------------------------------------------------- */
.rv-store .form-control,
.rv-store .form-select {
    border-radius: 14px;
    border: 1px solid rgba(11,18,32,.12);
    background: rgba(255,255,255,.78);
}

.rv-store .card {
    border-radius: 18px;
    border: 1px solid rgba(11,18,32,.10);
    box-shadow: 0 10px 26px rgba(11,18,32,.06);
}

/* -------------------------------------------------
   Footer (brand mark + year only)
------------------------------------------------- */
.rv-footer {
    flex-shrink: 0;
    border-top: 1px solid rgba(11,18,32,.08);
    background: rgba(255,255,255,.68);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.rv-footer-mark {
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    border-radius: 9999px;
    overflow: hidden;
    line-height: 0;
    border: 1px solid rgba(11,18,32,.10);
    background: rgba(255,255,255,.9);
}

    .rv-footer-mark img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        border-radius: 9999px;
    }

/* -------------------------------------------------
   About page
------------------------------------------------- */
.rv-about {
    padding: 6px 2px;
}

.rv-about-avatar {
    width: min(340px, 100%);
    aspect-ratio: 1 / 1;
    height: auto;
    border-radius: 9999px;
    object-fit: cover;
    border: 4px solid rgba(255,255,255,.92);
    box-shadow: 0 18px 50px rgba(11,18,32,.12);
    background: #fff;
}


.rv-about-card {
    border-radius: 18px;
    padding: 22px;
    background: rgba(255,255,255,.75);
    border: 1px solid rgba(0,0,0,.06);
    backdrop-filter: blur(10px);
}

.rv-about-panel {
    margin-top: 14px;
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(37,99,235,.05);
    border: 1px solid rgba(37,99,235,.12);
}

.rv-about-card .display-6 {
    letter-spacing: -0.02em;
}

.rv-about-card ul {
    padding-left: 1.1rem;
}

.rv-about-card li {
    margin: 6px 0;
}

/* Frame clips the image perfectly, so no side stripes ever show */
.rv-portrait-frame {
    width: min(420px, 100%);
    border-radius: 22px;
    overflow: hidden; /* key */
    background: transparent; /* no white edges */
    border: 0; /* remove any border that can look like stripes */
}

.rv-about-portrait {
    width: 100%;
    height: 520px;
    display: block; /* removes inline-img baseline gaps */
    object-fit: cover;
    object-position: 50% 18%;
    margin: 0; /* just in case */
    border: 0;
}

/* Smaller screens */
@media (max-width: 991.98px) {
    .rv-about-portrait {
        height: 420px;
        object-position: 50% 15%;
    }
}
/* Blog cards */
.rv-post-card {
    overflow: hidden;
}

.rv-post-banner {
    display: block;
    height: 170px;
    overflow: hidden;
    border-bottom: 1px solid rgba(11,18,32,.08);
}

    .rv-post-banner img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

/* Post header image */
.rv-post-hero {
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid rgba(11,18,32,.08);
    box-shadow: 0 10px 26px rgba(11,18,32,.06);
}

    .rv-post-hero img {
        width: 100%;
        max-height: 340px;
        object-fit: cover;
        display: block;
    }

/* Post content readability */
.rv-post-body {
    font-size: 1.02rem;
    line-height: 1.65;
}

    .rv-post-body h2 {
        margin-top: 1.2rem;
        font-family: var(--rv-font-display);
        letter-spacing: -0.01em;
    }
.rv-prose {
    color: rgba(11,18,32,.86);
    line-height: 1.6;
    font-size: 0.98rem;
}

    .rv-prose p {
        margin: 0 0 .85rem 0;
    }

    .rv-prose ul, .rv-prose ol {
        margin: .25rem 0 1rem 1.25rem;
    }

    .rv-prose li {
        margin: .3rem 0;
    }

    .rv-prose h1, .rv-prose h2, .rv-prose h3 {
        margin: 1rem 0 .5rem 0;
    }

    .rv-prose strong {
        color: rgba(11,18,32,.95);
    }

    .rv-prose a {
        text-decoration: none;
    }

        .rv-prose a:hover {
            text-decoration: underline;
        }
/* Product description rich text */
.rv-rich {
    color: var(--rv-ink);
}

.rv-rich-p {
    margin: 0 0 .75rem 0;
    color: var(--rv-muted);
}

.rv-rich-list {
    margin: .25rem 0 0 1.1rem;
    padding: 0;
}

    .rv-rich-list li {
        margin: .45rem 0;
        color: rgba(11,18,32,.86);
    }
/* ---------------------------------------------
   Product Details (eye-candy)
--------------------------------------------- */
.rv-product-title {
    font-family: var(--rv-font-display);
    letter-spacing: -0.02em;
    font-size: clamp(1.4rem, 2.2vw, 2.1rem);
    margin: .25rem 0 .25rem 0;
}

.rv-product-media {
    background: var(--rv-surface);
    border: 1px solid rgba(11,18,32,.08);
    border-radius: 22px;
    box-shadow: var(--rv-shadow);
    overflow: hidden;
}

.rv-product-media-inner {
    aspect-ratio: 1 / 1;
    width: 100%;
    display: grid;
    place-items: center;
    background: radial-gradient(800px 400px at 50% 40%, rgba(6,182,212,.12), transparent 60%), radial-gradient(800px 400px at 40% 30%, rgba(109,40,217,.10), transparent 60%), rgba(255,255,255,.75);
}

.rv-product-img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* ✅ avoids awkward cropping */
    display: block;
    padding: 14px; /* ✅ makes Amazon “white bg” images look clean */
    filter: drop-shadow(0 18px 30px rgba(11,18,32,.10));
}

.rv-product-noimg {
    color: rgba(11,18,32,.55);
}

.rv-product-sidecard {
    background: var(--rv-surface);
    border: 1px solid rgba(11,18,32,.08);
    border-radius: 18px;
    box-shadow: 0 12px 34px rgba(11,18,32,.07);
    padding: 16px;
}

.rv-product-price {
    font-size: 1.35rem;
    font-weight: 800;
}

.rv-product-card {
    background: var(--rv-surface);
    border: 1px solid rgba(11,18,32,.08);
    border-radius: 22px;
    box-shadow: var(--rv-shadow);
    overflow: hidden;
}

.rv-product-card-head {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(11,18,32,.08);
    background: rgba(255,255,255,.55);
    backdrop-filter: blur(10px);
}

.rv-product-card-body {
    padding: 16px;
}

.rv-product-panel {
    margin-top: 10px;
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(37,99,235,.05);
    border: 1px solid rgba(37,99,235,.12);
}

.rv-bullets {
    padding-left: 1.2rem;
}

    .rv-bullets li {
        margin: 0 0 .55rem 0;
        line-height: 1.45;
    }

        .rv-bullets li:last-child {
            margin-bottom: 0;
        }
/* ✅ consistent View / Buy buttons */
.rv-actions {
    display: flex;
    gap: .5rem;
}

    .rv-actions .btn {
        flex: 1; /* same width */
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 36px; /* same height */
        padding: .45rem .9rem; /* same padding */
        border-radius: 999px; /* pill */
        font-weight: 700;
        letter-spacing: .1px;
    }

    .rv-actions .btn-outline-primary {
        border-width: 1px;
    }

    .rv-actions .btn:disabled {
        opacity: .55;
        cursor: not-allowed;
    }

.post-content blockquote img {
    max-height: 360px;
    object-fit: contain;
}

/* =========================================================
   Blog content: keep images inside the blog frame
   ========================================================= */

.blog-post-content {
    overflow: hidden; /* prevents bleed outside rounded cards */
}

    .blog-post-content img,
    .blog-post-content video,
    .blog-post-content iframe,
    .blog-post-content table {
        max-width: 100%;
    }

    .blog-post-content img {
        height: auto;
        display: block; /* removes weird inline spacing */
    }

    /* Optional: make markdown images look nicer */
    .blog-post-content img {
        border-radius: 16px;
    }

    /* If your Product Card has its own wrapper, make it bulletproof */
    .blog-post-content .rv-product-card,
    .blog-post-content .product-card {
        overflow: hidden;
        border-radius: 16px;
    }

        /* Product card image: fit nicely (no overflow, no stretching) */
        .blog-post-content .rv-product-card img,
        .blog-post-content .product-card img {
            width: 100%;
            max-height: 520px; /* prevents mega-tall images */
            object-fit: contain; /* shows full product */
        }
