/* ============================================================
   Loja WPlay — Central de Downloads
   Self-contained stylesheet (previously hosted on wplay.sbs)
   ============================================================ */

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --accent: #7cfc00;
    --accent-dim: #5cbf00;
    --accent-glow: rgba(124, 252, 0, 0.25);
    --bg-body: #0b0f14;
    --bg-card: #141a22;
    --bg-card-hover: #1a2230;
    --bg-surface: #111820;
    --bg-header: rgba(11, 15, 20, 0.85);
    --text-primary: #e8ecf1;
    --text-secondary: #8a95a5;
    --text-muted: #5a6577;
    --border: rgba(255, 255, 255, 0.06);
    --border-accent: rgba(124, 252, 0, 0.2);
    --radius: 14px;
    --radius-sm: 10px;
    --radius-xs: 6px;
    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.35);
    --shadow-glow: 0 0 30px rgba(124, 252, 0, 0.08);
    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    background: var(--bg-body);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color var(--transition);
}
a:hover { color: var(--accent-dim); }

/* ---------- Header ---------- */
.main-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--bg-header);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border);
    padding: 0 24px;
}

.header-content {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
}

.logo-container h1 {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}
.logo-container p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: -2px;
}

.highlight {
    color: var(--accent);
    font-weight: 700;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    background: var(--accent);
    color: #0b0f14;
    font-weight: 700;
    font-size: 0.85rem;
    border-radius: 50px;
    transition: all var(--transition);
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(124, 252, 0, 0.25);
}
.btn-primary:hover {
    background: var(--accent-dim);
    color: #0b0f14;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(124, 252, 0, 0.35);
}

/* ---------- Page Wrapper ---------- */
.page-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 24px 80px;
}

/* ---------- Page Header ---------- */
.page-header {
    text-align: center;
    margin-bottom: 36px;
    animation: fadeInUp 0.6s ease-out;
}

.page-header-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--accent-glow), transparent);
    border: 1px solid var(--border-accent);
    border-radius: 16px;
    margin-bottom: 16px;
}
.page-header-icon svg {
    width: 28px;
    height: 28px;
    color: var(--accent);
}

.page-header h2 {
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}

.page-header p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    max-width: 520px;
    margin: 0 auto;
}

/* ---------- Device Navigation ---------- */
.device-nav {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 36px;
    padding: 6px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 50px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 0.6s ease-out 0.1s both;
}

.device-nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-family: var(--font);
    font-size: 0.82rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}
.device-nav-btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}
.device-nav-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}
.device-nav-btn.active {
    background: var(--accent);
    color: #0b0f14;
    box-shadow: 0 4px 12px rgba(124, 252, 0, 0.3);
}

/* ---------- Device Sections ---------- */
.device-section {
    display: none;
    animation: fadeInUp 0.4s ease-out;
}
.device-section.active {
    display: block;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}
.section-title svg {
    width: 24px;
    height: 24px;
    color: var(--accent);
    flex-shrink: 0;
}
.section-title h3 {
    font-size: 1.25rem;
    font-weight: 700;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

/* ---------- Sub Navigation (Smart TV tabs) ---------- */
.sub-nav {
    display: flex;
    gap: 6px;
    margin-bottom: 20px;
}
.sub-nav-btn {
    padding: 8px 18px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-secondary);
    font-family: var(--font);
    font-size: 0.82rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all var(--transition);
}
.sub-nav-btn:hover {
    border-color: var(--accent);
    color: var(--text-primary);
}
.sub-nav-btn.active {
    background: var(--accent);
    color: #0b0f14;
    border-color: var(--accent);
}

.sub-content {
    display: none;
    animation: fadeInUp 0.35s ease-out;
}
.sub-content.active {
    display: block;
}

/* ---------- Apps Grid ---------- */
.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
}

/* ---------- App Card ---------- */
.app-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}
.app-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: transparent;
    transition: background var(--transition);
}
.app-card:hover {
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
    box-shadow: var(--shadow-card);
}
.app-card:hover::before {
    background: linear-gradient(90deg, var(--accent), transparent);
}

