/*
Theme Name: NewsPing Pro Theme v3
Version: 3.0
*/

/* ===============================
   🌐 GLOBAL
================================ */
body {
    font-family: Arial;
    background: #eef1f5;
    margin: 0;
}

/* ===============================
   🔴 HEADER
================================ */
.np-header {
    background: #d40000;
    color: #fff;
    padding: 12px;
    position: sticky;
    top: 0;
    z-index: 999;
}

.np-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 22px;
    font-weight: bold;
}

.np-lang select {
    padding: 5px;
    border-radius: 5px;
    border: none;
}

/* ===============================
   📰 FEED & CARDS
================================ */
.np-feed {
    padding: 10px;
}

.np-card {
    background: #fff;
    margin-bottom: 12px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);

    /* 🎨 Hover Animation */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.np-card:hover {
    transform: scale(1.03);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.np-card img {
    width: 100%;
}

.np-card h2 {
    padding: 10px;
    font-size: 16px;
}

/* ===============================
   ⚡ SKELETON LOADING
================================ */
.skeleton {
    background: linear-gradient(90deg, #eee, #ddd, #eee);
    background-size: 200% 100%;
    animation: shimmer 1.2s infinite;
    height: 100px;
    border-radius: 10px;
    margin-bottom: 10px;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* ===============================
   💰 ADS
================================ */
.np-ad {
    background: #fff3cd;
    padding: 10px;
    margin: 10px 0;
    text-align: center;
}

/* ===============================
   📱 INSTALL BUTTON
================================ */
.install-btn {
    position: fixed;
    bottom: 60px;
    right: 20px;
    background: #000;
    color: #fff;
    padding: 10px 14px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
}

/* ===============================
   📊 DASHBOARD
================================ */
.np-dashboard {
    position: fixed;
    bottom: 0;
    width: 100%;
    background: black;
    color: white;
    padding: 8px;
    text-align: center;
    font-size: 14px;
}
/* ⏳ Load More */
#load-more {
    font-size: 14px;
    color: #555;
}

/* 🖼️ Lazy image */
.lazy-img {
    width: 100%;
    min-height: 150px;
    background: #ddd;
}

.np-single {
    padding: 10px;
}

.np-single h1 {
    font-size: 20px;
    margin-bottom: 10px;
}

.np-content {
    font-size: 16px;
    line-height: 1.6;
}

.np-share {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0;
}

.np-share a,
.np-share button {
    text-decoration: none;
    background: #000;
    color: #fff;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 12px;
    border: none;
    cursor: pointer;
}

/* ===============================
   🚀 APP UI UPGRADE (DAILYHUNT STYLE)
================================ */

/* 📱 App Container */
.np-app {
    max-width: 600px;
    margin: auto;
}

/* 🔥 Trending strip */
.np-trending {
    display: flex;
    overflow-x: auto;
    padding: 8px;
    gap: 8px;
    background: #fff;
    border-bottom: 1px solid #ddd;
}

.np-trending::-webkit-scrollbar {
    display: none;
}

.np-trend-item {
    background: #f1f1f1;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    white-space: nowrap;
}

/* 📰 Card Upgrade */
.np-card {
    display: flex;
    gap: 10px;
    padding: 10px;
    border-radius: 12px;
    background: #fff;
    transition: all 0.3s ease;
}

.np-card:hover {
    transform: translateY(-3px);
}

/* 🖼 Image (left style like apps) */
.np-img {
    width: 110px;
    flex-shrink: 0;
}

.np-img img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}

/* 📝 Content */
.np-body {
    flex: 1;
}

.np-body h3 {
    font-size: 15px;
    margin: 0;
    color: #111;
}

.np-body p {
    font-size: 13px;
    color: #555;
    margin-top: 4px;
}

/* 🧾 Single page upgrade */
.np-single {
    background: #fff;
    padding: 12px;
}

.np-single h1 {
    font-size: 22px;
    font-weight: bold;
}

/* 📝 Content readability */
.np-content {
    font-size: 17px;
    line-height: 1.8;
    color: #222;
}

/* 🔗 Share buttons improve */
.np-share a,
.np-share button {
    background: #d40000;
    font-size: 13px;
}

/* 📱 Bottom Navigation (APP FEEL) */
.np-bottom-nav {
    position: fixed;
    bottom: 0;
    width: 100%;
    background: #fff;
    display: flex;
    justify-content: space-around;
    border-top: 1px solid #ddd;
    padding: 8px 0;
    z-index: 999;
}

.np-bottom-nav a {
    text-align: center;
    font-size: 12px;
    color: #333;
    text-decoration: none;
}

/* 📲 Floating button (like app CTA) */
.np-float-btn {
    position: fixed;
    bottom: 70px;
    right: 20px;
    background: #d40000;
    color: #fff;
    padding: 12px;
    border-radius: 50%;
    font-size: 18px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

/* ⚡ Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* 📱 Mobile optimization */
@media (max-width: 600px) {

    .np-card {
        flex-direction: row;
    }

    .np-body h3 {
        font-size: 14px;
    }

}