/* =============================================================
   MoCoPress — public.css
   ============================================================= */

/* ---- RESET / BASE ---- */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Open Sans', sans-serif; color: var(--text); background: #fff; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--accent); }
img { max-width: 100%; height: auto; display: block; }

/* ---- BREAKING TICKER ---- */
.breaking-bar {
    background: var(--accent);
    color: #fff;
    display: flex;
    align-items: center;
    overflow: hidden;
    height: 36px;
    font-size: .82em;
    font-weight: 600;
}
.breaking-label {
    background: rgba(0,0,0,.25);
    padding: 0 14px;
    height: 100%;
    display: flex;
    align-items: center;
    white-space: nowrap;
    letter-spacing: .5px;
    flex-shrink: 0;
}
.ticker-wrap { flex:1; overflow:hidden; position:relative; height:100%; }
.ticker-tape {
    display: flex;
    align-items: center;
    height: 100%;
    white-space: nowrap;
    animation: ticker 28s linear infinite;
}
.ticker-tape:hover { animation-play-state: paused; }
.ticker-item { padding: 0 40px; }
.ticker-item a { color: #fff; }
.ticker-item a:hover { text-decoration: underline; }
@keyframes ticker {
    0%   { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* ---- TOP UTILITY BAR ---- */
.top-utility { background: var(--footer); color: #aaa; font-size: .78em; padding: 5px 0; }
.top-utility .inner {
    max-width: 1200px; margin: 0 auto; padding: 0 16px;
    display: flex; justify-content: space-between; align-items: center;
}
.top-utility a { color: #aaa; margin-left: 10px; }
.top-utility a:hover { color: #fff; }
.social-icons a { font-size: 1em; }

/* ---- MASTHEAD ---- */
.masthead { background: #fff; border-bottom: 3px solid var(--primary); padding: 14px 0; }
.masthead .inner {
    max-width: 1200px; margin: 0 auto; padding: 0 16px;
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.masthead .brand a { display:flex; align-items:center; gap:12px; color:var(--primary); }
.masthead .brand img { max-height: 56px; }
.masthead .brand .name-wrap .name {
    font-family: 'Merriweather', serif;
    font-size: 1.9em; font-weight: 700; color: var(--primary); line-height: 1;
}
.masthead .brand .name-wrap .tagline { font-size:.75em; color:var(--muted); letter-spacing:.5px; margin-top:3px; }
.masthead .search-wrap { display:flex; }
.masthead .search-wrap input {
    border: 2px solid var(--border); border-right: none;
    padding: 8px 14px; border-radius: 4px 0 0 4px;
    font-size: .88em; outline: none; width: 220px;
}
.masthead .search-wrap input:focus { border-color: var(--primary); }
.masthead .search-wrap button {
    background: var(--primary); color: #fff; border: none;
    padding: 8px 14px; border-radius: 0 4px 4px 0; cursor: pointer; font-size: .9em;
}
.masthead .search-wrap button:hover { opacity: .85; }

/* ---- MAIN NAV ---- */
.main-nav { background: var(--primary); position: sticky; top: 0; z-index: 500; box-shadow: 0 2px 8px rgba(0,0,0,.15); }
.main-nav .inner { max-width:1200px; margin:0 auto; padding:0 16px; display:flex; align-items:stretch; }
.main-nav a {
    display: flex; align-items: center;
    color: rgba(255,255,255,.85); padding: 12px 15px;
    font-size: .84em; font-weight: 600; white-space: nowrap; letter-spacing: .3px;
    border-bottom: 3px solid transparent; transition: all .15s;
}
.main-nav a:hover,
.main-nav a.active { color:#fff; background:rgba(255,255,255,.1); border-bottom-color:#fff; }
.main-nav a.home-link { background: rgba(0,0,0,.15); }
.main-nav .nav-right { margin-left: auto; }
.main-nav .nav-right a { background:var(--accent); color:#fff; margin-left:4px; border-bottom:none; }
.main-nav .nav-right a:hover { opacity:.9; background:var(--accent); }
.nav-toggle { display:none; color:#fff; background:none; border:none; font-size:1.4em; padding:12px 16px; cursor:pointer; }

/* ---- PAGE LAYOUT ---- */
.page-wrap  { max-width:1200px; margin:0 auto; padding:24px 16px 0; }
.layout     { display:flex; gap:28px; align-items:flex-start; }
.content-main { flex:1; min-width:0; }

/* ---- HERO ---- */
.hero { display:grid; grid-template-columns:2fr 1fr; gap:2px; margin-bottom:28px; border-radius:8px; overflow:hidden; background:#111; }
.hero-main { position:relative; min-height:380px; }
.hero-main img { width:100%; height:380px; object-fit:cover; display:block; opacity:.85; transition:opacity .3s; }
.hero-main:hover img { opacity:.95; }
.hero-overlay {
    position:absolute; bottom:0; left:0; right:0;
    background:linear-gradient(transparent,rgba(0,0,0,.88));
    padding:60px 20px 20px; color:#fff;
}
.hero-overlay .cat-tag { background:var(--accent); color:#fff; font-size:.72em; padding:3px 10px; border-radius:3px; text-transform:uppercase; letter-spacing:.5px; display:inline-block; margin-bottom:8px; }
.hero-overlay h2 { font-family:'Merriweather',serif; font-size:1.45em; line-height:1.3; margin-bottom:8px; }
.hero-overlay h2 a { color:#fff; }
.hero-overlay h2 a:hover { color:#f0c040; }
.hero-overlay .meta { font-size:.78em; color:rgba(255,255,255,.7); }
.hero-side { display:flex; flex-direction:column; gap:2px; }
.hero-side-item { position:relative; flex:1; overflow:hidden; min-height:120px; }
.hero-side-item img { width:100%; height:100%; object-fit:cover; display:block; opacity:.8; transition:opacity .2s; }
.hero-side-item:hover img { opacity:.95; }
.hero-side-overlay {
    position:absolute; bottom:0; left:0; right:0;
    background:linear-gradient(transparent,rgba(0,0,0,.8));
    padding:30px 12px 10px; color:#fff;
}
.hero-side-overlay .cat-tag { background:var(--primary); color:#fff; font-size:.65em; padding:2px 7px; border-radius:3px; text-transform:uppercase; display:inline-block; margin-bottom:4px; }
.hero-side-overlay h3 { font-size:.85em; line-height:1.3; }
.hero-side-overlay h3 a { color:#fff; }
.hero-side-overlay h3 a:hover { color:#f0c040; }
.hero-no-img { background:var(--primary); }
.hero-no-img .hero-overlay { background:none; position:static; padding:40px 24px; }
.hero-no-img .hero-overlay h2 { font-size:1.6em; }

/* ---- SECTION HEADERS ---- */
.section-header { display:flex; align-items:center; justify-content:space-between; border-bottom:3px solid var(--primary); padding-bottom:8px; margin-bottom:18px; }
.section-header h3 { font-family:'Merriweather',serif; font-size:1.05em; color:var(--primary); text-transform:uppercase; letter-spacing:.5px; }
.section-header a { font-size:.8em; color:var(--muted); }
.section-header a:hover { color:var(--accent); }

/* ---- ARTICLE GRID ---- */
.article-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:20px; margin-bottom:32px; }
.article-card { border-bottom:1px solid var(--border); padding-bottom:16px; }
.article-card .thumb { border-radius:4px; overflow:hidden; margin-bottom:10px; background:#eee; aspect-ratio:16/9; }
.article-card .thumb img { width:100%; height:100%; object-fit:cover; display:block; transition:transform .3s; }
.article-card .thumb:hover img { transform:scale(1.04); }
.article-card .thumb-placeholder { width:100%; height:100%; display:flex; align-items:center; justify-content:center; background:#f0f0f0; color:#ccc; font-size:2em; }
.article-card .cat-tag { display:inline-block; color:var(--accent); font-size:.72em; font-weight:700; text-transform:uppercase; letter-spacing:.5px; margin-bottom:5px; }
.article-card h4 { font-family:'Merriweather',serif; font-size:.92em; line-height:1.4; margin-bottom:6px; color:#222; }
.article-card h4 a { color:#222; }
.article-card h4 a:hover { color:var(--accent); }
.article-card .summary { font-size:.8em; color:var(--muted); line-height:1.5; margin-bottom:6px; }
.article-card .meta { font-size:.74em; color:#aaa; }
.breaking-tag { background:var(--accent); color:#fff; font-size:.68em; padding:2px 7px; border-radius:3px; text-transform:uppercase; margin-right:5px; }

/* ---- CATEGORY SPOTLIGHT ---- */
.cat-spotlight { margin-bottom:32px; }
.cat-grid { display:grid; grid-template-columns:2fr 1fr; gap:18px; }
.cat-lead .thumb { border-radius:5px; overflow:hidden; margin-bottom:10px; aspect-ratio:16/9; background:#eee; }
.cat-lead .thumb img { width:100%; height:100%; object-fit:cover; display:block; transition:transform .3s; }
.cat-lead .thumb:hover img { transform:scale(1.03); }
.cat-lead h3 { font-family:'Merriweather',serif; font-size:1.05em; line-height:1.35; margin-bottom:6px; }
.cat-lead h3 a { color:#222; }
.cat-lead h3 a:hover { color:var(--accent); }
.cat-lead .summary { font-size:.82em; color:var(--muted); line-height:1.5; }
.cat-sub-list { display:flex; flex-direction:column; gap:12px; }
.cat-sub-item { display:flex; gap:10px; align-items:flex-start; padding-bottom:12px; border-bottom:1px solid var(--border); }
.cat-sub-item:last-child { border-bottom:none; }
.cat-sub-item .thumb-sm { width:72px; height:54px; border-radius:3px; overflow:hidden; flex-shrink:0; background:#eee; }
.cat-sub-item .thumb-sm img { width:100%; height:100%; object-fit:cover; display:block; }
.cat-sub-item h5 { font-size:.82em; line-height:1.35; color:#333; font-weight:600; }
.cat-sub-item h5 a { color:#333; }
.cat-sub-item h5 a:hover { color:var(--accent); }
.cat-sub-item .meta { font-size:.72em; color:#aaa; margin-top:3px; }

/* ---- HEADER AD ---- */
.header-ad { text-align:center; margin:16px 0; }
.header-ad img { max-width:100%; border-radius:4px; display:inline-block; }
.ad-label-top { font-size:.7em; color:#ccc; text-align:center; margin-bottom:3px; }

/* ---- SIDEBAR ---- */
.sidebar { width:300px; flex-shrink:0; }
.sidebar-widget { background:#fff; border:1px solid var(--border); border-radius:6px; overflow:hidden; margin-bottom:22px; }
.widget-title { background:var(--primary); color:#fff; padding:10px 14px; font-size:.83em; font-weight:700; text-transform:uppercase; letter-spacing:1px; display:flex; align-items:center; gap:8px; }
.widget-body { padding:12px 14px; }
.weather-widget { text-align:center; padding:20px 14px; }
.weather-widget .temp { font-size:3em; font-weight:700; color:var(--primary); line-height:1; }
.weather-widget .desc { color:var(--muted); font-size:.88em; margin:4px 0 10px; }
.weather-widget .location { font-size:.8em; color:var(--muted); }
.weather-widget .details { display:flex; justify-content:center; gap:16px; margin-top:10px; font-size:.8em; color:var(--muted); }
.event-item { padding:9px 0; border-bottom:1px solid #f2f2f2; display:flex; gap:10px; align-items:flex-start; }
.event-item:last-child { border-bottom:none; }
.event-date-box { background:var(--primary); color:#fff; border-radius:4px; text-align:center; padding:4px 8px; min-width:40px; flex-shrink:0; }
.event-date-box .mo { font-size:.65em; text-transform:uppercase; letter-spacing:.5px; line-height:1.2; }
.event-date-box .dy { font-size:1.2em; font-weight:700; line-height:1; }
.event-info .title { font-size:.86em; font-weight:600; color:#333; line-height:1.3; }
.event-info .title a { color:#333; }
.event-info .title a:hover { color:var(--accent); }
.event-info .meta { font-size:.76em; color:var(--muted); margin-top:3px; }
.pop-item { display:flex; gap:10px; padding:9px 0; border-bottom:1px solid #f2f2f2; align-items:flex-start; }
.pop-item:last-child { border-bottom:none; }
.pop-item .num { font-size:1.3em; font-weight:700; color:#ddd; width:24px; flex-shrink:0; line-height:1.2; }
.pop-item .info .title { font-size:.84em; font-weight:600; color:#333; line-height:1.35; }
.pop-item .info .title a { color:#333; }
.pop-item .info .title a:hover { color:var(--accent); }
.pop-item .info .cat { font-size:.74em; color:var(--accent); text-transform:uppercase; letter-spacing:.3px; margin-bottom:2px; }
.classified-item { padding:9px 0; border-bottom:1px solid #f2f2f2; }
.classified-item:last-child { border-bottom:none; }
.classified-item .title { font-size:.85em; font-weight:600; color:#333; }
.classified-item .title a { color:#333; }
.classified-item .title a:hover { color:var(--accent); }
.classified-item .price { color:#27ae60; font-size:.82em; font-weight:700; }
.classified-item .cat-badge { display:inline-block; background:#eef2f7; color:#555; font-size:.72em; padding:1px 7px; border-radius:10px; margin-right:4px; }
.ad-widget { text-align:center; }
.ad-widget img { width:100%; border-radius:4px; }
.ad-widget a:hover img { opacity:.92; }
.ad-label { font-size:.7em; color:#ccc; text-align:right; padding:4px 8px 0; }

/* ---- FOOTER ---- */
footer { background:var(--footer); color:#b0bec5; margin-top:48px; font-size:.88em; }
.footer-top {
    max-width:1200px; margin:0 auto; padding:40px 16px 28px;
    display:grid; grid-template-columns:2fr 1fr 1fr 1fr; gap:32px;
}
.footer-brand .name { font-family:'Merriweather',serif; font-size:1.4em; color:#fff; font-weight:700; margin-bottom:8px; }
.footer-brand p { line-height:1.65; color:#90a4ae; margin-bottom:14px; font-size:.93em; }
.footer-social a {
    display:inline-flex; align-items:center; justify-content:center;
    width:34px; height:34px; background:rgba(255,255,255,.1);
    border-radius:50%; color:#ccc; margin-right:6px; transition:all .2s;
}
.footer-social a:hover { background:var(--accent); color:#fff; }
.footer-col h4 { color:#fff; font-size:.92em; text-transform:uppercase; letter-spacing:1px; margin-bottom:14px; padding-bottom:8px; border-bottom:2px solid rgba(255,255,255,.1); }
.footer-col ul { list-style:none; }
.footer-col ul li { margin-bottom:8px; }
.footer-col ul li a { color:#90a4ae; transition:color .15s; }
.footer-col ul li a:hover { color:#fff; }
.footer-col ul li a i { width:16px; }
.footer-contact li { display:flex; align-items:flex-start; gap:8px; margin-bottom:10px; color:#90a4ae; }
.footer-contact li i { margin-top:2px; color:var(--accent); }
.footer-bottom { background:rgba(0,0,0,.2); text-align:center; padding:14px 16px; font-size:.82em; color:#607d8b; }
.footer-bottom a { color:#607d8b; }
.footer-bottom a:hover { color:#fff; }
.newsletter-form { display:flex; margin-top:10px; }
.newsletter-form input { flex:1; border:1px solid rgba(255,255,255,.15); background:rgba(255,255,255,.07); color:#fff; padding:8px 12px; border-radius:4px 0 0 4px; font-size:.88em; outline:none; }
.newsletter-form input::placeholder { color:#78909c; }
.newsletter-form input:focus { border-color:var(--accent); }
.newsletter-form button { background:var(--accent); color:#fff; border:none; padding:8px 14px; border-radius:0 4px 4px 0; cursor:pointer; font-size:.85em; white-space:nowrap; }
.newsletter-form button:hover { opacity:.85; }

/* ---- RESPONSIVE ---- */
@media (max-width:960px) {
    .layout { flex-direction:column; }
    .sidebar { width:100%; }
    .hero { grid-template-columns:1fr; }
    .hero-side { flex-direction:row; }
    .article-grid { grid-template-columns:repeat(2,1fr); }
    .cat-grid { grid-template-columns:1fr; }
    .footer-top { grid-template-columns:1fr 1fr; }
    .masthead .search-wrap { display:none; }
    .nav-toggle { display:block; }
    .nav-links { display:none; width:100%; flex-direction:column; }
    .nav-links.open { display:flex; }
    .main-nav .inner { flex-wrap:wrap; }
    .main-nav a { padding:11px 16px; border-bottom:1px solid rgba(255,255,255,.1); }
}
@media (max-width:600px) {
    .article-grid { grid-template-columns:1fr; }
    .hero-side { flex-direction:column; }
    .footer-top { grid-template-columns:1fr; }
}
