/* Estilos customizados para a aplicação */

/* Utilitários */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Animações */
@keyframes pulse-slow {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.pulse-slow {
    animation: pulse-slow 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Gradientes personalizados */
.gradient-primary {
    background: linear-gradient(135deg, #062460 0%, #064d84 100%);
}

.gradient-accent {
    background: linear-gradient(135deg, #fdce02 0%, #edb800 100%);
}

.gradient-green {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

.gradient-gold {
    background: linear-gradient(135deg, #fdce02 0%, #c49102 100%);
}

/* Cards com hover effect */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Progress bars customizadas */
.progress-bar {
    transition: width 0.5s ease;
}

/* Botões customizados */
.btn-primary {
    @apply bg-primary-600 text-white px-4 py-2 rounded-md hover:bg-primary-700 transition-colors;
}

.btn-secondary {
    @apply bg-gray-200 text-gray-800 px-4 py-2 rounded-md hover:bg-gray-300 transition-colors;
}

.btn-success {
    @apply bg-green-600 text-white px-4 py-2 rounded-md hover:bg-green-700 transition-colors;
}

.btn-danger {
    @apply bg-red-600 text-white px-4 py-2 rounded-md hover:bg-red-700 transition-colors;
}

.btn-accent {
    @apply bg-accent-500 text-black px-4 py-2 rounded-md hover:bg-accent-600 transition-colors font-medium;
}

/* Status badges */
.badge-active {
    @apply bg-green-100 text-green-800 px-2 py-1 rounded-full text-xs font-medium;
}

.badge-inactive {
    @apply bg-gray-100 text-gray-800 px-2 py-1 rounded-full text-xs font-medium;
}

.badge-pending {
    @apply bg-yellow-100 text-yellow-800 px-2 py-1 rounded-full text-xs font-medium;
}

.badge-finished {
    @apply bg-blue-100 text-blue-800 px-2 py-1 rounded-full text-xs font-medium;
}

/* Countdown timer styling */
.countdown {
    font-family: 'Courier New', monospace;
    font-weight: bold;
}

.countdown.urgent {
    color: #ef4444;
    animation: pulse 1s infinite;
}

/* QR Code container */
.qr-container {
    background: white;
    padding: 1rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    display: inline-block;
}

/* Loading states */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .mobile-stack {
        flex-direction: column;
    }
    
    .mobile-full {
        width: 100%;
    }
    
    .mobile-text-center {
        text-align: center;
    }
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    .print-break {
        page-break-after: always;
    }
}

/* Dark mode support (futuro) */
@media (prefers-color-scheme: dark) {
    .dark-mode {
        background-color: #1a202c;
        color: #e2e8f0;
    }
}

/* Accessibility improvements */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus styles */
.focus-visible:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* Custom scrollbar */
.custom-scrollbar::-webkit-scrollbar {
    width: 8px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Notification styles */
.notification-enter {
    transform: translateX(100%);
    opacity: 0;
}

.notification-enter-active {
    transform: translateX(0);
    opacity: 1;
    transition: all 0.3s ease;
}

.notification-exit {
    transform: translateX(0);
    opacity: 1;
}

.notification-exit-active {
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.3s ease;
}

/* Floating action button */
.fab {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #fdce02 0%, #edb800 100%);
    color: #062460;
    border: none;
    box-shadow: 0 4px 12px rgba(253, 206, 2, 0.3), 0 8px 32px rgba(253, 206, 2, 0.15);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: bold;
}

.fab:hover {
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 6px 20px rgba(253, 206, 2, 0.4), 0 12px 40px rgba(253, 206, 2, 0.2);
    background: linear-gradient(135deg, #edb800 0%, #c49102 100%);
}

.fab:active {
    transform: scale(1.05);
}

.fab.rotate-45 {
    transform: rotate(45deg) scale(1.15);
}

/* FAB Menu Items */
.fab-item {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.fab-item:hover {
    transform: scale(1.15) translateX(-5px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

/* Primary color variations */
.bg-primary-gradient {
    background: linear-gradient(135deg, #062460 0%, #064d84 100%);
}

.text-primary-gradient {
    background: linear-gradient(135deg, #062460, #064d84);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.btn-primary-custom {
    @apply bg-primary-600 text-white px-4 py-2 rounded-md hover:bg-primary-700 transition-colors shadow-lg;
}

.btn-primary-custom:hover {
    box-shadow: 0 4px 12px rgba(6, 36, 96, 0.3);
    transform: translateY(-1px);
}

/* Accent color variations - use sparingly */
.bg-accent-gradient {
    background: linear-gradient(135deg, #fdce02 0%, #edb800 100%);
}

.text-accent-gradient {
    background: linear-gradient(135deg, #fdce02, #edb800);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.btn-accent-custom {
    @apply bg-accent-500 text-black px-4 py-2 rounded-md hover:bg-accent-600 transition-colors shadow-lg font-medium;
}

.btn-accent-custom:hover {
    box-shadow: 0 4px 12px rgba(253, 206, 2, 0.3);
    transform: translateY(-1px);
}

/* Skeleton loading */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

.skeleton-text {
    height: 1rem;
    border-radius: 0.25rem;
    margin-bottom: 0.5rem;
}

.skeleton-avatar {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
}

.skeleton-card {
    height: 12rem;
    border-radius: 0.5rem;
}

/* Tooltip customizado */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 120px;
    background-color: #555;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -60px;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 0.875rem;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

/* Animações de entrada */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

.slide-in-up {
    animation: slideInUp 0.5s ease-out;
}

.slide-in-right {
    animation: slideInRight 0.5s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(30px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Advertising Carousel Styles */
.carousel-container {
    position: relative;
    overflow: hidden;
}

.carousel-slide {
    min-width: 100%;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.carousel-slide:hover img {
    transform: scale(1.05);
}

.carousel-indicator {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.carousel-indicator:hover {
    transform: scale(1.2);
}

.carousel-indicator.active {
    background-color: rgba(253, 206, 2, 0.9) !important;
    transform: scale(1.25);
}

/* Glassmorphism effect for carousel container */
.glass-carousel {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Enhanced floating animations */
@keyframes float-carousel {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg);
        opacity: 0.1;
    }
    50% { 
        transform: translateY(-20px) rotate(180deg);
        opacity: 0.3;
    }
}

.float-element {
    animation: float-carousel 8s ease-in-out infinite;
}

/* Hero section enhancements */
.hero-content {
    backdrop-filter: blur(10px);
    background: rgba(0, 0, 0, 0.1);
}

/* Brand logo hover effects */
.brand-logo {
    transition: all 0.3s ease;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.brand-logo:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.2));
}

/* Trust indicators animation */
.trust-indicator {
    transition: all 0.3s ease;
}

.trust-indicator:hover {
    transform: translateY(-2px);
    color: #fdce02;
}

/* Carousel navigation buttons */
.carousel-nav-btn {
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.carousel-nav-btn:hover {
    background: rgba(253, 206, 2, 0.3);
    transform: scale(1.1);
}

/* Carousel slide content animations */
.carousel-content {
    animation: carousel-fade-in 0.6s ease-out;
}

@keyframes carousel-fade-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile responsive adjustments for carousel */
@media (max-width: 768px) {
    .carousel-slide {
        height: 200px;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .brand-logos {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .brand-logo {
        height: 2rem;
    }
    
    .carousel-nav-btn {
        width: 2rem;
        height: 2rem;
    }
    
    .trust-indicators {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Loading state for carousel images */
.carousel-slide img[data-loading="true"] {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

/* Enhanced hover effects for carousel slides */
.carousel-slide {
    position: relative;
    overflow: hidden;
}

.carousel-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(253, 206, 2, 0.1), rgba(6, 36, 96, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.carousel-slide:hover::before {
    opacity: 1;
}

/* Partnership showcase styling */
.partnership-logos {
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.partnership-logos img {
    transition: all 0.3s ease;
}

.partnership-logos:hover img {
    transform: scale(1.05);
}

/* CTA button enhancements */
.cta-button {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}