/*
Theme Name: Diajem News
Theme URI: https://diajemblacknews.com
Author: Diajem Global Black News
Description: Custom dark-theme news magazine layout for Diajem Global Black News, replicating the Africa/Caribbean/Diaspora/Sports/AI & Technology/Culture site structure. Built to render existing WordPress posts and categories.
Version: 1.0.6
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: diajem-news
*/

/* ==========================================================================
   1. CSS Variables
   ========================================================================== */
:root {
	--diajem-red: #e0212b;
	--diajem-red-hover: #ff2d3a;
	--diajem-black: #0a0a0a;
	--diajem-navy: #0f1420;
	--diajem-navy-light: #161c2c;
	--diajem-card: #12161f;
	--diajem-border: #262b38;
	--diajem-text: #f4f4f4;
	--diajem-text-muted: #9aa0ac;
	--diajem-text-faint: #6b7280;
	--font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

body.diajem {
	background: var(--diajem-navy);
	color: var(--diajem-text);
	font-family: var(--font-body);
	margin: 0;
	line-height: 1.5;
}

a, a:link, a:visited, a:hover, a:active { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }

/* Explicit (non-inherited) link colors — belt-and-suspenders against any
   theme/plugin CSS that resets anchor color with higher specificity. */
.diajem-trending-item h4 a,
.diajem-trending-item h4,
.diajem-cat-sidelist h4 a,
.diajem-cat-sidelist h4,
.diajem-article-card h3 a,
.diajem-article-card h3,
.diajem-latest-strip h4 a,
.diajem-latest-strip h4,
.diajem-video-card h4 a,
.diajem-video-card h4,
.diajem-hero-card h1,
.diajem-hero-card h1 a,
.diajem-cat-feature h3,
.diajem-cat-feature h3 a,
.diajem-featured-card h2,
.diajem-featured-card h2 a,
.diajem-cat-block-head h2,
.diajem-logo,
.diajem-logo a {
	color: var(--diajem-text) !important;
	text-decoration: none !important;
}

/* ==========================================================================
   2. Utility Bar
   ========================================================================== */
.diajem-utility-bar {
	background: var(--diajem-red);
	color: #fff;
	font-size: 13px;
	padding: 6px 0;
}
.diajem-utility-bar .container { display: flex; justify-content: space-between; align-items: center; }
.diajem-utility-bar .utility-links a { margin-left: 16px; opacity: 0.92; }
.diajem-utility-bar .utility-links a:hover { opacity: 1; text-decoration: underline; }

/* ==========================================================================
   3. Main Nav
   ========================================================================== */
.diajem-main-nav {
	background: var(--diajem-black);
	position: sticky;
	top: 0;
	z-index: 500;
	border-bottom: 1px solid var(--diajem-border);
}
.diajem-main-nav .container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 72px;
}
.diajem-logo { font-weight: 800; font-size: 20px; letter-spacing: 0.5px; display: flex; align-items: center; }
.diajem-logo img,
.diajem-logo .custom-logo-link img,
.diajem-logo .custom-logo { height: 44px; width: auto; max-width: 220px; object-fit: contain; display: block; }
.diajem-logo .custom-logo-link { display: flex; align-items: center; }
.diajem-logo-footer img,
.diajem-logo-footer .custom-logo-link img,
.diajem-logo-footer .custom-logo { height: 40px; width: auto; max-width: 200px; }

.diajem-nav-links {
	display: flex;
	align-items: center;
	gap: 28px;
	list-style: none;
	margin: 0;
	padding: 0;
}
.diajem-nav-links a {
	font-size: 15px;
	font-weight: 600;
	color: var(--diajem-text);
	white-space: nowrap;
}
.diajem-nav-links a:hover { color: var(--diajem-red); }
.diajem-nav-links .nav-tv a,
.diajem-nav-links .nav-podcast a {
	color: var(--diajem-red);
	display: flex;
	align-items: center;
	gap: 6px;
}
.diajem-nav-links .nav-podcast a { color: var(--diajem-text); }
.diajem-nav-links .icon-inline { width: 14px; height: 14px; }

