/* ===========================================
   GetsMeUp Developer Theme — Modern Design System v2
   Aesthetic: Vercel / Linear / Arc browser
   =========================================== */

/* --- Design Tokens --- */
:root {
  /* Semantic colors (overridden in dark mode) */
  --gmu-bg: #f8fafc;
  --gmu-bg-card: #ffffff;
  --gmu-text: #1e293b;
  --gmu-text-muted: #64748b;
  --gmu-border: #e2e8f0;
  --gmu-surface-light: #f1f5f9;
  --gmu-header-bg: rgba(248, 250, 252, 0.85);
  --gmu-header-bg-scrolled: rgba(248, 250, 252, 0.95);
  --gmu-header-border: rgba(226, 232, 240, 0.6);

  /* Shadows — layered for depth */
  --gmu-shadow-xs: 0 1px 2px rgba(0,0,0,0.04);
  --gmu-shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --gmu-shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --gmu-shadow-lg: 0 12px 32px rgba(0,0,0,0.1);

  /* Radii */
  --gmu-radius-xs: 6px;
  --gmu-radius-sm: 8px;
  --gmu-radius: 12px;
  --gmu-radius-lg: 16px;
  --gmu-radius-xl: 20px;

  /* Transitions */
  --gmu-ease: cubic-bezier(0.4, 0, 0.2, 1);
  --gmu-duration: 0.2s;
  --gmu-duration-slow: 0.35s;

  /* Category colors */
  --gmu-cat-news: #e60000;
  --gmu-cat-business: #0f172a;
  --gmu-cat-technology: #3b82f6;
  --gmu-cat-health: #10b981;
  --gmu-cat-entertainment: #8b5cf6;
  --gmu-cat-home: #f59e0b;

  /* Spacing scale */
  --gmu-space-xs: 0.25rem;
  --gmu-space-sm: 0.5rem;
  --gmu-space-md: 1rem;
  --gmu-space-lg: 1.5rem;
  --gmu-space-xl: 2rem;
  --gmu-space-2xl: 3rem;
  --gmu-space-3xl: 4rem;
}

/* ===========================================
   DARK MODE
   =========================================== */

[data-theme="dark"] {
  --gmu-bg: #0f172a;
  --gmu-bg-card: #1e293b;
  --gmu-text: #e2e8f0;
  --gmu-text-muted: #94a3b8;
  --gmu-border: #334155;
  --gmu-surface-light: #1e293b;
  --gmu-header-bg: rgba(15, 23, 42, 0.85);
  --gmu-header-bg-scrolled: rgba(15, 23, 42, 0.95);
  --gmu-header-border: rgba(51, 65, 85, 0.6);
  --gmu-shadow-xs: 0 1px 2px rgba(0,0,0,0.2);
  --gmu-shadow-sm: 0 1px 3px rgba(0,0,0,0.3), 0 1px 2px rgba(0,0,0,0.2);
  --gmu-shadow-md: 0 4px 16px rgba(0,0,0,0.3);
  --gmu-shadow-lg: 0 12px 32px rgba(0,0,0,0.4);

  /* Override WP preset colors for dark mode */
  --wp--preset--color--secondary: #e2e8f0;
  --wp--preset--color--light: #1e293b;
}

[data-theme="dark"] body {
  background-color: var(--gmu-bg);
  color: var(--gmu-text);
}

[data-theme="dark"] .wp-site-blocks {
  background-color: var(--gmu-bg);
}

[data-theme="dark"] .site-header {
  background: var(--gmu-header-bg);
  border-bottom-color: var(--gmu-header-border);
}

[data-theme="dark"] .site-header.scrolled {
  background: var(--gmu-header-bg-scrolled);
}

[data-theme="dark"] .wp-block-navigation a {
  color: var(--gmu-text);
}

[data-theme="dark"] .wp-block-navigation__submenu-container {
  background: rgba(30, 41, 59, 0.98);
  border-color: var(--gmu-border);
}

