/**
 * Maintenance SPA - Additional Styles
 * Enhanced styling for the maintenance page
 * Version: 1.0
 */

/* ==========================================================================
   CRITICAL CSS OVERRIDES
   ========================================================================== */

/* Ensure consistent loading across browsers */
.v-application {
    background: transparent !important;
    min-height: 100vh;
}

/* Enhanced loading states */
.loading-container {
    background: linear-gradient(135deg, #1976D2 0%, #1565C0 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.loading-spinner {
    position: relative;
}

.loading-spinner::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    margin: -15px 0 0 -15px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: pulse 2s infinite ease-in-out;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ==========================================================================
   ENHANCED HERO SECTION
   ========================================================================== */

.hero-section {
    background: linear-gradient(135deg, #1976D2 0%, #1565C0 100%);
    position: relative;
    overflow: hidden;
}

/* Enhanced wave animations */
.bg-waves {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
}

.wave {
    position: absolute;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    animation: wave-float 20s infinite linear;
}

.wave1 {
    width: 200%;
    height: 200px;
    bottom: -100px;
    left: -50%;
    animation-duration: 20s;
    animation-delay: 0s;
}

.wave2 {
    width: 150%;
    height: 150px;
    bottom: -75px;
    left: -25%;
    background: rgba(255, 255, 255, 0.03);
    animation-duration: 25s;
    animation-delay: -5s;
}

.wave3 {
    width: 180%;
    height: 120px;
    bottom: -60px;
    left: -40%;
    background: rgba(255, 255, 255, 0.02);
    animation-duration: 30s;
    animation-delay: -10s;
}

@keyframes wave-float {
    0% {
        transform: translateX(-100%) rotate(0deg);
    }
    100% {
        transform: translateX(50%) rotate(360deg);
    }
}

/* Particle effects for modern browsers */
@supports (backdrop-filter: blur(10px)) {
    .hero-background::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: 
            radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
            radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
        animation: particle-float 15s infinite ease-in-out;
        z-index: 1;
    }
}

@keyframes particle-float {
    0%, 100% { opacity: 0.3; transform: translateY(0px); }
    50% { opacity: 0.8; transform: translateY(-20px); }
}

/* ==========================================================================
   ENHANCED CARD STYLING
   ========================================================================== */

.maintenance-card {
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    box-shadow: 
        0 25px 45px rgba(0, 0, 0, 0.1),
        0 10px 20px rgba(0, 0, 0, 0.05) !important;
    transition: all 0.3s ease !important;
}

.maintenance-card:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 35px 60px rgba(0, 0, 0, 0.15),
        0 15px 30px rgba(0, 0, 0, 0.1) !important;
}

/* ==========================================================================
   LOGO AND BRANDING
   ========================================================================== */

.logo-section {
    position: relative;
}

.logo-section .v-img {
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
    transition: all 0.3s ease;
}

.logo-section .v-img:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.15));
}

/* Enhanced chip styling */
.v-chip {
    font-weight: 600 !important;
    letter-spacing: 0.5px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
}

/* ==========================================================================
   TYPOGRAPHY ENHANCEMENTS
   ========================================================================== */

