/* mobile.css - Mobile-Specific Optimizations */

/* Mobile Header Adjustments */
@media (max-width: 479px) {
    body {
        padding-top: 50px;
    }
    
    .sticky-header {
        padding: 0.5rem 0;
    }
    
    .header-content {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .header-content i {
        font-size: 1rem;
    }
    
    .header-content span {
        font-size: 0.9rem;
    }
}

/* Mobile Price Display */
@media (max-width: 479px) {
    .price-highlight {
        margin: 1rem 0;
        padding: 0.8rem 1rem;
    }
    
    .price-label {
        font-size: 0.8rem;
    }
    
    .price-value {
        font-size: 1.4rem;
    }
    
    .sticky-footer .price-display {
        margin-right: 0.5rem;
    }
    
    .sticky-footer .price-text {
        font-size: 0.7rem;
    }
    
    .sticky-footer .price-amount {
        font-size: 1.1rem;
    }
}

/* Mobile Benefits Section */
@media (max-width: 479px) {
    .benefits-section {
        padding: 60px 0;
    }
    
    .total-value {
        padding: 1.5rem;
        margin-top: 2rem;
    }
    
    .total-label {
        font-size: 1rem;
    }
    
    .original-price {
        font-size: 1.8rem;
    }
    
    .final-price {
        font-size: 2rem;
    }
    
    .discount-label {
        font-size: 1rem;
    }
    
    .savings-highlight {
        padding: 0.8rem 1rem;
    }
    
    .savings-highlight span {
        font-size: 1rem;
    }
}

/* Mobile Testimonial Optimizations */
@media (max-width: 479px) {
    .testimonial-track {
        gap: 1rem;
    }
    
    .testimonial-controls {
        margin-top: 1.5rem;
        gap: 0.8rem;
    }
    
    .scroll-btn {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    .image-modal .modal-content {
        padding: 1rem;
    }
    
    .close-btn {
        top: -30px;
        right: -10px;
        width: 30px;
        height: 30px;
        font-size: 1.2rem;
    }
}

/* Mobile CTA Buttons */
@media (max-width: 479px) {
    .cta-button {
        padding: 1rem 1.5rem;
        font-size: 1rem;
        max-width: 100%;
    }
    
    .primary-cta {
        padding: 1.2rem 2rem;
    }
    
    .primary-cta i {
        font-size: 1.3rem;
    }
    
    .primary-cta span {
        font-size: 1.1rem;
    }
    
    .primary-cta small {
        font-size: 0.85rem;
    }
}

/* Mobile Animation Performance */
@media (max-width: 479px) {
    /* Reduce complex animations on mobile for better performance */
    .hero-section::after {
        animation-duration: 80s;
    }
    
    .hero-card::before {
        animation-duration: 30s;
    }
    
    .total-value::before {
        animation-duration: 25s;
    }
    
    /* Simplify floating elements on mobile */
    .floating-star, .floating-moon, .floating-sparkle, .floating-sun, .floating-heart {
        font-size: 1rem;
        opacity: 0.6;
    }
    
    /* Reduce shimmer effects frequency */
    .benefit-card::before,
    .proof-item::before,
    .step-item::before {
        animation-duration: 6s;
    }
}

/* Touch-Specific Interactions */
@media (hover: none) and (pointer: coarse) {
    /* Remove hover effects that don't work on touch devices */
    .benefit-card:hover,
    .proof-item:hover,
    .step-item:hover,
    .zoom-item:hover {
        transform: none;
        box-shadow: inherit;
    }
    
    /* Make touch targets larger */
    .testimonial-img {
        padding: 5px;
        box-sizing: border-box;
    }
    
    .scroll-btn {
        min-width: 48px;
        min-height: 48px;
    }
    
    .close-btn {
        min-width: 44px;
        min-height: 44px;
    }
    
    /* Add touch feedback */
    .benefit-card:active,
    .proof-item:active,
    .step-item:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }
    
    .scroll-btn:active {
        transform: scale(0.95);
    }
    
    .testimonial-img:active {
        transform: scale(0.98);
    }
}

/* High DPI Mobile Displays */
@media (max-width: 479px) and (-webkit-min-device-pixel-ratio: 2) {
    /* Optimize for retina displays */
    .hero-title .highlight {
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    }
    
    .magic-text {
        box-shadow: 0 4px 16px rgba(123, 44, 191, 0.3);
    }
    
    .benefit-icon,
    .mentor-photo {
        box-shadow: 0 4px 20px rgba(123, 44, 191, 0.2);
    }
}

/* Mobile Landscape Orientation */
@media (max-width: 767px) and (orientation: landscape) {
    .hero-section {
        min-height: auto;
        padding: 1rem 0 2rem 0;
    }
    
    .hero-card {
        padding: 1.5rem;
    }
    
    .mentor-intro {
        flex-direction: row;
        gap: 1.5rem;
        padding: 1.5rem;
    }
    
    .mentor-photo {
        width: 100px;
        height: 100px;
    }
    
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .benefit-card.featured {
        grid-column: 1 / -1;
    }
}

/* Mobile Safari Specific Fixes */
@supports (-webkit-touch-callout: none) {
    /* Fix for iOS Safari viewport issues */
    body {
        min-height: -webkit-fill-available;
    }
    
    .hero-section {
        min-height: -webkit-fill-available;
    }
    
    /* Prevent zoom on input focus */
    .scroll-btn,
    .close-btn {
        font-size: 16px;
    }
}

/* Mobile Dark Mode */
@media (prefers-color-scheme: dark) and (max-width: 479px) {
    .sticky-header {
        background: linear-gradient(135deg, #2C1810, #4A0E4E);
    }
    
    .hero-card {
        background: rgba(253, 254, 254, 0.98);
    }
    
    .benefit-card,
    .testimonial-carousel {
        background: rgba(253, 254, 254, 0.95);
    }
}

/* Accessibility for Mobile */
@media (max-width: 479px) {
    /* Ensure minimum touch target sizes */
    .faq-question {
        min-height: 44px;
        padding: 1rem;
    }
    
    .social-link {
        min-height: 44px;
        padding: 0.8rem 1rem;
    }
    
    /* Improve readability */
    .section-title {
        font-size: 1.8rem;
        line-height: 1.3;
    }
    
    .mentor-text p,
    .final-message > p {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    /* Ensure adequate spacing */
    section {
        padding: 50px 0;
    }
    
    .container {
        padding: 0 15px;
    }
}