/*
Theme Name: BlueJay News
Theme URI: https://example.com/bluejay-news
Author: AnyGen
Author URI: https://example.com
Description: A trilingual global news WordPress theme for BlueJay News with Traditional Chinese, Simplified Chinese, English, and Japanese-ready structures, SEO-friendly markup, and Google AdSense-ready placements.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.8
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: bluejay-news
Tags: news, blog, two-columns, custom-logo, custom-menu, featured-images, translation-ready, right-sidebar, editor-style
*/

/*
 * Style DNA — Global Wire Monolith
 * WordPress theme layer mirrors the preview design: blue-black authority, paper surfaces,
 * strong dividers, visible ad inventory, and a newsroom-grade editorial hierarchy.
 */
:root {
  --bj-paper: #f7f4ed;
  --bj-paper-strong: #ffffff;
  --bj-ink: #111827;
  --bj-muted: #5d6778;
  --bj-line: rgba(17, 24, 39, 0.12);
  --bj-blue: #0a4faf;
  --bj-blue-deep: #0b234b;
  --bj-red: #ca3b2c;
  --bj-green: #14804a;
  --bj-max: 1480px;
  --bj-shadow: 0 16px 44px rgba(10, 23, 50, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Source Sans 3", "Noto Sans TC", "Noto Sans SC", Arial, sans-serif;
  color: var(--bj-ink);
  background:
    radial-gradient(circle at top left, rgba(10, 79, 175, 0.08), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(247, 244, 237, 1));
  background-size: auto, auto;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--bj-blue);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button,
input,
textarea,
select {
  font: inherit;
}

.site-shell {
  position: relative;
}

.site-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(11, 23, 50, 0.04), transparent 18%, transparent 82%, rgba(11, 23, 50, 0.04));
  z-index: 0;
}

.site-wrap,
.site-topbar__inner,
.site-header__inner,
.site-nav__inner,
.breaking-bar__inner,
.footer-inner,
.page-shell,
.hero-grid,
.content-grid,
.related-grid {
  width: min(var(--bj-max), calc(100% - 32px));
  margin: 0 auto;
}

.site-topbar {
  position: relative;
  z-index: 2;
  border-bottom: 1px solid var(--bj-line);
  background: rgba(247, 244, 237, 0.92);
  backdrop-filter: blur(10px);
}

.site-topbar__inner,
.site-header__inner,
.site-nav__inner,
.breaking-bar__inner,
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 0;
}

.site-meta,
.site-actions,
.market-strip,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.meta-pill,
.edition-pill,
.ad-label,
.kicker,
.widget-title__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 11px;
  font-weight: 700;
}

.edition-pill,
.kicker,
.widget-title__eyebrow {
  color: var(--bj-blue);
}

.site-header {
  position: relative;
  z-index: 2;
}

.site-branding {
  display: flex;
  align-items: center;
  gap: 16px;
}

.site-branding__logo {
  width: 72px;
  height: 72px;
  padding: 6px;
  background: #fff;
  border: 1px solid var(--bj-line);
}

.site-title {
  margin: 0;
  font-family: "Merriweather", Georgia, serif;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1;
  font-weight: 900;
}

.site-description,
.site-description p {
  margin: 4px 0 0;
  color: var(--bj-muted);
  font-size: 15px;
}

.site-utility {
  display: grid;
  gap: 14px;
  min-width: min(420px, 100%);
}

.search-form {
  display: flex;
}

.search-form label {
  width: 100%;
}

.search-field,
.newsletter-form input[type="email"] {
  width: 100%;
  height: 48px;
  border: 1px solid var(--bj-line);
  background: #fff;
  padding: 0 16px;
}

.search-submit,
.button-primary,
.wp-block-button__link {
  border: 0;
  background: var(--bj-blue);
  color: #fff;
  padding: 12px 20px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  cursor: pointer;
}

.button-secondary {
  border: 1px solid var(--bj-line);
  background: #fff;
  color: var(--bj-ink);
  padding: 12px 16px;
  font-weight: 700;
}

.site-nav {
  position: relative;
  z-index: 2;
  background: rgba(11, 23, 50, 0.97);
  color: #fff;
  border-top: 1px solid var(--bj-line);
  border-bottom: 1px solid var(--bj-line);
}