.maintenance-title {
    background: linear-gradient(45deg, #1976D2, #1565C0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none !important;
    font-weight: 700 !important;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.maintenance-message {
    color: #424242 !important;
    line-height: 1.6;
    font-weight: 400;
}

/* Ensure UTF-8 characters display correctly */
* {
    font-family: 'Roboto', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Override any potential encoding issues in text display */
.maintenance-title,
.maintenance-message,
.contact-section h3,
.social-section p {
    font-weight: normal;
    line-height: 1.5;
    letter-spacing: 0.02em;
}

/* Ensure proper text rendering for Portuguese characters */
h1, h2, h3, h4, h5, h6,
p, span, div {
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ==========================================================================
   ENHANCED BUTTONS
   ========================================================================== */

.v-btn {
    font-weight: 600 !important;
    letter-spacing: 0.5px !important;
    text-transform: none !important;
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.15),
        0 2px 4px rgba(0, 0, 0, 0.1) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.v-btn:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 8px 20px rgba(0, 0, 0, 0.2),
        0 4px 8px rgba(0, 0, 0, 0.15) !important;
}

.v-btn:active {
    transform: translateY(0px);
    transition-duration: 0.1s;
}

/* Contact button specific styling */
.v-btn[href^="tel:"] {
    background: linear-gradient(45deg, #4CAF50, #45A049) !important;
}

.v-btn[href*="wa.me"] {
    background: linear-gradient(45deg, #25D366, #128C7E) !important;
}

.v-btn[href^="mailto:"] {
    background: linear-gradient(45deg, #2196F3, #1976D2) !important;
}

/* ==========================================================================
   SOCIAL MEDIA BUTTONS
   ========================================================================== */

.social-buttons {
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}

.social-buttons .v-btn {
    min-width: 56px !important;
    width: 56px;
    height: 56px;
    border-radius: 50% !important;
    padding: 0 !important;
}

.social-buttons .v-btn .v-icon {
    font-size: 24px !important;
}

/* Social media brand colors */
.social-buttons .v-btn[href*="facebook"] {
    background: linear-gradient(45deg, #1877F2, #166FE5) !important;
    color: white !important;
}

.social-buttons .v-btn[href*="instagram"] {
    background: linear-gradient(45deg, #E4405F, #833AB4) !important;
    color: white !important;
}

.social-buttons .v-btn[href*="linkedin"] {
    background: linear-gradient(45deg, #0A66C2, #004182) !important;
    color: white !important;
}

/* ==========================================================================
   ALERT ENHANCEMENTS
   ========================================================================== */

.v-alert {
    border-left: 4px solid currentColor !important;
    background: rgba(33, 150, 243, 0.05) !important;
    border-color: #2196F3 !important;
}

.v-alert .v-icon {
    margin-right: 12px;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */

/* Mobile devices (up to 600px) */
@media (max-width: 600px) {
    .maintenance-card {
        margin: 16px 8px !important;
        border-radius: 16px !important;
    }
    
    .hero-content {
        padding: 16px 8px !important;
    }
    
    .maintenance-title {
        font-size: 1.75rem !important;
        line-height: 1.3;
    }
    
    .maintenance-message {
        font-size: 1rem !important;
        line-height: 1.5;
    }
    
    .v-btn {
        font-size: 0.875rem !important;
        padding: 0 16px !important;
        height: 44px !important;
    }
    
    .social-buttons .v-btn {
        width: 48px !important;
        height: 48px !important;
        min-width: 48px !important;
    }
    
    /* Mobile wave optimizations */
    .wave1, .wave2, .wave3 {
        animation-duration: 15s;
    }
}

/* Tablet devices (601px to 960px) */
@media (min-width: 601px) and (max-width: 960px) {
    .maintenance-card {
        margin: 24px 16px !important;
        max-width: 600px;
    }
    
    .maintenance-title {
        font-size: 2rem !important;
    }
    
    .maintenance-message {
        font-size: 1.125rem !important;
    }
}

/* Desktop devices (961px and up) */
@media (min-width: 961px) {
    .maintenance-card {
        max-width: 700px;
    }
    
    .hero-content {
        padding: 40px 24px !important;
    }
    
    /* Enhanced desktop animations */
    .maintenance-card {
        animation: card-entrance 0.8s ease-out;
    }
    
    @keyframes card-entrance {
        0% {
            opacity: 0;
            transform: translateY(30px) scale(0.95);
        }
        100% {
            opacity: 1;
            transform: translateY(0) scale(1);
        }
    }
}

/* Additional mobile optimizations */
@media (max-width: 480px) {
    .maintenance-card .v-card-text {
        padding: 24px 16px !important;
    }
    
    .maintenance-title {
        font-size: 1.5rem !important;
        line-height: 1.3 !important;
    }
    
    .maintenance-message {
        font-size: 1rem !important;
        line-height: 1.4 !important;
    }
    
    .v-btn {
        font-size: 0.875rem !important;
        padding: 8px 16px !important;
    }
}

/* ==========================================================================
   ACCESSIBILITY ENHANCEMENTS
   ========================================================================== */

/* High contrast mode support */
@media (prefers-contrast: high) {
    .maintenance-card {
        border: 2px solid #333 !important;
        background: white !important;
    }
    
    .maintenance-title {
        -webkit-text-fill-color: #1976D2 !important;
        color: #1976D2 !important;
    }
    
    .v-btn {
        border: 2px solid currentColor !important;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .wave1, .wave2, .wave3 {
        animation: none;
    }
    
    .logo-section .v-img {
        animation: none;
    }
    
    .maintenance-card {
        animation: none;
    }
    
    .v-btn {
        transition: none !important;
    }
}

/* Focus indicators for keyboard navigation */
.v-btn:focus-visible {
    outline: 3px solid #FF9800;
    outline-offset: 2px;
}

/* ==========================================================================
   PRINT STYLES
   ========================================================================== */

@media print {
    .hero-background {
        background: white !important;
    }
    
    .maintenance-card {
        background: white !important;
        box-shadow: none !important;
        border: 1px solid #ccc !important;
    }
    
    .v-btn {
        background: white !important;
        color: #1976D2 !important;
        border: 1px solid #1976D2 !important;
    }
    
    .bg-waves {
        display: none;
    }
    
    /* Show contact info in print */
    .v-btn[href^="tel:"]::after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
        color: #666;
    }
    
    .v-btn[href^="mailto:"]::after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
        color: #666;
    }
}

/* ==========================================================================
   LOADING OPTIMIZATIONS
   ========================================================================== */

/* Prevent flash of unstyled content */
.maintenance-app {
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.maintenance-app.loaded {
    opacity: 1;
}

/* Critical rendering optimizations */
.v-application--wrap {
    backface-visibility: hidden;
    transform: translateZ(0);
}

/* ==========================================================================
   BROWSER-SPECIFIC FIXES
   ========================================================================== */

/* iOS Safari fixes */
@supports (-webkit-touch-callout: none) {
    .v-btn {
        -webkit-tap-highlight-color: transparent;
        -webkit-touch-callout: none;
    }
    
    .maintenance-card {
        -webkit-backface-visibility: hidden;
        transform: translate3d(0, 0, 0);
    }
}

/* Edge/IE fixes */
@supports (-ms-ime-align: auto) {
    .maintenance-card {
        background: rgba(255, 255, 255, 0.95) !important;
        backdrop-filter: none !important;
    }
}

/* Firefox fixes */
@-moz-document url-prefix() {
    .maintenance-title {
        background: #1976D2;
        -webkit-background-clip: unset;
        -webkit-text-fill-color: unset;
        background-clip: unset;
        color: #1976D2;
    }
}

/* Fallback styles for encoding issues */
.encoding-fallback {
    font-family: Arial, sans-serif !important;
    font-weight: normal !important;
}