/* =============================================
   APP SHOWCASE SECTION
   Shared component: watts_app_showcase() in lib/watts_functions.php
   enqueues this file wherever the section is shown.
   ============================================= */

.app-showcase {
    background: #0a0a0f;
    padding: 60px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

/* -- Decorative elements -- */
.app-showcase__decor { pointer-events: none; }

.app-showcase__blob {
    position: absolute;
    width: 400px;
    height: 400px;
}
.app-showcase__blob--left {
    top: 5%;
    left: -100px;
    transform: rotate(-20deg);
    opacity: 0.12;
}
.app-showcase__blob--right {
    bottom: 10%;
    right: -80px;
    transform: rotate(160deg);
    opacity: 0.225;
}

.app-showcase__dot {
    position: absolute;
    border-radius: 50%;
    width: 8px;
    height: 8px;
}
.app-showcase__dot--cyan {
    background: #00C6FF;
    top: 18%;
    left: 12%;
    box-shadow: 0 0 14px rgba(0, 198, 255, 0.6);
}
.app-showcase__dot--green {
    background: #34D399;
    bottom: 25%;
    right: 10%;
    box-shadow: 0 0 14px rgba(52, 211, 153, 0.6);
}
.app-showcase__dot--purple {
    background: #8B5CF6;
    width: 14px;
    height: 14px;
    top: 8%;
    right: 18%;
    box-shadow: 0 0 18px rgba(139, 92, 246, 0.6);
}
.app-showcase__dot--pink {
    background: #EC4899;
    width: 5px;
    height: 5px;
    top: 42%;
    left: 6%;
    box-shadow: 0 0 10px rgba(236, 72, 153, 0.7);
}
.app-showcase__dot--yellow {
    background: #FBBF24;
    width: 6px;
    height: 6px;
    bottom: 12%;
    left: 22%;
    box-shadow: 0 0 12px rgba(251, 191, 36, 0.6);
}
.app-showcase__dot--orange {
    background: #F97316;
    width: 10px;
    height: 10px;
    top: 62%;
    right: 6%;
    box-shadow: 0 0 16px rgba(249, 115, 22, 0.55);
}
.app-showcase__dot--cyan-2 {
    background: #22D3EE;
    width: 4px;
    height: 4px;
    top: 72%;
    left: 14%;
    box-shadow: 0 0 8px rgba(34, 211, 238, 0.7);
}
.app-showcase__dot--green-2 {
    background: #34D399;
    width: 5px;
    height: 5px;
    top: 14%;
    left: 38%;
    box-shadow: 0 0 10px rgba(52, 211, 153, 0.5);
    opacity: 0.7;
}

.app-showcase__pill {
    position: absolute;
    width: 40px;
    height: 14px;
    border-radius: 7px;
    background: rgba(236, 72, 153, 0.35);
    top: 30%;
    right: 8%;
    transform: rotate(25deg);
}
.app-showcase__pill--cyan {
    width: 56px;
    height: 10px;
    border-radius: 5px;
    background: rgba(0, 198, 255, 0.3);
    top: 70%;
    left: 4%;
    transform: rotate(-18deg);
}
.app-showcase__pill--purple {
    width: 28px;
    height: 10px;
    border-radius: 5px;
    background: rgba(139, 92, 246, 0.4);
    bottom: 18%;
    right: 24%;
    transform: rotate(40deg);
}
.app-showcase__pill--green {
    width: 64px;
    height: 8px;
    border-radius: 4px;
    background: rgba(52, 211, 153, 0.28);
    top: 50%;
    right: 14%;
    transform: rotate(-30deg);
}
.app-showcase__pill--yellow {
    width: 22px;
    height: 8px;
    border-radius: 4px;
    background: rgba(251, 191, 36, 0.4);
    top: 22%;
    left: 28%;
    transform: rotate(15deg);
}

/* -- Header -- */
.app-showcase__eyebrow {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #A855F7;
}

.app-showcase__title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 32px;
    line-height: 1.15;
    color: #fff;
}

.app-showcase__subtitle {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 26px;
    color: rgba(255, 255, 255, 0.45);
    max-width: 520px;
}

