/* Importação de fontes */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Inter:wght@300;400;500;600;700&display=swap');

/* Variáveis CSS */
:root {
    --red-500: #ef4444;
    --red-600: #dc2626;
    --red-700: #b91c1c;
    --orange-500: #f97316;
    --orange-600: #ea580c;
    --amber-500: #f59e0b;
    --amber-600: #d97706;
    --green-500: #10b981;
}

/* Reset e estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 30%, #fca5a5 60%, #f87171 100%);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

.brand-font {
    font-family: 'Bebas Neue', cursive;
}

/* Animações de entrada */
@keyframes slideInFromTop {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInFromBottom {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes skewAnimation {
    0%, 100% {
        transform: skewY(0deg);
    }
    50% {
        transform: skewY(2deg);
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

@keyframes typewriter {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

@keyframes blink {
    0%, 50% {
        opacity: 1;
    }
    51%, 100% {
        opacity: 0;
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(239, 68, 68, 0.3);
    }
    50% {
        box-shadow: 0 0 20px rgba(239, 68, 68, 0.6);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Animações do Churrasqueiro */
@keyframes grillMove {
    0%, 100% {
        transform: translateX(0) rotate(0deg);
    }
    25% {
        transform: translateX(-3px) rotate(-2deg);
    }
    75% {
        transform: translateX(3px) rotate(2deg);
    }
}

@keyframes flipMeat {
    0%, 100% {
        transform: rotateY(0deg);
    }
    50% {
        transform: rotateY(180deg);
    }
}

@keyframes wave {
    0% {
        transform: rotate(0deg) scale(1);
    }
    25% {
        transform: rotate(20deg) scale(1.1);
    }
    50% {
        transform: rotate(0deg) scale(1);
    }
    75% {
        transform: rotate(-20deg) scale(1.1);
    }
    100% {
        transform: rotate(0deg) scale(1);
    }
}

@keyframes fireFlicker {
    0%, 100% {
        transform: scale(1) rotate(0deg);
        filter: brightness(1);
    }
    25% {
        transform: scale(1.1) rotate(-2deg);
        filter: brightness(1.2);
    }
    50% {
        transform: scale(0.95) rotate(2deg);
        filter: brightness(0.9);
    }
    75% {
        transform: scale(1.05) rotate(-1deg);
        filter: brightness(1.1);
    }
}

@keyframes pulseSlow {
    0%, 100% {
        opacity: 0.8;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.02);
    }
}

@keyframes pulseSlower {
    0%, 100% {
        opacity: 0.6;
    }
    50% {
        opacity: 1;
    }
}

@keyframes pulseSlowest {
    0%, 100% {
        opacity: 0.4;
    }
    50% {
        opacity: 0.8;
    }
}

@keyframes confettiFall {
    0% {
        transform: translateY(-100vh) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

@keyframes miniConfetti {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(-50px) rotate(360deg);
        opacity: 0;
    }
}

@keyframes sparkAnimation {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(var(--spark-x), var(--spark-y)) scale(0);
        opacity: 0;
    }
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-5px);
    }
    20%, 40%, 60%, 80% {
        transform: translateX(5px);
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Classes de animação */
.animate-slide-in-top {
    animation: slideInFromTop 0.8s ease-out;
}

.animate-slide-in-bottom {
    animation: slideInFromBottom 0.8s ease-out;
    animation-delay: 0.2s;
}

.animate-fade-in {
    animation: fadeIn 0.5s ease-out;
}

.animate-pulse-slow {
    animation: pulseSlow 2s ease-in-out infinite;
}

.animate-pulse-slower {
    animation: pulseSlower 3s ease-in-out infinite;
}

.animate-pulse-slowest {
    animation: pulseSlowest 4s ease-in-out infinite;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

.animate-bounce {
    animation: bounce 1s ease-in-out infinite;
}

/* Background animado */
.skew-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #fee2e2 0%, #fecaca 25%, #fca5a5 50%, #f87171 75%, #ef4444 100%);
    background-size: 400% 400%;
    animation: skewAnimation 8s ease-in-out infinite;
    z-index: -1;
    opacity: 0.1;
}

/* Card principal */
.feedback-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.feedback-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shimmer 3s infinite;
}

/* Decoração de linha */
.decoration-line {
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--red-500), transparent);
    border-radius: 1px;
}

/* Inputs customizados */
.custom-input {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(239, 68, 68, 0.2);
    transition: all 0.3s ease;
    font-size: 16px;
}

.custom-input:focus {
    border-color: var(--red-500);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
    transform: translateY(-2px);
}

.custom-input::placeholder {
    color: rgba(107, 114, 128, 0.7);
}

/* Botão primário */
.btn-primary {
    background: linear-gradient(135deg, var(--red-500), var(--red-600));
    border: none;
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(239, 68, 68, 0.3);
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:active {
    transform: translateY(0);
}

/* Emojis de avaliação */
.emoji-rating {
    cursor: pointer;
    transition: transform 0.15s ease, filter 0.15s ease;
    filter: none;
    user-select: none;
    position: relative;
    will-change: transform;
}

.emoji-rating:hover {
    transform: scale(1.1);
    filter: none;
}

.emoji-rating.selected {
    transform: scale(1.15);
    filter: none;
}

.emoji-rating.selected::after {
    content: '⭐';
    position: absolute;
    top: -10px;
    right: -5px;
    font-size: 16px;
    animation: none;
}

/* Churrasqueiro animado */
.griller-scene {
    position: relative;
    display: inline-block;
    margin: 20px 0;
    cursor: pointer;
    transition: transform 0.3s ease;
    width: 200px;
    height: 140px;
    overflow: visible;
}

/* Forçar ordem de camadas coerente */
.griller { z-index: 3; }
.meat { z-index: 2; }
.grill, .fire { z-index: 1; }

.griller-scene:hover {
    transform: scale(1.05);
}

.griller {
    font-size: 60px;
    animation: grillMove 4s ease-in-out infinite;
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}

.grill {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    font-size: 40px;
    animation: fireFlicker 2s ease-in-out infinite;
    z-index: 1;
}

.meat {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 25px;
    animation: flipMeat 3s ease-in-out infinite;
    animation-delay: 0.5s;
    z-index: 2;
}

.fire {
    position: absolute;
    bottom: 0px;
    right: 35%;
    font-size: 30px;
    animation: fireFlicker 1.5s ease-in-out infinite;
    animation-delay: 0.3s;
    z-index: 1;
}

/* Card de propaganda */
.promo-card {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    position: relative;
    overflow: visible;
    transition: all 0.3s ease;
    min-height: 110px;
}

@media (max-width: 480px) {
    .promo-card {
        padding: 16px;
        min-height: 120px;
    }
    .promo-badge { top: -10px; right: 10px; }
}

.promo-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--orange-500), var(--red-500), var(--amber-500));
}

.promo-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.promo-badge {
    position: absolute;
    top: -10px;
    right: 20px;
    background: linear-gradient(135deg, var(--orange-500), var(--red-500));
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.promo-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.promo-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--orange-500), var(--red-500));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    flex-shrink: 0;
    animation: pulseSlow 2s ease-in-out infinite;
}

