
/**
 * HLxHub — Mobile Archive Empty State
 *
 * File:
 * assets/css/archive-mobile/mobile-empty.css
 *
 * Purpose:
 * Premium, modern and responsive empty state.
 *
 * Compatible with:
 * template-parts/archive-mobile/mobile-empty.php
 */


/* =========================================================
   1. ROOT
========================================================= */

.hlx-mobile-empty {
    --empty-primary: #2563eb;
    --empty-primary-dark: #1d4ed8;
    --empty-text: #172033;
    --empty-muted: #64748b;
    --empty-border: #e2e8f0;
    --empty-surface: #ffffff;

    position: relative;
    width: 100%;
    padding: 90px 24px;
    margin: 0 auto;
    overflow: hidden;
    isolation: isolate;

    background:
        radial-gradient(
            circle at 12% 15%,
            rgba(59, 130, 246, 0.09),
            transparent 35%
        ),
        radial-gradient(
            circle at 90% 85%,
            rgba(14, 165, 233, 0.08),
            transparent 32%
        ),
        #f8faff;

    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 28px;
}


/* =========================================================
   2. CONTAINER
========================================================= */

.hlx-mobile-empty__container {
    position: relative;
    z-index: 1;

    width: 100%;
    max-width: 1080px;
    margin: 0 auto;

    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: center;
    gap: 65px;
}


/* =========================================================
   3. VISUAL AREA
========================================================= */

.hlx-mobile-empty__visual {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    min-width: 0;
    min-height: 350px;
}


/* =========================================================
   4. BACKGROUND CIRCLE
========================================================= */

.hlx-mobile-empty__circle {
    position: relative;

    width: 290px;
    height: 290px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background:
        radial-gradient(
            circle at 35% 25%,
            #ffffff 0%,
            #eff6ff 48%,
            #dbeafe 100%
        );

    border: 1px solid rgba(147, 197, 253, 0.45);

    box-shadow:
        0 25px 65px rgba(37, 99, 235, 0.10),
        inset 0 0 35px rgba(255, 255, 255, 0.85);

    animation: hlx-empty-float 5s ease-in-out infinite;
}


/* Decorative outer ring */

.hlx-mobile-empty__circle::before {
    content: "";
    position: absolute;

    inset: -18px;

    border: 1px dashed rgba(59, 130, 246, 0.25);
    border-radius: 50%;

    animation: hlx-empty-rotate 28s linear infinite;
}


/* Soft inner glow */

.hlx-mobile-empty__circle::after {
    content: "";
    position: absolute;

    width: 180px;
    height: 180px;

    border-radius: 50%;

    background: rgba(96, 165, 250, 0.10);
    filter: blur(25px);

    pointer-events: none;
}


/* =========================================================
   5. PHONE ILLUSTRATION
========================================================= */

.hlx-mobile-empty__phone {
    position: relative;
    z-index: 2;

    width: 112px;
    height: 204px;

    padding: 7px;

    border-radius: 23px;

    background: linear-gradient(
        145deg,
        #334155,
        #0f172a 75%
    );

    border: 2px solid #475569;

    box-shadow:
        0 20px 35px rgba(15, 23, 42, 0.28),
        inset 0 0 0 1px rgba(255, 255, 255, 0.12);

    transform: rotate(-8deg);
    transition: transform 0.35s ease;
}

.hlx-mobile-empty__circle:hover .hlx-mobile-empty__phone {
    transform: rotate(0deg) translateY(-5px);
}


/* Phone screen */

.hlx-mobile-empty__phone-screen {
    position: relative;

    width: 100%;
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;

    border-radius: 17px;

    background:
        radial-gradient(
            circle at 50% 45%,
            #dbeafe,
            #eff6ff 65%,
            #ffffff
        );
}


/* Phone speaker */

.hlx-mobile-empty__phone-screen::before {
    content: "";
    position: absolute;

    top: 7px;
    left: 50%;

    width: 27px;
    height: 5px;

    border-radius: 10px;
    background: #64748b;

    transform: translateX(-50%);
}


/* Screen bottom indicator */

.hlx-mobile-empty__phone-screen::after {
    content: "";
    position: absolute;

    bottom: 7px;
    left: 50%;

    width: 25px;
    height: 3px;

    border-radius: 10px;
    background: #94a3b8;

    transform: translateX(-50%);
}


/* Search icon */

.hlx-mobile-empty__search-icon {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 58px;
    height: 58px;

    color: #2563eb;

    font-family: Arial, sans-serif;
    font-size: 52px;
    font-weight: 400;
    line-height: 1;

    border-radius: 50%;

    background: rgba(255, 255, 255, 0.85);

    border: 1px solid rgba(147, 197, 253, 0.65);

    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.12);

    transform: translateY(-2px);
}


