/**
 * App Section Styles - Motoristi.EU
 * Professional Android app showcase
 */

/* ==== APP HERO ==== */
.app-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 60px;
    padding: 60px 0;
}

.app-hero-content {
    max-width: 700px;
    margin-bottom: 40px;
}

body[data-theme*="light"] .app-hero-content {
    /* No special styling needed - inherits from parent */
}

.app-subtitle {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.3;
    color: #ffffff;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
}

body[data-theme*="light"] .app-subtitle {
    color: #1f2937;
    text-shadow: 2px 2px 8px rgba(255, 255, 255, 0.8);
}

.app-description {
    font-size: 18px;
    line-height: 1.7;
    margin-bottom: 32px;
    color: #ffffff;
    text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.8);
}

body[data-theme*="light"] .app-description {
    color: #1f2937;
    text-shadow: 1px 1px 6px rgba(255, 255, 255, 0.8);
}

/* ==== DOWNLOAD BUTTONS ==== */
.app-download-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.download-btn {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 32px;
    background: linear-gradient(135deg, var(--accent-color, #dc2626) 0%, var(--accent-hover, #b91c1c) 100%);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
}

.download-btn svg {
    width: 32px;
    height: 32px;
}

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

.btn-subtitle {
    font-size: 11px;
    font-weight: 400;
    text-transform: uppercase;
    opacity: 0.9;
}

.btn-title {
    font-size: 18px;
    font-weight: 700;
}

.coming-soon-badge {
    padding: 10px 20px;
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
    border: 2px solid #ffc107;
    border-radius: 24px;
    font-weight: 600;
    font-size: 14px;
}

/* ==== PHONE MOCKUP ==== */
.app-hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 40px;
}

.phone-mockup {
    position: relative;
    width: 300px;
    height: 600px;
    background: #1a1a1a;
    border-radius: 36px;
    padding: 12px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
    border: 8px solid #0a0a0a;
    flex-shrink: 0;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #0f0f23 0%, #1e1e2e 100%);
    border-radius: 28px;
    overflow: hidden;
    position: relative;
}

.mockup-content {
    padding: 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.mockup-header {
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mockup-chat {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 20px;
}

.chat-message {
    background: rgba(255, 107, 53, 0.1);
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 13px;
    color: #ffffff;
}

.chat-message strong {
    color: var(--accent-color, #ff6b35);
}

/* ==== FEATURES GRID ==== */
.app-features {
    margin-bottom: 60px;
}

.app-features h3 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 32px;
    text-align: center;
    display: inline-block;
    padding: 15px 40px;
    background: rgba(26, 26, 46, 0.7);
    border-radius: 50px;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 107, 53, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), inset 0 0 20px rgba(255, 107, 53, 0.1);
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    max-width: 1400px;
    margin: 0 auto;
}

@media (max-width: 1200px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
}

.feature-card {
    background: linear-gradient(135deg, rgba(30, 30, 50, 0.7), rgba(20, 20, 40, 0.7));
    backdrop-filter: blur(10px);
    padding: 24px;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 107, 53, 0.3);
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.feature-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.4);
    z-index: 1;
}

.feature-badge.beta {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.4);
}

body[data-theme*="light"] .feature-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    border-color: rgba(0, 0, 0, 0.1);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
    background: linear-gradient(135deg, #0f3460 0%, #1a1a2e 100%);
    border-color: rgba(255, 107, 53, 0.5);
}