.promo-text {
    flex: 1;
}

.promo-title {
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
}

.promo-description {
    color: #6b7280;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 12px;
}

.promo-contact {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--red-600);
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 6px 12px;
    border-radius: 6px;
    background: rgba(239, 68, 68, 0.1);
}

.promo-contact:hover {
    background: var(--red-500);
    color: white;
    transform: translateY(-1px);
}

/* Checkmark de sucesso */
.checkmark {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--green-500), #059669);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 0.6s ease-out;
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.3);
}

/* Footer premium */
.premium-footer {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 50%, #f59e0b 100%);
    border: 1px solid rgba(245, 158, 11, 0.3);
    position: relative;
    overflow: hidden;
}

.premium-footer::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(255, 255, 255, 0.1) 10px,
        rgba(255, 255, 255, 0.1) 20px
    );
    animation: shimmer 4s linear infinite;
}

.footer-badge {
    background: rgba(255, 255, 255, 0.9);
    padding: 8px 16px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--red-700);
    margin-bottom: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.code-icon {
    font-size: 16px;
}

.dev-credit {
    color: var(--red-600);
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
}

.dev-credit:hover {
    color: var(--red-700);
    text-shadow: 0 2px 4px rgba(239, 68, 68, 0.3);
}

.typing-effect {
    border-right: none;
    animation: none;
    white-space: normal;
    overflow: visible;
    display: inline;
    max-width: none;
}

/* Remover qualquer cursor piscando */
.cursor { animation: none; }

/* Estilo para a função do desenvolvedor */
.dev-role {
    display: inline-block;
    background: linear-gradient(90deg, var(--red-500), var(--red-600));
    color: #fff;
    padding: 4px 10px;
    border-radius: 999px;
    font-weight: 700;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.25);
}

