/**
 * VitalXCare App Page Styles
 * 
 * Styles for mobile app showcase, features, and download sections
 */

/* ================================================================
   APP HERO SECTION
   ================================================================ */
.hero-app {
    background: linear-gradient(135deg, rgba(0, 180, 166, 0.03) 0%, rgba(74, 144, 226, 0.03) 100%);
    padding: var(--space-20) 0 var(--space-16);
}

.app-hero-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-12);
    align-items: center;
}

.app-hero-content h1 {
    font-size: var(--font-size-5xl);
    margin-bottom: var(--space-6);
}

.app-download-buttons {
    display: flex;
    gap: var(--space-4);
    margin: var(--space-8) 0;
    flex-wrap: wrap;
}

.app-download-btn {
    transition: transform var(--transition-base);
}

.app-download-btn:hover {
    transform: translateY(-4px);
}

.app-stats {
    display: flex;
    gap: var(--space-8);
    margin-top: var(--space-10);
    padding-top: var(--space-8);
    border-top: 1px solid var(--color-border);
}

.app-stat {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.app-stat strong {
    font-size: var(--font-size-2xl);
    color: var(--color-secondary);
    font-weight: var(--font-weight-bold);
}

.app-stat span {
    font-size: var(--font-size-sm);
    color: var(--color-text-light);
}

/* Phone Mockup */
.app-hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.phone-mockup {
    position: relative;
    width: 300px;
    height: 600px;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    border-radius: 40px;
    padding: 15px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: floatPhone 6s ease-in-out infinite;
}

@keyframes floatPhone {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

.phone-mockup::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 6px;
    background: #64748b;
    border-radius: 3px;
}

.app-screenshot {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 28px;
    background: var(--color-background);
}

/* ================================================================
   APP FEATURES GRID
   ================================================================ */
.app-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-8);
}

.app-feature-card {
    background: var(--color-white);
    padding: var(--space-8);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: all var(--transition-base);
}

.app-feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--space-5);
    background: linear-gradient(135deg, rgba(0, 180, 166, 0.1) 0%, rgba(74, 144, 226, 0.1) 100%);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
}

.app-feature-card h3 {
    font-size: var(--font-size-xl);
    color: var(--color-text-dark);
    margin-bottom: var(--space-3);
}

.app-feature-card p {
    font-size: var(--font-size-base);
    color: var(--color-text-light);
    margin: 0;
}

/* ================================================================
   APP SCREENSHOTS CAROUSEL
   ================================================================ */
.app-screenshots-carousel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-6);
    padding: var(--space-8) 0;
}

.screenshot-card {
    background: var(--color-white);
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-base);
}

.screenshot-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-2xl);
}

.screenshot-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    background: var(--color-background);
}

.screenshot-label {
    padding: var(--space-5);
    text-align: center;
}

.screenshot-label h4 {
    font-size: var(--font-size-lg);
    color: var(--color-text-dark);
    margin-bottom: var(--space-2);
}

.screenshot-label p {
    font-size: var(--font-size-sm);
    color: var(--color-text-light);
    margin: 0;
}

/* ================================================================
   ONE DASHBOARD SECTION
   ================================================================ */
.one-dashboard-section {
    background: linear-gradient(135deg, rgba(0, 180, 166, 0.05) 0%, rgba(74, 144, 226, 0.05) 100%);
}

.one-dashboard-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-12);
    align-items: center;
}

.lead-text {
    font-size: var(--font-size-lg);
    color: var(--color-text-light);
    line-height: var(--line-height-relaxed);
    margin-bottom: var(--space-8);
}

.integration-benefits {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
}

.benefit-item {
    display: flex;
    gap: var(--space-4);
    align-items: flex-start;
}

.benefit-icon {
    width: 60px;
    height: 60px;
    background: var(--color-white);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    flex-shrink: 0;
    box-shadow: var(--shadow-md);
}

.benefit-text h4 {
    font-size: var(--font-size-lg);
    color: var(--color-text-dark);
    margin-bottom: var(--space-2);
}

.benefit-text p {
    font-size: var(--font-size-base);
    color: var(--color-text-light);
    margin: 0;
}

/* Device Ecosystem Visualization */
.device-ecosystem {
    position: relative;
    width: 100%;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.center-phone {
    position: relative;
    z-index: 10;
}

.phone-device {
    width: 120px;
    height: 200px;
    background: linear-gradient(135deg, #00B4A6 0%, #4A90E2 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 40px rgba(0, 180, 166, 0.3);
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.phone-label {
    color: var(--color-white);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-bold);
    text-align: center;
    padding: var(--space-2);
}

.connected-device {
    position: absolute;
    width: 100px;
    height: 80px;
    background: var(--color-white);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    color: var(--color-text-dark);
    animation: float 4s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

.device-1 {
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 0s;
}

.device-2 {
    right: 50px;
    top: 50%;
    transform: translateY(-50%);
    animation-delay: 0.5s;
}

.device-3 {
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 1s;
}

.device-4 {
    left: 50px;
    top: 50%;
    transform: translateY(-50%);
    animation-delay: 1.5s;
}

/* Connection lines */
.device-ecosystem::before,
.device-ecosystem::after {
    content: '';
    position: absolute;
    background: var(--color-secondary);
    opacity: 0.2;
}

/* ================================================================
   PRIVACY & SECURITY
   ================================================================ */
.privacy-security-layout {
    max-width: 900px;
    margin: 0 auto;
}

.privacy-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-8);
    margin-top: var(--space-8);
}

.privacy-feature {
    text-align: center;
}

.privacy-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto var(--space-4);
    background: linear-gradient(135deg, rgba(0, 180, 166, 0.1) 0%, rgba(74, 144, 226, 0.1) 100%);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
}

