/* FreeBrainrots V2 - Custom Styles */

/* Step Indicator Styles */
.step-indicator {
    @apply flex flex-col items-center space-y-2 relative;
}

.step-number {
    @apply w-10 h-10 rounded-full border-2 border-gray-300 bg-white flex items-center justify-center text-sm font-semibold text-gray-400 transition-all duration-300;
}

.step-label {
    @apply text-xs font-medium text-gray-400 transition-colors duration-300;
}

.step-indicator.active .step-number {
    @apply border-blue-600 bg-blue-600 text-white;
}

.step-indicator.active .step-label {
    @apply text-blue-600;
}

.step-indicator.completed .step-number {
    @apply border-green-600 bg-green-600 text-white;
}

.step-indicator.completed .step-label {
    @apply text-green-600;
}

.step-connector {
    @apply w-16 h-0.5 bg-gray-300 mt-5;
}

/* Step Content Animation */
.step-content {
    @apply transition-all duration-500 ease-in-out;
}

.step-content.hidden {
    @apply opacity-0 scale-95 pointer-events-none;
}

.step-content.active {
    @apply opacity-100 scale-100;
}

/* Search Results */
.search-result-item {
    @apply flex items-center space-x-3 p-3 hover:bg-gray-50 cursor-pointer border-b border-gray-100 last:border-b-0 transition-colors;
}

.search-result-item:hover {
    @apply bg-blue-50;
}

.search-result-item img {
    @apply w-12 h-12 rounded-lg object-cover;
}

/* Toast Notifications */
.toast {
    @apply px-6 py-4 rounded-lg shadow-lg transform transition-all duration-300 ease-out max-w-sm;
}

.toast.success {
    @apply bg-green-600 text-white;
}

.toast.error {
    @apply bg-red-600 text-white;
}

.toast.warning {
    @apply bg-yellow-600 text-white;
}

.toast.info {
    @apply bg-blue-600 text-white;
}

.toast.enter {
    @apply translate-x-0 opacity-100;
}

.toast.exit {
    @apply translate-x-full opacity-0;
}

/* Loading Animation */
@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(59, 130, 246, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
    }
}

.pulse-glow {
    animation: pulse-glow 2s infinite;
}

/* Brainrot Card Hover Effects */
.brainrot-card {
    @apply transform transition-all duration-200 hover:scale-105 hover:shadow-lg;
}

/* Slider Styles */
#brainrot-slider {
    @apply relative overflow-hidden rounded-2xl bg-white shadow-xl;
}

.slider-track {
    @apply flex transition-transform duration-500 ease-in-out;
}

.slider-slide {
    @apply flex-shrink-0 px-4;
}

.slider-nav-btn {
    @apply absolute top-1/2 -translate-y-1/2 bg-white/80 hover:bg-white text-gray-800 rounded-full p-3 shadow-lg transition-all duration-200 backdrop-blur-sm;
}

.slider-nav-btn.prev {
    @apply left-4;
}

.slider-nav-btn.next {
    @apply right-4;
}

.slider-dots {
    @apply flex justify-center mt-6 space-x-2;
}

.slider-dot {
    @apply w-3 h-3 rounded-full transition-all duration-200;
}

.slider-dot.active {
    @apply bg-blue-600;
}

.slider-dot.inactive {
    @apply bg-gray-300;
}

/* Gradient Text */
.gradient-text {
    @apply bg-gradient-to-r from-blue-400 to-blue-600 bg-clip-text text-transparent;
}

/* Button Hover Effects */
.btn-primary {
    @apply bg-gradient-to-r from-blue-400 to-blue-600 text-white font-semibold py-3 px-6 rounded-xl shadow-lg hover:shadow-xl transform hover:-translate-y-1 transition-all duration-200;
}

.btn-primary:disabled {
    @apply opacity-50 cursor-not-allowed transform-none;
}

/* Mobile Optimizations */
@media (max-width: 640px) {
    .step-connector {
        @apply w-8;
    }
    
    .step-indicator {
        @apply space-y-1;
    }
    
    .step-number {
        @apply w-8 h-8 text-xs;
    }
    
    .step-label {
        @apply text-xs;
    }
    
    .brainrot-list-item {
        @apply flex-col items-start gap-3 p-3;
    }
    
    .brainrot-list-item .flex {
        @apply w-full;
    }
    
    .rainbow-btn {
        width: 100%;
        padding: 10px 24px;
    }
}

/* Brainrot List Styles */
.brainrot-list-item {
    @apply flex items-center gap-4 p-4 bg-white border-2 border-gray-200 rounded-xl hover:border-blue-400 hover:shadow-lg transition-all duration-300;
}

.brainrot-list-item:hover {
    @apply transform scale-[1.01];
}

.rainbow-btn {
    background: linear-gradient(90deg, #ff5f6d, #ffc371, #47cf73, #2bc0e4, #ff5f6d);
    background-size: 200% 100%;
    color: #fff;
    font-weight: 700;
    border: none;
    border-radius: 0.5rem;
    padding: 12px 48px;
    transition: background-position 0.3s ease, transform 0.1s ease;
    white-space: nowrap;
    flex-shrink: 0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.rainbow-btn:hover {
    background-position: 100% 0;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.rainbow-btn:active {
    transform: translateY(0);
}

/* Brainrot List Scrollbar */
#brainrot-list {
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.3) rgba(0, 0, 0, 0.1);
}

#brainrot-list::-webkit-scrollbar {
    width: 12px;
}

