/* /public_html/assets/css/cards.css */
/* HavikON — Cards UI V3 */

:root {
    --hv-card-bg: rgba(13, 20, 32, .86);
    --hv-card-bg-2: rgba(2, 6, 23, .64);
    --hv-card-line: rgba(148, 163, 184, .16);
    --hv-card-line-blue: rgba(56, 189, 248, .32);
    --hv-card-line-green: rgba(34, 197, 94, .26);
    --hv-card-text: #f8fafc;
    --hv-card-soft: #cbd5e1;
    --hv-card-muted: #94a3b8;
    --hv-card-muted-2: #64748b;
    --hv-card-blue: #38bdf8;
    --hv-card-blue-dark: #2563eb;
    --hv-card-green: #22c55e;
    --hv-card-lime: #86efac;
    --hv-card-yellow: #f59e0b;
    --hv-card-red: #ef4444;
    --hv-card-radius: 28px;
    --hv-card-shadow: 0 22px 70px rgba(0, 0, 0, .28);
    --hv-card-shadow-hover: 0 32px 90px rgba(0, 0, 0, .40);
}

/* Shared card base */

.article-card,
.product-card,
.sidebar-panel,
.newsletter-box,
.deal-card,
.review-row {
    color: var(--hv-card-text);
    background:
        radial-gradient(circle at 88% 0%, rgba(56, 189, 248, .13), transparent 34%),
        radial-gradient(circle at 0% 12%, rgba(34, 197, 94, .08), transparent 32%),
        linear-gradient(180deg, var(--hv-card-bg), var(--hv-card-bg-2));
    border: 1px solid var(--hv-card-line);
    box-shadow: var(--hv-card-shadow);
}

.article-card,
.product-card,
.sidebar-panel,
.newsletter-box {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    border-radius: var(--hv-card-radius);
}

.article-card::before,
.product-card::before,
.sidebar-panel::before,
.newsletter-box::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: 0;
    pointer-events: none;
    background:
        linear-gradient(135deg, rgba(56, 189, 248, .14), transparent 36%),
        linear-gradient(315deg, rgba(34, 197, 94, .10), transparent 40%);
    transition: opacity .24s ease;
}

.article-card:hover::before,
.product-card:hover::before,
.sidebar-panel:hover::before,
.newsletter-box:hover::before {
    opacity: 1;
}

/* Article Card */

.article-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    transition: transform .24s ease, border-color .24s ease, box-shadow .24s ease;
}

.article-card:hover {
    transform: translateY(-6px);
    border-color: var(--hv-card-line-blue);
    box-shadow: var(--hv-card-shadow-hover);
}

.article-card__image {
    position: relative;
    display: block;
    height: 240px;
    overflow: hidden;
    text-decoration: none;
    background:
        radial-gradient(circle at 50% 42%, rgba(56, 189, 248, .22), transparent 44%),
        rgba(2, 6, 23, .78);
}

.article-card__image::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(2, 6, 23, .04), rgba(2, 6, 23, .66)),
        linear-gradient(90deg, rgba(2, 6, 23, .42), transparent 52%);
    pointer-events: none;
}

.article-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.01);
    transition: transform .36s ease, filter .36s ease;
}

.article-card:hover .article-card__image img {
    transform: scale(1.07);
    filter: saturate(1.08) contrast(1.04);
}

.article-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 1.15rem;
}

.article-card .meta {
    margin: 0 0 .7rem;
    color: var(--hv-card-muted);
    font-size: .84rem;
    font-weight: 850;
}

.article-card h3 {
    margin: 0;
    color: #fff;
    font-size: 1.35rem;
    line-height: 1.12;
    letter-spacing: -.045em;
    font-weight: 950;
}

.article-card h3 a {
    color: inherit;
    text-decoration: none;
}

.article-card h3 a:hover {
    color: var(--hv-card-blue);
}

.article-card__body > p:not(.meta) {
    margin: .8rem 0 0;
    color: var(--hv-card-muted);
    font-size: .94rem;
    line-height: 1.65;
}

/* Badge */

