/* ======================================================
   PromoTV Player style.css - Versão Responsiva (Refatorada)
====================================================== */

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

html,
body{
    width:100%;
    height:100%;
    overflow:hidden;
    font-family:'Poppins',sans-serif;
}

body{
    color:var(--text);
    background:#000;
}

/*======================================================
PLAYER
======================================================*/

#player{
    position:relative;
    width:100vw;
    height:100vh;
    overflow:hidden;
}

/*======================================================
BACKGROUND & EFEITOS
======================================================*/

#background{
    position:absolute;
    inset:0;
    background:var(--background);
    background-size:300% 300%;
    animation:bgMove 18s ease infinite;
}

#glow{
    position:absolute;
    width:900px;
    height:900px;
    left:-150px;
    top:40px;
    border-radius:50%;
    background: radial-gradient(var(--glow), transparent 70%);
    opacity:.55;
    filter:blur(80px);
    animation:glowPulse 7s ease-in-out infinite;
}

#ring{
    position:absolute;
    width:650px;
    height:650px;
    left:120px;
    top:130px;
    border-radius:50%;
    border:4px solid var(--ring);
    box-shadow: 0 0 60px var(--ring);
}

/*======================================================
HEADER
======================================================*/

header{
    position:absolute;
    top:0;
    left:0;
    right:0;
    height:90px;
    padding:0 60px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    z-index:20;
}

.logo img{
    height:55px;
}

.clock{
    text-align:right;
}

#date{
    font-size:15px;
    color:var(--subtitle);
}

#time{
    font-size:34px;
    font-weight:700;
}

/*======================================================
MAIN - ESTRUTURA BASE (HORIZONTAL)
======================================================*/

main{
    position:absolute;
    top:90px;
    bottom:70px;
    left:0;
    right:0;
    display:grid;
    grid-template-columns: 50% 50%;
}

/*======================================================
HERO (IMAGEM)
======================================================*/

.hero{
    display:flex;
    justify-content:center;
    align-items:center;
    position:relative;
}

.platform{
    position:relative;
    width:520px;
    height:520px;
    border-radius:42px;
    background:var(--glass);
    border:1px solid var(--glass-border);
    backdrop-filter:blur(22px);
    display:flex;
    justify-content:center;
    align-items:center;
    box-shadow: 0 35px 80px rgba(0,0,0,.25);
}

.platform::after{
    content:"";
    position:absolute;
    width:340px;
    height:30px;
    bottom:-35px;
    border-radius:50%;
    background:rgba(0,0,0,.18);
    filter:blur(18px);
}

#productImage{
    width:80%;
    max-height:80%;
    object-fit:contain;
    filter: drop-shadow(0 35px 35px rgba(0,0,0,.30));
    animation:float 5s ease-in-out infinite;
    transition: .5s;
}

/*======================================================
INFO (TEXTOS E PREÇO)
======================================================*/

.info{
    display:flex;
    justify-content:center;
    flex-direction:column;
    padding-right:80px;
}

.badge{
    width:max-content;
    background:var(--badge);
    color:white;
    padding:10px 24px;
    border-radius:40px;
    font-size:14px;
    font-weight:600;
    margin-bottom:25px;
}

.info h1{
    font-size:62px;
    font-weight:800;
    line-height:1.05;
}

.info p{
    font-size:24px;
    color:var(--subtitle);
    margin:18px 0 40px;
}

.price-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.price-card{
    display:flex;
    align-items:flex-end;
    gap:10px;
    width:max-content;
    padding:18px 30px;
    border-radius:26px;
    background:var(--price-bg);
    color:var(--price-color);
    box-shadow: 0 20px 60px rgba(0,0,0,.18);
}

.currency{
    font-size:30px;
    font-weight:700;
    margin-bottom:10px;
}

.price{
    font-size:78px;
    font-weight:800;
    line-height:1;
}

.old-price{
    margin-top:25px;
    color:var(--subtitle);
    font-size:22px;
}

.old-price span{
    text-decoration:line-through;
}

.validity{
    margin-top:12px;
    color:var(--subtitle);
}

/*======================================================
FOOTER
======================================================*/

footer{
    position:absolute;
    bottom:0;
    left:0;
    right:0;
    height:70px;
    padding:0 60px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    border-top:1px solid rgba(255,255,255,.08);
    color:var(--subtitle);
    z-index:20;
}

/*======================================================
REFATORAÇÃO PARA ORIENTAÇÃO VERTICAL (PORTRAIT)
======================================================*/

@media (orientation: portrait) {
    .price-container {
        align-items: center;
    }

    /* Ajustes de Elementos de Fundo */
    #glow {
        width: 120vw;
        height: 120vw;
        left: -10vw;
        top: 20vh;
    }

    #ring {
        width: 80vw;
        height: 80vw;
        left: 10vw;
        top: 15vh;
    }

    /* Header e Footer mais compactos */
    header {
        padding: 0 30px;
        height: 120px;
        flex-direction: column;
        justify-content: center;
        gap: 10px;
    }

    .clock {
        text-align: center;
    }

    footer {
        padding: 0 20px;
        height: 100px;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        font-size: 14px;
    }

    /* Main vira Coluna */
    main {
        top: 120px;
        bottom: 100px;
        grid-template-columns: 1fr;
        grid-template-rows: 45% 55%;
    }

    /* Hero no Topo */
    .hero {
        padding: 20px;
    }

    .platform {
        width: 80vw;
        height: 80vw;
        max-width: 400px;
        max-height: 400px;
    }

    /* Info Embaixo */
    .info {
        padding: 0 40px;
        align-items: center;
        text-align: center;
        justify-content: flex-start;
        padding-top: 20px;
    }

    .info h1 {
        font-size: 42px;
    }

    .info p {
        font-size: 18px;
        margin: 10px 0 20px;
    }

    .price-card {
        padding: 12px 24px;
    }

    .price {
        font-size: 58px;
    }

    .currency {
        font-size: 24px;
    }

    .badge {
        margin-bottom: 15px;
    }
}

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

@keyframes bgMove{
    0%{ background-position:0% 50%; }
    50%{ background-position:100% 50%; }
    100%{ background-position:0% 50%; }
}

@keyframes glowPulse{
    0%,100%{ transform:scale(1); }
    50%{ transform:scale(1.08); }
}

@keyframes float{
    0%{ transform:translateY(0); }
    50%{ transform:translateY(-12px); }
    100%{ transform:translateY(0); }
}
