/* Stili per la sezione "Upcoming App" - Professional Design */

/* 1. Section Base Styling */
.upcoming-app-section {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

/* 2. Pattern Layer Background */
.upcoming-app-section .pattern-layer {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.5;
}

/* 3. Content Container */
.upcoming-app-section .auto-container {
    position: relative;
    z-index: 1;
}

.upcoming-app-section .app-content-box {
    text-align: center;
}

.upcoming-app-section .upcoming-badge {
    display: inline-flex;
    margin-left: auto;
    margin-right: auto;
}

.upcoming-app-section .upcoming-features {
    text-align: left;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.upcoming-app-section .upcoming-cta {
    align-items: center;
}

/* 4. Pattern Elements */
.upcoming-app-section .pattern-layer .pattern-1,
.upcoming-app-section .pattern-layer .pattern-2,
.upcoming-app-section .pattern-layer .pattern-3,
.upcoming-app-section .pattern-layer .pattern-4,
.upcoming-app-section .pattern-layer .pattern-5 {
    position: absolute;
    background-repeat: no-repeat;
    background-position: center;
    width: 120px;
    height: 120px;
}
    
/* 5. Pattern Positioning */
.upcoming-app-section .pattern-layer .pattern-1 { top: 50px; left: 5%; }
.upcoming-app-section .pattern-layer .pattern-2 { top: 20%; right: 5%; }
.upcoming-app-section .pattern-layer .pattern-3 { bottom: 10%; left: 15%; }
.upcoming-app-section .pattern-layer .pattern-4 { bottom: 20%; right: 20%; }
.upcoming-app-section .pattern-layer .pattern-5 { top: 10%; right: 40%; }

/* 6. Rotation Animation */
.upcoming-app-section .pattern-layer .rotate-me {
    -webkit-animation: rotate-me 50s linear infinite;
    animation: rotate-me 50s linear infinite;
}

@-webkit-keyframes rotate-me {
    0% { -webkit-transform: rotate(0deg); }
    100% { -webkit-transform: rotate(360deg); }
}
@keyframes rotate-me {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 7. Upcoming Badge */
.upcoming-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    animation: pulse 2s ease-in-out infinite;
}

.upcoming-badge i {
    font-size: 18px;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* 8. Title Styling */
.upcoming-title {
    font-size: 42px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 15px;
    line-height: 1.2;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.upcoming-subtitle {
    font-size: 24px;
    font-weight: 500;
    color: #666;
    margin-bottom: 0;
}

/* 9. Description Text */
.upcoming-description {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 15px;
}

.upcoming-description-highlight {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    font-weight: 500;
    margin-bottom: 0;
    padding-left: 20px;
    border-left: 4px solid #667eea;
}

/* 10. Features Section */
.upcoming-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.15);
}

.feature-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    color: #ffffff;
    font-size: 24px;
}

.feature-text h4 {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 5px;
}

.feature-text p {
    font-size: 14px;
    color: #666;
    margin-bottom: 0;
}

/* 11. CTA Section */
.upcoming-cta {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.availability-badge {
    display: inline-block;
}

.badge-text {
    display: inline-block;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: #ffffff;
    padding: 12px 30px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(245, 87, 108, 0.3);
}

/* 12. Store Buttons */
.store-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.store-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.store-btn i {
    font-size: 24px;
}

.store-btn.app-store {
    background: #000000;
    color: #ffffff;
}

.store-btn.app-store:hover {
    background: #333333;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.store-btn.google-play {
    background: #01875f;
    color: #ffffff;
}

.store-btn.google-play:hover {
    background: #019968;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(1, 135, 95, 0.3);
}

/* 13. Video Styling */
.app-video-box {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-wrapper {
    position: relative;
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
}

.video-wrapper:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 80px rgba(102, 126, 234, 0.5);
}

.video-frame {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio for horizontal video */
    background: #000;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.3);
}

.video-frame iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 16px;
}

/* Add a subtle glow effect */
.video-wrapper::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 24px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-wrapper:hover::before {
    opacity: 0.6;
    animation: glow 2s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 0.8; }
}