[data-theme="dark"] .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover {
  background: var(--gmu-surface-light);
}

[data-theme="dark"] .post-card,
[data-theme="dark"] .wp-block-post .wp-block-group.post-card,
[data-theme="dark"] .wp-block-group.post-card {
  background: var(--gmu-bg-card);
  border-color: var(--gmu-border);
}

[data-theme="dark"] .post-card:hover,
[data-theme="dark"] .wp-block-post .post-card:hover {
  border-color: #475569;
}

[data-theme="dark"] .single-article-card {
  background: var(--gmu-bg-card);
  border-color: var(--gmu-border);
}

[data-theme="dark"] .sidebar-widget {
  background: var(--gmu-bg-card);
  border-color: var(--gmu-border);
}

[data-theme="dark"] .sidebar-widget a {
  color: var(--gmu-text);
}

[data-theme="dark"] .sidebar-widget li {
  border-bottom-color: rgba(255,255,255,0.04);
}

[data-theme="dark"] .wp-block-post-content blockquote {
  background: var(--gmu-surface-light);
  color: var(--gmu-text-muted);
}

[data-theme="dark"] .wp-block-post-content code:not(pre code) {
  background: var(--gmu-surface-light);
}

[data-theme="dark"] .wp-block-search__input {
  background: var(--gmu-bg-card);
  border-color: var(--gmu-border);
  color: var(--gmu-text);
}

[data-theme="dark"] .wp-block-query-pagination .page-numbers {
  background: var(--gmu-bg-card);
  border-color: var(--gmu-border);
  color: var(--gmu-text);
}

[data-theme="dark"] .getsmeup-reading-time {
  background: var(--gmu-surface-light);
  color: var(--gmu-text-muted);
}

[data-theme="dark"] .gmu-toc {
  background: var(--gmu-surface-light);
  border-color: var(--gmu-border);
}

[data-theme="dark"] .related-post-card {
  background: var(--gmu-bg-card);
  border-color: var(--gmu-border);
}

[data-theme="dark"] .wp-block-post-terms a {
  background: rgba(59, 130, 246, 0.15);
}

/* Dark mode toggle button */
.gmu-dark-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--gmu-border);
  border-radius: var(--gmu-radius-sm);
  background: transparent;
  cursor: pointer;
  font-size: 1rem;
  transition: all var(--gmu-duration) var(--gmu-ease);
  color: var(--gmu-text);
  line-height: 1;
}

.gmu-dark-toggle:hover {
  background: var(--gmu-surface-light);
}

/* --- Global --- */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --- Scroll-reveal animation --- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: no-preference) {
  .post-card,
  .sidebar-widget,
  .single-article-card {
    animation: fadeInUp 0.5s var(--gmu-ease) both;
  }
  .wp-block-post-template > .wp-block-post:nth-child(2) .post-card { animation-delay: 0.05s; }
  .wp-block-post-template > .wp-block-post:nth-child(3) .post-card { animation-delay: 0.1s; }
  .wp-block-post-template > .wp-block-post:nth-child(4) .post-card { animation-delay: 0.15s; }
  .wp-block-post-template > .wp-block-post:nth-child(5) .post-card { animation-delay: 0.2s; }
}

/* ===========================================
   Header
   =========================================== */

