﻿/* ==========================================================================
   JNSOFT APPS STORE - FULL PROFESSIONAL GOOGLE
   ========================================================================== */

:root {
    --jn-blue: #004d99;
    --jn-dark-blue: #002d5a;
    --jn-light-blue: #007FFF;
    --jn-promo-blue: #005cc5;
    --google-gray: #5f6368;
    --border-light: #dadce0;
    --bg-comment: #f8f9fa;
    --transition-smooth: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* --- ESTRUTURA E ANIMAÇÕES --- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.reveal { animation: fadeInUp 0.8s ease forwards; }

.section-details { background: #fff; padding: 60px 0; }

/* --- HEADER ICON (APP STYLE) --- */
.play-icon-large {
    width: 140px;
    height: 140px;
    border-radius: 28px; /* Padrão moderno de ícones de app */
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    border: 1px solid var(--border-light);
    background: #fff;
    transition: var(--transition-smooth);
}

/* --- VÍDEO YOUTUBE (WRAPPER PRINCIPAL) --- */
.video-wrapper {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    background: #000;
    border-radius: 12px; /* Cantos mais suaves seguindo o padrão JNSOFT */
    width: 100%;
    max-width: 100%; 
    margin: 0 auto;
    border: 1px solid rgba(0,0,0,0.1);
    aspect-ratio: 16 / 9; /* Mantém a proporção exata do YouTube */
    display: block;
}

/* --- ESTILO PARA O IFRAME E PARA A PREVIEW (CAPA) --- */
/* Usamos seletores universais para garantir que o iframe se ajuste */
.video-wrapper iframe, 
.video-preview {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    border: none !important;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;    /* Centraliza o Play verticalmente */
    justify-content: center; /* Centraliza o Play horizontalmente */
    transition: 0.3s ease-in-out;
}

/* --- BOTÃO PLAY (ESTILO YOUTUBE PREMIUM) --- */
.play-button {
    position: relative;
    width: 68px;
    height: 48px;
    background: rgba(33, 33, 33, 0.9);
    color: #fff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    transition: all 0.3s ease;
    z-index: 5;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

/* --- EFEITO AO PASSAR O MOUSE --- */
.video-wrapper:hover .play-button {
    background: #FF0000; /* Vermelho YouTube */
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.4);
}

/* --- CLASSES DE CONTROLE (DISPLAY) --- */
.video-wrapper .d-none {
    display: none !important;
}

.play-button i {
    line-height: 1;
    margin-left: 2px; 
}


/* --- CARROSEL DE PRINTS (APP STORE GALLERY) --- */
.carousel-master-container {
    position: relative;
    padding: 0 10px;
}

.screenshot-carousel {
    display: flex;
    overflow-x: auto;
    gap: 12px;
    padding: 10px 5px; 
    scrollbar-width: none;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    will-change: transform; 
}

ot-carousel::-webkit-scrollbar { display: none; }

.screenshot-item {
    flex: 0 0 180px; 
    height: 320px;
    object-fit: cover;
    border-radius: 8px;
    border: 3px solid transparent; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    scroll-snap-align: start;
    cursor: pointer;
}

.screenshot-item:hover {
    transform: none !important; 
    border-color: var(--jn-light-blue); 
    box-shadow: 0 6px 15px rgba(0, 127, 255, 0.2); 
}

/* Botões de Naões de Navegação */
.btn-scroll-jn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--jn-blue);
    color: #fff;
    border: 1px solid var(--border-light);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
}

.btn-scroll-jn:hover { background: var(--bg-comment); color: #000; }
.btn-scroll-jn.left { left: -15px; }
.btn-scroll-jn.right { right: -15px; }

/* --- SEÇÃO DE COMENTÁRIOS (ESTILO GOOGLE PLAY) --- */
.comment-card {
    padding: 20px 0;
    border-bottom: 1px solid var(--border-light);
    background: transparent;
}

.avatar-circle {
    width: 40px;
    height: 40px;
    background: var(--jn-blue);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
}

.comment-name {
    font-size: 0.95rem;
    font-weight: 500;
    color: #202124;
    margin-bottom: 2px;
}

.comment-date {
    font-size: 0.8rem;
    color: var(--google-gray);
}

.comment-text {
    font-size: 0.9rem;
    color: #3c4043;
    line-height: 1.5;
    margin-top: 8px;
}

/* --- DOWNLOAD CARD (ESTILO MICROSOFT) --- */
.download-card {
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: 5px;
    padding: 15px;
    margin-bottom:5px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: 0.2s;
}

.download-card:hover { background: var(--bg-comment); }
.download-icon {
    font-size: 1.8rem;
    color: #d93025; /* PDF Red */
}

/* --- S

/* --- BOTÃO DE DOWNLOAD PROFISSIONAL --- */
.download-card .btn {
    border-radius: 5px !important;    
    padding: 8px 16px !important;   
    font-weight: 600;
    text-transform: none;            
    border: 1px solid var(--border-light);
    background: #fff;
    color: #3c4043;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
    height: auto;
    width: auto;                  
}

.download-card .btn:hover {
    background: #f1f3f4;
    border-color: #bdc1c6;
    color: #202124;
}
 (LATERAL) --- */
.col-sticky-helper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.sticky-buy-card {
    position: -webkit-sticky;
    position: sticky;
    top: 100px;
    z-index: 1000;
    width: 100%;
    max-width: 380px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid var(--border-light);
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: var(--transition-smooth);
}

/* --- BOTÃO 3D JNSOFT (APRIMORADO) --- */
.btn-jn-promo-3d {
    display: inline-block;
    background: var(--jn-blue);
    color: white !important;
    text-decoration: none !important;
    border-radius: 10px;
    padding: 2px;
    box-shadow: 0 5px 0 var(--jn-dark-blue);
    transition: all 0.1s;
    width: 100%;
}

.btn-jn-promo-3d .btn-3d-inner-promo {
    display: block;
    background: var(--jn-promo-blue);
    padding: 14px;
    border-radius: 8px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
    text-align:center;
}

.btn-jn-promo-3d:active {
    transform: translateY(3px);
    box-shadow: 0 2px 0 var(--jn-dark-blue);
}

/* --- RESPONSIVIDADE --- */
@media (max-width: 991px) {
    .sticky-buy-card { position: relative; top: 0; margin: 30px auto; }
    .video-wrapper { max-width: 100%; }
    .screenshot-item { flex: 0 0 140px; height: 250px; }
}