/* 14. Responsive Design */
@media (max-width: 991px) {
    .upcoming-title {
        font-size: 32px;
    }
    
    .upcoming-subtitle {
        font-size: 20px;
    }
    
    .app-content-box {
        margin-top: 40px;
    }
    
    .app-video-box {
        max-width: 100%;
        margin-bottom: 40px;
    }
    
    .video-wrapper {
        padding: 12px;
    }
}

@media (max-width: 767px) {
    .upcoming-title {
        font-size: 28px;
    }
    
    .upcoming-subtitle {
        font-size: 18px;
    }
    
    .upcoming-badge {
        font-size: 12px;
        padding: 8px 16px;
    }
    
    .feature-item {
        padding: 15px;
    }
    
    .feature-icon {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .feature-text h4 {
        font-size: 16px;
    }
    
    .store-buttons {
        flex-direction: column;
    }
    
    .store-btn {
        width: 100%;
        justify-content: center;
    }
    
    .app-video-box {
        max-width: 100%;
    }
    
    .video-wrapper {
        padding: 15px;
        border-radius: 20px;
    }
    
    .video-frame {
        border-radius: 12px;
    }
}

/* 15. App Subscription Info Section */
.app-subscription-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0;
    text-align: left;
}

.info-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.15);
    border-color: rgba(102, 126, 234, 0.2);
}

.info-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.info-header i {
    font-size: 28px;
    color: #667eea;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.info-header h3 {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
}

.info-content {
    color: #555;
    line-height: 1.8;
}

.info-content p {
    font-size: 15px;
    margin-bottom: 15px;
    color: #555;
}

.info-content strong {
    color: #333;
    font-weight: 600;
}

/* Pricing Card Specific Styles */
.pricing-card {
    background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%);
    border: 2px solid #667eea;
}

.pricing-highlight {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin: 20px 0;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    justify-content: center;
}

.pricing-highlight .price {
    font-size: 48px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1;
}

.pricing-highlight .period {
    font-size: 18px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
}

.flexibility-note {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 20px;
    padding: 15px;
    background: #e8f5e9;
    border-radius: 10px;
    border-left: 4px solid #4caf50;
}

.flexibility-note i {
    font-size: 20px;
    color: #4caf50;
    flex-shrink: 0;
    margin-top: 2px;
}

.flexibility-note p {
    margin: 0;
    font-size: 14px;
    color: #2e7d32;
    font-weight: 500;
}

/* Responsive for Subscription Info */
@media (max-width: 767px) {
    .app-subscription-info {
        grid-template-columns: 1fr;
        gap: 20px;
        margin: 30px 0;
    }
    
    .info-card {
        padding: 20px;
    }
    
    .info-header h3 {
        font-size: 18px;
    }
    
    .info-header i {
        font-size: 24px;
    }
    
    .pricing-highlight .price {
        font-size: 36px;
    }
    
    .pricing-highlight .period {
        font-size: 16px;
    }
}

/* 16. App Subscribe Button - Accattivante */
.app-subscribe-btn {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 25px 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.app-subscribe-btn::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;
}

.app-subscribe-btn:hover::before {
    left: 100%;
}

.app-subscribe-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.6);
}

.app-subscribe-btn .btn-icon {
    font-size: 32px;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.app-subscribe-btn .btn-text {
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.app-subscribe-btn .btn-subtext {
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 0.5px;
}

/* Responsive per il bottone */
@media (max-width: 767px) {
    .app-subscribe-btn {
        padding: 20px 35px;
    }
    
    .app-subscribe-btn .btn-icon {
        font-size: 28px;
    }
    
    .app-subscribe-btn .btn-text {
        font-size: 18px;
    }
    
    .app-subscribe-btn .btn-subtext {
        font-size: 12px;
    }
}