/**
 * app-download.css — secțiunea „Descarcă aplicația" (prima pagină) + insignele din footer.
 *
 * Încărcat de layout.php DOAR când magazinul are măcar un link de aplicație (App Store /
 * Google Play din integrarea CloudShop Mobile). Zero culori proprii: banda e BRAND
 * (zona 3: fundal `--color-primary`, text `--color-on-primary`), restul e derivat cu
 * color-mix. Excepțiile documentate: insignele magazinelor (branduri terțe, negre ca
 * originalele) și rama telefonului (obiect desenat, nu suprafață de temă).
 *
 * Ultima modificare: 2026-09-06 14:20
 * Modificari:
 *   2026-09-06 14:20 — Insignele stau MEREU pe același rând (cerere user): fără împachetare; pe
 *                       ecran îngust se strâng amândouă ca să încapă una lângă alta.
 *   2026-09-06 13:45 — Creare.
 */

/* ───────────────────────── Insignele (footer + secțiune) ───────────────────────── */
.app-badges { display: flex; flex-direction: column; gap: .55rem; }
.app-badges-label {
    display: inline-flex; align-items: center; gap: .4rem;
    font-size: .78rem; font-weight: 600; letter-spacing: .02em;
    color: var(--footer-fg-muted, var(--color-text-secondary));
}
.app-badges-label i { font-size: .95rem; }
/* Pe același rând, pe orice ecran (cerere user 2026-09-06) — pe îngust se strâng, nu se rup. */
.app-badges-row { display: flex; flex-wrap: nowrap; gap: .6rem; }
.app-badges-row .app-badge { flex: 0 1 auto; min-width: 0; }

/* Insigna: neagră ca badge-urile oficiale (brand terț) — merge pe orice fundal; pe
   footere închise o desparte conturul deschis, pe fundaluri deschise umbra. */