.badge,
.product-badge {
    position: absolute;
    top: .85rem;
    left: .85rem;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 .75rem;
    border-radius: 999px;
    font-size: .68rem;
    font-weight: 950;
    letter-spacing: .075em;
    text-transform: uppercase;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.badge {
    color: #bbf7d0;
    background: rgba(2, 6, 23, .72);
    border: 1px solid rgba(34, 197, 94, .30);
    box-shadow: 0 0 24px rgba(34, 197, 94, .14);
}

.product-badge {
    color: #061109;
    background: linear-gradient(135deg, var(--hv-card-lime), var(--hv-card-green));
    border: 1px solid rgba(134, 239, 172, .34);
    box-shadow: 0 12px 28px rgba(34, 197, 94, .20);
}

/* Product Card */

.product-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding-top: 0;
    transition: transform .24s ease, border-color .24s ease, box-shadow .24s ease;
}

.product-card:hover {
    transform: translateY(-6px);
    border-color: var(--hv-card-line-blue);
    box-shadow: var(--hv-card-shadow-hover);
}

.product-card__image {
    position: relative;
    display: grid;
    place-items: center;
    height: 230px;
    padding: 1.1rem;
    overflow: hidden;
    background:
        radial-gradient(circle at 50% 38%, rgba(56, 189, 248, .22), transparent 48%),
        radial-gradient(circle at 20% 0%, rgba(34, 197, 94, .10), transparent 34%),
        rgba(2, 6, 23, .70);
    text-decoration: none;
}

.product-card__image::after {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .22;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(148, 163, 184, .045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, .045) 1px, transparent 1px);
    background-size: 28px 28px;
    mask-image: radial-gradient(circle at 50% 35%, #000, transparent 76%);
}

.product-card__image img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transform: scale(1);
    transition: transform .34s ease, filter .34s ease;
}

.product-card:hover .product-card__image img {
    transform: scale(1.06);
    filter: saturate(1.08) contrast(1.04);
}

.product-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 1.15rem;
}

.product-card .meta {
    margin: 0 0 .65rem;
    color: var(--hv-card-muted);
    font-size: .84rem;
    font-weight: 850;
}

.product-card h3 {
    margin: 0;
    color: #fff;
    font-size: 1.25rem;
    line-height: 1.14;
    letter-spacing: -.04em;
    font-weight: 950;
}

.product-card h3 a {
    color: inherit;
    text-decoration: none;
}

.product-card h3 a:hover {
    color: var(--hv-card-blue);
}

.product-card__body > p:not(.meta) {
    margin: .75rem 0 0;
    color: var(--hv-card-muted);
    font-size: .93rem;
    line-height: 1.62;
}

.price-line {
    display: flex;
    align-items: baseline;
    gap: .7rem;
    margin: auto 0 1rem;
    padding-top: 1rem;
}

.price-line strong {
    color: #fff;
    font-size: 1.65rem;
    line-height: 1;
    letter-spacing: -.055em;
    font-weight: 950;
}

.price-line del {
    color: var(--hv-card-muted-2);
    font-weight: 850;
}

.product-card .btn {
    width: 100%;
}

/* Deal Card */

.deal-card {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr) auto;
    gap: .85rem;
    align-items: center;
    min-height: 104px;
    padding: .75rem;
    border-radius: 22px;
    text-decoration: none;
    transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.deal-card:hover {
    transform: translateY(-4px);
    border-color: var(--hv-card-line-green);
    box-shadow: var(--hv-card-shadow-hover);
}

.deal-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: 0;
    background:
        radial-gradient(circle at 100% 0%, rgba(34, 197, 94, .14), transparent 34%),
        linear-gradient(135deg, rgba(56, 189, 248, .08), transparent 42%);
    transition: opacity .22s ease;
}

.deal-card:hover::before {
    opacity: 1;
}

.deal-card img {
    width: 82px;
    height: 76px;
    object-fit: contain;
    padding: .35rem;
    border-radius: 17px;
    background:
        radial-gradient(circle at 50% 42%, rgba(56, 189, 248, .16), transparent 50%),
        rgba(2, 6, 23, .44);
    border: 1px solid rgba(148, 163, 184, .12);
}