.diajem-nav-search { background: none; border: none; color: var(--diajem-text); cursor: pointer; padding: 8px; }
.diajem-nav-search:hover { color: var(--diajem-red); }
.diajem-nav-toggle { display: none; background: none; border: none; color: #fff; font-size: 24px; cursor: pointer; }

@media (max-width: 960px) {
	.diajem-nav-links { display: none; }
	.diajem-nav-toggle { display: block; }
	.diajem-nav-links.is-open {
		display: flex; flex-direction: column; align-items: flex-start; gap: 0;
		position: absolute; top: 72px; left: 0; right: 0; background: var(--diajem-black);
		padding: 8px 24px 20px; border-bottom: 1px solid var(--diajem-border);
	}
	.diajem-nav-links.is-open li { width: 100%; padding: 10px 0; border-bottom: 1px solid var(--diajem-border); }
}

/* ==========================================================================
   4. Hero / Homepage Trending
   ========================================================================== */
.diajem-hero-section { padding: 32px 0; }
.diajem-hero-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; }
@media (max-width: 900px) { .diajem-hero-grid { grid-template-columns: 1fr; } }

.diajem-hero-card {
	position: relative; border-radius: 6px; overflow: hidden; min-height: 460px;
	display: flex; align-items: flex-end; background-size: cover; background-position: center;
}
.diajem-hero-card::before {
	content: ""; position: absolute; inset: 0;
	background: linear-gradient(to top, rgba(0,0,0,0.92) 5%, rgba(0,0,0,0.15) 60%, transparent 100%);
}
.diajem-hero-card .hero-content { position: relative; padding: 28px; z-index: 2; }
.diajem-badge {
	display: inline-block; background: var(--diajem-red); color: #fff; font-size: 12px;
	font-weight: 700; letter-spacing: 0.5px; padding: 5px 12px; border-radius: 3px; text-transform: uppercase; margin-bottom: 14px;
}
.diajem-hero-card h1 { font-size: 34px; line-height: 1.2; margin: 0 0 12px; }
.diajem-hero-card .excerpt { color: #d8d8d8; max-width: 640px; margin: 0 0 12px; }
.diajem-byline { color: var(--diajem-text-muted); font-size: 13px; display: flex; gap: 14px; align-items: center; }

.diajem-trending-list { display: flex; flex-direction: column; gap: 14px; }
.diajem-trending-item {
	display: flex; gap: 12px; background: var(--diajem-navy-light); border-radius: 6px; padding: 10px; align-items: center;
}
.diajem-trending-item img { width: 64px; height: 64px; object-fit: cover; border-radius: 4px; flex-shrink: 0; }
.diajem-trending-item .cat { color: var(--diajem-red); font-size: 11px; font-weight: 700; text-transform: uppercase; }
.diajem-trending-item h4 { font-size: 14px; margin: 4px 0; line-height: 1.3; }
.diajem-trending-item .time { color: var(--diajem-text-faint); font-size: 12px; }

/* Latest strip (4-up) */
.diajem-latest-strip {
	display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 20px 0 40px;
}
@media (max-width: 900px) { .diajem-latest-strip { grid-template-columns: repeat(2, 1fr); } }
.diajem-latest-strip .card img { width: 100%; height: 150px; object-fit: cover; border-radius: 6px; margin-bottom: 10px; }
.diajem-latest-strip .cat { color: var(--diajem-red); font-size: 12px; font-weight: 700; text-transform: uppercase; }
.diajem-latest-strip h4 { font-size: 15px; margin: 6px 0; line-height: 1.3; }

/* ==========================================================================
   5. Category Home Block (repeated per-category on homepage & archive)
   ========================================================================== */
.diajem-cat-block { padding: 40px 0; border-top: 1px solid var(--diajem-border); }
.diajem-cat-block-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.diajem-cat-block-head h2 { font-size: 26px; margin: 0; border-left: 4px solid var(--diajem-red); padding-left: 12px; }
.diajem-cat-block-head a.view-all { color: var(--diajem-red); font-weight: 700; font-size: 14px; }

.diajem-cat-block-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 24px; }
@media (max-width: 900px) { .diajem-cat-block-grid { grid-template-columns: 1fr; } }
.diajem-cat-feature { position: relative; border-radius: 6px; overflow: hidden; min-height: 340px; background-size: cover; background-position: center; display: flex; align-items: flex-end; }
.diajem-cat-feature::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.9), transparent 65%); }
.diajem-cat-feature .content { position: relative; padding: 22px; z-index: 2; }
.diajem-cat-feature h3 { font-size: 24px; margin: 0 0 8px; }
.diajem-cat-feature .excerpt { color: #d8d8d8; font-size: 14px; margin: 0 0 8px; }

.diajem-cat-sidelist { display: flex; flex-direction: column; gap: 16px; }
.diajem-cat-sidelist .item { display: flex; gap: 12px; }
.diajem-cat-sidelist img { width: 70px; height: 70px; object-fit: cover; border-radius: 4px; }
.diajem-cat-sidelist h4 { font-size: 14px; margin: 0 0 4px; line-height: 1.3; }
.diajem-cat-sidelist .time { color: var(--diajem-text-faint); font-size: 12px; }

/* ==========================================================================
   6. Category Archive Page
   ========================================================================== */
.diajem-cat-hero {
	position: relative; min-height: 300px; background-size: cover; background-position: center;
	display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
}
.diajem-cat-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.85), rgba(0,0,0,0.35)); }
.diajem-cat-hero .content { position: relative; z-index: 2; }
.diajem-cat-hero h1 { font-size: 46px; margin: 0 0 8px; color: #fff; }
.diajem-cat-hero p { color: #d8d8d8; font-size: 16px; margin: 0; }

.diajem-filter-pills {
	display: flex; gap: 10px; overflow-x: auto; padding: 18px 0; background: var(--diajem-black);
	white-space: nowrap; -ms-overflow-style: none; scrollbar-width: none;
}
.diajem-filter-pills::-webkit-scrollbar { display: none; }
.diajem-filter-pills .container { display: flex; gap: 10px; }
.diajem-pill {
	display: inline-block; padding: 9px 18px; border-radius: 20px; background: var(--diajem-navy-light);
	color: var(--diajem-text); font-size: 14px; font-weight: 600; flex-shrink: 0;
}
.diajem-pill.is-active, .diajem-pill:hover { background: var(--diajem-red); color: #fff; }

.diajem-sponsored-banner {
	display: flex; align-items: center; justify-content: space-between; gap: 16px;
	background: linear-gradient(90deg, #6b3410, #a5591c); border-radius: 6px; padding: 18px 24px; margin: 20px 0;
}
.diajem-sponsored-banner .left { display: flex; align-items: center; gap: 16px; }
.diajem-sponsored-banner .icon { width: 44px; height: 44px; background: rgba(255,255,255,0.15); border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.diajem-sponsored-banner .label { color: #ffd28a; font-size: 11px; font-weight: 700; letter-spacing: 0.6px; text-transform: uppercase; }
.diajem-sponsored-banner h4 { margin: 2px 0 2px; font-size: 18px; color: #fff; }
.diajem-sponsored-banner .desc { color: #f0d9c0; font-size: 13px; margin: 0; }
.diajem-sponsored-banner .cta {
	background: var(--diajem-red); color: #fff; padding: 10px 18px; border-radius: 6px; font-weight: 700; font-size: 14px;
	display: flex; align-items: center; gap: 8px; flex-shrink: 0;
}
.diajem-sponsored-banner .cta:hover { background: var(--diajem-red-hover); }
@media (max-width: 700px) { .diajem-sponsored-banner { flex-direction: column; align-items: flex-start; } }

.diajem-featured-card {
	position: relative; border-radius: 6px; overflow: hidden; min-height: 400px; margin: 24px 0;
	background-size: cover; background-position: center; display: flex; align-items: flex-end;
}
.diajem-featured-card::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.92), transparent 60%); }
.diajem-featured-card .content { position: relative; z-index: 2; padding: 26px; }
.diajem-featured-card h2 { font-size: 30px; margin: 8px 0 10px; }
.diajem-featured-card .excerpt { color: #d8d8d8; max-width: 700px; margin: 0 0 12px; }

.diajem-article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding: 20px 0 50px; }
@media (max-width: 960px) { .diajem-article-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .diajem-article-grid { grid-template-columns: 1fr; } }
.diajem-article-card img { width: 100%; height: 190px; object-fit: cover; border-radius: 6px; margin-bottom: 12px; }
.diajem-article-card .cat { color: var(--diajem-red); font-size: 12px; font-weight: 700; text-transform: uppercase; }
.diajem-article-card h3 { font-size: 17px; margin: 8px 0; line-height: 1.35; }
.diajem-article-card .excerpt { color: var(--diajem-text-muted); font-size: 14px; margin: 0 0 10px; }

.diajem-pagination { display: flex; justify-content: center; gap: 8px; padding-bottom: 50px; }
.diajem-pagination a, .diajem-pagination span {
	padding: 8px 14px; border-radius: 4px; background: var(--diajem-navy-light); color: var(--diajem-text); font-size: 14px;
}
.diajem-pagination .current { background: var(--diajem-red); color: #fff; }

/* ==========================================================================
   7. Diajem TV & Podcast page templates
   ========================================================================== */
.diajem-tv-hero, .diajem-podcast-hero {
	text-align: center; padding: 70px 24px; color: #fff;
}
.diajem-tv-hero { background: linear-gradient(120deg, var(--diajem-red), #ff7a3d); }
.diajem-podcast-hero { background: linear-gradient(120deg, #4c1d95, #7c3aed); }
.diajem-tv-hero .play-icon, .diajem-podcast-hero .mic-icon {
	width: 74px; height: 74px; border-radius: 50%; background: rgba(255,255,255,0.2);
	display: flex; align-items: center; justify-content: center; margin: 0 auto 18px;
}
.diajem-tv-hero h1, .diajem-podcast-hero h1 { font-size: 42px; margin: 0 0 12px; }
.diajem-tv-hero p, .diajem-podcast-hero p { max-width: 620px; margin: 0 auto; opacity: 0.92; }

.diajem-handle-pills, .diajem-platform-buttons { display: flex; gap: 14px; justify-content: center; margin-top: 26px; flex-wrap: wrap; }
.diajem-handle-pills a {
	background: rgba(255,255,255,0.15); color: #fff; padding: 10px 22px; border-radius: 24px; font-weight: 700;
}
.diajem-handle-pills a:first-child { background: #fff; color: var(--diajem-red); }
.diajem-platform-buttons a { padding: 12px 26px; border-radius: 8px; font-weight: 700; color: #fff; }
.diajem-platform-buttons .spotify { background: #1DB954; }
.diajem-platform-buttons .apple { background: #A855F7; }
.diajem-platform-buttons .google { background: #4285F4; }

.diajem-tv-tabs { display: flex; align-items: center; justify-content: space-between; background: var(--diajem-black); padding: 16px 0; }
.diajem-tv-tabs .tabs { display: flex; gap: 10px; }
.diajem-tv-tabs .tab { padding: 9px 18px; border-radius: 20px; background: var(--diajem-navy-light); font-weight: 600; font-size: 14px; cursor: pointer; }
.diajem-tv-tabs .tab.is-active { background: var(--diajem-red); color: #fff; }
.diajem-tv-tabs .view-toggle { display: flex; gap: 6px; }
.diajem-tv-tabs .view-toggle button { background: var(--diajem-navy-light); border: none; color: #fff; padding: 8px 10px; border-radius: 6px; cursor: pointer; }
.diajem-tv-tabs .view-toggle button.is-active { background: var(--diajem-red); }

.diajem-video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding: 26px 0 50px; }
@media (max-width: 900px) { .diajem-video-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .diajem-video-grid { grid-template-columns: 1fr; } }
.diajem-video-card { position: relative; }
.diajem-video-card .thumb { position: relative; border-radius: 6px; overflow: hidden; }
.diajem-video-card img { width: 100%; height: 180px; object-fit: cover; background: #333; }
.diajem-video-card .duration { position: absolute; bottom: 8px; right: 8px; background: rgba(0,0,0,0.8); color: #fff; font-size: 12px; padding: 2px 6px; border-radius: 3px; }
.diajem-video-card h4 { font-size: 15px; margin: 10px 0 4px; }
.diajem-video-card .meta { color: var(--diajem-text-faint); font-size: 12px; }

/* ==========================================================================
   8. Footer
   ========================================================================== */
.diajem-footer { background: #0c0f18; margin-top: 40px; }
.diajem-footer-columns { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding: 50px 0 30px; }
@media (max-width: 800px) { .diajem-footer-columns { grid-template-columns: 1fr 1fr; } }
.diajem-footer-columns h4 { font-size: 15px; margin: 0 0 16px; }
.diajem-footer-columns ul { list-style: none; margin: 0; padding: 0; }
.diajem-footer-columns li { margin-bottom: 10px; }
.diajem-footer-columns a { color: var(--diajem-text-muted); font-size: 14px; }
.diajem-footer-columns a:hover { color: var(--diajem-red); }
.diajem-footer-about p { color: var(--diajem-text-muted); font-size: 14px; }
.diajem-social-icons { display: flex; gap: 12px; margin-top: 14px; }
.diajem-social-icons a { width: 36px; height: 36px; border-radius: 50%; background: var(--diajem-navy-light); display: flex; align-items: center; justify-content: center; }
.diajem-social-icons a:hover { background: var(--diajem-red); }

.diajem-newsletter-bar { background: var(--diajem-navy-light); padding: 26px 0; }
.diajem-newsletter-bar .container { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.diajem-newsletter-bar h4 { margin: 0 0 4px; font-size: 18px; }
.diajem-newsletter-bar p { margin: 0; color: var(--diajem-text-muted); font-size: 14px; }
.diajem-newsletter-form { display: flex; gap: 10px; }
.diajem-newsletter-form input { padding: 12px 16px; border-radius: 6px; border: 1px solid var(--diajem-border); background: var(--diajem-navy); color: #fff; min-width: 240px; }
.diajem-newsletter-form button { background: var(--diajem-red); color: #fff; border: none; padding: 12px 22px; border-radius: 6px; font-weight: 700; cursor: pointer; }

.diajem-footer-bottom { border-top: 1px solid var(--diajem-border); padding: 20px 0; display: flex; justify-content: space-between; color: var(--diajem-text-faint); font-size: 13px; flex-wrap: wrap; gap: 8px; }

/* ==========================================================================
   9. Single Article
   ========================================================================== */
.diajem-single { max-width: 820px; margin: 0 auto; padding: 40px 24px 60px; }
.diajem-single .cat { color: var(--diajem-red); font-weight: 700; font-size: 13px; text-transform: uppercase; }
.diajem-single h1 { font-size: 36px; line-height: 1.25; margin: 12px 0; }
.diajem-single .diajem-byline { margin-bottom: 20px; }
.diajem-single .featured-image img { width: 100%; border-radius: 8px; margin-bottom: 26px; }
.diajem-single .entry-content { font-size: 17px; line-height: 1.8; color: #e4e4e4; }
.diajem-single .entry-content p { margin: 0 0 22px; }
.diajem-single .entry-content img { border-radius: 6px; margin: 20px 0; }

/* ==========================================================================
   10. Search
   ========================================================================== */
.diajem-search-overlay {
	position: fixed; inset: 0; background: rgba(0,0,0,0.9); z-index: 999; display: none;
	align-items: flex-start; justify-content: center; padding-top: 120px;
}
.diajem-search-overlay.is-open { display: flex; }
.diajem-search-overlay form { width: 100%; max-width: 600px; display: flex; gap: 10px; padding: 0 20px; }
.diajem-search-overlay input { flex: 1; padding: 16px; font-size: 18px; border-radius: 6px; border: none; }
.diajem-search-overlay button { background: var(--diajem-red); border: none; color: #fff; padding: 0 20px; border-radius: 6px; cursor: pointer; }
.diajem-search-close { position: absolute; top: 30px; right: 30px; color: #fff; font-size: 30px; background: none; border: none; cursor: pointer; }