.site-nav__menu,
.language-switcher,
.footer-links,
.social-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.site-nav__menu a,
.language-switcher a,
.footer-links a,
.social-links a {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.live-pill::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--bj-red);
  box-shadow: 0 0 0 6px rgba(202, 59, 44, 0.18);
}

.breaking-bar {
  position: relative;
  z-index: 2;
  border-bottom: 1px solid var(--bj-line);
  background: #fff;
}

.breaking-bar__label {
  flex: 0 0 auto;
  background: var(--bj-red);
  color: #fff;
  padding: 14px 16px;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 700;
}

.breaking-bar__items {
  overflow: hidden;
  white-space: nowrap;
  color: var(--bj-ink);
  font-size: 14px;
  font-weight: 700;
}

.page-shell {
  position: relative;
  z-index: 1;
  padding: 32px 0 48px;
}

.hero-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 2.1fr) minmax(320px, 0.9fr);
}

.hero-main {
  border: 1px solid var(--bj-line);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--bj-shadow);
  overflow: hidden;
}

.hero-main__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(340px, 0.9fr);
}

.hero-media,
.story-card__media,
.listing-card__media {
  background: radial-gradient(circle at top left, rgba(10, 79, 175, 0.75), transparent 40%), linear-gradient(140deg, #07152d, #123a78 55%, #ede7d9 140%);
}

.hero-media {
  min-height: 420px;
  position: relative;
}

.hero-copy,
.story-card__copy,
.widget,
.sidebar-module,
.archive-grid__main,
.archive-grid__sidebar,
.single-article,
.comment-respond,
.comments-area,
.related-stories,
.not-found,
.pagination-wrap {
  border: 1px solid var(--bj-line);
  background: rgba(255, 255, 255, 0.92);
}

.hero-copy {
  padding: 28px;
}

.hero-title,
.section-title,
.archive-title,
.entry-title,
.widget-title,
.related-title,
.not-found__title {
  margin: 12px 0 0;
  font-family: "Merriweather", Georgia, serif;
  font-weight: 900;
  line-height: 1.06;
  letter-spacing: -0.02em;
}

.hero-title {
  font-size: clamp(2rem, 3vw, 3.4rem);
}

.hero-summary,
.entry-excerpt,
.entry-content,
.widget-content,
.not-found__text {
  color: var(--bj-muted);
}

.story-stack,
.sidebar-stack,
.archive-loop,
.related-grid,
.footer-columns {
  display: grid;
  gap: 18px;
}

.story-card,
.archive-card,
.related-card,
.sidebar-module {
  border: 1px solid var(--bj-line);
  background: rgba(255,255,255,0.94);
  overflow: hidden;
  transition: border-color 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
}

.story-card:hover,
.archive-card:hover,
.related-card:hover,
.sidebar-module:hover {
  border-color: rgba(10, 79, 175, 0.55);
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(10, 79, 175, 0.11);
}

.story-card__copy,
.archive-card__copy,
.related-card__copy,
.sidebar-module__copy,
.widget,
.single-article,
.comments-area,
.comment-respond,
.not-found {
  padding: 20px;
}

.story-card__title,
.archive-card__title,
.related-card__title,
.sidebar-module__title {
  margin: 10px 0 0;
  font-size: 1.45rem;
  line-height: 1.15;
  font-weight: 800;
}

.content-grid {
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 2fr) minmax(320px, 0.8fr);
  margin-top: 28px;
}

.section-block,
.archive-grid__main,
.archive-grid__sidebar,
.single-sidebar,
.related-stories,
.pagination-wrap {
  box-shadow: var(--bj-shadow);
}

.section-block {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  border: 1px solid var(--bj-line);
  background: #fff;
  padding: 20px;
}

.section-block__lead {
  display: grid;
  gap: 18px;
}

.section-lead__visual {
  min-height: 280px;
  border: 1px solid var(--bj-line);
  background: radial-gradient(circle at top left, rgba(10, 79, 175, 0.55), transparent 34%), linear-gradient(145deg, #0a1732, #143e80 55%, #ede7d9 150%);
}

.ad-slot {
  position: relative;
  overflow: hidden;
  border: 1px dashed rgba(10, 79, 175, 0.4);
  background: linear-gradient(135deg, rgba(10, 79, 175, 0.06), transparent 60%), linear-gradient(180deg, rgba(255,255,255,0.95), rgba(245,241,232,0.92));
  padding: 20px;
}

.ad-slot::after {
  content: "Google AdSense Ready";
  position: absolute;
  right: 14px;
  top: 12px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(10, 79, 175, 0.7);
}

.market-board {
  background: rgba(11, 23, 50, 0.98);
  color: #fff;
}

.market-board .widget-title,
.market-board .widget-title__eyebrow,
.market-board .widget-content,
.market-board a {
  color: #fff;
}

.market-board__item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 0 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.market-board__item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}