/* =========================================================
   6. DECORATIVE DOTS
========================================================= */

.hlx-mobile-empty__dot {
    position: absolute;
    z-index: 3;

    display: block;

    border-radius: 50%;
    pointer-events: none;
}

.hlx-mobile-empty__dot--one {
    top: 44px;
    right: 55px;

    width: 15px;
    height: 15px;

    background: #60a5fa;

    box-shadow: 0 0 0 7px rgba(96, 165, 250, 0.12);

    animation: hlx-empty-pulse 3s ease-in-out infinite;
}

.hlx-mobile-empty__dot--two {
    bottom: 65px;
    left: 48px;

    width: 11px;
    height: 11px;

    background: #38bdf8;

    box-shadow: 0 0 0 6px rgba(56, 189, 248, 0.12);

    animation: hlx-empty-pulse 3.5s ease-in-out infinite;
}

.hlx-mobile-empty__dot--three {
    top: 95px;
    left: 35px;

    width: 8px;
    height: 8px;

    background: #818cf8;

    animation: hlx-empty-pulse 4s ease-in-out infinite;
}


/* =========================================================
   7. CONTENT
========================================================= */

.hlx-mobile-empty__content {
    min-width: 0;
    max-width: 500px;
}


/* Eyebrow */

.hlx-mobile-empty__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    margin-bottom: 18px;
    padding: 8px 14px;

    color: #2563eb;

    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.5px;
    line-height: 1.4;
    text-transform: uppercase;

    background: rgba(219, 234, 254, 0.65);

    border: 1px solid rgba(147, 197, 253, 0.5);
    border-radius: 50px;
}


/* Eyebrow indicator */

.hlx-mobile-empty__eyebrow::before {
    content: "";

    width: 7px;
    height: 7px;

    flex: 0 0 7px;

    background: #3b82f6;
    border-radius: 50%;

    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12);
}


/* Heading */

.hlx-mobile-empty__content h2 {
    margin: 0 0 18px;

    color: var(--empty-text);

    font-size: clamp(28px, 3.3vw, 42px);
    font-weight: 800;
    line-height: 1.18;
    letter-spacing: -1.4px;

    overflow-wrap: anywhere;
}


/* Description */

.hlx-mobile-empty__content p {
    max-width: 470px;

    margin: 0;

    color: var(--empty-muted);

    font-size: 15px;
    font-weight: 400;
    line-height: 1.9;
}


/* =========================================================
   8. ACTION BUTTONS
========================================================= */

.hlx-mobile-empty__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 13px;

    margin-top: 30px;
}


/* Common button */

.hlx-mobile-empty__button {
    position: relative;

    min-height: 49px;
    padding: 0 21px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;

    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
    text-decoration: none;

    border: 1px solid transparent;
    border-radius: 12px;

    cursor: pointer;

    transition:
        background 0.25s ease,
        color 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        transform 0.25s ease;
}


/* Primary button */

.hlx-mobile-empty__button--primary {
    color: #ffffff;

    background: linear-gradient(
        135deg,
        #3b82f6,
        #2563eb 65%,
        #1d4ed8
    );

    box-shadow:
        0 9px 22px rgba(37, 99, 235, 0.23),
        inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.hlx-mobile-empty__button--primary:hover {
    color: #ffffff;

    background: linear-gradient(
        135deg,
        #2563eb,
        #1d4ed8
    );

    box-shadow: 0 13px 28px rgba(37, 99, 235, 0.30);

    transform: translateY(-3px);
}


/* Primary arrow */

.hlx-mobile-empty__button--primary span:last-child {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    font-size: 20px;
    line-height: 1;

    transition: transform 0.25s ease;
}

.hlx-mobile-empty__button--primary:hover span:last-child {
    transform: translateX(4px);
}


/* Secondary button */

.hlx-mobile-empty__button--secondary {
    color: #334155;

    background: #ffffff;

    border-color: #cbd5e1;

    box-shadow: 0 3px 10px rgba(15, 23, 42, 0.04);
}

.hlx-mobile-empty__button--secondary:hover {
    color: #1d4ed8;

    background: #eff6ff;
    border-color: #93c5fd;

    box-shadow: 0 7px 18px rgba(37, 99, 235, 0.09);

    transform: translateY(-2px);
}


/* Keyboard accessibility */

.hlx-mobile-empty__button:focus-visible {
    outline: 3px solid rgba(59, 130, 246, 0.55);
    outline-offset: 4px;
}


/* =========================================================
   9. ANIMATIONS
========================================================= */

@keyframes hlx-empty-float {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-9px);
    }
}