.deal-card span {
    min-width: 0;
}

.deal-card strong {
    display: block;
    color: #fff;
    font-size: .98rem;
    line-height: 1.25;
    letter-spacing: -.025em;
    font-weight: 950;
}

.deal-card small {
    display: block;
    margin-top: .25rem;
    color: var(--hv-card-muted);
    font-size: .82rem;
    font-weight: 780;
}

.deal-card b {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 .75rem;
    border-radius: 999px;
    color: #061109;
    background: linear-gradient(135deg, var(--hv-card-lime), var(--hv-card-green));
    font-size: .95rem;
    font-weight: 950;
    white-space: nowrap;
}

/* Review List */

.review-list {
    display: grid;
    gap: .7rem;
}

.review-row {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: 84px minmax(0, 1fr) auto;
    gap: .85rem;
    align-items: center;
    min-height: 86px;
    padding: .65rem;
    border-radius: 20px;
    text-decoration: none;
    transition: transform .22s ease, border-color .22s ease, background .22s ease;
}

.review-row:hover {
    transform: translateY(-3px);
    border-color: var(--hv-card-line-blue);
    background:
        radial-gradient(circle at 100% 0%, rgba(56, 189, 248, .13), transparent 34%),
        rgba(2, 6, 23, .50);
}

.review-row img {
    width: 84px;
    height: 64px;
    object-fit: cover;
    border-radius: 15px;
    background: rgba(2, 6, 23, .50);
    border: 1px solid rgba(148, 163, 184, .12);
}

.review-row strong {
    display: block;
    color: #fff;
    line-height: 1.2;
    font-weight: 950;
    letter-spacing: -.02em;
}

.review-row small {
    display: block;
    margin-top: .25rem;
    color: var(--hv-card-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: .82rem;
}

.review-row b {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    min-width: 44px;
    padding: 0 .55rem;
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(135deg, var(--hv-card-blue-dark), var(--hv-card-blue));
    border: 1px solid rgba(56, 189, 248, .30);
    font-size: .85rem;
    font-weight: 950;
}

/* Sidebar */

.sidebar {
    display: grid;
    gap: 1rem;
}

.sidebar-panel {
    padding: 1.2rem;
}

.sidebar-panel--rules {
    border-color: var(--hv-card-line-green);
    background:
        radial-gradient(circle at 90% 0%, rgba(34, 197, 94, .13), transparent 34%),
        linear-gradient(180deg, var(--hv-card-bg), var(--hv-card-bg-2));
}

.sidebar-panel h2 {
    margin: .4rem 0 .75rem;
    color: #fff;
    font-size: 1.35rem;
    line-height: 1.1;
    letter-spacing: -.045em;
    font-weight: 950;
}

.sidebar-panel p {
    color: var(--hv-card-muted);
    line-height: 1.65;
}

/* Popular list */

.popular-list {
    display: grid;
    gap: .75rem;
}

.popular-list a {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: 34px 78px minmax(0, 1fr);
    gap: .75rem;
    align-items: center;
    min-height: 86px;
    padding: .6rem;
    border-radius: 19px;
    color: var(--hv-card-text);
    text-decoration: none;
    background:
        radial-gradient(circle at 100% 0%, rgba(56, 189, 248, .08), transparent 34%),
        rgba(2, 6, 23, .34);
    border: 1px solid rgba(148, 163, 184, .12);
    transition: transform .22s ease, border-color .22s ease, background .22s ease;
}

.popular-list a:hover {
    transform: translateY(-3px);
    border-color: var(--hv-card-line-blue);
    background:
        radial-gradient(circle at 100% 0%, rgba(34, 197, 94, .10), transparent 34%),
        rgba(2, 6, 23, .48);
}

.popular-list b {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    color: var(--hv-card-lime);
    background: rgba(34, 197, 94, .10);
    border: 1px solid rgba(34, 197, 94, .20);
    font-size: .9rem;
    font-weight: 950;
}

.popular-list img {
    width: 78px;
    height: 62px;
    object-fit: cover;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, .12);
}

