/**
 * App-Style CSS for Mobile Home Page
 * ظاهر اپلیکیشن موبایل برای صفحه خانه
 */

/* Mobile Header Styles */
.billboard-mobile-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.billboard-mobile-header__link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
}

.billboard-mobile-header__logo {
    display: block;
    border-radius: 8px;
}

.billboard-mobile-header__title {
    font-weight: 600;
    font-size: 18px;
    margin: 0;
}

/* Hide header on desktop */
@media (min-width: 768px) {
    .billboard-mobile-header {
        position: relative;
    }
}

/* Mobile Bottom Menu Styles */
.billboard-mobile-menu {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border-radius: 20px 20px 0 0;
    transition: all 0.3s ease;
}

.billboard-mobile-menu__container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 8px 0 12px;
    max-width: 600px;
    margin: 0 auto;
}

.billboard-mobile-menu__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    transition: all 0.2s ease;
    padding: 8px 12px;
    border-radius: 12px;
    min-width: 60px;
}

.billboard-mobile-menu__item.active {
    transform: translateY(-4px);
}

.billboard-mobile-menu__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    transition: all 0.2s ease;
}

.billboard-mobile-menu__icon img {
    filter: brightness(0) saturate(100%);
}

.billboard-mobile-menu__item.active .billboard-mobile-menu__icon img {
    filter: none;
}

.billboard-mobile-menu__label {
    font-size: 11px;
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.billboard-mobile-menu__item.active .billboard-mobile-menu__label {
    font-weight: 700;
}

/* Hide menu on desktop */
@media (min-width: 768px) {
    .billboard-mobile-menu {
        display: none;
    }
}

/* App-like page container */
.billboard-app-container {
    min-height: 100vh;
    background: #f8fafc;
    padding-top: 70px; /* Space for fixed header */
    padding-bottom: 80px; /* Space for fixed bottom menu */
}

@media (min-width: 768px) {
    .billboard-app-container {
        padding-top: 0;
        padding-bottom: 0;
    }
}

/* Remove default margins on mobile */
@media (max-width: 767px) {
    body.elementor-page {
        padding: 0 !important;
    }
    
    .elementor-section.elementor-top-section {
        margin: 0 !important;
    }
    
    /* Full width sections on mobile */
    .billboard-app-container .elementor-container {
        max-width: 100%;
        padding: 0;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Prevent horizontal scroll */
body {
    overflow-x: hidden;
}

/* Map widget full width on mobile */
@media (max-width: 767px) {
    .billboard-media-map-widget {
        margin-left: -20px;
        margin-right: -20px;
        width: calc(100% + 40px);
    }
}

/* Card-like sections */
.billboard-app-section {
    background: #ffffff;
    border-radius: 16px;
    padding: 20px;
    margin: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

@media (min-width: 768px) {
    .billboard-app-section {
        margin: 24px auto;
        max-width: 1200px;
    }
}

/* Pull to refresh indicator (visual only) */
.billboard-pull-refresh {
    position: absolute;
    top: 70px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Loading skeleton */
.billboard-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: billboard-loading 1.5s infinite;
    border-radius: 8px;
}

@keyframes billboard-loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Safe area for notched devices */
@supports (padding: max(0px)) {
    .billboard-mobile-header {
        padding-top: max(15px, env(safe-area-inset-top));
    }
    
    .billboard-mobile-menu {
        padding-bottom: max(12px, env(safe-area-inset-bottom));
    }
}

/* Haptic feedback simulation (visual) */
.billboard-mobile-menu__item:active {
    transform: scale(0.95);
}

/* Status bar color meta tags should be added in header */
/* <meta name="theme-color" content="#ffffff"> */
/* <meta name="apple-mobile-web-app-status-bar-style" content="default"> */

