/* ==================================================
   NYGYM - DOWNLOAD PWA
   Tema: Branco e Azul
   Responsivo + Animado
================================================== */

:root {
    --primary: #0d6efd;
    --primary-dark: #0a58ca;
    --primary-light: #eaf3ff;

    --success: #198754;
    --warning: #ffc107;
    --danger: #dc3545;

    --white: #ffffff;
    --background: #f5f9ff;
    --border: #d9e8ff;

    --text: #1f2937;
    --text-light: #6b7280;

    --shadow-sm: 0 2px 8px rgba(13,110,253,.08);
    --shadow-md: 0 10px 25px rgba(13,110,253,.12);
    --shadow-lg: 0 20px 40px rgba(13,110,253,.15);

    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;

    --transition: .3s ease;
}

/* ==================================================
   RESET
================================================== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    font-family:
        Inter,
        "Segoe UI",
        Roboto,
        Arial,
        sans-serif;

    background: var(--background);
    color: var(--text);
    line-height:1.7;
}

/* ==================================================
   SCROLLBAR
================================================== */

::-webkit-scrollbar{
    width:10px;
}

::-webkit-scrollbar-track{
    background:#edf4ff;
}

::-webkit-scrollbar-thumb{
    background:var(--primary);
    border-radius:50px;
}

/* ==================================================
   CONTAINER
================================================== */

main{
    width:min(1200px, 92%);
    margin:auto;
    padding:40px 0 80px;
}

/* ==================================================
   HEADER
================================================== */
header{
    text-align:center;

    background: linear-gradient(
        180deg,
        #ffffff,
        #eef5ff
    );

    padding:60px 30px;

    border-radius:var(--radius-lg);

    border:1px solid var(--border);

    box-shadow:var(--shadow-md);

    animation:fadeUp .8s ease;
}

header h1{
    font-size:clamp(2rem, 5vw, 3.5rem);
    color:var(--primary);
    margin-bottom:20px;
}

header h1 i{
    margin-right:10px;
}

header p{
    max-width:800px;
    margin:auto;
    color:var(--text-light);
    margin-bottom:15px;
    font-size:1.05rem;
}

/* ==================================================
   BOTÕES
================================================== */

button{
    border:none;
    outline:none;
    cursor:pointer;

    background:var(--primary);
    color:white;

    padding:15px 28px;

    border-radius:14px;

    font-size:1rem;
    font-weight:600;

    transition:var(--transition);

    margin-top:20px;

    box-shadow:var(--shadow-sm);
}

button:hover{
    background:var(--primary-dark);
    transform:translateY(-3px);
    box-shadow:var(--shadow-md);
}

button:active{
    transform:scale(.97);
}

button i{
    margin-right:8px;
}

/* ==================================================
   STATUS
================================================== */

#statusMessage{
    margin-top:25px;
}

#statusMessage p{
    display:inline-flex;
    align-items:center;
    gap:10px;

    padding:12px 18px;

    background:white;
    border-radius:12px;

    border:1px solid var(--border);
}

#statusMessage i{
    color:var(--success);
}

/* ==================================================
   SECTION
================================================== */

section{
    background:white;

    margin-top:35px;

    padding:35px;

    border-radius:var(--radius-md);

    border:1px solid var(--border);

    box-shadow:var(--shadow-sm);

    animation:fadeUp .7s ease;
}

section:hover{
    box-shadow:var(--shadow-md);
}

/* ==================================================
   TITULOS
================================================== */

h2{
    color:var(--primary);
    margin-bottom:20px;
    font-size:1.8rem;
}

h3{
    color:#1f3f7a;
    margin-bottom:10px;
}

h2 i,
h3 i{
    margin-right:8px;
}

/* ==================================================
   PARÁGRAFOS
================================================== */

p{
    color:var(--text-light);
    margin-bottom:15px;
}

/* ==================================================
   ARTICLES
================================================== */

article{
    background:linear-gradient(
        180deg,
        #ffffff,
        #f7fbff
    );

    padding:25px;

    margin-top:20px;

    border-radius:14px;

    border:1px solid var(--border);

    transition:var(--transition);
}

article:hover{
    transform:translateY(-5px);
    box-shadow:var(--shadow-md);
}

/* ==================================================
   TABELA
================================================== */

table{
    width:100%;
    border-collapse:collapse;
    overflow:hidden;
    border-radius:16px;
}

thead{
    background:var(--primary);
    color:white;
}

th,
td{
    padding:16px;
    text-align:left;
}

tbody tr:nth-child(even){
    background:#f8fbff;
}