.popular-list span {
    min-width: 0;
    display: block;
    color: #fff;
    font-size: .92rem;
    line-height: 1.22;
    font-weight: 950;
    letter-spacing: -.02em;
}

.popular-list small {
    display: block;
    margin-top: .25rem;
    color: var(--hv-card-muted);
    font-size: .78rem;
    font-weight: 780;
}

/* Newsletter */

.newsletter-box {
    display: grid;
    gap: 1rem;
    padding: 1.25rem;
    background:
        radial-gradient(circle at 12% 0%, rgba(34, 197, 94, .15), transparent 34%),
        radial-gradient(circle at 92% 0%, rgba(56, 189, 248, .15), transparent 34%),
        linear-gradient(180deg, var(--hv-card-bg), var(--hv-card-bg-2));
    border-color: var(--hv-card-line-blue);
}

.newsletter-box h2 {
    margin: .45rem 0 .4rem;
    color: #fff;
    font-size: 1.45rem;
    line-height: 1.05;
    letter-spacing: -.05em;
    font-weight: 950;
}

.newsletter-box p {
    margin: 0;
    color: var(--hv-card-muted);
    line-height: 1.65;
}

.newsletter-box form {
    display: grid;
    gap: .75rem;
}

.newsletter-box input {
    width: 100%;
    min-height: 48px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, .18);
    background: rgba(2, 6, 23, .42);
    color: #fff;
    padding: 0 1rem;
    outline: none;
    font-weight: 760;
}

.newsletter-box input::placeholder {
    color: rgba(203, 213, 225, .55);
}

.newsletter-box input:focus {
    border-color: rgba(56, 189, 248, .55);
    box-shadow: 0 0 0 4px rgba(56, 189, 248, .10);
}

.newsletter-box small {
    min-height: 18px;
    color: var(--hv-card-lime);
    font-size: .78rem;
    font-weight: 800;
}

/* Compact grids */

.article-grid,
.product-grid,
.deal-grid {
    align-items: stretch;
}

.article-grid .article-card,
.product-grid .product-card {
    height: 100%;
}

/* Responsive */

@media (max-width: 1180px) {
    .deal-card {
        grid-template-columns: 76px minmax(0, 1fr);
    }

    .deal-card b {
        grid-column: 2;
        width: fit-content;
    }

    .review-row {
        grid-template-columns: 78px minmax(0, 1fr) auto;
    }

    .review-row img {
        width: 78px;
    }
}

@media (max-width: 760px) {
    .article-card,
    .product-card,
    .sidebar-panel,
    .newsletter-box {
        border-radius: 22px;
    }

    .article-card__image {
        height: 220px;
    }

    .product-card__image {
        height: 210px;
    }

    .article-card__body,
    .product-card__body,
    .sidebar-panel,
    .newsletter-box {
        padding: 1rem;
    }

    .article-card h3,
    .product-card h3 {
        font-size: 1.16rem;
    }

    .deal-card {
        min-height: 96px;
        grid-template-columns: 70px minmax(0, 1fr);
        border-radius: 18px;
    }

    .deal-card img {
        width: 70px;
        height: 64px;
    }

    .deal-card b {
        grid-column: 2;
    }

    .review-row {
        grid-template-columns: 72px minmax(0, 1fr);
    }

    .review-row img {
        width: 72px;
        height: 58px;
    }

    .review-row b {
        grid-column: 2;
        width: fit-content;
    }

    .popular-list a {
        grid-template-columns: 30px 68px minmax(0, 1fr);
    }

    .popular-list b {
        width: 30px;
        height: 30px;
        border-radius: 11px;
    }

    .popular-list img {
        width: 68px;
        height: 56px;
    }
}

@media (max-width: 480px) {
    .article-card__image {
        height: 200px;
    }

    .product-card__image {
        height: 190px;
    }

    .badge,
    .product-badge {
        top: .65rem;
        left: .65rem;
        min-height: 28px;
        padding: 0 .65rem;
    }

    .popular-list span,
    .review-row strong,
    .deal-card strong {
        font-size: .88rem;
    }
}
