/* PWA Specific Styles - No Scroll, Perfect Fit */

/* Detect PWA mode */
@media all and (display-mode: standalone) {
    /* Remove scroll */
    body {
        overflow: hidden !important;
        height: 100vh !important;
        max-height: 100vh !important;
    }
    
    /* Make content fit screen */
    .content-section {
        height: calc(100vh - 120px) !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Adjust hero section */
    .hero {
        padding: 20px 20px 10px !important;
        min-height: auto !important;
    }
    
    .hero h1 {
        font-size: 1.8rem !important;
        margin-bottom: 10px !important;
    }
    
    .hero p {
        font-size: 0.9rem !important;
        margin-bottom: 15px !important;
    }
    
    .hero a {
        padding: 10px 20px !important;
        font-size: 0.9rem !important;
    }
    
    /* Compact navbar */
    .navbar {
        padding: 10px 20px !important;
        height: 60px !important;
    }
    
    .topbar {
        padding: 8px 20px !important;
        height: 40px !important;
    }
    
    /* Compact market grid */
    .market-grid {
        gap: 10px !important;
        padding: 10px !important;
    }
    
    .market-card {
        padding: 15px !important;
    }
    
    .market-card h3 {
        font-size: 0.9rem !important;
    }
    
    .card-icon {
        font-size: 2rem !important;
    }
    
    /* Section titles */
    .section-title {
        font-size: 1.3rem !important;
        margin-bottom: 15px !important;
        padding: 0 20px !important;
    }
    
    /* Ticker */
    .ticker {
        padding: 8px 0 !important;
        font-size: 0.8rem !important;
    }
    
    /* Hide install button in PWA mode */
    #installButton {
        display: none !important;
    }
    
    /* Compact menu */
    .nav-links a {
        padding: 10px 15px !important;
        font-size: 0.9rem !important;
    }
    
    #nav-install-app {
        display: none !important;
    }
}

/* Extra compact for small screens in PWA */
@media all and (display-mode: standalone) and (max-height: 700px) {
    .hero h1 {
        font-size: 1.5rem !important;
    }
    
    .hero p {
        font-size: 0.85rem !important;
    }
    
    .market-card {
        padding: 12px !important;
    }
    
    .section-title {
        font-size: 1.1rem !important;
        margin-bottom: 10px !important;
    }
}

/* Smooth scrolling for content sections */
@media all and (display-mode: standalone) {
    .content-section {
        scroll-behavior: smooth;
    }
    
    /* Custom scrollbar */
    .content-section::-webkit-scrollbar {
        width: 4px;
    }
    
    .content-section::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.05);
    }
    
    .content-section::-webkit-scrollbar-thumb {
        background: rgba(75, 160, 0, 0.5);
        border-radius: 2px;
    }
    
    .content-section::-webkit-scrollbar-thumb:hover {
        background: rgba(75, 160, 0, 0.7);
    }
}