#brainrot-list::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 10px;
    margin: 4px 0;
}

#brainrot-list::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

#brainrot-list::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.5);
}

#brainrot-list::-webkit-scrollbar-thumb:active {
    background: rgba(0, 0, 0, 0.6);
}

/* Scroll indicator gradient */
#brainrot-list::after {
    content: '';
    position: sticky;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(to top, rgba(255, 255, 255, 0.9), transparent);
    pointer-events: none;
    display: block;
    margin-top: -40px;
}

/* Line Clamp Utility */
.line-clamp-2 {
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

/* Backdrop Blur Support */
.backdrop-blur-md {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Moving Brainrot Icons Background */
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
    opacity: 0.3;
}

.moving-icon {
    position: absolute;
    width: 60px;
    height: 60px;
    opacity: 0.3;
    animation: fadeInOut 4s ease-in-out infinite;
}

.moving-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

@keyframes fadeInOut {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translateY(-20px);
    }
}

/* Floating brainrot animations */
@keyframes float1 {
    0% {
        transform: translateY(0) translateX(0) rotate(0deg);
    }
    25% {
        transform: translateY(-25px) translateX(20px) rotate(8deg);
    }
    50% {
        transform: translateY(-10px) translateX(10px) rotate(4deg);
    }
    75% {
        transform: translateY(-30px) translateX(-10px) rotate(-4deg);
    }
    100% {
        transform: translateY(0) translateX(0) rotate(0deg);
    }
}

@keyframes float2 {
    0% {
        transform: translateY(0) translateX(0) rotate(0deg);
    }
    25% {
        transform: translateY(-20px) translateX(-25px) rotate(-10deg);
    }
    50% {
        transform: translateY(-5px) translateX(-15px) rotate(-5deg);
    }
    75% {
        transform: translateY(-35px) translateX(15px) rotate(5deg);
    }
    100% {
        transform: translateY(0) translateX(0) rotate(0deg);
    }
}

@keyframes float3 {
    0% {
        transform: translateY(0) translateX(0) rotate(0deg);
    }
    25% {
        transform: translateY(-30px) translateX(15px) rotate(12deg);
    }
    50% {
        transform: translateY(-15px) translateX(25px) rotate(6deg);
    }
    75% {
        transform: translateY(-20px) translateX(-20px) rotate(-6deg);
    }
    100% {
        transform: translateY(0) translateX(0) rotate(0deg);
    }
}

/* Ensure hero section has proper positioning */
section.relative {
    position: relative;
}

/* Floating items container */
#floating-items-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
    pointer-events: none;
}

.floating-item {
    position: absolute;
    opacity: 0.7;
    will-change: transform;
}

/* Focus Styles for Accessibility */
.focus-ring {
    @apply focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-offset-2;
}

/* Custom Scrollbar */
.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    @apply bg-gray-100 rounded-full;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    @apply bg-gray-300 rounded-full hover:bg-gray-400;
}

/* Offerwall Specific Styles */
#ogads-container {
    @apply min-h-[400px] w-full;
}

/* Error States */
.error-message {
    @apply text-red-600 text-sm mt-2 flex items-center space-x-1;
}

.error-message svg {
    @apply w-4 h-4 flex-shrink-0;
}

/* Success States */
.success-message {
    @apply text-green-600 text-sm mt-2 flex items-center space-x-1;
}

.success-message svg {
    @apply w-4 h-4 flex-shrink-0;
}

/* Loading States */
.loading-overlay {
    @apply absolute inset-0 bg-white/80 flex items-center justify-center z-10;
}

/* Responsive Typography */
@media (max-width: 640px) {
    h1 {
        @apply text-3xl;
    }
    
    h2 {
        @apply text-2xl;
    }
}

/* TikTok Popup Styles */
#tiktok-popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

#tiktok-popup .bg-white {
    position: relative;
    max-width: 400px;
    width: 90%;
    margin: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    font-size: 18px;
    line-height: 1.4;
    color: rgb(51, 51, 51);
    background: white;
    border-radius: 20px;
    padding: 30px;
}

.tiktok-icon {
    display: inline-block;
    width: 25px;
    height: 25px;
    background-image: url(/assets/images/tiktokicon.webp);
    background-size: 80%;
    background-repeat: no-repeat;
    vertical-align: middle;
    background-position: center center;
    border-radius: 50%;
    margin: 0px 5px;
}

.three-dots {
    display: inline-block;
    width: 25px;
    height: 25px;
    position: relative;
    vertical-align: middle;
    background: rgb(102, 102, 102);
    border-radius: 50%;
    margin: 0px 5px;
}

.three-dots::after {
    content: "⋯";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 14px;
    font-weight: bold;
}

.highlight {
    color: rgb(0, 122, 255);
    font-weight: bold;
}

/* Hide content for TikTok users */
body.tiktok-hidden main {
    display: none !important;
}

body.tiktok-hidden nav {
    display: none !important;
}

body.tiktok-hidden footer {
    display: none !important;
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }
}
.brainrot-list-item {
    display: flex;
}