.app-card.recommended {
    border-color: var(--border-accent);
    box-shadow: var(--shadow-glow);
}
.app-card.recommended::before {
    background: linear-gradient(90deg, var(--accent), transparent);
}

.app-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 4px 12px;
    background: rgba(124, 252, 0, 0.12);
    color: var(--accent);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 50px;
    border: 1px solid rgba(124, 252, 0, 0.2);
}

.app-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.app-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(124, 252, 0, 0.08);
    border-radius: 12px;
    transition: all var(--transition);
}
.app-icon svg {
    width: 22px;
    height: 22px;
    color: var(--accent);
}

.app-info h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 2px;
}

.app-desc {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* ---------- App Instructions ---------- */
.app-instructions {
    margin-bottom: 16px;
}
.app-instructions p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
    line-height: 1.5;
}

.app-steps {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.app-steps li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.84rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    background: rgba(124, 252, 0, 0.1);
    color: var(--accent);
    font-size: 0.72rem;
    font-weight: 700;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 1px;
}

/* ---------- Download Button ---------- */
.app-download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 12px 20px;
    background: linear-gradient(135deg, var(--accent), var(--accent-dim));
    color: #0b0f14;
    font-family: var(--font);
    font-size: 0.88rem;
    font-weight: 700;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(124, 252, 0, 0.2);
}
.app-download-btn svg {
    width: 18px;
    height: 18px;
}
.app-download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(124, 252, 0, 0.35);
    color: #0b0f14;
}

.app-download-btn.apple-btn {
    background: linear-gradient(135deg, #333, #1a1a1a);
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}
.app-download-btn.apple-btn:hover {
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.5);
    color: #fff;
}

.app-download-btn.firestick-btn {
    background: linear-gradient(135deg, #ff9900, #e68a00);
    color: #0b0f14;
    box-shadow: 0 4px 15px rgba(255, 153, 0, 0.25);
}
.app-download-btn.firestick-btn:hover {
    box-shadow: 0 6px 25px rgba(255, 153, 0, 0.4);
    color: #0b0f14;
}

.app-download-btn.outline-btn {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-primary);
    box-shadow: none;
}
.app-download-btn.outline-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    box-shadow: 0 4px 15px rgba(124, 252, 0, 0.1);
}

/* ---------- App Note ---------- */
.app-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 14px;
    padding: 12px 14px;
    background: rgba(255, 193, 7, 0.06);
    border: 1px solid rgba(255, 193, 7, 0.15);
    border-radius: var(--radius-xs);
    font-size: 0.8rem;
    color: #ffc107;
    line-height: 1.5;
}
.app-note svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    margin-top: 2px;
    color: #ffc107;
}

.warning {
    color: #ffa726;
    font-weight: 600;
}

/* ---------- Help Box ---------- */
.help-box {
    text-align: center;
    margin-top: 48px;
    padding: 36px 28px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}
.help-box h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 8px;
}
.help-box p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.whatsapp-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 28px;
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    border-radius: 50px;
    transition: all var(--transition);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.25);
}
.whatsapp-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.35);
    color: #fff;
}

/* ---------- Footer ---------- */
footer {
    text-align: center;
    padding: 28px 24px;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* ---------- Animations ---------- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .header-content {
        height: 60px;
    }
    .logo-container h1 {
        font-size: 1.15rem;
    }
    .logo-container p {
        font-size: 0.72rem;
    }
    .btn-primary {
        padding: 8px 16px;
        font-size: 0.78rem;
    }
    .page-wrapper {
        padding: 28px 16px 100px;
    }
    .page-header h2 {
        font-size: 1.35rem;
    }
    .device-nav {
        border-radius: var(--radius);
        padding: 4px;
        gap: 4px;
    }
    .device-nav-btn {
        padding: 8px 12px;
        font-size: 0.75rem;
        gap: 4px;
    }
    .device-nav-btn svg {
        width: 16px;
        height: 16px;
    }
    .apps-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .app-card {
        padding: 18px;
    }
    .section-title h3 {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .device-nav-btn span,
    .device-nav-btn {
        font-size: 0.7rem;
        padding: 7px 10px;
    }
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-body);
}
::-webkit-scrollbar-thumb {
    background: #2a3544;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #3a4a5e;
}