body[data-theme*="light"] .feature-card:hover {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    margin-bottom: 16px;
    color: var(--accent-color, #dc2626);
}

.feature-icon svg {
    width: 48px;
    height: 48px;
    stroke-width: 2;
}

/* Different colors for each feature - Communication & Intercom (1-5) */
.feature-card:nth-child(1) .feature-icon { color: #3b82f6; } /* Blue - Intercom */
.feature-card:nth-child(2) .feature-icon { color: #10b981; } /* Green - Noise Suppression */
.feature-card:nth-child(3) .feature-icon { color: #8b5cf6; } /* Purple - Networks */
.feature-card:nth-child(4) .feature-icon { color: #f59e0b; } /* Orange - Ride Management */
.feature-card:nth-child(5) .feature-icon { color: #ef4444; } /* Red - HUD */

/* GPS & Tracking Features (6-7) */
.feature-card:nth-child(6) .feature-icon { color: #06b6d4; } /* Cyan - Tracking */
.feature-card:nth-child(7) .feature-icon { color: #ec4899; } /* Pink - Fuel */

/* Safety & Hazards (8-9) */
.feature-card:nth-child(8) .feature-icon { color: #f43f5e; } /* Rose - Hazard Report */
.feature-card:nth-child(9) .feature-icon { color: #fb923c; } /* Orange - Hazard Alerts */

/* Routes & History (10-12) */
.feature-card:nth-child(10) .feature-icon { color: #14b8a6; } /* Teal - Route Sharing */
.feature-card:nth-child(11) .feature-icon { color: #a855f7; } /* Purple - Ride History */
.feature-card:nth-child(12) .feature-icon { color: #22c55e; } /* Lime Green - Statistics */

/* Social Features (13-15) */
.feature-card:nth-child(13) .feature-icon { color: #8b5cf6; } /* Purple - Friends */
.feature-card:nth-child(14) .feature-icon { color: #6366f1; } /* Indigo - Messaging */
.feature-card:nth-child(15) .feature-icon { color: #a855f7; } /* Light Purple - Groups */

/* Community Features (16-18) */
.feature-card:nth-child(16) .feature-icon { color: #3b82f6; } /* Blue - News & Events */
.feature-card:nth-child(17) .feature-icon { color: #06b6d4; } /* Cyan - Forum */
.feature-card:nth-child(18) .feature-icon { color: #10b981; } /* Green - POI Sharing */

/* Profile Features (19-21) */
.feature-card:nth-child(19) .feature-icon { color: #f59e0b; } /* Orange - Garage */
.feature-card:nth-child(20) .feature-icon { color: #14b8a6; } /* Teal - Profile */
.feature-card:nth-child(21) .feature-icon { color: #eab308; } /* Yellow - Leaderboards */

/* Advanced Features (22-24) */
.feature-card:nth-child(22) .feature-icon { color: #ef4444; } /* Red - OBD2 */
.feature-card:nth-child(23) .feature-icon { color: #8b5cf6; } /* Purple - Bilingual */
.feature-card:nth-child(24) .feature-icon { color: #22c55e; } /* Green - Security */

.feature-card h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #ffffff;
}

body[data-theme*="light"] .feature-card h4 {
    color: #1f2937;
}

.feature-card p {
    font-size: 15px;
    line-height: 1.5;
    margin: 0;
    color: #e5e7eb;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

body[data-theme*="light"] .feature-card p {
    color: rgba(0, 0, 0, 0.8);
}

/* ==== REQUIREMENTS ==== */
.app-requirements {
    background: rgba(0, 0, 0, 0.70);
    backdrop-filter: blur(10px);
    padding: 32px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

body[data-theme*="light"] .app-requirements {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    border-color: rgba(0, 0, 0, 0.1);
}

.app-requirements h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
}

.app-requirements ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.app-requirements li {
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* ==== RESPONSIVE ==== */
@media (max-width: 992px) {
    .app-subtitle {
        font-size: 26px;
    }
    
    .app-description {
        font-size: 16px;
    }
    
    .phone-mockup {
        width: 260px;
        height: 520px;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .app-hero-image {
        order: -1;
    }
    
    .phone-mockup {
        width: 240px;
        height: 480px;
    }
    
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

@media (max-width: 768px) {
    .app-subtitle {
        font-size: 24px;
    }
    
    .app-description {
        font-size: 16px;
    }
    
    .download-btn {
        padding: 14px 24px;
        font-size: 14px;
    }
    
    .btn-title {
        font-size: 16px;
    }
    
    .phone-mockup {
        width: 200px;
        height: 400px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .app-features h3 {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .app-download-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .download-btn {
        width: 100%;
        justify-content: center;
    }
    
    .coming-soon-badge {
        width: 100%;
        text-align: center;
    }
}
