/* /public_html/assets/css/responsive.css */

/*
|--------------------------------------------------------------------------
| HavikON Responsive Layer
|--------------------------------------------------------------------------
| Pentru telefoane mici/mari, tablete, laptop, portrait si landscape.
| Acest fisier este peste CSS-ul principal si corecteaza layout-uri largi.
|--------------------------------------------------------------------------
*/

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    width: 100%;
    overflow-x: hidden;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    width: 100%;
    min-width: 320px;
    overflow-x: hidden;
}

img,
video,
svg,
canvas {
    max-width: 100%;
    height: auto;
}

iframe {
    max-width: 100%;
}

button,
input,
select,
textarea {
    max-width: 100%;
    font: inherit;
}

a,
button,
input,
select,
textarea {
    -webkit-tap-highlight-color: transparent;
}

table {
    max-width: 100%;
}

pre,
code {
    max-width: 100%;
    overflow-x: auto;
}

/* General containers */
.container,
.narrow,
.hv-shell,
.hk-container,
.footer-shell {
    width: min(100% - 44px, 1720px);
    max-width: 1720px;
    margin-inline: auto;
}

.site-main,
.hv-home-main,
main {
    min-width: 0;
}

/* Prevent wide grid children from pushing screen */
.hv-hero-grid,
.hv-grid-2,
.hv-grid-3,
.hv-grid-4,
.hv-grid-6,
.hv-grid-featured,
.hv-category-grid,
.footer-top,
.footer-grid,
.footer-highlights,
.footer-trust__inner,
.admin-shell,
.admin-grid,
.admin-stats,
.admin-quick-grid,
.winkel-layout,
.deal-layout,
.aff-layout,
.nb-layout,
.klik-layout {
    min-width: 0;
}

.hv-hero-grid > *,
.hv-grid-2 > *,
.hv-grid-3 > *,
.hv-grid-4 > *,
.hv-grid-6 > *,
.hv-grid-featured > *,
.hv-category-grid > *,
.footer-top > *,
.footer-grid > *,
.footer-highlights > *,
.footer-trust__inner > *,
.admin-shell > *,
.admin-grid > *,
.winkel-layout > *,
.deal-layout > *,
.aff-layout > *,
.nb-layout > *,
.klik-layout > * {
    min-width: 0;
}

/* Touch targets */
.nav-toggle,
.hk-nav-toggle,
.admin-mobile-toggle,
.footer-backtop,
button,
.hv-btn,
.footer-btn,
.admin-btn,
.aff-link,
.deal-link,
.store-link {
    min-height: 44px;
}

/* Desktop medium */
@media (max-width: 1500px) {
    .container,
    .narrow,
    .hv-shell,
    .hk-container,
    .footer-shell {
        width: min(100% - 36px, 1480px);
    }

    .hv-title {
        font-size: clamp(48px, 5.8vw, 82px);
    }

    .hv-hero-main {
        padding: 38px;
    }

    .hk-main-nav a {
        padding-inline: 11px;
        font-size: 13px;
    }

    .hk-header-search {
        width: 260px;
    }
}

