/*
 * BPNEWS Mobile App Interface Stylesheet
 * Replicates an authentic native mobile news application experience.
 */

.bpnews-mobile-app-container {
    font-family: 'Hind Siliguri', 'Tiro Bangla', sans-serif;
    background: #f4f6f9;
    color: #1f2937;
    padding-bottom: 76px; /* Space for fixed bottom navigation */
    max-width: 480px;
    margin: 0 auto;
    min-height: 100vh;
    box-shadow: 0 0 24px rgba(0, 0, 0, 0.08);
    position: relative;
}

/* 1. App Top Header */
.bpnews-app-header {
    background: #ffffff;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}
.app-header-left .app-logo {
    max-height: 42px;
    width: auto;
}
.app-header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}
.app-icon-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    color: #334155;
    border-radius: 50%;
    text-decoration: none;
    font-size: 15px;
}
.app-icon-btn:hover {
    background: #e2e8f0;
    color: #E60000;
}

/* 2. Horizontal Scrollable Category Pills */
.bpnews-app-pills {
    background: #ffffff;
    padding: 8px 16px 12px 16px;
    display: flex;
    gap: 10px;
    overflow-x: auto;
    white-space: nowrap;
    border-bottom: 1px solid #e2e8f0;
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.bpnews-app-pills::-webkit-scrollbar {
    display: none;
}
.pill-item {
    display: inline-block;
    padding: 6px 16px;
    background: #f1f5f9;
    color: #475569;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
}
.pill-item:hover,
.pill-item.pill-active {
    background: #E60000;
    color: #ffffff;
}

/* 3. Breaking News Ticker */
.bpnews-app-ticker {
    background: #fff9db;
    border-left: 4px solid #f59e0b;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    margin: 10px 12px;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}
.ticker-label {
    background: #dc2626;
    color: #fff;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 11px;
    white-space: nowrap;
}
.ticker-text {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-weight: 500;
}
.ticker-text a {
    color: #1f2937;
    text-decoration: none;
}

/* 4. Hero Featured Article Slider Card */
.bpnews-app-hero-card {
    margin: 12px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}
.hero-image-wrap {
    height: 240px;
    background-size: cover;
    background-position: center;
    position: relative;
}
.hero-gradient-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px 16px 16px 16px;
    background: linear-gradient(transparent, rgba(0,0,0,0.88));
    color: #ffffff;
}
.hero-badge {
    background: #E60000;
    color: #fff;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}
.hero-title {
    color: #ffffff;
    font-size: 20px;
    line-height: 1.35;
    margin: 8px 0 6px 0;
    font-weight: 700;
}
.hero-meta {
    font-size: 12px;
    color: #cbd5e1;
}

/* 5. Compact News Feed Cards */
.bpnews-app-feed {
    padding: 0 12px;
}
.feed-header {
    font-size: 17px;
    font-weight: 700;
    margin: 16px 4px 12px 4px;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 8px;
}
.app-news-card {
    display: flex;
    gap: 12px;
    background: #ffffff;
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 12px;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 2px 6px rgba(0,0,0,0.03);
    transition: transform 0.15s ease;
}
.app-news-card:active {
    transform: scale(0.98);
}
.app-news-thumb {
    width: 96px;
    height: 76px;
    background-size: cover;
    background-position: center;
    border-radius: 6px;
    flex-shrink: 0;
}
.app-news-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.app-news-tag {
    display: inline-block;
    background: #fee2e2;
    color: #E60000;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 700;
    width: fit-content;
}
.app-news-title {
    font-size: 15px;
    line-height: 1.35;
    margin: 4px 0;
    font-weight: 600;
    color: #1f2937;
}
.app-news-meta {
    font-size: 11px;
    color: #64748b;
}

/* 6. Fixed Bottom Navigation Bar (Authentic App UI - Full Width Responsive) */
.bpnews-mobile-bottom-nav,
.bpnews-bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 100%;
    height: auto;
    min-height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-around;
    box-sizing: border-box;
    z-index: 999999;
    overflow: visible;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    box-shadow: 0 -4px 16px rgba(0,0,0,0.08);
    transform: none;
    margin: 0;
    padding: 6px 4px;
    padding-bottom: calc(6px + env(safe-area-inset-bottom));
}
.bpnews-mobile-bottom-nav .bottom-nav-item,
.bpnews-bottom-nav .bottom-nav-item {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #64748b;
    text-decoration: none;
    padding: 4px 2px;
    box-sizing: border-box;
    text-align: center;
    transition: color 0.2s ease;
}
.bpnews-mobile-bottom-nav .bottom-nav-item i,
.bpnews-bottom-nav .bottom-nav-item i {
    font-size: clamp(18px, 5vw, 24px);
    margin-bottom: 4px;
}
.bpnews-mobile-bottom-nav .bottom-nav-item .nav-label,
.bpnews-mobile-bottom-nav .bottom-nav-item span,
.bpnews-bottom-nav .bottom-nav-item .nav-label,
.bpnews-bottom-nav .bottom-nav-item span {
    font-size: clamp(10px, 2.8vw, 12px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    display: block;
}
.bpnews-mobile-bottom-nav .bottom-nav-item.active,
.bpnews-mobile-bottom-nav .bottom-nav-item:hover,
.bpnews-bottom-nav .bottom-nav-item.active,
.bpnews-bottom-nav .bottom-nav-item:hover {
    color: #E60000;
}
.bpnews-mobile-page,
.bpnews-mobile-app-container {
    padding-bottom: calc(80px + env(safe-area-inset-bottom));
}
