/* assets/css/mobile.css
   Live Maharashtra 24 - Mobile Responsive & Native App UI */

/* Bottom Navigation Bar for Mobile */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: var(--bg-card);
    border-top: 1px solid var(--border-light);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.08);
    z-index: 990;
    align-items: center;
    justify-content: space-around;
    padding: 0 6px;
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.68rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    flex: 1;
    height: 100%;
    gap: 3px;
    transition: var(--transition);
}

.bottom-nav-item i {
    font-size: 1.15rem;
}

.bottom-nav-item.active, .bottom-nav-item:hover {
    color: var(--primary-red);
}

.bottom-nav-item.highlight {
    color: var(--primary-red);
}

.bottom-nav-item.highlight i {
    background: var(--primary-red-light);
    color: var(--primary-red);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
}

/* Off-canvas Drawer Menu */
.mobile-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(2px);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-drawer-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: 82%;
    max-width: 340px;
    height: 100%;
    background: var(--bg-card);
    z-index: 1001;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.mobile-drawer.active {
    transform: translateX(0);
}

.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: var(--dark-navy);
    color: #fff;
}

.drawer-brand {
    font-weight: 800;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.drawer-brand .live-dot {
    width: 8px;
    height: 8px;
    background: #ef4444;
    border-radius: 50%;
}

.drawer-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.25rem;
    cursor: pointer;
}

.drawer-lang-selector {
    padding: 14px 20px;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-light);
}

.drawer-lang-selector .label {
    display: block;
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.drawer-lang-buttons {
    display: flex;
    gap: 8px;
}

.drawer-lang-buttons a {
    flex: 1;
    text-align: center;
    padding: 6px;
    border-radius: 6px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    font-size: 0.82rem;
    font-weight: 700;
}

.drawer-lang-buttons a.active {
    background: var(--primary-red);
    color: #fff;
    border-color: var(--primary-red);
}

.drawer-search {
    padding: 14px 20px;
    border-bottom: 1px solid var(--border-light);
}

.drawer-search form {
    display: flex;
    border: 1px solid var(--border-light);
    border-radius: 6px;
    overflow: hidden;
}

.drawer-search input {
    flex: 1;
    border: none;
    padding: 8px 12px;
    font-size: 0.88rem;
    outline: none;
    background: var(--bg-card);
    color: var(--text-main);
}

.drawer-search button {
    background: var(--bg-surface);
    border: none;
    padding: 0 12px;
    color: var(--text-muted);
}

.drawer-menu {
    flex: 1;
    padding: 12px 0;
}

.drawer-menu li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-main);
    border-bottom: 1px solid rgba(0,0,0,0.03);
}

.drawer-menu li a:hover {
    background: var(--bg-surface);
    color: var(--primary-red);
}

.admin-drawer-link a {
    color: #0073aa !important;
    background: rgba(0, 115, 170, 0.06);
    font-weight: 700;
}

.drawer-footer {
    padding: 20px;
    border-top: 1px solid var(--border-light);
    background: var(--bg-surface);
    text-align: center;
}

.drawer-socials {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-bottom: 10px;
}

.drawer-socials a {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.88rem;
    color: var(--text-main);
}

.drawer-copy {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ========================================================
   RESPONSIVE BREAKPOINTS
   ======================================================== */
@media (max-width: 992px) {
    .header-center-info {
        display: none;
    }

    .top-bar-left .weather-pill,
    .top-bar-left .trending-tags-top {
        display: none;
    }

    .hero-grid {
        grid-template-columns: 1fr;
    }

    .article-page-layout {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }
}

@media (max-width: 768px) {
    /* Mobile Layout Mode */
    body {
        padding-bottom: 65px; /* Room for bottom sticky bar */
    }

    .mobile-bottom-nav {
        display: flex;
    }

    .mobile-menu-trigger {
        display: block;
    }

    .top-bar {
        display: none; /* Streamline on mobile */
    }

    .header-container {
        padding: 10px 14px;
    }

    .logo-symbol {
        width: 38px;
        height: 38px;
    }

    .num-24 {
        font-size: 1.1rem;
    }

    .logo-title-main {
        font-size: 1.15rem;
    }

    .logo-marathi-tag {
        font-size: 0.72rem;
    }

    .main-navigation {
        display: none; /* Handled by drawer and bottom bar */
    }

    .lead-headline {
        font-size: 1.3rem;
    }

    .lead-content {
        padding: 16px;
    }

    .news-cards-grid {
        grid-template-columns: 1fr;
    }

    .article-main-column {
        padding: 18px;
    }

    .article-title-single {
        font-size: 1.45rem;
    }

    .article-toolbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .newsletter-container {
        flex-direction: column;
        align-items: flex-start;
    }

    .newsletter-form {
        width: 100%;
        max-width: 100%;
    }

    /* Mobile Live TV Below-Menu Strip */
    .live-strip-container {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        padding: 8px 12px;
    }

    .live-strip-left {
        gap: 8px;
    }

    .live-strip-headline {
        font-size: 0.78rem;
    }

    .btn-watch-live-strip {
        justify-content: center;
        width: 100%;
        padding: 7px 12px;
    }

    /* Mobile Social Share Section */
    .article-share-section {
        padding: 16px;
    }

    .share-buttons-group {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .share-btn {
        padding: 8px 10px;
        font-size: 0.8rem;
    }

    .snippet-card-actions button,
    .snippet-card-actions a {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .header-actions .header-cta-btn span {
        display: none; /* Icon only */
    }
    
    .header-actions .header-cta-btn {
        padding: 7px 10px;
    }

    .header-live-tv-top-btn {
        padding: 5px 8px;
        font-size: 0.72rem;
        gap: 5px;
    }

    .ticker-badge {
        padding: 8px 12px;
        padding-right: 18px;
        font-size: 0.75rem;
    }

    .snippet-card-body {
        flex-direction: column;
    }

    .snippet-thumb-wrap {
        width: 100%;
        height: 140px;
    }
}

