/*
Theme Name: Roboticulized News
Text Domain: roboticulized-news
Description: Classic news-magazine theme for Roboticulized, AI industry news.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
WPVibe: yes
*/

/* ---------- Tokens (modelled on the original Newspaper-based Roboticulized) ---------- */
:root {
	--rb-ink: #111111;
	--rb-text: #222222;
	--rb-muted: #767676;
	--rb-line: #ededed;
	--rb-soft: #f7f7f7;
	--rb-night: #121020;
	--rb-night-2: #221a3a;
	--rb-accent: #4db2ec;
	--rb-red: #e82222;
	--rb-author: #005689;
	--rb-white: #ffffff;
	--rb-head: 'Roboto', 'Helvetica Neue', Arial, sans-serif;
	--rb-meta: 'Open Sans', 'Helvetica Neue', Arial, sans-serif;
	--rb-body: Verdana, Geneva, sans-serif;
	--rb-wrap: 1068px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--rb-white);
	color: var(--rb-text);
	font-family: var(--rb-body);
	font-size: 15px;
	line-height: 1.74;
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--rb-accent); text-decoration: none; }
a:hover { color: var(--rb-ink); }
.rb-wrap { max-width: var(--rb-wrap); margin: 0 auto; padding: 0 24px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); }

/* ---------- Top bar ---------- */
.rb-topbar { background: var(--rb-night); color: #c9c7d6; font-family: var(--rb-meta); font-size: 11px; letter-spacing: .02em; }
.rb-topbar .rb-wrap { display: flex; justify-content: space-between; align-items: center; min-height: 32px; gap: 16px; }
.rb-topbar-date { color: #fff; font-weight: 600; }
.rb-topbar-tag { opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Logo row ---------- */
.rb-logo-row { background: #fff; }
.rb-logo-row .rb-wrap { display: flex; align-items: center; justify-content: space-between; padding-top: 30px; padding-bottom: 30px; gap: 24px; }
.rb-logo { display: inline-flex; flex-direction: column; color: var(--rb-ink); line-height: 1; }
.rb-logo:hover { color: var(--rb-ink); }
.rb-logo-word { font-family: var(--rb-head); font-weight: 900; font-size: 44px; letter-spacing: -0.02em; text-transform: uppercase; }
.rb-logo-word span { color: var(--rb-accent); }
.rb-logo-sub { font-family: var(--rb-meta); font-size: 11px; font-weight: 600; letter-spacing: .32em; text-transform: uppercase; color: var(--rb-muted); margin-top: 8px; }
.rb-logo-ad { flex: 0 1 468px; height: 60px; border: 1px dashed var(--rb-line); display: flex; align-items: center; justify-content: center; font-family: var(--rb-meta); font-size: 11px; color: #b5b5b5; text-transform: uppercase; letter-spacing: .12em; }

/* ---------- Menu bar ---------- */
.rb-menu-bar { background: var(--rb-night); border-bottom: 3px solid var(--rb-accent); position: sticky; top: 0; z-index: 20; }
.rb-menu-bar .rb-wrap { display: flex; align-items: center; justify-content: space-between; }
.rb-menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.rb-menu li { margin: 0; }
.rb-menu a { display: block; padding: 0 16px; line-height: 48px; color: #fff; font-family: var(--rb-head); font-weight: 700; font-size: 14px; text-transform: uppercase; letter-spacing: .02em; }
.rb-menu .current-menu-item > a, .rb-menu a:hover { background: var(--rb-accent); color: #fff; }
.rb-menu-icon { color: #fff; width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; }

/* ---------- Trending strip ---------- */
.rb-trending { border-bottom: 1px solid var(--rb-line); }
.rb-trending .rb-wrap { display: flex; align-items: center; gap: 14px; min-height: 46px; }
.rb-trending-label { background: var(--rb-ink); color: #fff; font-family: var(--rb-head); font-weight: 700; font-size: 11px; text-transform: uppercase; padding: 4px 9px; white-space: nowrap; }
.rb-trending-text { font-family: var(--rb-head); font-size: 14px; color: var(--rb-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Layout ---------- */
.rb-main { padding: 36px 0 56px; }
.rb-grid { display: grid; grid-template-columns: minmax(0, 1fr) 324px; gap: 48px; }
.rb-block-title { margin: 0 0 22px; border-bottom: 2px solid var(--rb-ink); line-height: 0; }
.rb-block-title span { display: inline-block; background: var(--rb-ink); color: #fff; font-family: var(--rb-head); font-weight: 700; font-size: 14px; line-height: 1; text-transform: uppercase; padding: 9px 12px 7px; }

/* category label + meta */
.rb-cat { display: inline-block; background: var(--rb-ink); color: #fff; font-family: var(--rb-meta); font-weight: 600; font-size: 11px; line-height: 1; padding: 5px 7px 4px; text-transform: none; }
.rb-cat--accent { background: var(--rb-accent); }
.rb-meta { font-family: var(--rb-meta); font-size: 12px; color: var(--rb-muted); display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.rb-meta .rb-by { color: var(--rb-author); font-weight: 700; }
.rb-meta .rb-dot { color: #c4c4c4; }

/* ---------- Single article ---------- */
.rb-crumbline { font-family: var(--rb-meta); font-size: 11px; color: var(--rb-muted); margin-bottom: 14px; }
.rb-entry-title { font-family: var(--rb-head); font-weight: 500; font-size: 38px; line-height: 1.22; color: var(--rb-ink); margin: 12px 0 14px; letter-spacing: -0.01em; }
.rb-entry-header { margin-bottom: 26px; }
.rb-entry-header .rb-meta { padding-bottom: 14px; border-bottom: 1px solid var(--rb-line); }
.rb-share { display: flex; gap: 6px; margin: 16px 0 24px; }
.rb-share span { font-family: var(--rb-meta); font-size: 12px; font-weight: 600; color: #fff; padding: 8px 16px; }
.rb-share .s1 { background: #516eab; } .rb-share .s2 { background: #29c5f6; } .rb-share .s3 { background: #0266a0; } .rb-share .s4 { background: #7bbf6a; }
.rb-featured { margin: 0 0 26px; }
.rb-featured img { width: 100%; }
.rb-featured figcaption { font-family: var(--rb-meta); font-size: 11px; color: var(--rb-muted); font-style: italic; margin-top: 6px; }
.rb-content { font-size: 15px; line-height: 1.74; color: var(--rb-text); }
.rb-content p { margin: 0 0 26px; }
.rb-content h2, .rb-content h3, .rb-content h4 { font-family: var(--rb-head); color: var(--rb-ink); font-weight: 500; line-height: 1.3; margin: 34px 0 16px; }
.rb-content h2 { font-size: 27px; } .rb-content h3 { font-size: 22px; } .rb-content h4 { font-size: 19px; }
.rb-content ul, .rb-content ol { margin: 0 0 26px; padding-left: 22px; }
.rb-content li { margin-bottom: 8px; }
.rb-content blockquote { margin: 34px 0; padding: 0 0 0 22px; border-left: 3px solid var(--rb-accent); font-family: var(--rb-head); font-size: 20px; line-height: 1.5; font-style: italic; color: var(--rb-ink); }
.rb-content blockquote p { margin: 0 0 10px; }
.rb-content table { width: 100%; border-collapse: collapse; margin: 0 0 26px; font-size: 13px; }
.rb-content th, .rb-content td { border: 1px solid var(--rb-line); padding: 8px 10px; text-align: left; }
.rb-content strong { color: var(--rb-ink); }
.rb-content sup:empty { display: none; }
.rb-source-note { font-family: var(--rb-meta); font-size: 12px; color: var(--rb-muted); border-top: 1px solid var(--rb-line); padding-top: 14px; margin-top: 10px; }

/* ---------- Related articles (prev / next) ---------- */
.rb-related { margin: 44px 0 0; }
.rb-related-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.rb-rel-card { display: block; color: var(--rb-ink); }
.rb-rel-card:hover { color: var(--rb-accent); }
.rb-rel-thumb { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--rb-night); margin-bottom: 10px; }
.rb-rel-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.rb-rel-card:hover .rb-rel-thumb img { transform: scale(1.04); }
.rb-rel-dir { position: absolute; left: 0; bottom: 0; background: var(--rb-ink); color: #fff; font-family: var(--rb-meta); font-size: 11px; font-weight: 600; padding: 5px 8px 4px; }
.rb-rel-title { font-family: var(--rb-head); font-weight: 500; font-size: 16px; line-height: 1.35; margin: 0 0 6px; }
.rb-rel-card .rb-meta { font-size: 11px; }

/* Home: big grid version of the widget */
.rb-home-grid { display: grid; grid-template-columns: 1.55fr 1fr; gap: 4px; margin-bottom: 40px; }
.rb-home-card { position: relative; display: block; overflow: hidden; background: var(--rb-night); color: #fff; min-height: 220px; }
.rb-home-card:first-child { min-height: 420px; }
.rb-home-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: transform .5s ease, opacity .3s; }
.rb-home-card:hover img { transform: scale(1.04); opacity: .7; }
.rb-home-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,0) 35%, rgba(0,0,0,.82)); }
.rb-home-card-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px; z-index: 2; }
.rb-home-card h3 { font-family: var(--rb-head); font-weight: 500; color: #fff; margin: 10px 0 8px; font-size: 20px; line-height: 1.3; }
.rb-home-card:first-child h3 { font-size: 28px; }
.rb-home-card .rb-meta, .rb-home-card .rb-meta .rb-by { color: #e6e6e6; }
.rb-home-card:hover { color: #fff; }

/* Home: editorial intro */
.rb-home-intro h1 { font-family: var(--rb-head); font-weight: 500; font-size: 30px; line-height: 1.25; color: var(--rb-ink); margin: 0 0 18px; }

/* ---------- Sidebar (no links) ---------- */
.rb-side-box { margin-bottom: 36px; }
.rb-side-box p { font-size: 13px; line-height: 1.7; margin: 0 0 12px; }
.rb-follow { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.rb-follow div { display: flex; justify-content: space-between; align-items: center; border: 1px solid var(--rb-line); padding: 10px 12px; font-family: var(--rb-meta); font-size: 12px; }
.rb-follow b { font-family: var(--rb-head); font-size: 14px; color: var(--rb-ink); }
.rb-topics { display: flex; flex-wrap: wrap; gap: 6px; }
.rb-topics span { font-family: var(--rb-meta); font-size: 11px; border: 1px solid var(--rb-line); padding: 5px 9px; color: #444; }
.rb-side-ad { height: 250px; border: 1px dashed var(--rb-line); display: flex; align-items: center; justify-content: center; font-family: var(--rb-meta); font-size: 11px; color: #b5b5b5; text-transform: uppercase; letter-spacing: .12em; }

/* ---------- Pages ---------- */
.rb-page-title { font-family: var(--rb-head); font-weight: 500; font-size: 34px; color: var(--rb-ink); margin: 0 0 22px; }

/* ---------- Footer ---------- */
.rb-footer { background: var(--rb-night); color: #b9b6c9; margin-top: 20px; }
.rb-footer-top { padding: 46px 0 34px; display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 40px; }
.rb-footer .rb-logo-word { color: #fff; font-size: 32px; }
.rb-footer h4 { font-family: var(--rb-head); font-weight: 700; color: #fff; font-size: 14px; text-transform: uppercase; margin: 0 0 14px; }
.rb-footer p { font-size: 13px; line-height: 1.7; margin: 0 0 10px; }
.rb-footer-bottom { background: #0b0a14; font-family: var(--rb-meta); font-size: 12px; }
.rb-footer-bottom .rb-wrap { display: flex; justify-content: space-between; align-items: center; min-height: 48px; gap: 16px; }
.rb-footer-menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 18px; }
.rb-footer-menu a { color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 1018px) {
	.rb-grid { grid-template-columns: 1fr; }
	.rb-sidebar { display: none; }
	.rb-logo-ad { display: none; }
}
@media (max-width: 767px) {
	.rb-wrap { padding: 0 16px; }
	.rb-topbar-tag { display: none; }
	.rb-logo-row .rb-wrap { justify-content: center; padding-top: 22px; padding-bottom: 22px; }
	.rb-logo { align-items: center; }
	.rb-logo-word { font-size: 32px; }
	.rb-menu { overflow-x: auto; flex-wrap: nowrap; }
	.rb-menu a { padding: 0 12px; font-size: 13px; }
	.rb-menu-icon { display: none; }
	.rb-entry-title { font-size: 27px; }
	.rb-related-grid, .rb-home-grid { grid-template-columns: 1fr; }
	.rb-home-card:first-child { min-height: 300px; }
	.rb-home-card:first-child h3, .rb-home-card h3 { font-size: 21px; }
	.rb-footer-top { grid-template-columns: 1fr; }
	.rb-footer-bottom .rb-wrap { flex-direction: column; justify-content: center; padding: 12px 0; }
	.rb-share span:nth-child(n+3) { display: none; }
}