header.wp-block-template-part {
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header {
  background: var(--gmu-header-bg);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid var(--gmu-header-border);
  transition: box-shadow var(--gmu-duration-slow) var(--gmu-ease),
              background var(--gmu-duration-slow) var(--gmu-ease);
}

.site-header.scrolled {
  box-shadow: var(--gmu-shadow-sm);
  background: var(--gmu-header-bg-scrolled);
}

/* Navigation */
.wp-block-navigation a {
  position: relative;
  transition: color var(--gmu-duration) var(--gmu-ease);
  color: var(--gmu-text, #1e293b);
}

.wp-block-navigation a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--wp--preset--color--primary, #e60000);
  border-radius: 1px;
  transition: width var(--gmu-duration) var(--gmu-ease), left var(--gmu-duration) var(--gmu-ease);
}

.wp-block-navigation a:hover::after {
  width: 100%;
  left: 0;
}

.wp-block-navigation a:hover {
  color: var(--wp--preset--color--primary, #e60000);
}

/* Nav dropdown */
.wp-block-navigation__submenu-container {
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(12px);
  border: 1px solid var(--gmu-border);
  border-radius: var(--gmu-radius);
  box-shadow: var(--gmu-shadow-lg);
  padding: 0.35rem;
  min-width: 200px;
}

.wp-block-navigation__submenu-container .wp-block-navigation-item__content {
  padding: 0.55rem 1rem;
  font-size: 0.8rem;
  border-radius: var(--gmu-radius-xs);
  transition: background var(--gmu-duration) var(--gmu-ease);
}

.wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover {
  background: var(--gmu-surface-light);
  color: var(--wp--preset--color--primary, #e60000);
}

/* ===========================================
   Hero Banner
   =========================================== */

.hero-banner {
  position: relative;
  overflow: hidden;
}

.hero-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 100%, rgba(230,0,0,0.12) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 80% 0%, rgba(59,130,246,0.08) 0%, transparent 50%);
  pointer-events: none;
}

.hero-categories {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-categories a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.85rem;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  text-decoration: none;
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.8);
  border: 1px solid rgba(255,255,255,0.12);
  transition: all var(--gmu-duration) var(--gmu-ease);
  backdrop-filter: blur(4px);
}

.hero-categories a:hover {
  background: rgba(255,255,255,0.2);
  color: #fff;
  transform: translateY(-1px);
}

/* ===========================================
   Post Cards (no !important — clean specificity)
   =========================================== */

.wp-block-post .wp-block-group.post-card,
.wp-block-group.post-card,
.post-card {
  background: var(--gmu-bg-card);
  border-radius: var(--gmu-radius-lg);
  box-shadow: var(--gmu-shadow-xs);
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--gmu-border);
  transition: box-shadow var(--gmu-duration-slow) var(--gmu-ease),
              transform var(--gmu-duration-slow) var(--gmu-ease),
              border-color var(--gmu-duration-slow) var(--gmu-ease);
  margin-bottom: var(--gmu-space-lg);
}

.wp-block-post .post-card:hover,
.post-card:hover {
  box-shadow: var(--gmu-shadow-md);
  transform: translateY(-3px);
  border-color: rgba(226,232,240,0.4);
}

/* Featured image */
.post-card .wp-block-post-featured-image {
  margin: 0;
  border-radius: 0;
  position: relative;
  overflow: hidden;
}

.post-card .wp-block-post-featured-image img {
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
  border-radius: 0;
  transition: transform 0.5s var(--gmu-ease);
}

.post-card .wp-block-post-featured-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.04) 0%, transparent 40%);
  pointer-events: none;
}

.post-card:hover .wp-block-post-featured-image img {
  transform: scale(1.04);
}

/* WP overrides — these need specificity boost */
.wp-block-post .post-card.has-global-padding,
.post-card.has-global-padding {
  padding-right: 0;
  padding-left: 0;
}

/* Card content */
.post-card-content {
  padding: var(--gmu-space-lg);
}

.wp-block-post .post-card-content.has-global-padding,
.post-card-content.has-global-padding {
  padding: var(--gmu-space-lg);
}

/* First card emphasis */
.wp-block-post-template > .wp-block-post:first-child .post-card .wp-block-post-title {
  font-size: 1.5rem;
}

/* ===========================================
   Category Badges
   =========================================== */

