/* =========================================
   VARIÁVEIS GLOBAIS E RESET
   ========================================= */
:root {
    --bg-gradient: linear-gradient(180deg, #ffffff 0%, #ffffff 40%, #fcf2ee 70%, #ebd2cb 100%);
    --primary: #8B1E3F;
    --secondary: #E25822;
    --text-dark: #2d2422;
    --text-muted: #5a4a46;
    --glass-bg: rgba(255, 255, 255, 0.65);
    --glass-border: rgba(255, 255, 255, 0.9);
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    background-image: var(--bg-gradient);
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
    -webkit-font-smoothing: antialiased;
}

/* =========================================
   ESTRUTURA
   ========================================= */
.app-container {
    width: 100%;
    max-width: 420px;
    padding: 40px 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    z-index: 10;
}

/* =========================================
   LOGO E EFEITO FLUTUANTE
   ========================================= */
.logo-box {
    display: flex;
    justify-content: center;
    margin-bottom: 8px;
    width: 100%;
}

.logo-box img {
    width: 100%;
    max-width: 280px; 
    height: auto;
    animation: float 6s ease-in-out infinite;
}

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

/* =========================================
   BOTÃO PLAY PRINCIPAL
   ========================================= */
.btn {
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    cursor: pointer;
    border: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-play {
    width: 100%;
    padding: 18px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: #ffffff;
    font-size: 24px;
    font-weight: 900;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: 0 10px 25px rgba(139, 30, 63, 0.3);
    gap: 12px;
    position: relative;
    overflow: hidden;
}

.btn-play svg {
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.btn-play:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 35px rgba(139, 30, 63, 0.4);
}

.btn-play:active {
    transform: translateY(2px) scale(0.98);
    box-shadow: 0 4px 15px rgba(139, 30, 63, 0.3);
}

.btn-play::after {
    content: '';
    position: absolute;
    top: 0; left: -100%; width: 50%; height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.4) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg);
    animation: sweep-light 3s infinite; 
}

@keyframes sweep-light {
    0%   { left: -100%; } 
    20%  { left: 200%; } 
    100% { left: 200%; } 
}

/* =========================================
   CARD QR CODE (GLASSMORPHISM)
   ========================================= */
.qr-box {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 24px;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    box-shadow: 0 20px 40px rgba(226, 88, 34, 0.08), inset 0 2px 5px rgba(255,255,255,0.5);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    position: relative; /* Necessário para a tag flutuante */
    margin-bottom: 16px; /* Espaço extra para a tag não bater nos botões de baixo */
}

.img-wrapper {
    background: #ffffff;
    padding: 12px;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.06);
    display: inline-block;
    border: 1px solid #f0e6e4;
    transition: transform 0.3s ease;
    width: 100%;
    max-width: 250px; /* QR Code muito maior agora! */
    box-sizing: border-box;
}

.img-wrapper:hover {
    transform: scale(1.03) rotate(-2deg);
}

.img-wrapper img {
    width: 100%; /* Ocupa 100% da caixa branca */
    height: auto;
    aspect-ratio: 1/1; /* Garante que fique perfeitamente quadrado */
    border-radius: 12px;
    display: block;
}

/* O NOVO EFEITO DA FRASE FLUTUANTE (Sutil e Provocativo) */
.floating-badge {
    position: absolute;
    bottom: -16px;
    left: 50%;
    
    background: #fff8f5;
    color: var(--secondary);
    font-size: 14px;
    font-weight: 600;
    font-style: italic;
    letter-spacing: 0.5px;
    padding: 6px 20px;
    border-radius: 20px;
    border: 1px solid rgba(226, 88, 34, 0.15);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
    white-space: nowrap;
    z-index: 5;
    
    /* Flutuação mantendo o alinhamento central */
    animation: float-badge 4s ease-in-out infinite;
}

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

/* =========================================
   BOTÕES SECUNDÁRIOS (ESTILO FLIPERAMA)
   ========================================= */
.btn-group {
    display: flex;
    gap: 16px;
    width: 100%;
}

.btn-secondary {
    flex: 1;
    padding: 16px 12px;
    background: #ffffff;
    border: 1px solid #e8dedc;
    border-radius: 16px;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 800;
    flex-direction: column;
    gap: 8px;
    position: relative;
    box-shadow: inset 0 -4px 0 rgba(0,0,0,0.04), 0 4px 10px rgba(139, 30, 63, 0.05);
}

.btn-secondary svg {
    color: var(--secondary);
    transition: transform 0.3s ease;
}

.btn-secondary:hover {
    transform: translateY(-2px);
    border-color: #f0e6e4;
    box-shadow: inset 0 -4px 0 rgba(0,0,0,0.04), 0 6px 15px rgba(226, 88, 34, 0.08);
    color: var(--primary);
}

.btn-secondary:hover svg {
    transform: scale(1.15);
}

.btn-secondary:active {
    transform: translateY(4px) scale(0.98);
    box-shadow: inset 0 -1px 0 rgba(0,0,0,0.04), 0 0px 0px rgba(139, 30, 63, 0.05);
}

/* Tooltip Badge estilo Nuvem Flutuante */
.badge {
    position: absolute;
    bottom: 115%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: #179B78;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    padding: 6px 12px;
    border-radius: 8px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    white-space: nowrap;
    box-shadow: 0 4px 10px rgba(23, 155, 120, 0.3);
    pointer-events: none;
    z-index: 20;
}

/* Setinha para baixo do Tooltip */
.badge::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: #179B78 transparent transparent transparent;
}

.badge.mostrar {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* =========================================
   RODAPÉ
   ========================================= */
.footer {
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 600;
    margin-top: 8px;
}

.footer a {
    color: var(--secondary);
    text-decoration: none;
    font-weight: 800;
    transition: color 0.3s ease;
}

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

.footer p {
    margin: 4px 0;
}

/* =========================================
   ANIMAÇÕES DE ENTRADA (Como no Vue)
   ========================================= */
.animate-fade-down {
    opacity: 0;
    transform: translateY(-20px);
    animation: fadeDown 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-slide-up {
    opacity: 0;
    transform: translateY(20px);
    animation: slideUpFade 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

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