/*
 Theme Name:   Live News Pro
 Theme URI:    https://seogru.in/Live-News-pro/
 Description:  Premium mobile responsive HTML-based news portal theme. Design by https://seogru.in
 Author:       seogru.in
 Author URI:   https://seogru.in
 Version:      1.2
*/

/* ==========================================================
   APP-LIKE NEWS PORTAL STYLES (MOBILE FIRST)
========================================================== */

:root {
    --primary-red: #e11d48;
    --primary-red-hover: #be123c;
    --text-main: #111827;
    --text-muted: #6b7280;
    --bg-color: #f3f4f6;
    --surface: #ffffff;
    --border-color: #e5e7eb;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    
    --header-height: 120px;
    --bottom-nav-height: 60px;
}

body.app-layout {
    font-family: var(--font-sans);
    color: var(--text-main);
    background-color: var(--bg-color);
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--text-main);
    text-decoration: none;
}
img {
    max-width: 100%;
    height: auto;
    display: block;
}

.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    display: block !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.entry-content .wp-block-image {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.entry-content figure.aligncenter {
    margin: 0 auto;
}

/* =========================
   HEADER STYLES
========================= */
.app-header {
    background: var(--surface);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.app-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    border-bottom: 1px solid var(--border-color);
}
.top-bar-left {
    display: flex;
    align-items: center;
    gap: 15px;
}
.menu-toggle {
    background: none;
    border: none;
    padding: 0;
    color: var(--text-main);
    display: flex;
}
.site-title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-red);
}
.site-title a { color: var(--primary-red); }

.desktop-branding, .desktop-top-right {
    display: none;
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 10px;
}
.action-pill {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 4px;
    white-space: nowrap;
}
.outline-pill {
    border: 1px solid var(--primary-red);
    color: var(--primary-red);
}
.gold-pill {
    border: 1px solid #d97706;
    color: #d97706;
    display: flex;
    align-items: center;
    gap: 4px;
}
.coin-icon {
    background: #d97706;
    color: #fff;
    border-radius: 50%;
    width: 14px; height: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
}

/* SCROLLABLE MAIN NAV */
.app-nav-scroll-wrapper {
    display: none; /* Hidden on mobile */
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    border-bottom: 1px solid var(--border-color);
}
.app-nav-scroll-wrapper::-webkit-scrollbar { display: none; }
.scrollable-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: inline-flex;
}
.scrollable-menu li {
    display: inline-block;
}
.scrollable-menu a {
    display: block;
    padding: 12px 16px;
    font-size: 0.95rem;
    font-weight: 500;
}
.scrollable-menu li.active a {
    color: var(--primary-red);
    font-weight: 700;
}
.scrollable-menu li.highlight-green a {
    background: #84cc16;
    color: #fff;
    border-radius: 20px;
    margin: 5px 8px;
    padding: 6px 12px;
}

/* TRENDING PILLS */
.app-trending-scroll-wrapper {
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    padding: 10px 15px;
}
.app-trending-scroll-wrapper::-webkit-scrollbar { display: none; }
.trending-pills {
    display: inline-flex;
}
.trending-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: inline-flex;
    gap: 10px;
}
.trending-menu-list li {
    display: inline-block;
}
.trending-menu-list a, .trending-pill {
    border: 1px solid var(--primary-red);
    color: var(--primary-red);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    display: inline-block;
}

/* =========================
   MOBILE SLIDE-OUT MENU
========================= */
.mobile-menu-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s;
}
.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}
.mobile-slideout-menu {
    position: fixed;
    top: 0; left: -300px; bottom: 0;
    width: 280px;
    background: var(--surface);
    z-index: 1000;
    transition: left 0.3s;
    display: flex;
    flex-direction: column;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
}
.mobile-slideout-menu.active {
    left: 0;
}
.slideout-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
}
.slideout-header h3 { margin: 0; font-size: 1.2rem; }
.close-menu {
    background: none; border: none; font-size: 1.5rem;
    color: var(--text-muted); cursor: pointer;
}
.slideout-content {
    flex: 1;
    overflow-y: auto;
}
.slideout-content ul {
    list-style: none; padding: 0; margin: 0;
}
.slideout-content a {
    display: block;
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
    font-weight: 500;
}

