/* pwa-app-mode.css - App styling for your podcast */

/* Only apply when in app mode (opened from home screen) */
body.pwa-app-mode {
    background-color: #f8f9fa;
    padding-bottom: 60px; /* Space for bottom navigation */
}

/* Hide elements that don't make sense in an app */
body.pwa-app-mode .header-social,
body.pwa-app-mode .browser-promo,
body.pwa-app-mode .external-links {
    display: none !important;
}

/* Make the header more app-like */
body.pwa-app-mode header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: #000000; /* Match your theme color */
    color: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 10px 15px;
}

/* App-like bottom navigation */
body.pwa-app-mode .app-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-around;
    align-items: center;
    background-color: white;
    border-top: 1px solid #e9ecef;
    padding: 8px 0;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
}

body.pwa-app-mode .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #6c757d;
    font-size: 12px;
    transition: color 0.3s;
}

body.pwa-app-mode .nav-item.active {
    color: #000000; /* Your theme color */
}

body.pwa-app-mode .nav-item i {
    font-size: 24px;
    margin-bottom: 4px;
}

/* Make podcast episodes look like app cards */
body.pwa-app-mode .podcast-episode {
    background: white;
    border-radius: 12px;
    margin: 10px 15px;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
}

body.pwa-app-mode .episode-artwork {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    margin-right: 15px;
}

body.pwa-app-mode .episode-info {
    flex: 1;
}

body.pwa-app-mode .episode-title {
    font-weight: 600;
    margin-bottom: 5px;
}

body.pwa-app-mode .episode-date {
    font-size: 12px;
    color: #6c757d;
}

body.pwa-app-mode .play-button {
    width: 40px;
    height: 40px;
    background-color: #000000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
}

/* Audio player styling */
body.pwa-app-mode .audio-player {
    position: sticky;
    bottom: 0;
    background: white;
    border-top: 1px solid #dee2e6;
    padding: 15px;
    margin-bottom: 60px; /* Space for bottom nav */
}

/* Pull-to-refresh animation */
@keyframes pull-to-refresh {
    0% { transform: translateY(0); }
    50% { transform: translateY(10px); }
    100% { transform: translateY(0); }
}

body.pwa-app-mode .refresh-indicator {
    text-align: center;
    padding: 10px;
    color: #6c757d;
    animation: pull-to-refresh 1s infinite;
    display: none;
}

body.pwa-app-mode .refresh-indicator.show {
    display: block;
}