.privacy-feature h4 {
    font-size: var(--font-size-lg);
    color: var(--color-text-dark);
    margin-bottom: var(--space-3);
}

.privacy-feature p {
    font-size: var(--font-size-base);
    color: var(--color-text-light);
    margin: 0;
}

/* ================================================================
   DOCTOR SHARING
   ================================================================ */
.doctor-sharing-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-12);
    align-items: center;
}

.feature-image {
    width: 100%;
    height: auto;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-2xl);
}

.feature-list-detailed {
    list-style: none;
    padding: 0;
    margin: var(--space-8) 0;
}

.feature-list-detailed li {
    display: flex;
    gap: var(--space-4);
    margin-bottom: var(--space-6);
}

.list-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, rgba(0, 180, 166, 0.1) 0%, rgba(74, 144, 226, 0.1) 100%);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.feature-list-detailed strong {
    display: block;
    font-size: var(--font-size-lg);
    color: var(--color-text-dark);
    margin-bottom: var(--space-2);
}

.feature-list-detailed p {
    font-size: var(--font-size-base);
    color: var(--color-text-light);
    margin: 0;
}

/* ================================================================
   FAMILY PROFILES
   ================================================================ */
.family-profiles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-8);
}

.profile-card {
    background: var(--color-white);
    padding: var(--space-8);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: all var(--transition-base);
}

.profile-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.profile-avatar {
    width: 100px;
    height: 100px;
    margin: 0 auto var(--space-5);
    background: linear-gradient(135deg, rgba(0, 180, 166, 0.1) 0%, rgba(74, 144, 226, 0.1) 100%);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 50px;
}

.profile-card h3 {
    font-size: var(--font-size-xl);
    color: var(--color-text-dark);
    margin-bottom: var(--space-4);
}

.profile-card>p {
    font-size: var(--font-size-base);
    color: var(--color-text-light);
    margin-bottom: var(--space-6);
}

.profile-features {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.profile-features li {
    position: relative;
    padding-left: var(--space-6);
    margin-bottom: var(--space-3);
    font-size: var(--font-size-sm);
    color: var(--color-text-light);
}

.profile-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-success);
    font-weight: var(--font-weight-bold);
}

/* ================================================================
   TESTIMONIALS
   ================================================================ */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-8);
}

.testimonial-card {
    background: var(--color-white);
    padding: var(--space-8);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.testimonial-rating {
    color: #f59e0b;
    font-size: var(--font-size-xl);
    margin-bottom: var(--space-4);
}

.testimonial-text {
    font-size: var(--font-size-base);
    color: var(--color-text-dark);
    line-height: var(--line-height-relaxed);
    margin-bottom: var(--space-6);
    font-style: italic;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

.testimonial-author strong {
    font-size: var(--font-size-base);
    color: var(--color-text-dark);
}

.testimonial-author span {
    font-size: var(--font-size-sm);
    color: var(--color-text-light);
}

/* ================================================================
   TECHNICAL SPECS
   ================================================================ */
.tech-specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-8);
}

.tech-spec-card {
    background: var(--color-white);
    padding: var(--space-8);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-md);
}

.tech-spec-card h3 {
    font-size: var(--font-size-xl);
    color: var(--color-text-dark);
    margin-bottom: var(--space-5);
}

.tech-spec-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tech-spec-card li {
    position: relative;
    padding-left: var(--space-6);
    margin-bottom: var(--space-3);
    font-size: var(--font-size-base);
    color: var(--color-text-light);
}

.tech-spec-card li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--color-secondary);
    font-weight: var(--font-weight-bold);
}

/* ================================================================
   APP DOWNLOAD CTA
   ================================================================ */
.app-download-buttons-large {
    display: flex;
    gap: var(--space-5);
    justify-content: center;
    margin: var(--space-8) 0;
    flex-wrap: wrap;
}

.app-download-btn-large {
    transition: transform var(--transition-base);
}

.app-download-btn-large:hover {
    transform: translateY(-6px);
}

.cta-note {
    font-size: var(--font-size-sm);
    color: rgba(255, 255, 255, 0.8);
    margin-top: var(--space-6);
    text-align: center;
}

/* ================================================================
   RESPONSIVE STYLES
   ================================================================ */
@media (max-width: 1024px) {

    .app-hero-layout,
    .one-dashboard-layout,
    .doctor-sharing-layout {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }

    .phone-mockup {
        width: 250px;
        height: 500px;
    }

    .device-ecosystem {
        height: 400px;
    }
}

@media (max-width: 768px) {
    .app-hero-content h1 {
        font-size: var(--font-size-4xl);
    }

    .app-stats {
        flex-wrap: wrap;
    }

    .app-features-grid,
    .family-profiles-grid,
    .testimonials-grid,
    .tech-specs-grid {
        grid-template-columns: 1fr;
    }

    .app-screenshots-carousel {
        grid-template-columns: 1fr;
    }

    .privacy-features {
        grid-template-columns: 1fr;
    }

    .connected-device {
        width: 80px;
        height: 60px;
        font-size: var(--font-size-xs);
    }

    .device-1 {
        top: 30px;
    }

    .device-2 {
        right: 30px;
    }

    .device-3 {
        bottom: 30px;
    }

    .device-4 {
        left: 30px;
    }
}

@media (max-width: 480px) {

    .app-download-buttons,
    .app-download-buttons-large {
        flex-direction: column;
        align-items: center;
    }

    .phone-mockup {
        width: 200px;
        height: 400px;
    }
}