/**
 * GuHePe - WeSync Download Page
 * =============================
 * Estilos exclusivos da página de download do WeSync (/wesync)
 * Pensada para acesso via QR Code: foco total no app, sem navegação do site.
 */

/* ===== PAGE WRAPPER ===== */
.wesync-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.wesync-back {
    position: absolute;
    top: var(--spacing-lg);
    left: var(--spacing-lg);
    z-index: var(--z-fixed);
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-size: var(--font-size-sm);
    color: var(--text-muted);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.wesync-back:hover {
    color: var(--text-primary);
}

.wesync-back svg {
    width: 18px;
    height: 18px;
}

/* ===== HERO ===== */
.wesync-hero {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-4xl) var(--spacing-lg) var(--spacing-3xl);
}

.wesync-content {
    max-width: 420px;
    margin: 0 auto;
    text-align: center;
}

.wesync-mockup {
    display: flex;
    justify-content: center;
    margin-bottom: var(--spacing-xl);
}

/* ===== SCREENSHOT SHOWCASE (marquee automático e infinito) ===== */
.showcase-carousel {
    container-type: inline-size;
    overflow: hidden;
    width: 100%;
    mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}

.showcase-track {
    display: flex;
    width: max-content;
    gap: var(--spacing-md);
    animation: showcase-scroll 22s linear infinite;
    will-change: transform;
}

.showcase-carousel:hover .showcase-track {
    animation-play-state: paused;
}

.showcase-set {
    display: flex;
    gap: var(--spacing-md);
}

.show-card {
    flex: 0 0 calc(50cqw - (var(--spacing-md) / 2));
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg), var(--shadow-glow-purple);
}

.show-card img {
    display: block;
    width: 100%;
    aspect-ratio: 9 / 16;
    object-fit: cover;
}

@keyframes showcase-scroll {
    100% {
        transform: translateX(calc(-50% - (var(--spacing-md) / 2)));
    }
}

@media (prefers-reduced-motion: reduce) {
    .showcase-track {
        animation: none;
    }

    .showcase-carousel {
        overflow-x: auto;
        mask-image: none;
        -webkit-mask-image: none;
    }
}

.wesync-title {
    font-size: var(--font-size-4xl);
    font-weight: var(--font-weight-extrabold);
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
}

.wesync-description {
    font-size: var(--font-size-base);
    color: var(--text-secondary);
    line-height: var(--line-height-relaxed);
    margin-bottom: var(--spacing-2xl);
}

/* ===== STORE BUTTONS ===== */
.wesync-stores {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    justify-content: center;
}

/* ===== APP STORE (COMING SOON) ===== */
.btn-appstore {
    position: relative;
    padding: var(--spacing-lg);
    border-radius: 16px;
    font-weight: var(--font-weight-medium);
    text-align: center;
    width: 140px;
    height: 140px;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.55;
    cursor: not-allowed;
    pointer-events: none;
}

.btn-appstore .icon {
    width: 40px;
    height: 40px;
    color: #fff;
    margin-bottom: var(--spacing-sm);
}

.btn-appstore-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
}

@media (max-width: 480px) {
    .btn-appstore {
        width: 120px;
        height: 120px;
        padding: var(--spacing-md);
    }

    .btn-appstore .icon {
        width: 32px;
        height: 32px;
    }
}

/* ===== FOOTER NOTE ===== */
.wesync-footer {
    padding: var(--spacing-lg);
    text-align: center;
    font-size: var(--font-size-xs);
    color: var(--text-disabled);
}

.wesync-footer a {
    color: var(--text-muted);
    transition: color var(--transition-fast);
}

.wesync-footer a:hover {
    color: var(--text-primary);
}