/* -- Download buttons -- */
.app-showcase__dl-btn {
    padding: 10px 18px;
    border-radius: 10px;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    transition: opacity 0.2s;
}
.app-showcase__dl-btn:hover {
    text-decoration: none;
    opacity: 0.85;
}
.app-showcase__dl-btn--ios {
    background: #fff;
    color: #111;
}
.app-showcase__dl-btn--ios:hover { color: #111; }
.app-showcase__dl-btn--android {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
}
.app-showcase__dl-btn--android:hover { color: #fff; }

/* -- Tab pills -- */
.app-showcase__tabs {
    gap: 8px;
    max-width: 100%;
}

.app-showcase__tab {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 8px 14px;
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}
.app-showcase__tab:hover {
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.7);
}
.app-showcase__tab--active {
    background: linear-gradient(135deg, #A855F7, #7C3AED);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.4);
}
.app-showcase__tab--active:hover {
    color: #fff;
    background: linear-gradient(135deg, #A855F7, #7C3AED);
}

/* -- Content area -- */
.app-showcase__content {
    max-width: 1280px;
    width: 100%;
    flex-direction: column;
    gap: 40px;
}

/* -- Phone mockup -- */
.app-showcase__phone-area {
    flex-shrink: 0;
    width: 220px;
}

.app-showcase__glow {
    position: absolute;
    width: 420px;
    height: 420px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(168, 85, 247, 0.55) 0%, rgba(168, 85, 247, 0.18) 40%, rgba(0, 198, 255, 0.08) 65%, transparent 75%);
    filter: blur(8px);
    pointer-events: none;
    z-index: 0;
}

.app-showcase__phone {
    position: relative;
    z-index: 1;
    width: 100%;
}

.app-showcase__phone-img {
    display: block;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 25px 50px rgba(0, 0, 0, 0.55)) drop-shadow(0 0 40px rgba(168, 85, 247, 0.25));
}

.app-showcase__highlight {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 2;
}

.app-showcase__hl {
    position: absolute;
    border-radius: 14px;
    opacity: 0;
    transform: scale(0.94);
    transition: opacity 0.45s ease, transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    --hl-color: 0, 198, 255;
    background: radial-gradient(ellipse at center, rgba(var(--hl-color), 0.18) 0%, rgba(var(--hl-color), 0.04) 60%, transparent 100%);
    box-shadow:
        inset 0 0 0 1px rgba(var(--hl-color), 0.85),
        inset 0 0 18px rgba(var(--hl-color), 0.35),
        0 0 0 1px rgba(var(--hl-color), 0.25),
        0 0 22px rgba(var(--hl-color), 0.6),
        0 0 44px rgba(var(--hl-color), 0.35);
    animation: appHlPulse 2.6s ease-in-out infinite;
    animation-play-state: paused;
}

.app-showcase__hl::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(var(--hl-color), 0.9), rgba(255, 255, 255, 0.4) 50%, rgba(var(--hl-color), 0.9));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    padding: 1px;
    opacity: 0;
    transition: opacity 0.6s ease;
}

@keyframes appHlPulse {
    0%, 100% {
        box-shadow:
            inset 0 0 0 1px rgba(var(--hl-color), 0.85),
            inset 0 0 18px rgba(var(--hl-color), 0.35),
            0 0 0 1px rgba(var(--hl-color), 0.25),
            0 0 22px rgba(var(--hl-color), 0.6),
            0 0 44px rgba(var(--hl-color), 0.35);
    }
    50% {
        box-shadow:
            inset 0 0 0 1px rgba(var(--hl-color), 1),
            inset 0 0 24px rgba(var(--hl-color), 0.5),
            0 0 0 1px rgba(var(--hl-color), 0.4),
            0 0 32px rgba(var(--hl-color), 0.85),
            0 0 64px rgba(var(--hl-color), 0.5);
    }
}

/* Reveal active highlight */
.app-showcase__highlight[data-highlight="0"] .app-showcase__hl--anim,
.app-showcase__highlight[data-highlight="1"] .app-showcase__hl--pat,
.app-showcase__highlight[data-highlight="2"] .app-showcase__hl--bright-a,
.app-showcase__highlight[data-highlight="2"] .app-showcase__hl--bright-b,
.app-showcase__highlight[data-highlight="3"] .app-showcase__hl--speed,
.app-showcase__highlight[data-highlight="4"] .app-showcase__hl--intensity,
.app-showcase__highlight[data-highlight="5"] .app-showcase__hl--save,
.app-showcase__highlight[data-highlight="6"] .app-showcase__hl--presets {
    opacity: 1;
    transform: scale(1);
    animation-play-state: running;
}

.app-showcase__highlight[data-highlight="0"] .app-showcase__hl--anim::after,
.app-showcase__highlight[data-highlight="1"] .app-showcase__hl--pat::after,
.app-showcase__highlight[data-highlight="2"] .app-showcase__hl--bright-a::after,
.app-showcase__highlight[data-highlight="2"] .app-showcase__hl--bright-b::after,
.app-showcase__highlight[data-highlight="3"] .app-showcase__hl--speed::after,
.app-showcase__highlight[data-highlight="4"] .app-showcase__hl--intensity::after,
.app-showcase__highlight[data-highlight="5"] .app-showcase__hl--save::after,
.app-showcase__highlight[data-highlight="6"] .app-showcase__hl--presets::after {
    opacity: 0.6;
}

