/* Custom styles for Extra com iPhone landing page */

/* Reset and base styles for compatibility */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Fallback styles in case TailwindCSS doesn't load */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: #0a0a23;
    color: white;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Layout fallbacks */
.grid {
    display: grid;
}

.grid-cols-1 {
    grid-template-columns: 1fr;
}

.grid-cols-2 {
    grid-template-columns: 1fr 1fr;
}

.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.text-center {
    text-align: center;
}

.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

.w-full {
    width: 100%;
}

.h-full {
    height: 100%;
}

.rounded-xl {
    border-radius: 0.75rem;
}

.bg-gray-900 {
    background-color: #111827;
}

.text-white {
    color: white;
}

.text-orange-500 {
    color: #f97316;
}

.bg-orange-600 {
    background-color: #ea580c;
}

.px-8 {
    padding-left: 2rem;
    padding-right: 2rem;
}

.py-4 {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.gap-8 {
    gap: 2rem;
}

/* Video Container - Novo Design Simplificado */
.video-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    background: #111827;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
}

.video-container video {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 0.75rem;
    max-height: 500px;
}

/* Botão de Play Central */
#play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: #f97316;
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 30px;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 8px 32px rgba(249, 115, 22, 0.4);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

#play-button:hover {
    background: #ea580c;
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 12px 40px rgba(249, 115, 22, 0.6);
}

/* Controles Personalizados */
#video-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-container:hover #video-controls {
    opacity: 1;
}

#video-controls button {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
}

#video-controls button:hover {
    background: #f97316;
    transform: scale(1.1);
}

#progress {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
    outline: none;
    cursor: pointer;
}

#progress::-webkit-slider-thumb {
    appearance: none;
    width: 16px;
    height: 16px;
    background: #f97316;
    border-radius: 50%;
    cursor: pointer;
}

#progress::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: #f97316;
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

#time {
    color: white;
    font-size: 14px;
    min-width: 50px;
    text-align: center;
}

/* Header fallbacks */
.header-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(10, 10, 35, 0.95);
    backdrop-filter: blur(10px);
    z-index: 50;
    padding: 1rem 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Button fallbacks */
.btn-primary {
    background: #f97316;
    color: white;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    display: inline-block;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: #ea580c;
    transform: translateY(-2px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .grid-cols-2 {
        grid-template-columns: 1fr;
    }
    
    .container {
        padding: 0 0.5rem;
    }
    
    .play-button-circle {
        width: 5rem;
        height: 5rem;
    }
}

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

/* Custom animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

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

/* Fade in animation for sections */
.fade-in {
    animation: fadeInUp 0.8s ease-out forwards;
}

/* Pulse animation for CTAs */
.pulse-animation {
    animation: pulse 2s infinite;
}

/* Float animation for iPhone mockups */
.float-animation {
    animation: float 3s ease-in-out infinite;
}

/* Custom gradient backgrounds */
.gradient-bg {
    background: linear-gradient(135deg, #0a0a23 0%, #1a1a3a 100%);
}

/* Video placeholder hover effect */
.video-placeholder:hover {
    transform: scale(1.02);
    transition: transform 0.3s ease;
}

/* Button hover effects */
.btn-hover-effect {
    position: relative;
    overflow: hidden;
}

.btn-hover-effect::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-hover-effect:hover::before {
    left: 100%;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0a0a23;
}

::-webkit-scrollbar-thumb {
    background: #f97316;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #ea580c;
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    /* Adjust text sizes for mobile */
    h1 {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    h2 {
        font-size: 1.75rem;
        line-height: 1.3;
    }
    
    /* Stack elements vertically on mobile */
    .mobile-stack {
        flex-direction: column;
    }
    
    /* Adjust button sizes for mobile */
    .mobile-btn {
        padding: 1rem;
        font-size: 1rem;
    }
}

/* Loading animation for video placeholder */
.loading-shimmer {
    background: linear-gradient(90deg, #374151 25%, #4b5563 50%, #374151 75%);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Enhance focus accessibility */
button:focus,
a:focus {
    outline: 2px solid #f97316;
    outline-offset: 2px;
}

/* Card hover effects */
.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

/* iPhone mockup styling */
.iphone-mockup {
    position: relative;
    background: linear-gradient(145deg, #1f2937, #374151);
    border-radius: 2rem;
    padding: 1rem;
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
}

.iphone-screen {
    background: linear-gradient(135deg, #f97316, #ea580c);
    border-radius: 1.5rem;
    aspect-ratio: 9/19.5;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.iphone-screen::before {
    content: '';
    position: absolute;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 3rem;
    height: 0.25rem;
    background: rgba(0,0,0,0.3);
    border-radius: 0.125rem;
}

/* Guarantee section styling */
.guarantee-badge {
    background: radial-gradient(circle, #22c55e, #16a34a);
    box-shadow: 0 0 30px rgba(34, 197, 94, 0.3);
}

/* Payment icons styling */
.payment-icons i {
    transition: color 0.3s ease;
}

.payment-icons i:hover {
    color: #f97316;
}

/* Testimonial styling (if needed for future expansion) */
.testimonial {
    background: rgba(55, 65, 81, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(249, 115, 22, 0.2);
}

/* Progress bar for video (placeholder) */
.video-progress {
    height: 4px;
    background: rgba(249, 115, 22, 0.3);
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
}

.video-progress::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0%;
    background: #f97316;
    animation: progress 30s linear infinite;
}

@keyframes progress {
    from { width: 0%; }
    to { width: 100%; }
}

/* Responsive grid adjustments */
@media (max-width: 1024px) {
    .lg\:grid-cols-2 {
        grid-template-columns: 1fr;
    }
    
    .lg\:order-1 {
        order: 1;
    }
    
    .lg\:order-2 {
        order: 2;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .bg-dark-bg {
        background-color: #000000;
    }
    
    .text-gray-400 {
        color: #ffffff;
    }
    
    .border-gray-700 {
        border-color: #ffffff;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Estilos adicionais para o player de vídeo */
.video-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    background: #111827;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
}

.video-container video {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 0.75rem;
    max-height: 500px;
}

#play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: #f97316;
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 30px;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 8px 32px rgba(249, 115, 22, 0.4);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

#play-button:hover {
    background: #ea580c;
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 12px 40px rgba(249, 115, 22, 0.6);
}

#video-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-container:hover #video-controls {
    opacity: 1;
}

#video-controls button {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
}

#video-controls button:hover {
    background: #f97316;
    transform: scale(1.1);
}

#progress {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
    outline: none;
    cursor: pointer;
}

#progress::-webkit-slider-thumb {
    appearance: none;
    width: 16px;
    height: 16px;
    background: #f97316;
    border-radius: 50%;
    cursor: pointer;
}

#progress::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: #f97316;
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

#time {
    color: white;
    font-size: 14px;
    min-width: 50px;
    text-align: center;
}
