/**
 * Enhanced Mobile Responsive Design
 * Optimizes the SAY10 platform for all device sizes
 */

/* Enhanced Mobile Optimizations */
@media (max-width: 768px) {
    .universal-hero {
        padding: 2rem 0 1.5rem 0;
    }
    
    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
        min-height: auto;
    }
    
    .hero-logo img {
        width: 220px;
        margin: 0 auto;
    }
    
    .hero-title {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        margin: 0.8rem 0;
    }
    
    .hero-badges {
        gap: 0.8rem;
        margin-top: 1rem;
    }
    
    .hero-badge {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }
}

/* Tablet Optimizations */
@media (min-width: 769px) and (max-width: 1024px) {
    .hero-content {
        gap: 2rem;
    }
    
    .hero-logo img {
        width: 250px;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
}

/* Enhanced Grid Layouts */
.responsive-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

@media (max-width: 480px) {
    .responsive-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* Touch-Friendly Elements */
.touch-target {
    min-height: 44px;
    min-width: 44px;
}

@media (hover: none) and (pointer: coarse) {
    .hover-effect:hover {
        transform: none;
    }
    
    .touch-target {
        padding: 12px 16px;
    }
}

/* Enhanced Typography */
@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.6rem; }
    h3 { font-size: 1.3rem; }
    
    p, .description {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    .metric-value {
        font-size: 1.3rem;
    }
    
    .metric-label {
        font-size: 0.85rem;
    }
}

/* Performance Optimizations */
.gpu-optimized {
    transform: translateZ(0);
    will-change: transform;
}

.smooth-animation {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

.focus-visible {
    outline: 2px solid #00d4ff;
    outline-offset: 2px;
}

/* Enhanced Container Styles */
.enhanced-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

@media (max-width: 768px) {
    .enhanced-container {
        padding: 0 1rem;
    }
}

/* Progressive Enhancement */
.enhanced-feature {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.enhanced-feature:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(0, 212, 255, 0.3);
    transform: translateY(-2px);
}

/* Loading States */
.loading-shimmer {
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0.1) 25%, 
        rgba(255, 255, 255, 0.2) 50%, 
        rgba(255, 255, 255, 0.1) 75%
    );
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Enhanced Buttons */
.enhanced-button {
    background: linear-gradient(135deg, #00d4ff 0%, #ff6b6b 100%);
    border: none;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    font-weight: 600;
    padding: 12px 24px;
    position: relative;
    transition: all 0.3s ease;
    overflow: hidden;
}

.enhanced-button::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;
}

.enhanced-button:hover::before {
    left: 100%;
}

.enhanced-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.3);
}

/* Dark Mode Optimizations */
@media (prefers-color-scheme: dark) {
    .auto-dark {
        background: rgba(0, 0, 0, 0.8);
        color: #ffffff;
    }
}

/* Print Styles */
@media print {
    .universal-hero,
    .navigation,
    .interactive-element {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
}