/* premium.css - Modern Gaming Design */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&display=swap');

*, *::before, *::after {
    box-sizing: border-box;
}

:root {
    --primary: #009ee3;
    --accent: #f1c40f;
    --dark-bg: #0f172a;
    --card-bg: rgba(30, 41, 59, 0.7);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --success: #10b981;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: 'Montserrat', sans-serif;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: var(--text-main);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    overflow-x: hidden;
}

/* Background Animation Effect */
body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../imagem/capa.jpg') no-repeat center center/cover;
    filter: blur(20px) brightness(0.3);
    z-index: -1;
}

.container {
    width: 100%;
    max-width: 1000px;
    perspective: 1000px;
}

.produto {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    animation: fadeIn 0.8s ease-out;
}

.produto-image {
    flex: 1 1 400px;
    position: relative;
    overflow: hidden;
    min-height: 300px;
}

.produto-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.produto:hover .produto-image img {
    transform: scale(1.05);
}

.produto-info {
    flex: 1 1 400px;
    padding: 30px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

h1 {
    font-size: 2.2rem;
    font-weight: 700;
    margin: 0 0 10px;
    background: linear-gradient(90deg, #fff, #94a3b8);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
}

p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 15px;
}

.preco {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 15px;
    text-align: center;
    text-shadow: 0 0 20px rgba(241, 196, 15, 0.3);
}

/* Base Button Style */
.btnPagar,
.btnDownload,
.btnComoComprar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 12px 20px;
    border-radius: 12px;
    border: none;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    position: relative;
    overflow: hidden;
}

/* Mercado Pago Button */
.btnPagar {
    background: #009ee3;
    color: white;
    box-shadow: 0 4px 15px rgba(0, 158, 227, 0.3);
}

.btnPagar:hover {
    background: #008cc9;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 158, 227, 0.4);
}

.btnPagar img {
    height: 20px;
    margin-right: 12px;
    filter: brightness(0) invert(1);
    /* Keeps it white for a cleaner look on the blue button */
}

/* Download Button */
.btnDownload {
    background: var(--success);
    color: white;
    display: flex;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
    animation: pulse 2s infinite;
}

.btnDownload:disabled {
    background: #475569;
    color: #94a3b8;
    cursor: not-allowed;
    animation: none;
    box-shadow: none;
    opacity: 0.7;
}

.btnDownload:hover {
    background: #059669;
    transform: translateY(-2px);
}

/* Help Button */
.btnComoComprar {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-muted);
    margin-top: 15px;
    font-size: 0.9rem;
    padding: 8px;
}

.btnComoComprar:hover {
    border-color: var(--text-main);
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.05);
}

.pix-info {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 15px;
}

.statusPagamento {
    background: rgba(241, 196, 15, 0.1);
    color: #f1c40f;
    padding: 10px;
    border-radius: 8px;
    margin: 10px 0;
    font-size: 0.9rem;
    text-align: center;
    border: 1px dashed rgba(241, 196, 15, 0.3);
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    display: none;
    z-index: 2000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
}

.modal {
    background: #1e293b;
    padding: 30px;
    border-radius: 16px;
    width: 90%;
    max-width: 600px;
    color: white;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.modal h2 {
    margin-top: 0;
    color: var(--primary);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    color: var(--text-muted);
    font-size: 24px;
    background: none;
    border: none;
    cursor: pointer;
}

.modal video {
    width: 100%;
    border-radius: 8px;
    margin-top: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Modal Checkout Mercado Pago */
.checkout-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(8px);
    display: none;
    z-index: 3000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.checkout-modal-overlay.active {
    opacity: 1;
}

.checkout-modal {
    background: #1e293b;
    border-radius: 16px;
    width: 95%;
    max-width: 1000px;
    /* Aumentado de 500px para 1000px */
    height: 95vh;
    /* Aumentado de 90vh para 95vh */
    max-height: 900px;
    /* Aumentado de 700px para 900px */
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.checkout-modal-header {
    background: linear-gradient(135deg, #009ee3 0%, #0077b3 100%);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.checkout-modal-header h3 {
    margin: 0;
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
}

.checkout-close-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 24px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.checkout-close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.checkout-iframe-container {
    flex: 1;
    position: relative;
    background: white;
}

.checkout-iframe-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.checkout-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--primary);
}

.checkout-loading-spinner {
    border: 4px solid rgba(0, 158, 227, 0.1);
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .produto {
        flex-direction: column;
    }

    .produto-image {
        min-height: 200px;
    }

    .produto-info {
        padding: 25px 20px;
    }

    h1 {
        font-size: 1.8rem;
    }
}

@media (max-height: 700px) {
    body {
        padding: 10px;
    }
    .produto-info {
        padding: 20px;
    }
    h1 {
        font-size: 1.8rem;
    }
    .preco {
        font-size: 1.8rem;
        margin-bottom: 10px;
    }
    p {
        margin-bottom: 10px;
        font-size: 0.9rem;
    }
}