/* Reset e configurações gerais */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    min-height: 100vh;
    background: #000;
}

/* Liquid Glass Modal Effect */
.liquid-glass-modal {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 
        0 8px 32px 0 rgba(0, 0, 0, 0.37),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.1),
        inset 0 -1px 0 0 rgba(255, 255, 255, 0.05);
    animation: modalFadeIn 0.5s ease-out;
}

.liquid-glass-modal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 24px;
    padding: 2px;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.2) 0%, 
        rgba(255, 255, 255, 0.05) 50%, 
        rgba(255, 255, 255, 0.1) 100%);
    -webkit-mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    mask-composite: exclude;
    pointer-events: none;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Video container */
#videoContainer {
    transition: opacity 0.5s ease;
}

#videoContainer.playing {
    opacity: 1;
}

/* Smooth transitions */
#welcomeModal {
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

#welcomeModal.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

#rewardModal {
    transition: transform 0.1s ease-out, opacity 0.1s ease-out;
}

#mainContent {
    transition: opacity 0.5s ease;
}

#mainContent.visible {
    opacity: 1;
}

/* Custom scrollbar (if needed) */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* Iframe styling */
iframe {
    border: none;
    outline: none;
}

/* Drop shadow for better text visibility */
.drop-shadow-lg {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.8));
}

/* Ensure icons are properly sized */
[data-lucide] {
    display: inline-block;
    vertical-align: middle;
}

/* Pointer events for interactive elements */
.pointer-events-auto {
    pointer-events: auto !important;
}

.pointer-events-none {
    pointer-events: none !important;
}

/* Emoji floating animation */
.emoji-float {
    animation: floatEmoji 3s ease-in-out infinite;
    opacity: 0.8;
}

.emoji-float:nth-child(1) {
    left: 10%;
    top: 20%;
}

.emoji-float:nth-child(2) {
    left: 80%;
    top: 30%;
}

.emoji-float:nth-child(3) {
    left: 20%;
    top: 60%;
}

.emoji-float:nth-child(4) {
    left: 70%;
    top: 70%;
}

.emoji-float:nth-child(5) {
    left: 50%;
    top: 40%;
}

.emoji-float:nth-child(6) {
    left: 30%;
    top: 80%;
}

@keyframes floatEmoji {
    0%, 100% {
        transform: translateY(0) translateX(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.8;
    }
    50% {
        transform: translateY(-100px) translateX(50px) rotate(180deg);
        opacity: 0.6;
    }
    90% {
        opacity: 0.3;
    }
}

/* Swipe indicator animation */
.swipe-indicator {
    animation: swipeUp 1.5s ease-in-out infinite;
}

@keyframes swipeUp {
    0%, 100% {
        transform: translateY(0);
        opacity: 1;
    }
    50% {
        transform: translateY(-20px);
        opacity: 0.5;
    }
}

/* Fade in animation for modals */
.fade-in {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Earning popup animation */
.earning-popup {
    animation: earningPopup 2s ease-out forwards;
}

@keyframes earningPopup {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.8);
    }
    10% {
        opacity: 1;
        transform: translateY(0) scale(1.2);
    }
    20% {
        transform: translateY(-5px) scale(1);
    }
    80% {
        opacity: 1;
        transform: translateY(-10px) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(-30px) scale(0.9);
    }
}

/* Earning indicator styling */
#earningsIndicator {
    transition: none;
}

#earningsIndicator span {
    font-size: 1.5rem;
    font-weight: 800;
    text-shadow: 
        0 0 10px rgba(74, 222, 128, 0.8),
        0 0 20px rgba(74, 222, 128, 0.6),
        0 2px 4px rgba(0, 0, 0, 0.8);
    animation: glow 0.5s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        text-shadow: 
            0 0 10px rgba(74, 222, 128, 0.8),
            0 0 20px rgba(74, 222, 128, 0.6),
            0 2px 4px rgba(0, 0, 0, 0.8);
    }
    to {
        text-shadow: 
            0 0 20px rgba(74, 222, 128, 1),
            0 0 30px rgba(74, 222, 128, 0.8),
            0 2px 4px rgba(0, 0, 0, 0.8);
    }
}

/* Line clamp utility */
.line-clamp-1 {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}