/* Tablet landscape + small laptop */
@media (max-width: 1200px) {
    .container,
    .narrow,
    .hv-shell,
    .hk-container,
    .footer-shell {
        width: min(100% - 32px, 1120px);
    }

    /* Old/header fallback classes */
    .main-nav {
        position: fixed;
        inset: 84px 20px auto 20px;
        z-index: 1000;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        max-height: calc(100vh - 110px);
        overflow-y: auto;
        padding: 16px;
        border-radius: 22px;
        background: #07101d;
        border: 1px solid var(--line, rgba(148, 163, 184, .18));
        box-shadow: 0 24px 70px rgba(0, 0, 0, .38);
    }

    .main-nav.is-open {
        display: flex;
    }

    .nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin-left: auto;
        background: var(--panel, rgba(15, 23, 42, .8));
        border: 1px solid var(--line, rgba(148, 163, 184, .18));
        color: #fff;
        border-radius: 14px;
        padding: .65rem .85rem;
    }

    .header-search {
        display: none;
    }

    .hero-grid,
    .layout-home,
    .content-with-sidebar,
    .article-hero__grid,
    .product-detail {
        grid-template-columns: 1fr !important;
    }

    .hero-visual img {
        height: 360px;
        object-fit: cover;
    }

    .category-strip {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .article-grid,
    .featured-grid,
    .product-grid,
    .deal-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    /* New HavikON homepage */
    .hv-hero-grid,
    .hv-grid-2 {
        grid-template-columns: 1fr;
    }

    .hv-hero-main {
        min-height: auto;
    }

    .hv-stats {
        position: static;
        margin-top: 28px;
        left: auto;
        right: auto;
        bottom: auto;
    }

    .hv-hero-side {
        grid-template-rows: auto;
    }

    .hv-feature,
    .hv-feature img {
        min-height: 420px;
    }

    .hv-category-grid,
    .hv-grid-6 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .hv-grid-featured,
    .hv-grid-3,
    .hv-grid-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hv-grid-featured .hv-article-card:first-child {
        grid-row: auto;
    }

    /* Header */
    .hk-nav-wrap {
        grid-template-columns: auto auto 1fr;
    }

    .hk-nav-toggle {
        display: inline-grid;
        place-items: center;
        justify-self: end;
        order: 3;
    }

    .hk-header-actions {
        order: 2;
        justify-self: end;
        min-width: 0;
    }

    .hk-main-nav {
        position: absolute;
        top: calc(100% + 12px);
        left: 0;
        right: 0;
        z-index: 1200;
        display: none;
        justify-content: flex-start;
        flex-wrap: wrap;
        max-height: calc(100vh - 120px);
        overflow-y: auto;
        padding: 16px;
        border-radius: 24px;
        background:
            radial-gradient(circle at 8% 0%, rgba(34, 197, 94, .14), transparent 32%),
            linear-gradient(180deg, rgba(15, 23, 42, .98), rgba(2, 6, 23, .98));
        border: 1px solid rgba(56, 189, 248, .20);
        box-shadow: 0 24px 80px rgba(0, 0, 0, .42);
    }

    .hk-main-nav.is-open {
        display: flex;
    }

    .hk-main-nav a {
        border: 1px solid rgba(148, 163, 184, .12);
        background: rgba(15, 23, 42, .66);
    }

    /* Footer */
    .footer-cta__inner,
    .footer-top,
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-panel--intro {
        grid-column: 1 / -1;
    }

    .footer-highlights,
    .footer-trust__inner {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    /* Admin */
    .admin-shell {
        grid-template-columns: 1fr !important;
    }

    .admin-sidebar {
        position: fixed !important;
        inset: 0 auto 0 0;
        z-index: 2000;
        width: 320px;
        max-width: calc(100vw - 42px);
        height: 100vh !important;
        overflow-y: auto;
        transform: translateX(-105%);
        transition: transform .22s ease;
    }

    .admin-sidebar.is-open {
        transform: translateX(0);
    }

    .admin-mobile-toggle {
        display: inline-grid !important;
        place-items: center;
    }

    .admin-main {
        padding: 18px !important;
    }

    .admin-stats,
    .klik-stats,
    .nb-stats,
    .winkel-stats,
    .deal-stats,
    .aff-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .admin-grid,
    .klik-layout,
    .nb-layout,
    .winkel-layout,
    .deal-layout,
    .aff-layout {
        grid-template-columns: 1fr !important;
    }
}

/* Tablet portrait */
@media (max-width: 900px) {
    .container,
    .narrow,
    .hv-shell,
    .hk-container,
    .footer-shell {
        width: min(100% - 28px, 860px);
    }

    .topbar,
    .hk-topbar {
        display: none !important;
    }

    .nav-wrap,
    .hk-nav-wrap {
        min-height: 76px;
        padding-block: 10px;
        grid-template-columns: auto auto;
        gap: 12px;
    }

    .brand {
        font-size: 1.65rem;
    }

    .hk-brand__mark {
        width: 42px;
        height: 42px;
        border-radius: 15px;
    }

    .hk-brand__name {
        font-size: 24px;
    }

    .hk-brand__tagline {
        display: none;
    }

    .hk-header-actions {
        display: none;
    }

    .hk-nav-toggle {
        display: inline-grid;
        place-items: center;
    }

    .hk-main-nav {
        top: calc(100% + 10px);
        flex-direction: column;
        align-items: stretch;
    }

    .hk-main-nav a {
        justify-content: space-between;
        width: 100%;
        padding: 14px 15px;
        border-radius: 16px;
    }

    .hk-mobile-search {
        display: flex !important;
        width: 100%;
        margin-top: 8px;
    }

    .hk-mobile-search .hk-header-search {
        display: flex;
        width: 100%;
    }

    .hk-mega {
        display: none !important;
    }

    .hero {
        padding: 2.4rem 0;
    }

    .hero-copy h1,
    .hv-title {
        font-size: clamp(38px, 11vw, 58px);
        letter-spacing: -.07em;
    }

    .hv-lead,
    .hero-copy p {
        font-size: 16px;
        line-height: 1.7;
    }

    .hv-hero-main {
        padding: 28px;
        border-radius: 30px;
    }

    .hv-hero-search,
    .hv-newsletter-fallback form {
        grid-template-columns: 1fr;
        border-radius: 26px;
    }

    .hv-hero-search button,
    .hv-newsletter-fallback button {
        width: 100%;
    }

    .hv-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hv-feature,
    .hv-feature img {
        min-height: 360px;
    }

    .hv-feature-content {
        left: 20px;
        right: 20px;
        bottom: 20px;
    }

    .hv-feature-content h2 {
        font-size: clamp(26px, 8vw, 36px);
    }

    .hero-visual img {
        height: 300px;
    }

    .category-strip,
    .hv-category-grid,
    .hv-grid-featured,
    .hv-grid-3,
    .hv-grid-4,
    .hv-grid-6,
    .article-grid,
    .featured-grid,
    .product-grid,
    .deal-grid,
    .split-block,
    .footer-grid {
        grid-template-columns: 1fr !important;
    }

    .hv-panel {
        padding: 18px;
        border-radius: 28px;
    }

    .hv-section-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .hv-section-head h2 {
        font-size: clamp(26px, 8vw, 36px);
    }

    .hv-ticker-inner,
    .hv-cta-inner,
    .hv-newsletter-fallback {
        grid-template-columns: 1fr;
        border-radius: 28px;
    }

    .hv-ticker-list {
        flex-direction: column;
        overflow: visible;
    }

    .hv-ticker-list a {
        max-width: none;
        white-space: normal;
    }

    .hv-article-card__image,
    .hv-deal-card__image {
        height: 240px;
    }

    .hv-article-card--large .hv-article-card__image {
        height: 280px;
    }

    .hv-row-card {
        grid-template-columns: 100px minmax(0, 1fr);
    }

    .hv-row-card__image {
        height: 82px;
    }

    .hv-compare-row {
        grid-template-columns: 1fr;
    }

    .article-hero img,
    .product-detail__media img {
        height: 300px;
        object-fit: cover;
    }

    .popular-list a {
        grid-template-columns: 28px 64px 1fr;
    }

    /* Forms */
    .search-page-form,
    .winkel-filter,
    .deal-filter,
    .aff-filter,
    .nb-filter,
    .klik-filter,
    .form-grid {
        grid-template-columns: 1fr !important;
    }

    .field,
    .select,
    .textarea {
        width: 100%;
    }

    /* Footer */
    .footer-cta__inner,
    .footer-top,
    .footer-grid,
    .footer-newsletter form,
    .footer-highlights,
    .footer-trust__inner {
        grid-template-columns: 1fr !important;
    }

    .footer-cta__actions {
        justify-content: flex-start;
    }

    .footer-btn {
        width: 100%;
    }

    .footer-brand-card,
    .footer-newsletter,
    .footer-cta__inner {
        border-radius: 26px;
        padding: 22px;
    }

    .footer-newsletter h2 {
        font-size: 25px;
    }

    .footer-bottom,
    .footer-bottom__inner {
        display: grid;
        gap: 10px;
        align-items: flex-start;
    }

    /* Admin */
    .admin-topbar {
        flex-wrap: wrap;
    }

    .admin-search {
        order: 3;
        width: 100% !important;
    }

    .admin-hero-content,
    .klik-hero-inner,
    .nb-hero-inner,
    .winkel-hero-inner,
    .deal-hero-inner,
    .aff-hero-inner {
        grid-template-columns: 1fr !important;
    }

    .admin-actions,
    .klik-actions,
    .nb-actions,
    .winkel-actions,
    .deal-actions,
    .aff-actions {
        justify-content: flex-start !important;
    }

    .admin-card,
    .klik-stat,
    .nb-stat,
    .winkel-stat,
    .deal-stat,
    .aff-stat {
        min-height: auto;
    }
}

/* Large phones */
@media (max-width: 720px) {
    .container,
    .narrow,
    .hv-shell,
    .hk-container,
    .footer-shell {
        width: min(100% - 24px, 680px);
    }

    .site-header {
        position: sticky;
        top: 0;
    }

    .hv-hero {
        padding: 28px 0 24px;
    }

    .hv-hero-main {
        padding: 24px;
    }

    .hv-title {
        font-size: clamp(36px, 12vw, 48px);
        line-height: .94;
    }

    .hv-actions,
    .footer-cta__actions,
    .deal-actions,
    .winkel-actions,
    .aff-actions,
    .nb-actions,
    .klik-actions,
    .admin-actions {
        flex-direction: column;
        width: 100%;
    }

    .hv-btn,
    .footer-btn,
    .admin-btn {
        width: 100%;
    }

    .hv-hero-search input,
    .hv-newsletter-fallback input,
    .footer-newsletter input {
        min-height: 48px;
    }

    .hv-stats,
    .admin-stats,
    .klik-stats,
    .nb-stats,
    .winkel-stats,
    .deal-stats,
    .aff-stats {
        grid-template-columns: 1fr !important;
    }

    .hv-stat,
    .admin-card,
    .klik-stat,
    .nb-stat,
    .winkel-stat,
    .deal-stat,
    .aff-stat {
        padding: 18px;
    }

    .hv-feature,
    .hv-feature img {
        min-height: 310px;
    }

    .hero-visual img {
        height: 260px;
    }

    .hv-article-card__image,
    .hv-deal-card__image,
    .hv-article-card--large .hv-article-card__image {
        height: 230px;
    }

    .article-hero img,
    .product-detail__media img {
        height: 260px;
    }

    .hv-row-card,
    .hv-mini-panel,
    .hv-affiliate-note {
        grid-template-columns: 1fr;
    }

    .hv-row-card__image {
        width: 100%;
        height: 180px;
    }

    .footer-backtop {
        right: 14px;
        bottom: 14px;
    }

    .admin-main {
        padding: 14px !important;
    }

    .admin-hero,
    .klik-hero,
    .nb-hero,
    .winkel-hero,
    .deal-hero,
    .aff-hero {
        padding: 24px !important;
        border-radius: 28px !important;
    }

    .admin-hero h1,
    .klik-hero h1,
    .nb-hero h1,
    .winkel-hero h1,
    .deal-hero h1,
    .aff-hero h1 {
        font-size: clamp(34px, 12vw, 48px) !important;
    }

    .admin-panel,
    .klik-panel,
    .nb-panel,
    .winkel-panel,
    .deal-panel,
    .aff-panel {
        padding: 18px !important;
        border-radius: 26px !important;
    }

    .aff-card-top,
    .store-card-top {
        grid-template-columns: 1fr !important;
    }

    .aff-clicks {
        text-align: left !important;
    }

    .day-chart {
        min-height: 180px;
        gap: 7px;
        padding: 12px;
    }

    .day-bar-wrap {
        height: 110px;
    }
}

/* Small phones */
@media (max-width: 480px) {
    .container,
    .narrow,
    .hv-shell,
    .hk-container,
    .footer-shell {
        width: min(100% - 18px, 460px);
    }

    .hk-brand__name,
    .footer-brand__name {
        font-size: 22px;
    }

    .hk-brand__mark {
        width: 40px;
        height: 40px;
        border-radius: 14px;
    }

    .footer-brand__mark {
        width: 48px;
        height: 48px;
        border-radius: 18px;
    }

    .hk-nav-wrap {
        min-height: 68px;
    }

    .hk-nav-toggle,
    .nav-toggle,
    .admin-mobile-toggle {
        width: 44px;
        height: 44px;
        border-radius: 14px;
    }

    .hv-hero-main {
        padding: 20px;
        border-radius: 24px;
    }

    .hv-title {
        font-size: clamp(33px, 13vw, 43px);
    }

    .hv-lead {
        font-size: 15px;
    }

    .hv-eyebrow,
    .footer-cta__label,
    .footer-newsletter__label,
    .admin-eyebrow,
    .klik-eyebrow,
    .nb-eyebrow,
    .winkel-eyebrow,
    .deal-eyebrow,
    .aff-eyebrow {
        font-size: 10px;
        padding-inline: 10px;
    }

    .hv-feature,
    .hv-feature img {
        min-height: 270px;
    }

    .hv-feature-content {
        left: 16px;
        right: 16px;
        bottom: 16px;
    }

    .hv-feature-content h2 {
        font-size: 24px;
    }

    .hv-feature-content p {
        display: none;
    }

    .hv-panel,
    .footer-brand-card,
    .footer-newsletter,
    .footer-cta__inner,
    .admin-panel,
    .klik-panel,
    .nb-panel,
    .winkel-panel,
    .deal-panel,
    .aff-panel {
        padding: 16px !important;
        border-radius: 22px !important;
    }

    .hv-category,
    .hv-info-card,
    .hv-brand-card,
    .hv-path-card,
    .hv-article-card,
    .hv-deal-card,
    .footer-highlight-card,
    .store-card,
    .deal-card,
    .aff-card {
        border-radius: 22px;
    }

    .hv-category {
        min-height: auto;
        padding: 18px;
    }

    .hv-category h3 {
        margin-top: 20px;
    }

    .hv-article-card__image,
    .hv-deal-card__image,
    .hv-article-card--large .hv-article-card__image,
    .deal-thumb {
        height: 210px;
    }

    .hv-article-card h3,
    .hv-deal-card h3 {
        font-size: 19px;
    }

    .hv-price-row strong,
    .deal-price {
        font-size: 21px;
    }

    .footer-cta h2,
    .footer-newsletter h2,
    .hv-newsletter-fallback h2,
    .hv-cta h2 {
        font-size: 26px;
    }

    .footer-popular__inner {
        padding: 14px;
    }

    .footer-popular a {
        width: 100%;
        justify-content: center;
    }

    .admin-main {
        padding: 10px !important;
    }

    .admin-topbar {
        padding: 12px !important;
        border-radius: 18px !important;
    }

    .admin-user-chip {
        width: 100%;
        justify-content: center;
    }

    .admin-hero,
    .klik-hero,
    .nb-hero,
    .winkel-hero,
    .deal-hero,
    .aff-hero {
        padding: 20px !important;
        border-radius: 24px !important;
    }

    .admin-hero h1,
    .klik-hero h1,
    .nb-hero h1,
    .winkel-hero h1,
    .deal-hero h1,
    .aff-hero h1 {
        font-size: 34px !important;
    }

    .admin-hero p,
    .klik-hero p,
    .nb-hero p,
    .winkel-hero p,
    .deal-hero p,
    .aff-hero p {
        font-size: 14px !important;
    }

    .klik-table,
    .nb-table {
        min-width: 720px;
    }

    .day-chart {
        grid-template-columns: repeat(7, minmax(28px, 1fr));
        overflow-x: auto;
    }
}

/* Very small phones */
@media (max-width: 360px) {
    .container,
    .narrow,
    .hv-shell,
    .hk-container,
    .footer-shell {
        width: min(100% - 14px, 340px);
    }

    .hv-title {
        font-size: 31px;
    }

    .hk-brand__text,
    .footer-brand__text {
        min-width: 0;
    }

    .hk-brand__name,
    .footer-brand__name {
        font-size: 20px;
    }

    .hv-article-card__image,
    .hv-deal-card__image,
    .deal-thumb {
        height: 190px;
    }

    .footer-backtop {
        width: 44px;
        height: 44px;
    }
}

/* Landscape phones */
@media (max-height: 520px) and (orientation: landscape) {
    .site-header {
        position: relative;
    }

    .hk-main-nav,
    .main-nav {
        max-height: calc(100vh - 40px);
        inset: 12px 16px auto 16px;
    }

    .hv-hero {
        padding-top: 20px;
    }

    .hv-hero-main {
        min-height: auto;
    }

    .hv-feature,
    .hv-feature img {
        min-height: 260px;
    }

    .hv-stats {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .admin-sidebar {
        max-height: 100vh;
    }
}

/* Tablet portrait specific */
@media (min-width: 721px) and (max-width: 1024px) and (orientation: portrait) {
    .hv-category-grid,
    .hv-grid-3,
    .hv-grid-4,
    .article-grid,
    .featured-grid,
    .product-grid,
    .deal-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .hv-grid-6 {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }

    .footer-highlights,
    .footer-trust__inner {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .hv-stats {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* Tablet landscape specific */
@media (min-width: 900px) and (max-width: 1180px) and (orientation: landscape) {
    .hv-category-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .hv-grid-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .hv-grid-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hv-feature,
    .hv-feature img {
        min-height: 390px;
    }
}

/* Better scrolling on iOS */
@supports (-webkit-touch-callout: none) {
    .hk-main-nav,
    .main-nav,
    .admin-sidebar {
        -webkit-overflow-scrolling: touch;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: .001ms !important;
    }
}