tbody tr:hover{
    background:#edf5ff;
}

table,
th,
td{
    border:1px solid var(--border);
}

/* ==================================================
   FAQ
================================================== */

details{
    border:1px solid var(--border);
    border-radius:12px;
    padding:18px;
    margin-bottom:15px;
    background:white;
    transition:var(--transition);
}

details:hover{
    box-shadow:var(--shadow-sm);
}

summary{
    cursor:pointer;
    font-weight:600;
    color:var(--primary);
}

details p{
    margin-top:15px;
}

/* ==================================================
   LISTAS
================================================== */

ol{
    margin-top:15px;
    margin-left:25px;
}

ol li{
    margin-bottom:12px;
    color:var(--text-light);
}

ul{
    margin-left:20px;
}

li::marker{
    color:var(--primary);
}

/* ==================================================
   LINKS
================================================== */

a{
    color:var(--primary);
    text-decoration:none;
    font-weight:600;
}

a:hover{
    color:var(--primary-dark);
    text-decoration:underline;
}

/* ==================================================
   MANUAL INSTALL
================================================== */

#manualInstallation{
    border-left:5px solid var(--warning);
}

/* ==================================================
   DIVISORES
================================================== */

hr{
    margin:35px 0;
    border:none;
    height:1px;
    background:linear-gradient(
        to right,
        transparent,
        #cfe1ff,
        transparent
    );
}

/* ==================================================
   ANIMAÇÕES
================================================== */

@keyframes fadeUp{

    from{
        opacity:0;
        transform:translateY(25px);
    }

    to{
        opacity:1;
        transform:translateY(0);
    }

}

@keyframes pulse{

    0%{
        transform:scale(1);
    }

    50%{
        transform:scale(1.04);
    }

    100%{
        transform:scale(1);
    }

}

#installButton,
#installButtonBottom{
    animation:pulse 2s infinite;
}

/* ==================================================
   MOBILE
================================================== */

@media (max-width: 768px){

    main{
        width:95%;
        padding-top:20px;
    }

    header{
        padding:40px 20px;
    }

    section{
        padding:25px;
    }

    h1{
        font-size:2rem;
    }

    h2{
        font-size:1.4rem;
    }

    table{
        display:block;
        overflow-x:auto;
        white-space:nowrap;
    }

    button{
        width:100%;
    }

}

/* ==================================================
   SMALL DEVICES
================================================== */

@media (max-width: 480px){

    header{
        padding:30px 15px;
    }

    section{
        padding:20px;
    }

    article{
        padding:20px;
    }

    th,
    td{
        padding:12px;
    }

}

/* ==================================================
   DESKTOP EXTRA
================================================== */

@media (min-width: 1200px){

    section{
        padding:45px;
    }

    article{
        padding:30px;
    }

}

.back-btn{
    position:fixed;
    top:20px;
    left:20px;
    z-index:999;

    width:46px;
    height:46px;

    display:flex;
    align-items:center;
    justify-content:center;

    border-radius:50%;

    color:#1d4ed8;

    background:rgba(255,255,255,0.75);
    backdrop-filter:blur(14px);

    border:1px solid rgba(29,78,216,0.25);

    box-shadow:
        0 10px 25px rgba(0,0,0,0.08),
        inset 0 0 0 1px rgba(255,255,255,0.4);

    text-decoration:none;

    transition:all .35s ease;

    overflow:hidden;

    animation:btnIn .5s ease;
}

/* ÍCONE */
.back-btn i{
    font-size:18px;
    transition:transform .3s ease;
}

/* HOVER */
.back-btn:hover{
    transform:translateY(-4px) scale(1.08);
    background:#1d4ed8;
    color:#fff;
    box-shadow:0 15px 35px rgba(29,78,216,0.35);
}

.back-btn:hover i{
    transform:translateX(-3px);
}

/* BRILHO ANIMADO */
.back-btn::before{
    content:"";
    position:absolute;
    top:0;
    left:-140%;
    width:60%;
    height:100%;
    background:linear-gradient(
        120deg,
        transparent,
        rgba(255,255,255,0.6),
        transparent
    );
    transform:skewX(-20deg);
}

.back-btn:hover::before{
    animation:shine 0.7s ease;
}

/* ANIMAÇÕES */
@keyframes shine{
    from{
        left:-140%;
    }
    to{
        left:140%;
    }
}

@keyframes btnIn{
    from{
        opacity:0;
        transform:translateY(-15px);
    }
    to{
        opacity:1;
        transform:translateY(0);
    }
}