/* =========================
   MAIN CONTENT / HERO
========================= */
.app-hero-section {
    background: var(--surface);
    margin-bottom: 8px;
}
.app-hero-post {
    position: relative;
    width: 100%;
}
.app-hero-thumb {
    position: relative;
    width: 100%;
}
.app-hero-thumb img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
}
.placeholder-img {
    width: 100%;
    aspect-ratio: 16/9;
    background: #d1d5db;
}
.app-hero-badge {
    position: absolute;
    top: 0; right: 0;
    background: #000;
    color: #fff;
    padding: 4px 8px;
    font-size: 0.75rem;
    font-weight: 600;
}
.app-hero-content {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%);
    padding: 40px 15px 15px 15px;
    color: #fff;
}
.app-hero-cat {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 5px;
}
.app-hero-title {
    margin: 0;
    font-size: 1.3rem;
    line-height: 1.3;
}
.app-hero-title a {
    color: #fff;
}

/* =========================
   LIST STORIES
========================= */
.app-news-list {
    background: var(--surface);
    padding: 0 15px;
    margin-bottom: 8px;
}
.app-list-item {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}
.app-list-item:last-child {
    border-bottom: none;
}
.app-list-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.app-list-title {
    margin: 0 0 10px 0;
    font-size: 1.05rem;
    line-height: 1.4;
    font-weight: 600;
}
.app-list-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
}
.app-list-thumb {
    width: 100px;
    flex-shrink: 0;
}
.app-list-thumb img {
    width: 100px;
    height: 75px;
    object-fit: cover;
    border-radius: 4px;
}

/* =========================
   CATEGORY BLOCKS
========================= */
.app-category-block {
    background: var(--surface);
    margin-bottom: 8px;
}
.app-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
}
.section-title {
    margin: 0;
    font-size: 1.2rem;
    color: var(--primary-red);
    border-left: 4px solid var(--primary-red);
    padding-left: 10px;
}
.read-more {
    color: var(--primary-red);
    font-size: 0.9rem;
    font-weight: 600;
}

/* =========================
   ADS
========================= */
.app-ad-block {
    background: var(--surface);
    padding: 15px;
    margin-bottom: 8px;
    text-align: center;
}
.ad-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 5px;
}
.ad-placeholder-horizontal {
    background: #e5e7eb;
    width: 100%;
    max-width: 336px;
    height: 250px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    justify-content: center;
    color: #9ca3af;
}

.sidebar-area {
    margin-top: 30px;
}
.sidebar-area .widget {
    background: var(--surface);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
}
.sidebar-area .widget-title {
    margin-top: 0;
    color: var(--primary-red);
    margin-bottom: 15px;
    font-size: 1.1rem;
}
.ad-placeholder-sidebar {
    background: #e5e7eb;
    width: 100%;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    font-weight: bold;
    border-radius: 4px;
}

/* =========================
   SINGLE ARTICLE PAGE
========================= */
.app-single-layout {
    background: var(--surface);
    padding: 15px;
    margin-bottom: 8px;
}
.app-single-layout .entry-meta-category {
    margin-bottom: 10px;
}
.app-single-layout .cat-label {
    background: var(--primary-red);
    color: #fff;
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}
.app-single-layout .entry-title {
    font-size: 1.6rem;
    line-height: 1.3;
    margin: 10px 0 15px 0;
}
.app-single-layout .entry-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 20px;
}
.app-single-layout .author-avatar img {
    border-radius: 50%;
}
.app-single-layout .meta-details {
    flex: 1;
    font-size: 0.85rem;
    color: var(--text-muted);
}
.app-single-layout .author-name {
    display: block;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 2px;
}
.app-single-layout .author-name a { color: var(--text-main); }
.app-single-layout .share-buttons {
    display: flex;
    gap: 10px;
}
.app-single-layout .share-btn {
    padding: 6px 12px;
    color: #fff !important;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}
.share-fb { background: #1877f2; }
.share-tw { background: #1da1f2; }
.share-wa { background: #25D366; }
.app-single-layout .post-thumbnail {
    margin: 0 -15px 20px -15px;
}
.app-single-layout .entry-content {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #374151;
}
.app-single-layout .entry-content p { margin-bottom: 1.2em; }
.app-single-layout .entry-content h2, .app-single-layout .entry-content h3 {
    margin-top: 1.5em; margin-bottom: 0.5em; color: var(--text-main);
}
.app-single-layout .entry-content blockquote {
    border-left: 4px solid var(--primary-red);
    margin: 1.5em 0;
    padding: 1em;
    background: #f9fafb;
    font-style: italic;
}
.related-posts {
    margin-top: 30px;
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
}
.related-posts h3 {
    color: var(--primary-red);
    margin-bottom: 15px;
}
.related-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}
.related-item .related-thumb img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: 4px;
}
.related-item .related-title {
    font-size: 0.9rem;
    line-height: 1.3;
    margin: 8px 0 0 0;
}

/* =========================
   FOOTER
========================= */
.site-footer {
    padding-bottom: 20px;
}

.footer-essential-links {
    margin-bottom: 15px;
}
.footer-links-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}
.footer-links-list li {
    margin: 0;
}
.footer-links-list a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.3s;
}
.footer-links-list a:hover {
    color: var(--primary-color);
}