.market-up {
  color: #46c77a;
}

.market-down {
  color: #ff7a6d;
}

.archive-layout,
.single-layout {
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 2fr) minmax(320px, 0.8fr);
}

.entry-meta,
.archive-meta,
.card-meta,
.breadcrumbs,
.language-note {
  font-size: 12px;
  color: var(--bj-muted);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
}

.entry-content > * + * {
  margin-top: 1rem;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
  font-family: "Merriweather", Georgia, serif;
  line-height: 1.15;
}

.entry-content p,
.entry-content li,
.entry-content blockquote {
  font-size: 1.07rem;
  color: #253046;
}

.entry-content blockquote {
  margin: 24px 0;
  padding: 18px 20px;
  border-left: 4px solid var(--bj-blue);
  background: rgba(10, 79, 175, 0.05);
}

.post-thumbnail {
  margin: 18px 0 22px;
  border: 1px solid var(--bj-line);
}

.post-thumbnail img {
  width: 100%;
}

.post-tags,
.tag-cloud,
.footer-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.post-tags a,
.tag-cloud a,
.footer-tags a {
  border: 1px solid var(--bj-line);
  padding: 9px 12px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.sidebar-module__list,
.latest-list,
.menu,
.wp-block-latest-posts {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sidebar-module__list li,
.latest-list li,
.wp-block-latest-posts li {
  padding: 0 0 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--bj-line);
}

.sidebar-module__list li:last-child,
.latest-list li:last-child,
.wp-block-latest-posts li:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}

.pagination,
.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.pagination a,
.pagination span,
.nav-links a,
.nav-links span {
  border: 1px solid var(--bj-line);
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.footer-site {
  position: relative;
  z-index: 2;
  margin-top: 40px;
  border-top: 1px solid var(--bj-line);
  background: rgba(11, 23, 50, 0.98);
  color: #fff;
}

.footer-columns {
  grid-template-columns: minmax(0, 1.2fr) minmax(220px, 0.8fr) minmax(220px, 0.8fr);
  padding: 40px 0;
}

.footer-title {
  margin: 0;
  font-family: "Merriweather", Georgia, serif;
  font-size: 1.9rem;
  font-weight: 900;
}

.footer-text,
.footer-site p,
.footer-site li,
.footer-site a {
  color: rgba(255,255,255,0.74);
}

.screen-reader-text {
  position: absolute;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  width: 1px;
  height: 1px;
  overflow: hidden;
  white-space: nowrap;
}

.screen-reader-text:focus {
  clip: auto !important;
  clip-path: none;
  width: auto;
  height: auto;
  background: #fff;
  color: var(--bj-ink);
  padding: 8px 12px;
  z-index: 9999;
}

@media (max-width: 1100px) {
  .hero-grid,
  .content-grid,
  .archive-layout,
  .single-layout,
  .footer-columns,
  .hero-main__grid,
  .section-block {
    grid-template-columns: 1fr;
  }

  .site-header__inner,
  .site-topbar__inner,
  .site-nav__inner,
  .breaking-bar__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-utility {
    min-width: 100%;
  }
}

@media (max-width: 720px) {
  .site-wrap,
  .site-topbar__inner,
  .site-header__inner,
  .site-nav__inner,
  .breaking-bar__inner,
  .footer-inner,
  .page-shell,
  .hero-grid,
  .content-grid,
  .related-grid {
    width: min(var(--bj-max), calc(100% - 20px));
  }

  .site-branding {
    align-items: flex-start;
  }

  .site-branding__logo {
    width: 56px;
    height: 56px;
  }

  .story-card__title,
  .archive-card__title,
  .related-card__title,
  .sidebar-module__title {
    font-size: 1.2rem;
  }

  .hero-copy,
  .story-card__copy,
  .archive-card__copy,
  .single-article,
  .comments-area,
  .comment-respond,
  .widget,
  .not-found {
    padding: 16px;
  }
}