.app-badge {
    display: inline-flex; align-items: center; gap: .55rem;
    min-height: 44px; padding: .35rem .85rem .35rem .7rem;
    border-radius: 10px; text-decoration: none !important;
    background: #111; color: #fff !important;
    border: 1px solid rgba(255, 255, 255, .22);
    box-shadow: 0 6px 18px rgba(0, 0, 0, .18);
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
    line-height: 1.05; white-space: nowrap;
}
.app-badge:hover, .app-badge:focus-visible {
    transform: translateY(-2px); background: #000;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .28); color: #fff !important;
}
.app-badge > i { font-size: 1.45rem; width: 1.6rem; text-align: center; color: #fff; }
.app-badge-txt { display: flex; flex-direction: column; text-align: left; }
.app-badge-txt small { font-size: .6rem; opacity: .82; letter-spacing: .04em; text-transform: uppercase; }
.app-badge-txt strong { font-size: 1rem; font-weight: 700; letter-spacing: -.01em; }

.app-badges-lg .app-badge { min-height: 54px; padding: .45rem 1.15rem .45rem .9rem; border-radius: 12px; }
.app-badges-lg .app-badge > i { font-size: 1.8rem; width: 2rem; }
.app-badges-lg .app-badge-txt small { font-size: .66rem; }
.app-badges-lg .app-badge-txt strong { font-size: 1.18rem; }

/* În footer: sub linkurile sociale, cu un rând de aer. */
.footer-app { margin-top: 1.1rem; }

/* ───────────────────────── Secțiunea de pe prima pagină ───────────────────────── */
.app-download-section { padding: 1.5rem 0 2.5rem; }
.app-dl-card {
    position: relative; overflow: hidden; isolation: isolate;
    display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: center;
    gap: 2rem; padding: 3rem 3.25rem;
    border-radius: 28px;
    background: linear-gradient(118deg,
        var(--color-primary) 0%,
        color-mix(in srgb, var(--color-primary) 78%, var(--color-primary-dark, #000)) 100%);
    color: var(--color-on-primary, #fff);
    box-shadow: 0 24px 60px color-mix(in srgb, var(--color-primary) 32%, transparent);
}
/* Două pete de lumină, tot din brand — dau adâncime fără nicio culoare nouă. */
.app-dl-card::before, .app-dl-card::after {
    content: ""; position: absolute; border-radius: 50%; z-index: -1; pointer-events: none;
    background: radial-gradient(circle, color-mix(in srgb, var(--color-on-primary, #fff) 22%, transparent) 0%, transparent 70%);
}
.app-dl-card::before { width: 420px; height: 420px; top: -180px; left: -120px; }
.app-dl-card::after  { width: 520px; height: 520px; right: -200px; bottom: -260px; opacity: .7; }

.app-dl-text { position: relative; z-index: 1; min-width: 0; }
.app-dl-eyebrow {
    display: inline-flex; align-items: center; gap: .45rem;
    padding: .35rem .8rem; border-radius: 999px;
    background: color-mix(in srgb, var(--color-on-primary, #fff) 16%, transparent);
    border: 1px solid color-mix(in srgb, var(--color-on-primary, #fff) 28%, transparent);
    font-size: .78rem; font-weight: 600; letter-spacing: .03em; text-transform: uppercase;
    color: var(--color-on-primary, #fff);
}
.app-dl-title {
    margin: 1rem 0 .7rem; font-size: clamp(1.7rem, 3vw, 2.5rem); line-height: 1.12;
    font-weight: 800; letter-spacing: -.02em; color: var(--color-on-primary, #fff);
}
.app-dl-lead {
    margin: 0 0 1.2rem; font-size: 1.05rem; line-height: 1.55; max-width: 34rem;
    color: color-mix(in srgb, var(--color-on-primary, #fff) 86%, transparent);
}
.app-dl-perks { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; gap: .55rem; }
.app-dl-perks li { display: flex; align-items: center; gap: .7rem; font-size: .95rem; font-weight: 500; }
.app-dl-perks li i {
    flex: 0 0 auto; width: 32px; height: 32px; border-radius: 9px;
    display: inline-flex; align-items: center; justify-content: center; font-size: 1rem;
    background: color-mix(in srgb, var(--color-on-primary, #fff) 18%, transparent);
    color: var(--color-on-primary, #fff);
}
/* Pe brand, insigna neagră primește contur mai vizibil ca să nu se „lipească" de bandă. */
.app-dl-text .app-badge { border-color: color-mix(in srgb, var(--color-on-primary, #fff) 35%, transparent); }

/* Telefonul */
.app-dl-visual { position: relative; z-index: 1; display: flex; justify-content: center; align-items: center; min-height: 380px; }
.app-dl-glow {
    position: absolute; width: 300px; height: 300px; border-radius: 50%;
    background: radial-gradient(circle, color-mix(in srgb, var(--color-on-primary, #fff) 30%, transparent) 0%, transparent 68%);
    filter: blur(6px);
}
.app-dl-phone {
    position: relative; width: 215px; height: 430px; border-radius: 36px;
    background: #15161a;                       /* rama = obiect desenat, nu suprafață de temă */
    padding: 12px; box-shadow: 0 30px 60px rgba(0, 0, 0, .35), inset 0 0 0 2px rgba(255, 255, 255, .08);
    transform: rotate(-6deg); transition: transform .5s ease;
}
.app-dl-card:hover .app-dl-phone { transform: rotate(-3deg) translateY(-4px); }
.app-dl-phone-notch {
    position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
    width: 78px; height: 22px; border-radius: 0 0 14px 14px; background: #15161a; z-index: 2;
}
.app-dl-screen {
    width: 100%; height: 100%; border-radius: 26px; overflow: hidden;
    background: var(--color-bg); color: var(--color-text);
    display: flex; flex-direction: column; gap: 10px; padding: 34px 12px 12px;
}
.app-dl-screen-top { display: flex; align-items: center; justify-content: space-between; min-height: 26px; }
.app-dl-screen-top img { max-height: 26px; max-width: 110px; object-fit: contain; }
.app-dl-screen-name { font-weight: 800; font-size: .8rem; color: var(--color-primary); }
.app-dl-screen-top i { color: var(--color-primary); font-size: .95rem; }
.app-dl-screen-search {
    display: flex; align-items: center; gap: 6px; padding: 6px 9px; border-radius: 10px;
    background: var(--color-white); border: 1px solid var(--color-border); color: var(--color-text-light);
}
.app-dl-screen-search i { font-size: .8rem; }
.app-dl-screen-search span { flex: 1; height: 6px; border-radius: 3px; background: var(--color-border); }
.app-dl-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.app-dl-tile { padding: 7px; border-radius: 12px; background: var(--color-white); border: 1px solid var(--color-border); display: grid; gap: 5px; }
.app-dl-tile b { display: block; height: 46px; border-radius: 8px;
    background: linear-gradient(135deg, color-mix(in srgb, var(--color-primary) 22%, var(--color-white)), color-mix(in srgb, var(--color-primary) 45%, var(--color-white))); }
.app-dl-tile i { display: block; height: 6px; border-radius: 3px; background: var(--color-border); }
.app-dl-tile i.short { width: 55%; background: color-mix(in srgb, var(--color-primary) 55%, var(--color-white)); }
.app-dl-screen-cta {
    margin-top: auto; display: flex; align-items: center; justify-content: center; gap: 6px;
    padding: 9px; border-radius: 12px; font-weight: 700; font-size: .8rem;
    background: var(--color-primary); color: var(--color-on-primary, #fff);
    box-shadow: 0 8px 18px color-mix(in srgb, var(--color-primary) 40%, transparent);
}
.app-dl-screen-nav {
    display: flex; justify-content: space-around; padding: 6px 0 0; color: var(--color-text-light); font-size: .95rem;
    border-top: 1px solid var(--color-border);
}
.app-dl-screen-nav i:first-child { color: var(--color-primary); }

/* Notificarea care „cade" peste telefon */
.app-dl-toast {
    position: absolute; right: 2%; top: 14%;
    display: flex; align-items: center; gap: .6rem; padding: .55rem .8rem .55rem .6rem;
    border-radius: 14px; background: var(--color-white); color: var(--color-text);
    box-shadow: 0 16px 36px rgba(0, 0, 0, .28); max-width: 220px;
    animation: appDlToast 5.5s ease-in-out infinite;
}
.app-dl-toast-ico {
    flex: 0 0 auto; width: 34px; height: 34px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center;
    background: color-mix(in srgb, var(--color-primary) 14%, var(--color-white)); color: var(--color-primary); font-size: 1rem;
}
.app-dl-toast-txt { display: flex; flex-direction: column; line-height: 1.2; }
.app-dl-toast-txt strong { font-size: .78rem; }
.app-dl-toast-txt em { font-style: normal; font-size: .7rem; color: var(--color-text-secondary); }
@keyframes appDlToast {
    0%, 12%  { opacity: 0; transform: translateY(-14px) scale(.96); }
    22%, 82% { opacity: 1; transform: translateY(0) scale(1); }
    92%, 100% { opacity: 0; transform: translateY(-14px) scale(.96); }
}
@media (prefers-reduced-motion: reduce) {
    .app-dl-toast { animation: none; }
    .app-dl-card:hover .app-dl-phone { transform: rotate(-6deg); }
}

/* ───────────────────────── Responsive ───────────────────────── */
@media (max-width: 991.98px) {
    .app-dl-card { grid-template-columns: 1fr; padding: 2.25rem 1.75rem 1.5rem; gap: 1.25rem; }
    /* Telefonul are 360px + rotație: sub 400px cardul (overflow hidden) îi tăia baza. */
    .app-dl-visual { min-height: 400px; }
    .app-dl-phone { width: 180px; height: 360px; }
    .app-dl-toast { right: 6%; top: 8%; }
}
@media (max-width: 575.98px) {
    .app-download-section { padding: 1rem 0 1.75rem; }
    .app-dl-card { padding: 1.75rem 1.15rem 1.25rem; border-radius: 20px; }
    .app-dl-lead { font-size: .96rem; }
    .app-dl-perks li { font-size: .88rem; }
    /* Amândouă pe un rând, umplând lățimea — niciodată una sub alta. */
    .app-badges-row .app-badge { flex: 1 1 0; justify-content: center; padding-left: .55rem; padding-right: .6rem; gap: .4rem; }
    .app-badge > i { font-size: 1.25rem; width: 1.35rem; }
    .app-badge-txt small { font-size: .56rem; }
    .app-badge-txt strong { font-size: .92rem; }
    .app-badges-lg .app-badge { min-height: 50px; }
    .app-badges-lg .app-badge > i { font-size: 1.5rem; width: 1.6rem; }
    .app-badges-lg .app-badge-txt small { font-size: .6rem; }
    .app-badges-lg .app-badge-txt strong { font-size: 1.02rem; }
    .app-dl-visual { min-height: 370px; }
    .app-dl-phone { width: 165px; height: 330px; padding: 10px; border-radius: 30px; }
    .app-dl-screen { padding: 30px 10px 10px; }
    .app-dl-toast { right: 0; top: 4%; max-width: 190px; }
}