@keyframes hlx-empty-rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes hlx-empty-pulse {
    0%,
    100% {
        opacity: 0.65;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.18);
    }
}


/* =========================================================
   10. TABLET
========================================================= */

@media (max-width: 900px) {

    .hlx-mobile-empty {
        padding: 70px 24px;
        border-radius: 24px;
    }

    .hlx-mobile-empty__container {
        grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
        gap: 35px;
    }

    .hlx-mobile-empty__visual {
        min-height: 300px;
    }

    .hlx-mobile-empty__circle {
        width: 235px;
        height: 235px;
    }

    .hlx-mobile-empty__phone {
        width: 100px;
        height: 180px;
    }

    .hlx-mobile-empty__content h2 {
        font-size: 32px;
    }

    .hlx-mobile-empty__content p {
        font-size: 14px;
    }

    .hlx-mobile-empty__actions {
        gap: 10px;
    }

    .hlx-mobile-empty__button {
        padding: 0 16px;
    }
}


/* =========================================================
   11. MOBILE
========================================================= */

@media (max-width: 600px) {

    .hlx-mobile-empty {
        padding: 48px 18px;
        border-radius: 20px;
    }

    .hlx-mobile-empty__container {
        grid-template-columns: minmax(0, 1fr);
        gap: 30px;
        text-align: center;
    }

    .hlx-mobile-empty__visual {
        min-height: 220px;
    }

    .hlx-mobile-empty__circle {
        width: 190px;
        height: 190px;
    }

    .hlx-mobile-empty__circle::before {
        inset: -12px;
    }

    .hlx-mobile-empty__circle::after {
        width: 130px;
        height: 130px;
    }

    .hlx-mobile-empty__phone {
        width: 83px;
        height: 150px;
        border-radius: 19px;
    }

    .hlx-mobile-empty__phone-screen {
        border-radius: 14px;
    }

    .hlx-mobile-empty__search-icon {
        width: 48px;
        height: 48px;
        font-size: 43px;
    }

    .hlx-mobile-empty__dot--one {
        top: 23px;
        right: calc(50% - 125px);
    }

    .hlx-mobile-empty__dot--two {
        bottom: 25px;
        left: calc(50% - 118px);
    }

    .hlx-mobile-empty__dot--three {
        top: 60px;
        left: calc(50% - 115px);
    }

    .hlx-mobile-empty__content {
        max-width: 100%;
    }

    .hlx-mobile-empty__eyebrow {
        margin-bottom: 15px;
        font-size: 10px;
    }

    .hlx-mobile-empty__content h2 {
        margin-bottom: 13px;
        font-size: clamp(25px, 7vw, 32px);
        line-height: 1.25;
        letter-spacing: -0.8px;
    }

    .hlx-mobile-empty__content p {
        max-width: 440px;
        margin: 0 auto;
        font-size: 13px;
        line-height: 1.8;
    }

    .hlx-mobile-empty__actions {
        justify-content: center;
        gap: 11px;
        margin-top: 24px;
    }

    .hlx-mobile-empty__button {
        min-height: 46px;
        padding: 0 16px;
        font-size: 12px;
        border-radius: 10px;
    }
}


/* =========================================================
   12. SMALL MOBILE
========================================================= */

@media (max-width: 380px) {

    .hlx-mobile-empty {
        padding: 38px 14px;
        border-radius: 16px;
    }

    .hlx-mobile-empty__container {
        gap: 23px;
    }

    .hlx-mobile-empty__visual {
        min-height: 190px;
    }

    .hlx-mobile-empty__circle {
        width: 165px;
        height: 165px;
    }

    .hlx-mobile-empty__phone {
        width: 73px;
        height: 132px;
    }

    .hlx-mobile-empty__search-icon {
        width: 42px;
        height: 42px;
        font-size: 37px;
    }

    .hlx-mobile-empty__content h2 {
        font-size: 25px;
    }

    .hlx-mobile-empty__actions {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }

    .hlx-mobile-empty__button {
        width: 100%;
        min-height: 45px;
    }
}


/* =========================================================
   13. REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .hlx-mobile-empty *,
    .hlx-mobile-empty *::before,
    .hlx-mobile-empty *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}


/* =========================================================
   14. DARK MODE SAFETY
========================================================= */

@media (prefers-color-scheme: dark) {

    .hlx-mobile-empty {
        color-scheme: light;
    }
}
