/**
 * FB Travel Mobile App Download Widget Styles
 * Modern design with tropical background and interactive elements
 */

.fb-travel-mobile-app-widget {
    position: relative;
    overflow: hidden;
}

.fb-travel-mobile-app-section {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 50%, #4facfe 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    padding: 80px 20px;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.fb-travel-mobile-app-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="tropical" patternUnits="userSpaceOnUse" width="100" height="100"><circle cx="20" cy="20" r="2" fill="%23ffffff" opacity="0.1"/><circle cx="80" cy="40" r="1.5" fill="%23ffffff" opacity="0.08"/><circle cx="40" cy="80" r="1" fill="%23ffffff" opacity="0.06"/></pattern></defs><rect width="100" height="100" fill="url(%23tropical)"/></svg>') repeat;
    opacity: 0.3;
    z-index: 1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.mobile-app-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    min-height: 500px;
}

.mobile-app-text {
    padding-right: 40px;
}

.mobile-app-main-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.1;
    margin: 0 0 10px 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.02em;
}

.mobile-app-sub-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: #4CAF50;
    line-height: 1.1;
    margin: 0 0 30px 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.02em;
    background: linear-gradient(45deg, #4CAF50, #81C784);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.mobile-app-description {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin: 0 0 40px 0;
    max-width: 500px;
}

.mobile-app-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.app-store-btn {
    display: inline-flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    padding: 12px 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    min-width: 180px;
}

.app-store-btn::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;
}

.app-store-btn:hover::before {
    left: 100%;
}

.app-store-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(0, 0, 0, 0.9);
}

.google-play-btn:hover {
    background: linear-gradient(135deg, #34A853, #4285F4);
}

.app-store-btn-ios:hover {
    background: linear-gradient(135deg, #000000, #333333);
}

.btn-content {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    z-index: 1;
}

.btn-content i {
    font-size: 24px;
    opacity: 0.9;
}

.btn-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.btn-subtitle {
    font-size: 0.75rem;
    opacity: 0.8;
    font-weight: 400;
    line-height: 1;
    margin-bottom: 2px;
}

.btn-title {
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1;
}

.mobile-app-phone {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 500px;
}

.phone-mockup {
    max-width: 100%;
    height: auto;
    max-height: 500px;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3));
    animation: phoneFloat 6s ease-in-out infinite;
    position: relative;
    z-index: 3;
}

@keyframes phoneFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(2deg); }
}

.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.airplane-icon {
    position: absolute;
    top: 20%;
    right: 10%;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: airplaneFloat 8s ease-in-out infinite;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.airplane-icon::before {
    content: '✈';
    font-size: 24px;
    color: rgba(255, 255, 255, 0.8);
    animation: airplaneRotate 8s ease-in-out infinite;
}

@keyframes airplaneFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(20px, -10px) scale(1.1); }
    50% { transform: translate(-10px, -20px) scale(0.9); }
    75% { transform: translate(-20px, 10px) scale(1.05); }
}

@keyframes airplaneRotate {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(15deg); }
    50% { transform: rotate(-10deg); }
    75% { transform: rotate(5deg); }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .mobile-app-content {
        gap: 40px;
    }
    
    .mobile-app-main-title,
    .mobile-app-sub-title {
        font-size: 2.8rem;
    }
    
    .mobile-app-text {
        padding-right: 20px;
    }
}

@media (max-width: 768px) {
    .mobile-app-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .mobile-app-text {
        padding-right: 0;
        order: 2;
    }
    
    .mobile-app-phone {
        order: 1;
        height: 350px;
    }
    
    .mobile-app-main-title,
    .mobile-app-sub-title {
        font-size: 2.2rem;
    }
    
    .mobile-app-description {
        font-size: 1.1rem;
        max-width: none;
    }
    
    .mobile-app-buttons {
        justify-content: center;
    }
    
    .fb-travel-mobile-app-section {
        padding: 60px 20px;
        min-height: 500px;
    }
}

@media (max-width: 480px) {
    .mobile-app-main-title,
    .mobile-app-sub-title {
        font-size: 1.8rem;
    }
    
    .mobile-app-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .app-store-btn {
        width: 100%;
        max-width: 250px;
        justify-content: center;
    }
    
    .mobile-app-phone {
        height: 280px;
    }
    
    .airplane-icon {
        width: 40px;
        height: 40px;
    }
    
    .airplane-icon::before {
        font-size: 16px;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .mobile-app-main-title,
    .mobile-app-sub-title {
        text-shadow: none;
    }
    
    .app-store-btn {
        border-color: rgba(255, 255, 255, 0.5);
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .phone-mockup,
    .airplane-icon,
    .airplane-icon::before,
    .fb-travel-mobile-app-section {
        animation: none;
    }
    
    .app-store-btn {
        transition: none;
    }
}

/* Print styles */
@media print {
    .fb-travel-mobile-app-section {
        background: white;
        color: black;
    }
    
    .mobile-app-main-title,
    .mobile-app-sub-title,
    .mobile-app-description {
        color: black;
    }
    
    .floating-elements {
        display: none;
    }
}