/* WP Smart Reception — PWA Styles */

@media (display-mode: standalone) {
    #wpadminbar,
    .site-header .site-branding,
    .entry-header,
    .site-footer { display: none !important; }

    .site-content,
    .entry-content,
    .page .entry-content {
        padding-top: env(safe-area-inset-top, 0) !important;
        padding-bottom: calc(70px + env(safe-area-inset-bottom, 0)) !important;
        max-width: 100% !important;
        margin: 0 !important;
    }
    body { padding-top: 0 !important; margin-top: 0 !important; }
    html {
        padding-top: env(safe-area-inset-top);
        padding-bottom: env(safe-area-inset-bottom);
    }
    body::before {
        content: '';
        display: block;
        height: env(safe-area-inset-top, 0);
        background: #28a745;
        position: fixed;
        top: 0; left: 0; right: 0;
        z-index: 999999;
    }
}

@keyframes wsr-pwa-slide-up {
    from { transform: translateY(100%); opacity: 0; }
    to   { transform: translateY(0);   opacity: 1; }
}

#wsr-offline-indicator {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0;
    background: #c62828;
    color: #fff;
    text-align: center;
    padding: 8px;
    font-size: 13px;
    font-weight: bold;
    z-index: 999999;
    font-family: -apple-system, sans-serif;
}

@media (max-width: 768px) {
    body { padding-bottom: 20px; }
    button, [type="submit"], .button {
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }
    button:active, [type="submit"]:active {
        transform: scale(0.97);
        transition: transform 0.1s;
    }
}