.wp-block-post-terms a {
  display: inline-flex;
  align-items: center;
  padding: 0.2em 0.6em;
  border-radius: var(--gmu-radius-xs);
  text-decoration: none;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  transition: all var(--gmu-duration) var(--gmu-ease);
  background: rgba(59, 130, 246, 0.08);
  color: var(--wp--preset--color--accent, #3b82f6);
}

.wp-block-post-terms a:hover {
  background: var(--wp--preset--color--accent, #3b82f6);
  color: #fff;
}

/* ===========================================
   Read More
   =========================================== */

.read-more-link a,
a.wp-block-post-excerpt__more-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: transparent;
  color: var(--wp--preset--color--primary, #e60000);
  padding: 0;
  border-radius: 0;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  transition: gap var(--gmu-duration) var(--gmu-ease);
  margin-top: 0.5rem;
}

.read-more-link a::after,
a.wp-block-post-excerpt__more-link::after {
  content: '\2192';
  transition: transform var(--gmu-duration) var(--gmu-ease);
}

.read-more-link a:hover,
a.wp-block-post-excerpt__more-link:hover {
  gap: 0.5rem;
}

.read-more-link a:hover::after,
a.wp-block-post-excerpt__more-link:hover::after {
  transform: translateX(2px);
}

/* ===========================================
   Sidebar
   =========================================== */

.sidebar-widget {
  background: var(--gmu-bg-card);
  border-radius: var(--gmu-radius-lg);
  box-shadow: var(--gmu-shadow-xs);
  border: 1px solid var(--gmu-border);
  margin-bottom: var(--gmu-space-lg);
}

.sidebar-widget h4 {
  position: relative;
  padding-bottom: 0.6rem;
  margin-bottom: 0.75rem;
}

.sidebar-widget h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 28px;
  height: 2.5px;
  background: var(--wp--preset--color--primary, #e60000);
  border-radius: 2px;
}

.sidebar-widget li {
  padding: 0.5em 0;
  border-bottom: 1px solid rgba(0,0,0,0.04);
  transition: padding-left var(--gmu-duration) var(--gmu-ease);
}

.sidebar-widget li:last-child { border-bottom: none; }
.sidebar-widget li:hover { padding-left: 0.2em; }

.sidebar-widget a {
  text-decoration: none;
  color: var(--gmu-text);
  transition: color var(--gmu-duration) var(--gmu-ease);
}

.sidebar-widget a:hover {
  color: var(--wp--preset--color--primary, #e60000);
}

@media (min-width: 769px) {
  .wp-block-column[style*="flex-basis:30%"] > .wp-block-template-part {
    position: sticky;
    top: 5rem;
  }
}

/* ===========================================
   Footer
   =========================================== */

.site-footer {
  background: var(--wp--preset--color--secondary, #0f172a);
  position: relative;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--wp--preset--color--primary, #e60000), var(--wp--preset--color--accent, #3b82f6), transparent);
}

.site-footer h4 {
  position: relative;
  padding-bottom: 0.7rem;
}

.site-footer h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 28px;
  height: 2px;
  background: var(--wp--preset--color--primary, #e60000);
  border-radius: 2px;
}

.site-footer a {
  transition: color var(--gmu-duration) var(--gmu-ease);
}

.site-footer a:hover {
  color: var(--wp--preset--color--primary, #e60000);
}

.site-footer ul {
  list-style: none;
  padding-left: 0;
}

.site-footer li {
  padding: 0.25em 0;
  position: relative;
}

.site-footer .wp-block-latest-posts__post-date {
  display: block;
  font-size: 0.7rem;
  color: #475569;
  margin-top: 0.15rem;
}

.site-footer-copyright {
  border-top: 1px solid rgba(255,255,255,0.06);
  margin-top: var(--gmu-space-xl);
  padding-top: var(--gmu-space-lg);
}

/* ===========================================
   Pagination
   =========================================== */

.wp-block-query-pagination {
  gap: 0.4rem;
}

.wp-block-query-pagination .page-numbers {
  padding: 0.45em 0.85em;
  border: 1px solid var(--gmu-border);
  border-radius: var(--gmu-radius-sm);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.85rem;
  transition: all var(--gmu-duration) var(--gmu-ease);
  background: var(--gmu-bg-card);
  color: var(--gmu-text);
}

.wp-block-query-pagination .page-numbers.current {
  background: var(--wp--preset--color--secondary, #0f172a);
  color: #fff;
  border-color: var(--wp--preset--color--secondary, #0f172a);
}

.wp-block-query-pagination .page-numbers:hover:not(.current) {
  border-color: var(--gmu-text-muted);
  transform: translateY(-1px);
}

/* ===========================================
   Content Typography
   =========================================== */

.wp-block-post-content p {
  margin-bottom: 1.35em;
  line-height: 1.8;
}

.wp-block-post-content h2 {
  margin-top: 2.5em;
  margin-bottom: 0.75em;
}

.wp-block-post-content h3 {
  margin-top: 2em;
  margin-bottom: 0.5em;
}

.wp-block-post-content ul,
.wp-block-post-content ol {
  margin-bottom: 1.35em;
  padding-left: 1.5em;
}

.wp-block-post-content li {
  margin-bottom: 0.4em;
}

.wp-block-post-content blockquote {
  border-left: 3px solid var(--wp--preset--color--primary, #e60000);
  padding: 1.25em 1.5em;
  font-style: italic;
  color: var(--gmu-text-muted);
  background: var(--gmu-surface-light);
  border-radius: 0 var(--gmu-radius-sm) var(--gmu-radius-sm) 0;
  margin: 1.75em 0;
}

.wp-block-post-content pre {
  background: var(--wp--preset--color--secondary, #0f172a);
  color: #e2e8f0;
  border-radius: var(--gmu-radius);
  padding: 1.25rem 1.5rem;
  font-size: 0.85rem;
  line-height: 1.65;
  overflow-x: auto;
}

.wp-block-post-content code:not(pre code) {
  background: var(--gmu-surface-light);
  padding: 0.15em 0.4em;
  border-radius: var(--gmu-radius-xs);
  font-size: 0.875em;
  color: var(--wp--preset--color--primary, #e60000);
}

/* ===========================================
   Search
   =========================================== */

.wp-block-search__input {
  border-radius: var(--gmu-radius);
  border: 1px solid var(--gmu-border);
  padding: 0.65em 1em;
  transition: border-color var(--gmu-duration) var(--gmu-ease),
              box-shadow var(--gmu-duration) var(--gmu-ease);
}

.wp-block-search__input:focus {
  border-color: var(--wp--preset--color--accent, #3b82f6);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
  outline: none;
}

.wp-block-search__button {
  border-radius: 0 var(--gmu-radius) var(--gmu-radius) 0;
}

/* ===========================================
   Single Article
   =========================================== */

.single-article-card {
  background: var(--gmu-bg-card);
  box-shadow: var(--gmu-shadow-xs);
  border: 1px solid var(--gmu-border);
  border-radius: var(--gmu-radius-lg);
}

.getsmeup-reading-time {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25em 0.7em;
  background: var(--gmu-surface-light);
  border-radius: 100px;
  font-size: 0.75rem;
  color: var(--gmu-text-muted);
}

/* ===========================================
   Table of Contents
   =========================================== */

.gmu-toc {
  background: var(--gmu-surface-light);
  border: 1px solid var(--gmu-border);
  border-radius: var(--gmu-radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
}

.gmu-toc-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--gmu-text-muted);
  margin: 0 0 0.75rem 0;
}

.gmu-toc ol {
  margin: 0;
  padding-left: 1.25rem;
  list-style: decimal;
}

.gmu-toc li {
  margin-bottom: 0.35rem;
  font-size: 0.85rem;
  line-height: 1.4;
}

.gmu-toc li.gmu-toc-sub {
  margin-left: 1rem;
  font-size: 0.8rem;
  list-style-type: disc;
}

.gmu-toc a {
  color: var(--gmu-text);
  text-decoration: none;
  transition: color var(--gmu-duration) var(--gmu-ease);
}

.gmu-toc a:hover {
  color: var(--wp--preset--color--primary, #e60000);
}

/* ===========================================
   Social Share Buttons
   =========================================== */

.gmu-share-buttons {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--gmu-border);
}

.gmu-share-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--gmu-text-muted);
  margin-right: 0.25rem;
}

.gmu-share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--gmu-radius-sm);
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid var(--gmu-border);
  background: var(--gmu-bg-card);
  color: var(--gmu-text);
  cursor: pointer;
  transition: all var(--gmu-duration) var(--gmu-ease);
}

.gmu-share-btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--gmu-shadow-sm);
}

.gmu-share-x:hover {
  background: #000;
  color: #fff;
  border-color: #000;
}

.gmu-share-linkedin:hover {
  background: #0a66c2;
  color: #fff;
  border-color: #0a66c2;
}

.gmu-share-copy:hover {
  background: var(--wp--preset--color--primary, #e60000);
  color: #fff;
  border-color: var(--wp--preset--color--primary, #e60000);
}

/* ===========================================
   Related Articles
   =========================================== */

.related-articles-section h3::after {
  content: '';
  display: inline-block;
  width: 28px;
  height: 2.5px;
  background: var(--wp--preset--color--primary, #e60000);
  border-radius: 2px;
  margin-left: 0.75rem;
  vertical-align: middle;
}

.related-post-card {
  background: var(--gmu-bg-card);
  border: 1px solid var(--gmu-border);
  border-radius: var(--gmu-radius);
  overflow: hidden;
  transition: box-shadow var(--gmu-duration-slow) var(--gmu-ease),
              transform var(--gmu-duration-slow) var(--gmu-ease);
}

.related-post-card:hover {
  box-shadow: var(--gmu-shadow-md);
  transform: translateY(-2px);
}

.related-post-card .wp-block-post-featured-image img {
  aspect-ratio: 16/9;
  object-fit: cover;
  width: 100%;
}

/* ===========================================
   Back to Top Button
   =========================================== */

.gmu-back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 40px;
  height: 40px;
  border-radius: var(--gmu-radius-sm);
  background: var(--wp--preset--color--secondary, #0f172a);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--gmu-duration-slow) var(--gmu-ease);
  z-index: 50;
  box-shadow: var(--gmu-shadow-md);
}

.gmu-back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.gmu-back-to-top:hover {
  background: var(--wp--preset--color--primary, #e60000);
  transform: translateY(-2px);
}

[data-theme="dark"] .gmu-back-to-top {
  background: #334155;
}

[data-theme="dark"] .gmu-back-to-top:hover {
  background: var(--wp--preset--color--primary, #e60000);
}

/* --- Dark mode: Navigation dropdown --- */
[data-theme="dark"] .wp-block-navigation .wp-block-navigation__submenu-container {
  background: #1e293b !important;
  border: 1px solid var(--gmu-border, #334155);
}

[data-theme="dark"] .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
  color: var(--gmu-text, #e2e8f0) !important;
}

[data-theme="dark"] .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover {
  color: var(--wp--preset--color--primary, #e60000) !important;
}

/* --- Dark mode: Site title (logo) --- */
[data-theme="dark"] .wp-block-site-title.has-link-color a,
[data-theme="dark"] .wp-block-site-title a {
  color: #ffffff !important;
}

/* --- Dark mode: Headings & Text (WP preset overrides) --- */
[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4,
[data-theme="dark"] h5,
[data-theme="dark"] h6,
[data-theme="dark"] .wp-block-post-title,
[data-theme="dark"] .wp-block-post-title a,
[data-theme="dark"] .wp-block-heading {
  color: var(--gmu-text);
}

[data-theme="dark"] .wp-block-post-content,
[data-theme="dark"] .wp-block-post-content p,
[data-theme="dark"] .wp-block-post-content li,
[data-theme="dark"] .wp-block-post-content td,
[data-theme="dark"] .wp-block-post-content th {
  color: var(--gmu-text);
}

[data-theme="dark"] .entry-content,
[data-theme="dark"] .page-content,
[data-theme="dark"] .wp-block-group:not(.site-footer):not(.site-header) p {
  color: var(--gmu-text);
}

[data-theme="dark"] .wp-block-post-date,
[data-theme="dark"] .wp-block-post-author-name {
  color: var(--gmu-text-muted);
}

[data-theme="dark"] .wp-block-post-content a {
  color: #60a5fa;
}

[data-theme="dark"] .wp-block-post-content a:hover {
  color: var(--wp--preset--color--primary, #e60000);
}

/* Dark mode: Page titles (non-post pages) */
[data-theme="dark"] .wp-block-post-title.has-secondary-color,
[data-theme="dark"] [class*="has-secondary-color"] {
  color: var(--gmu-text);
}

/* Dark mode: 404 page */
[data-theme="dark"] .wp-block-group h1,
[data-theme="dark"] .wp-block-group h2,
[data-theme="dark"] .wp-block-group h3 {
  color: var(--gmu-text);
}

/* Dark mode: Search button */
[data-theme="dark"] .wp-block-search__button {
  background: var(--wp--preset--color--primary, #e60000);
  color: #fff;
}

/* Dark mode: Pagination current */
[data-theme="dark"] .wp-block-query-pagination .page-numbers.current {
  background: #475569;
  border-color: #475569;
}

/* Dark mode: Hero banner — inline style uses var(--secondary) which flips light in dark mode.
   We override using [style] attribute selector + !important for maximum specificity. */
[data-theme="dark"] .hero-banner.has-background[style] {
  background-color: #0f172a !important;
}

[data-theme="dark"] .hero-banner::before {
  background:
    radial-gradient(ellipse 80% 60% at 20% 100%, rgba(230,0,0,0.18) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 80% 0%, rgba(59,130,246,0.14) 0%, transparent 50%);
}

/* Dark mode: Footer & back-to-top keep dark backgrounds */
[data-theme="dark"] .site-footer {
  background-color: #0f172a !important;
}

[data-theme="dark"] .gmu-back-to-top {
  background: #1e293b;
  border: 1px solid var(--gmu-border);
}

/* ===========================================
   Contact Form
   =========================================== */

.gmu-form-success {
  animation: fadeInUp 0.5s var(--gmu-ease) both;
}

/* ===========================================
   Responsive — Tablet (769px-1024px)
   =========================================== */

@media (min-width: 769px) and (max-width: 1024px) {
  .wp-block-column[style*="flex-basis:70%"] { flex-basis: 65%; }
  .wp-block-column[style*="flex-basis:30%"] { flex-basis: 35%; }
  .post-card-content { padding: var(--gmu-space-md) var(--gmu-space-lg); }
  .related-posts-query .wp-block-post-template { grid-template-columns: repeat(2, 1fr); }
}

/* ===========================================
   Responsive — Mobile (<=768px)
   =========================================== */

@media (max-width: 768px) {
  .wp-block-columns { flex-direction: column; }
  .wp-block-column { flex-basis: 100%; }

  .post-card-content { padding: var(--gmu-space-md) var(--gmu-space-lg); }
  .post-card { border-radius: var(--gmu-radius); }

  header.wp-block-template-part { position: sticky; }

  .related-posts-query .wp-block-post-template { grid-template-columns: 1fr; }

  .gmu-back-to-top { bottom: 1rem; right: 1rem; width: 36px; height: 36px; }

  .gmu-share-buttons { flex-wrap: wrap; }

  .gmu-post-nav { flex-direction: column; gap: 0.75rem; }
  .gmu-post-nav-link { text-align: left; }
  .gmu-breadcrumbs { font-size: 0.7rem; }
}

/* ===========================================
   Breadcrumbs
   =========================================== */

.gmu-breadcrumbs {
  font-size: 0.78rem;
  color: var(--gmu-text-muted);
  margin-bottom: 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  line-height: 1.5;
}

.gmu-breadcrumbs a {
  color: var(--gmu-text-muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

.gmu-breadcrumbs a:hover {
  color: var(--wp--preset--color--primary, #e60000);
  text-decoration: underline;
}

.gmu-breadcrumb-sep {
  margin: 0 0.4rem;
  color: var(--gmu-border);
  font-size: 0.9em;
}

.gmu-breadcrumbs [aria-current="page"] {
  color: var(--gmu-text);
  font-weight: 500;
  max-width: 300px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: inline-block;
  vertical-align: bottom;
}

/* ===========================================
   Updated Date Badge
   =========================================== */

.gmu-updated-date {
  display: inline-block;
  font-size: 0.78rem;
  color: var(--gmu-text-muted);
  background: var(--gmu-surface-light);
  border-radius: var(--gmu-radius-xs);
  padding: 0.25rem 0.6rem;
  margin-bottom: 0.75rem;
  border: 1px solid var(--gmu-border);
}

.gmu-updated-date::before {
  content: '🔄 ';
}

[data-theme="dark"] .gmu-updated-date {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
}

/* ===========================================
   Post Navigation (Prev/Next)
   =========================================== */

.gmu-post-nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--gmu-border);
}

.gmu-post-nav-link {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  text-decoration: none;
  padding: 0.75rem 1rem;
  border-radius: var(--gmu-radius);
  transition: background 0.15s ease;
  max-width: 48%;
}

.gmu-post-nav-link:hover {
  background: var(--gmu-surface-light);
}

.gmu-post-nav-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--gmu-text-muted);
}

.gmu-post-nav-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--gmu-text);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.gmu-post-nav-next {
  text-align: right;
  margin-left: auto;
}

[data-theme="dark"] .gmu-post-nav-link:hover {
  background: rgba(255, 255, 255, 0.06);
}

/* ===========================================
   Archive Description
   =========================================== */

.gmu-archive-description {
  margin-bottom: 1.5rem;
  margin-top: -0.5rem;
}

.gmu-archive-description p {
  font-size: 0.92rem;
  color: var(--gmu-text-muted);
  line-height: 1.7;
  max-width: 65ch;
}

/* ===========================================
   FAQ Accordion (details/summary)
   =========================================== */

.wp-block-details {
  border: 1px solid var(--gmu-border);
  border-radius: var(--gmu-radius);
  margin-bottom: 0.75rem;
  overflow: hidden;
  transition: border-color 0.15s ease;
}

.wp-block-details:hover {
  border-color: var(--wp--preset--color--primary, #e60000);
}

.wp-block-details summary {
  padding: 1rem 1.25rem;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
  color: var(--gmu-text);
  background: var(--gmu-surface-light);
  transition: background 0.15s ease;
}

.wp-block-details summary::-webkit-details-marker {
  display: none;
}

.wp-block-details summary::after {
  content: '+';
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--gmu-text-muted);
  transition: transform 0.2s ease;
  flex-shrink: 0;
  margin-left: 1rem;
}

.wp-block-details[open] summary::after {
  content: '−';
}

.wp-block-details summary:hover {
  background: var(--gmu-bg);
}

.wp-block-details > *:not(summary) {
  padding: 0 1.25rem 1rem;
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--gmu-text-muted);
}

[data-theme="dark"] .wp-block-details {
  border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .wp-block-details summary {
  background: rgba(255, 255, 255, 0.04);
}

[data-theme="dark"] .wp-block-details summary:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* ===========================================
   Tool Page SEO Content Sections
   =========================================== */

.gmu-tool-container {
  margin-top: 1.5rem;
  margin-bottom: 2rem;
}

.gmu-faq-section {
  margin-top: 2.5rem;
}

.gmu-features-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  margin: 1rem 0 1.5rem;
}

.gmu-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.75rem;
  background: var(--gmu-surface-light);
  border-radius: var(--gmu-radius-sm);
  font-size: 0.9rem;
  line-height: 1.5;
}

.gmu-feature-item strong {
  white-space: nowrap;
}

[data-theme="dark"] .gmu-feature-item {
  background: rgba(255, 255, 255, 0.04);
}