/* Links sociais */
.social-links {
    display: flex;
    gap: 12px;
    margin-top: 15px;
}

/* Botão flutuante WhatsApp no canto inferior direito (mais bonito) */
.whatsapp-float {
    position: fixed;
    right: 18px;
    bottom: 20px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #4be07d, #25D366 60%, #1ebe5d);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 20px rgba(0,0,0,0.18);
    border: 2px solid rgba(255,255,255,0.9);
    z-index: 999;
    transition: transform 0.2s ease, box-shadow 0.3s ease;
}

/* Efeito de pulso suave ao passar o mouse */
.whatsapp-float::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.45);
    opacity: 0;
}

.whatsapp-float:hover::after {
    opacity: 1;
    animation: whatsappPulse 1.8s ease-out;
}

@keyframes whatsappPulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.45); }
    70% { box-shadow: 0 0 0 14px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.whatsapp-float:hover {
    transform: translateY(-2px) scale(1.07) rotate(2deg);
    box-shadow: 0 12px 26px rgba(13, 169, 88, 0.35);
}

.whatsapp-float:focus {
    outline: 2px solid rgba(255,255,255,0.9);
    outline-offset: 3px;
}

.whatsapp-float svg {
    width: 28px;
    height: 28px;
    fill: currentColor;
}

@media (max-width: 480px) {
    .whatsapp-float { right: 14px; bottom: 16px; width: 52px; height: 52px; }
    .whatsapp-float svg { width: 26px; height: 26px; }
}
.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--red-600);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 18px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    animation: fadeIn 0.5s ease-out;
}

.social-link:hover {
    background: var(--red-500);
    color: white;
    transform: translateY(-2px) scale(1.1);
    box-shadow: 0 5px 15px rgba(239, 68, 68, 0.3);
}

/* Toast notifications */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, var(--red-500), var(--red-600));
    color: white;
    padding: 16px 24px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transform: translateX(400px);
    transition: transform 0.3s ease;
    font-weight: 500;
    max-width: 300px;
}

.toast.show {
    transform: translateX(0);
}

.toast.success {
    background: linear-gradient(135deg, var(--green-500), #059669);
}

.toast.error {
    background: linear-gradient(135deg, var(--red-600), #b91c1c);
}

.toast.info {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

/* Confetti */
.confetti {
    position: fixed;
    width: 10px;
    height: 10px;
    background: var(--red-500);
    z-index: 999;
    animation: confettiFall 3s linear forwards;
}

.confetti:nth-child(2n) {
    background: var(--orange-500);
}

.confetti:nth-child(3n) {
    background: var(--amber-500);
}

.confetti:nth-child(4n) {
    background: var(--green-500);
}

.mini-confetti {
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--red-500);
    border-radius: 50%;
    animation: miniConfetti 1s ease-out forwards;
}

/* Sparks do churrasco */
.grill-spark {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--orange-500);
    border-radius: 50%;
    animation: sparkAnimation 0.8s ease-out forwards;
    pointer-events: none;
}

.grill-spark:nth-child(2n) {
    background: var(--red-500);
}

.grill-spark:nth-child(3n) {
    background: var(--amber-500);
}

/* Spinner de loading */
.spinner {
    width: 24px;
    height: 24px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Utilitários */
.hidden {
    display: none !important;
}

.animate-shake {
    animation: shake 0.5s ease-in-out;
}

.animate-glow {
    animation: glow 2s ease-in-out infinite;
}

/* Responsividade */
@media (max-width: 768px) {
    .brand-font {
        font-size: 2.5rem;
    }
    
    .griller {
        font-size: 40px;
    }
    
    .grill {
        font-size: 30px;
    }
    
    .meat {
        font-size: 20px;
    }
    
    .fire {
        font-size: 25px;
    }
    
    .emoji-rating {
        font-size: 2.5rem;
    }
    
    .promo-content {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .promo-icon {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
    
    .promo-title {
        font-size: 16px;
        justify-content: center;
    }
    
    .promo-description {
        font-size: 13px;
    }
    
    .toast {
        right: 10px;
        left: 10px;
        max-width: none;
    }
}

@media (max-width: 480px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .feedback-card {
        padding: 1.5rem;
    }
    
    .emoji-rating {
        font-size: 2rem;
    }
    
    .brand-font {
        font-size: 2rem;
    }
}