/* =========================
   BOTTOM NAV BAR
========================= */
.bottom-nav-spacer {
    height: var(--bottom-nav-height);
}
.app-bottom-nav {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    height: var(--bottom-nav-height);
    background: var(--surface);
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 100;
}
.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: var(--text-muted);
    font-size: 0.7rem;
    font-weight: 500;
    flex: 1;
}
.bottom-nav-item.active {
    color: var(--primary-red);
}
.bottom-nav-item svg {
    width: 22px; height: 22px;
}

.site-branding img {
    max-height: 40px;
    width: auto;
}

/* Floating Center Button */
.center-floating {
    position: relative;
    top: -15px;
}
.floating-btn {
    background: var(--primary-red);
    color: #fff;
    width: 70px;
    height: 40px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px rgba(225, 29, 72, 0.3);
    text-align: center;
    line-height: 1.1;
}
.floating-text {
    font-size: 0.75rem;
    font-weight: 700;
}

/* =========================
   DESKTOP TWEAKS (Since it's Mobile-First)
========================= */
@media (min-width: 768px) {
    .app-top-bar {
        display: none; /* Hide mobile top bar on desktop */
    }
    .app-nav-scroll-wrapper {
        display: block; /* Show horizontal menu on desktop */
        border-bottom: 1px solid var(--border-color);
        padding: 0;
    }
    .desktop-nav-container {
        display: flex;
        align-items: center;
        gap: 20px;
    }
    .desktop-branding {
        display: block;
        flex-shrink: 0;
        padding-left: 15px;
    }
    .desktop-top-right {
        display: block;
        padding-right: 15px;
        margin-left: auto;
    }
    .app-main-navigation {
        flex: 1;
        overflow-x: auto;
        white-space: nowrap;
        text-align: center;
    }
    .app-main-navigation::-webkit-scrollbar { display: none; }

    .app-trending-scroll-wrapper {
        text-align: center;
    }

    .app-main {
        max-width: 1000px;
        margin: 20px auto;
        box-shadow: 0 0 20px rgba(0,0,0,0.1);
        padding-bottom: 40px;
    }
    .app-header {
        max-width: 1000px;
        margin: 0 auto;
        box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    }
    .app-news-list {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        padding: 20px;
    }
    .app-single-layout {
        max-width: 800px;
        margin: 0 auto 20px auto;
        padding: 30px;
        border-radius: 8px;
        box-shadow: 0 4px 6px rgba(0,0,0,0.05);
        border: 1px solid var(--border-color);
    }
    .app-single-layout .post-thumbnail {
        margin: 0 -30px 20px -30px;
    }
    .app-list-item {
        border-bottom: none;
        padding: 0;
        background: #f9fafb;
        border: 1px solid var(--border-color);
        border-radius: 8px;
        overflow: hidden;
    }
    .app-list-info {
        padding: 15px;
    }
    .app-list-thumb {
        width: 150px;
    }
    .app-list-thumb img {
        height: 100%;
        border-radius: 0 8px 8px 0;
    }
    
    /* Hide bottom nav on desktop */
    .app-bottom-nav, .bottom-nav-spacer {
        display: none !important;
    }
}
@media (min-width: 1024px) {
    .app-main, .app-header {
        max-width: 1200px;
    }
    .app-hero-section {
        border-radius: 8px;
        overflow: hidden;
    }
}
