/*
Theme Name: Update Now News
Theme URI: https://updatenownews.xinloc.com
Author: Update Now News
Description: Warm Charcoal & Gold celebrity entertainment news theme. Elegant dark tones with amber-gold accents.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: updatenownews
Tags: news, entertainment, celebrity, magazine, dark, gold, warm
*/

/* =========================================
   RESET & BASE
========================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #0e0c09;
    color: #a89070;
    line-height: 1.6;
}
a { text-decoration: none; color: inherit; }
a:hover { color: #c8922a; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

/* =========================================
   LAYOUT
========================================= */
.wrap { max-width: 1060px; margin: 0 auto; padding: 0 16px; }

.site-layout {
    display: grid;
    grid-template-columns: 1fr 260px;
    gap: 22px;
    padding: 22px 0 44px;
}

/* =========================================
   TOPBAR
========================================= */
.topbar {
    background: #0c0a08;
    border-bottom: 1px solid #1e1a14;
    padding: 5px 0;
    font-size: 11px;
    color: #4a4035;
    /* NOT fixed — scrolls with the page */
}
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; }
.topbar-date i { color: #c8922a; margin-right: 4px; vertical-align: -2px; }
.topbar-social { display: flex; gap: 12px; }
.topbar-social a { color: #4a4035; font-size: 13px; }
.topbar-social a:hover { color: #c8922a; }

/* =========================================
   TICKER
========================================= */
.ticker-bar { background: #c8922a; padding: 6px 0; overflow: hidden; }
.ticker-bar .wrap { display: flex; align-items: center; gap: 10px; }
.ticker-label {
    background: #3d2600; color: #c8922a;
    font-size: 10px; font-weight: 600;
    padding: 2px 9px; border-radius: 2px;
    white-space: nowrap; letter-spacing: .6px;
    flex-shrink: 0;
}
.ticker-track { overflow: hidden; flex: 1; }
.ticker-text {
    color: #fff; font-size: 11px;
    white-space: nowrap; display: inline-block;
    animation: ticker 28s linear infinite;
}
@keyframes ticker { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* =========================================
   SITE HEADER — scrolls with page, NOT fixed
========================================= */
.site-header {
    background: #1a1510;
    border-bottom: 3px solid #c8922a;
    padding: 16px 0;
    /* position: static — scrolls naturally */
}
.site-header .wrap { display: flex; justify-content: space-between; align-items: center; }

.site-logo { display: flex; align-items: center; gap: 11px; }
.logo-icon {
    width: 44px; height: 44px;
    background: #c8922a; border-radius: 4px;
    display: flex; align-items: center; justify-content: center;
    color: #3d2600; font-size: 20px; flex-shrink: 0;
}
.logo-text { font-size: 22px; font-weight: 700; color: #ede8e0; letter-spacing: -0.3px; line-height: 1.1; }
.logo-text span { color: #c8922a; }
.logo-sub { font-size: 9px; color: #4a4035; letter-spacing: 1.8px; text-transform: uppercase; margin-top: 2px; }

.header-search { display: flex; border: 1px solid #2a2218; border-radius: 3px; overflow: hidden; }
.header-search input {
    background: #221c14; border: none;
    padding: 8px 12px; font-size: 12px;
    color: #c8b898; outline: none; width: 210px;
}
.header-search input::placeholder { color: #4a4035; }
.header-search button {
    background: #c8922a; color: #3d2600;
    border: none; padding: 8px 14px; cursor: pointer; font-size: 13px;
}
.header-search button:hover { background: #e0a030; }

/* =========================================
   NAVIGATION — scrolls with page, NOT fixed
========================================= */
.site-nav {
    background: #221c14;
    border-bottom: 2px solid #c8922a;
    /* position: static — scrolls naturally */
}
.site-nav .wrap { display: flex; align-items: center; }

.nav-main { display: flex; }
.nav-main a {
    color: #8a7a65; font-size: 11px;
    padding: 10px 15px; display: block;
    font-weight: 500; letter-spacing: .3px;
    text-transform: uppercase;
    border-right: 1px solid #2a2218;
}
.nav-main a:first-child,
.nav-main a.current-menu-item,
.nav-main a:hover { background: #c8922a; color: #3d2600; border-right-color: transparent; }

.nav-divider { width: 1px; height: 16px; background: #2e2618; margin: 0 5px; flex-shrink: 0; }

.nav-pages { display: flex; }
.nav-pages a {
    color: #4a4035; font-size: 10px;
    padding: 10px 12px; display: block;
    font-weight: 400; letter-spacing: .3px;
    text-transform: uppercase;
}
.nav-pages a:hover { color: #c8b898; background: #2a2218; }
.nav-pages a.current-menu-item { color: #c8922a; }

/* =========================================
   PAGE HERO (inner pages)
========================================= */
.page-hero {
    background: #1a1510;
    border-bottom: 1px solid #1e1a14;
    padding: 28px 0;
}
.page-hero-inner { display: flex; align-items: center; gap: 14px; }
.page-hero-icon {
    width: 50px; height: 50px;
    background: #c8922a; border-radius: 4px;
    display: flex; align-items: center; justify-content: center;
    color: #3d2600; font-size: 22px; flex-shrink: 0;
}
.page-hero-title { font-size: 24px; font-weight: 700; color: #ede8e0; margin-bottom: 5px; }
.breadcrumb { display: flex; align-items: center; gap: 6px; font-size: 11px; color: #4a4035; }
.breadcrumb a { color: #c8922a; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb-sep { color: #2e2618; font-size: 10px; }

/* =========================================
   HERO SECTION (homepage)
========================================= */
.hero-section { background: #141210; padding: 14px 0 0; }
.hero-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 12px; }

.hero-main { position: relative; border-radius: 4px; overflow: hidden; border: 1px solid #1e1a14; }
.hero-main .post-thumb { width: 100%; height: 340px; object-fit: cover; display: block; }
.hero-main .thumb-placeholder {
    width: 100%; height: 340px;
    background: #1a1510;
    display: flex; align-items: center; justify-content: center;
    color: #2a2218; font-size: 48px;
}
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(transparent 20%, rgba(10,8,5,0.96)); }

.hero-badge {
    position: absolute; top: 12px; left: 12px; z-index: 3;
    display: flex; align-items: center; gap: 6px;
    background: rgba(200,146,42,0.12);
    border: 1px solid #c8922a; border-radius: 2px;
    padding: 4px 10px;
}
.hero-badge .pulse {
    width: 6px; height: 6px;
    background: #c8922a; border-radius: 50%;
    animation: pulse 1.4s infinite;
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.2} }
.hero-badge span { font-size: 9px; color: #c8922a; font-weight: 600; letter-spacing: .6px; }

.hero-content { position: absolute; bottom: 0; left: 0; right: 0; z-index: 2; padding: 20px; }
.cat-label {
    background: #c8922a; color: #3d2600;
    font-size: 9px; font-weight: 600;
    padding: 2px 8px; border-radius: 2px;
    display: inline-block; margin-bottom: 8px;
    letter-spacing: .6px; text-transform: uppercase;
}
.hero-content .entry-title { font-size: 19px; font-weight: 700; line-height: 1.35; color: #ede8e0; margin-bottom: 8px; }
.hero-content .entry-title a { color: #ede8e0; }
.hero-content .entry-title a:hover { color: #e8c068; }

.post-meta { font-size: 10px; color: #5a4e3e; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.post-meta i { color: #c8922a; }
.meta-dot { width: 3px; height: 3px; border-radius: 50%; background: #c8922a; display: inline-block; }
.read-time {
    background: #1e1a14; color: #6a5a44;
    font-size: 10px; padding: 2px 7px; border-radius: 2px;
    display: inline-flex; align-items: center; gap: 3px;
    border: 1px solid #2a2218;
}

/* Hero Side */
.hero-side { border-radius: 4px; overflow: hidden; border: 1px solid #1e1a14; display: flex; flex-direction: column; }
.hero-side-header {
    background: #c8922a; padding: 8px 11px;
    color: #3d2600; font-size: 10px; font-weight: 600;
    text-transform: uppercase; letter-spacing: .5px;
    display: flex; align-items: center; gap: 5px;
}
.side-post { display: flex; gap: 9px; background: #1a1510; padding: 9px 10px; border-bottom: 1px solid #1e1a14; }
.side-post:last-child { border-bottom: none; }
.side-post .post-thumb-sm {
    width: 76px; min-width: 76px; height: 58px;
    object-fit: cover; border-radius: 2px;
    background: #221c14;
    display: flex; align-items: center; justify-content: center;
    color: #2e2618;
}
.side-post-body .cat-label { font-size: 9px; padding: 1px 6px; margin-bottom: 3px; }
.side-post-body .entry-title { font-size: 11px; font-weight: 500; line-height: 1.38; color: #c8b898; }
.side-post-body .entry-title a { color: #c8b898; }
.side-post-body .entry-title a:hover { color: #c8922a; }
.side-post-body .post-meta { margin-top: 3px; }

/* =========================================
   SECTION HEADERS
========================================= */
.section-header { display: flex; align-items: center; border-bottom: 2px solid #c8922a; margin-bottom: 13px; padding-bottom: 6px; }
.section-title {
    font-size: 12px; font-weight: 700; color: #ede8e0;
    text-transform: uppercase; letter-spacing: .7px;
    display: flex; align-items: center; gap: 7px;
}
.section-title::before { content: ''; width: 3px; height: 14px; background: #c8922a; border-radius: 1px; display: inline-block; }
.section-more { margin-left: auto; font-size: 10px; color: #c8922a; text-transform: uppercase; letter-spacing: .3px; }
.section-more:hover { text-decoration: underline; }

/* =========================================
   POST CARDS
========================================= */
.post-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }

.post-card { background: #1a1510; border-radius: 3px; overflow: hidden; border: 1px solid #1e1a14; transition: border-color .2s; }
.post-card:hover { border-color: #c8922a; }
.post-card .post-thumb { width: 100%; height: 145px; object-fit: cover; display: block; background: #221c14; }
.post-card .thumb-placeholder {
    width: 100%; height: 145px;
    background: #221c14;
    display: flex; align-items: center; justify-content: center;
    color: #2a2218; font-size: 30px;
}
.post-card-body { padding: 11px; }
.post-card-body .entry-title { font-size: 12px; font-weight: 600; line-height: 1.4; color: #c8b898; margin: 5px 0 7px; }
.post-card-body .entry-title a { color: #c8b898; }
.post-card-body .entry-title a:hover { color: #c8922a; }
.post-excerpt { font-size: 11px; color: #5a4e3e; line-height: 1.5; margin-bottom: 7px; }

/* =========================================
   WIDGETS / SIDEBAR
========================================= */
.widget { background: #1a1510; border: 1px solid #1e1a14; border-radius: 3px; margin-bottom: 12px; overflow: hidden; }
.widget-title {
    background: #c8922a; color: #3d2600;
    padding: 8px 13px; font-size: 10px; font-weight: 600;
    text-transform: uppercase; letter-spacing: .5px;
    display: flex; align-items: center; gap: 5px;
    margin: 0;
}
.widget-content { padding: 10px 12px; }

.popular-list { list-style: none; }
.popular-list li { display: flex; gap: 9px; align-items: flex-start; padding: 7px 0; border-bottom: 1px solid #1e1a14; }
.popular-list li:last-child { border-bottom: none; }
.popular-num { font-size: 18px; font-weight: 700; color: #c8922a; min-width: 20px; line-height: 1.1; }
.popular-list .entry-title { font-size: 11px; font-weight: 500; color: #a89070; line-height: 1.35; }
.popular-list .entry-title a { color: #a89070; }
.popular-list .entry-title a:hover { color: #c8922a; }
.popular-list .post-meta { font-size: 10px; color: #4a4035; margin-top: 2px; }

.artist-list { list-style: none; }
.artist-list li { border-bottom: 1px solid #1e1a14; }
.artist-list a { display: flex; justify-content: space-between; align-items: center; padding: 7px 0; font-size: 11px; color: #7a6a54; }
.artist-list a:hover { color: #c8922a; }
.artist-count { background: #221c14; color: #5a4a34; font-size: 9px; padding: 1px 6px; border-radius: 2px; border: 1px solid #2a2218; }

.newsletter-form input[type="email"] {
    width: 100%; background: #221c14;
    border: 1px solid #2a2218; border-radius: 3px;
    padding: 7px 10px; font-size: 11px; color: #c8b898;
    outline: none; margin-bottom: 7px; display: block;
}
.newsletter-form input[type="email"]:focus { border-color: #c8922a; }
.newsletter-form button {
    width: 100%; background: #c8922a; color: #3d2600;
    border: none; border-radius: 3px; padding: 8px;
    font-size: 11px; font-weight: 600; cursor: pointer;
    text-transform: uppercase; letter-spacing: .4px;
}
.newsletter-form button:hover { background: #e0a030; }

.page-nav-list { list-style: none; }
.page-nav-list li { border-bottom: 1px solid #1e1a14; }
.page-nav-list a { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; font-size: 12px; color: #7a6a54; font-weight: 500; }
.page-nav-list a:hover, .page-nav-list a.current { color: #c8922a; }

/* =========================================
   PAGE CONTENT (Privacy, About, Contact)
========================================= */
.page-content { background: #1a1510; border: 1px solid #1e1a14; border-radius: 4px; padding: 28px 30px; }

.page-content .last-updated {
    display: inline-flex; align-items: center; gap: 6px;
    background: #221c14; border: 1px solid #2a2218;
    border-radius: 3px; padding: 6px 12px;
    font-size: 11px; color: #5a4a34; margin-bottom: 20px;
}
.page-content .last-updated i { color: #c8922a; }

.page-content .highlight-box {
    background: #1e1810;
    border-left: 3px solid #c8922a;
    border-radius: 0 3px 3px 0;
    padding: 14px 16px; margin: 0 0 20px;
    font-size: 13px; color: #8a7a65; line-height: 1.78;
}

.page-content h2 {
    font-size: 16px; font-weight: 600; color: #ede8e0;
    margin: 26px 0 10px;
    padding-bottom: 8px; border-bottom: 1px solid #1e1a14;
    display: flex; align-items: center; gap: 8px;
}
.page-content h2:first-of-type { margin-top: 0; }
.page-content h2 .dot { width: 4px; height: 16px; background: #c8922a; border-radius: 1px; display: inline-block; }

.page-content p { font-size: 13px; color: #8a7a65; line-height: 1.82; margin-bottom: 13px; }

.page-content ul { margin: 0 0 14px; padding: 0; list-style: none; }
.page-content ul li {
    font-size: 13px; color: #8a7a65; line-height: 1.72;
    padding: 5px 0 5px 16px;
    border-bottom: 1px solid #161210;
    position: relative;
}
.page-content ul li::before {
    content: ''; position: absolute;
    left: 0; top: 13px;
    width: 5px; height: 5px;
    background: #c8922a; border-radius: 50%;
}
.page-content a { color: #c8922a; }
.page-content a:hover { text-decoration: underline; }

/* Contact sidebar items */
.contact-info-item { display: flex; align-items: flex-start; gap: 12px; padding: 12px 0; border-bottom: 1px solid #1e1a14; }
.contact-info-item:last-child { border-bottom: none; }
.contact-info-icon {
    width: 36px; height: 36px; flex-shrink: 0;
    background: #221c14; border: 1px solid #2a2218; border-radius: 3px;
    display: flex; align-items: center; justify-content: center;
    color: #c8922a; font-size: 15px;
}
.contact-info-label { font-size: 10px; color: #4a4035; text-transform: uppercase; letter-spacing: .4px; margin-bottom: 2px; }
.contact-info-value { font-size: 12px; color: #a89070; }

/* =========================================
   SINGLE POST
========================================= */
.single-content { background: #1a1510; border: 1px solid #1e1a14; border-radius: 4px; padding: 24px 28px; }
.single-thumb { width: 100%; max-height: 400px; object-fit: cover; border-radius: 3px; margin-bottom: 20px; border: 1px solid #1e1a14; }
.entry-content p { font-size: 14px; color: #8a7a65; line-height: 1.85; margin-bottom: 16px; }
.entry-content h2, .entry-content h3 { color: #ede8e0; margin: 22px 0 10px; }
.entry-content a { color: #c8922a; }
.entry-content blockquote {
    border-left: 3px solid #c8922a;
    background: #1e1810; padding: 14px 18px;
    margin: 18px 0; color: #a89070;
    font-style: italic; border-radius: 0 3px 3px 0;
}
.post-tags { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 20px; padding-top: 16px; border-top: 1px solid #1e1a14; }
.post-tag {
    background: #221c14; border: 1px solid #2a2218;
    color: #6a5a44; font-size: 11px; padding: 3px 10px; border-radius: 2px;
}
.post-tag:hover { background: #c8922a; color: #3d2600; border-color: #c8922a; }

/* Post navigation */
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 22px; }
.post-nav-item {
    background: #221c14; border: 1px solid #2a2218;
    border-radius: 3px; padding: 12px;
}
.post-nav-label { font-size: 10px; color: #4a4035; text-transform: uppercase; letter-spacing: .4px; margin-bottom: 5px; }
.post-nav-title { font-size: 12px; color: #a89070; line-height: 1.4; }
.post-nav-item:hover { border-color: #c8922a; }
.post-nav-item:hover .post-nav-title { color: #c8922a; }

/* =========================================
   PAGINATION
========================================= */
.pagination {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 5px;
    justify-content: center;
    align-items: center;
    margin-top: 18px;
    list-style: none;
    padding: 0;
}
ul.page-numbers {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 5px;
    justify-content: center;
    align-items: center;
    list-style: none;
    padding: 0;
    margin-top: 18px;
}
ul.page-numbers li { display: block; }
.pagination .page-numbers,
ul.page-numbers .page-numbers {
    background: #1a1510; border: 1px solid #2a2218;
    color: #6a5a44; padding: 5px 12px; border-radius: 3px;
    font-size: 11px; display: inline-block; line-height: 1.4;
}
.pagination .page-numbers.current,
.pagination .page-numbers:hover,
ul.page-numbers .page-numbers.current,
ul.page-numbers .page-numbers:hover {
    background: #c8922a; color: #3d2600; border-color: #c8922a;
}

/* =========================================
   SITE FOOTER — scrolls with page, NOT fixed
========================================= */
.site-footer {
    background: #1a1510;
    border-top: 3px solid #c8922a;
    padding: 20px 0 0;
    /* position: static — scrolls naturally */
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 22px; padding-bottom: 18px; }
.footer-widget-title {
    color: #ede8e0; font-size: 11px; font-weight: 600;
    text-transform: uppercase; letter-spacing: .6px;
    border-bottom: 1px solid #c8922a;
    padding-bottom: 6px; margin-bottom: 10px; display: block;
}
.footer-about p { font-size: 12px; color: #3a3025; line-height: 1.75; }
.footer-links { list-style: none; }
.footer-links li { padding: 4px 0; border-bottom: 1px solid #1e1a14; }
.footer-links a { font-size: 12px; color: #4a4035; }
.footer-links a:hover { color: #c8922a; }
.footer-contact-item { display: flex; align-items: center; gap: 7px; padding: 5px 0; border-bottom: 1px solid #1e1a14; font-size: 12px; color: #4a4035; }
.footer-contact-item i { color: #c8922a; font-size: 13px; }
.footer-bottom {
    background: #0c0a08; border-top: 1px solid #1e1a14;
    padding: 9px 0; text-align: center;
    font-size: 10px; color: #2e2618;
}

/* =========================================
   404 PAGE
========================================= */
.error-404-wrap { text-align: center; padding: 80px 0; }
.error-404-code { font-size: 96px; font-weight: 700; color: #1e1a14; line-height: 1; }
.error-404-title { font-size: 26px; color: #c8922a; font-weight: 700; margin: 10px 0 14px; }
.error-404-btn {
    display: inline-block;
    background: #c8922a; color: #3d2600;
    padding: 11px 26px; border-radius: 3px;
    font-size: 13px; font-weight: 600;
    text-transform: uppercase; letter-spacing: .4px;
    margin-top: 20px;
}
.error-404-btn:hover { background: #e0a030; color: #3d2600; }

/* =========================================
   RESPONSIVE
========================================= */
@media (max-width: 900px) {
    .site-layout { grid-template-columns: 1fr; }
    .hero-grid { grid-template-columns: 1fr; }
    .hero-side { display: none; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .post-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
    .logo-text { font-size: 18px; }
    .header-search { display: none; }
    .footer-grid { grid-template-columns: 1fr; }
    .site-nav .nav-main a { padding: 10px 10px; font-size: 10px; }
    .post-nav { grid-template-columns: 1fr; }
    .page-content { padding: 18px 16px; }
}