/* Per-feature regions + brand colors (match the numbered list 01–07) */
.app-showcase__hl--anim       { top: 17%;   left: 25%; width: 50%; height: 5.5%;  --hl-color: 0, 198, 255;  border-radius: 999px; }
.app-showcase__hl--pat        { top: 21%;   left: 14%; width: 72%; height: 12%;   --hl-color: 236, 72, 153; }
.app-showcase__hl--bright-a   { top: 56.5%; left: 12%; width: 76%; height: 5%;    --hl-color: 34, 211, 238; border-radius: 999px; }
.app-showcase__hl--bright-b   { top: 73%;   left:  6%; width: 88%; height: 5%;    --hl-color: 34, 211, 238; border-radius: 999px; }
.app-showcase__hl--speed      { top: 77%;   left:  6%; width: 46%; height: 5%;    --hl-color: 251, 191, 36; border-radius: 999px; }
.app-showcase__hl--intensity  { top: 77%;   left: 47%; width: 44%; height: 5%;    --hl-color: 52, 211, 153; border-radius: 999px; }
.app-showcase__hl--save       { top: 80.5%; left: 47%; width: 44%; height: 6.5%;  --hl-color: 249, 115, 22; border-radius: 10px; }
.app-showcase__hl--presets    { top: 86%;   left: 51%; width: 18%; height: 5.5%;  --hl-color: 139, 92, 246; border-radius: 12px; }

@media (prefers-reduced-motion: reduce) {
    .app-showcase__hl { animation: none !important; transition: opacity 0.2s linear; }
}

/* -- Feature list -- */
.app-showcase__features {
    flex: 1;
    min-width: 0;
}

.app-showcase__feature {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: border-color 0.3s ease;
}
.app-showcase__feature--active {
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

.app-showcase__num {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 36px;
    line-height: 1;
    flex-shrink: 0;
    width: 60px;
    opacity: 0.25;
    transition: opacity 0.3s ease;
}
.app-showcase__feature--active .app-showcase__num {
    opacity: 1;
}

.app-showcase__feature-body {
    flex: 1;
    min-width: 0;
}

.app-showcase__feature-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 17px;
    color: rgba(255, 255, 255, 0.3);
    margin: 0;
    line-height: 1.4;
    transition: color 0.3s ease;
}
.app-showcase__feature--active .app-showcase__feature-title {
    color: #fff;
}

.app-showcase__feature-desc {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 22px;
    color: rgba(255, 255, 255, 0.45);
    margin: 8px 0 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.3s ease, margin 0.3s ease;
}
.app-showcase__feature--active .app-showcase__feature-desc {
    max-height: 300px;
    opacity: 1;
}

.app-showcase__feature-tip {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.85);
    margin: 12px 0 0;
    padding: 10px 14px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(0, 198, 255, 0.10), rgba(168, 85, 247, 0.10));
    border: 1px solid rgba(0, 198, 255, 0.25);
    box-shadow: 0 0 24px rgba(0, 198, 255, 0.08);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.3s ease, padding 0.3s ease, margin 0.3s ease, border-color 0.3s ease;
    padding-top: 0;
    padding-bottom: 0;
    margin-top: 0;
    border-color: transparent;
}

.app-showcase__feature--active .app-showcase__feature-tip {
    max-height: 200px;
    opacity: 1;
    padding-top: 10px;
    padding-bottom: 10px;
    margin-top: 12px;
    border-color: rgba(0, 198, 255, 0.25);
}

.app-showcase__feature-tip-link {
    color: #00C6FF;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid rgba(0, 198, 255, 0.4);
    transition: color 0.2s ease, border-color 0.2s ease, text-shadow 0.2s ease;
}

.app-showcase__feature-tip-link:hover,
.app-showcase__feature-tip-link:focus {
    color: #66dcff;
    border-bottom-color: #66dcff;
    text-shadow: 0 0 12px rgba(0, 198, 255, 0.6);
}

.app-showcase__feature-tip-label {
    display: inline-block;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #00C6FF;
    background: rgba(0, 198, 255, 0.15);
    padding: 2px 8px;
    border-radius: 999px;
    margin-right: 8px;
    vertical-align: 1px;
    text-shadow: 0 0 12px rgba(0, 198, 255, 0.5);
}

/* -- App Showcase responsive -- */
@media (min-width: 768px) {
    .app-showcase {
        padding: 80px 40px;
        gap: 48px;
    }
    .app-showcase__title { font-size: 42px; }
    .app-showcase__subtitle { font-size: 17px; }
    .app-showcase__tab { font-size: 12px; padding: 9px 18px; }
    .app-showcase__content { flex-direction: row; gap: 60px; }
    .app-showcase__phone-area { width: 260px; }
    .app-showcase__glow { width: 520px; height: 520px; }
    .app-showcase__num { font-size: 44px; width: 70px; }
    .app-showcase__feature-title { font-size: 18px; }
}

@media (min-width: 992px) {
    .app-showcase {
        padding: 120px 80px;
        gap: 56px;
    }
    .app-showcase__title { font-size: 48px; line-height: 56px; }
    .app-showcase__content { gap: 100px; }
    .app-showcase__phone-area { width: 320px; }
    .app-showcase__glow { width: 620px; height: 620px; }
    .app-showcase__num { font-size: 52px; width: 80px; }
    .app-showcase__feature-title { font-size: 20px; }
    .app-showcase__feature-desc { font-size: 15px; }
    .app-showcase__feature { gap: 20px; padding: 20px 0; }
}
