/* WOWSight Theme C - Combined: Serif display + Modern minimal + Clean cards */
:root {
  --ws-primary: #C31023;
  --ws-primary-hover: #A00D1C;
  --ws-bg: #FAFAFA;
  --ws-surface: #FFFFFF;
  --ws-text: #18181B;
  --ws-text-secondary: #71717A;
  --ws-border: #E4E4E7;
  --ws-radius: 4px;
  --ws-transition: 180ms ease;
  --ws-font-body: 'Noto Sans TC', -apple-system, BlinkMacSystemFont, sans-serif;
  --ws-font-heading: 'Newsreader', 'Noto Serif TC', Georgia, serif;
  --ws-font-mono: ui-monospace, 'SF Mono', monospace;
  --ws-content-width: 720px;
  --ws-wide-width: 1200px;
}
[data-theme="dark"] {
  --ws-bg: #0A0A0A; --ws-surface: #141414; --ws-text: #FAFAFA;
  --ws-text-secondary: #A1A1AA; --ws-border: #27272A;
}
*, *::before, *::after { box-sizing: border-box; }
body { background: var(--ws-bg) !important; color: var(--ws-text); font-family: var(--ws-font-body); font-size: 1rem; line-height: 1.75; -webkit-font-smoothing: antialiased; margin: 0; transition: background var(--ws-transition), color var(--ws-transition); }
a { color: inherit; text-decoration: none; } a:hover { color: var(--ws-primary); }
img { max-width: 100%; height: auto; border-radius: var(--ws-radius); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
:focus-visible { outline: 2px solid var(--ws-primary); outline-offset: 2px; }
button, [role="button"], a { cursor: pointer; }

.ws-header { position: sticky; top: 0; z-index: 1000; background: var(--ws-surface); border-bottom: 1px solid var(--ws-border); padding: 0.875rem 2rem; }
.ws-header__inner { max-width: var(--ws-wide-width); margin: 0 auto; align-items: center; gap: 2rem; }
.ws-header__nav a { font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ws-text-secondary); }
.ws-header__nav a:hover { color: var(--ws-primary); }
.ws-theme-toggle { background: none; border: 1px solid var(--ws-border); border-radius: 50%; width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; color: var(--ws-text); transition: all var(--ws-transition); }
.ws-theme-toggle:hover { border-color: var(--ws-primary); color: var(--ws-primary); }
[data-theme="dark"] .ws-icon-sun { display: block; } [data-theme="dark"] .ws-icon-moon { display: none; }
:root:not([data-theme="dark"]) .ws-icon-sun { display: none; } :root:not([data-theme="dark"]) .ws-icon-moon { display: block; }

/* Hero - image with subtle overlay, text at bottom */
.ws-hero__item { position: relative; overflow: hidden; border-radius: var(--ws-radius); margin-bottom: 4rem; }
.ws-hero__image img { width: 100%; object-fit: cover; object-position: center top; }
.ws-hero__overlay { position: absolute; bottom: 0; left: 0; right: 0; padding: 3rem 2rem 2rem; background: linear-gradient(transparent, rgba(0,0,0,0.75)); border-radius: 0 0 var(--ws-radius) var(--ws-radius); }
.ws-hero__cat a { font-family: var(--ws-font-mono); font-size: 0.65rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: #fff !important; background: var(--ws-primary); padding: 0.25rem 0.6rem; border-radius: 2px; }
.ws-hero__title { font-family: var(--ws-font-heading); color: #fff !important; font-size: clamp(1.75rem, 4vw, 3rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; margin-top: 0.75rem !important; }
.ws-hero__title a { color: inherit !important; }
.ws-hero__date { color: rgba(255,255,255,0.65) !important; font-size: 0.75rem; font-family: var(--ws-font-mono); font-variant-numeric: tabular-nums; }

/* Cards */
.ws-card { background: var(--ws-surface); border-radius: var(--ws-radius); overflow: hidden; border: 1px solid var(--ws-border); transition: border-color var(--ws-transition); }
.ws-card:hover { border-color: var(--ws-primary); }
.ws-card__image img { width: 100%; object-fit: cover; border-radius: var(--ws-radius) var(--ws-radius) 0 0; }
.ws-card__content { padding: 1.25rem; }
.ws-card__cat a { font-family: var(--ws-font-mono); font-size: 0.65rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ws-primary) !important; }
.ws-card__title { font-family: var(--ws-font-heading); font-size: 1.0625rem; font-weight: 700; line-height: 1.35; letter-spacing: -0.01em; margin-top: 0.4rem !important; }
.ws-card__title a { color: var(--ws-text) !important; } .ws-card__title a:hover { color: var(--ws-primary) !important; }
.ws-card__date { font-family: var(--ws-font-mono); font-size: 0.7rem; color: var(--ws-text-secondary); font-variant-numeric: tabular-nums; margin-top: 0.4rem; }

.ws-featured__grid { gap: 1.25rem; margin-bottom: 4rem; }
.ws-latest__item { display: flex; gap: 1.75rem; padding: 1.75rem 0; border-bottom: 1px solid var(--ws-border); align-items: flex-start; }
.ws-latest__image { flex-shrink: 0; width: 260px; } .ws-latest__image img { width: 100%; object-fit: cover; }
.ws-latest__title { font-family: var(--ws-font-heading); font-size: 1.125rem; font-weight: 700; line-height: 1.35; }
.ws-latest__title a { color: var(--ws-text) !important; } .ws-latest__title a:hover { color: var(--ws-primary) !important; }
.ws-latest__excerpt { color: var(--ws-text-secondary); font-size: 0.875rem; margin-top: 0.4rem; }
.ws-section-title { font-family: var(--ws-font-heading); font-size: 1.25rem; font-weight: 700; padding-bottom: 0.5rem; border-bottom: 2px solid var(--ws-primary); margin-bottom: 1.5rem !important; display: inline-block; }

.ws-single__hero img { width: 100%; max-height: 60vh; object-fit: cover; border-radius: 0; }
.ws-single__container { padding-top: 2.5rem; }
.ws-single__title { font-family: var(--ws-font-heading); font-size: clamp(1.75rem, 4vw, 2.75rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
.ws-single__meta { font-family: var(--ws-font-mono); color: var(--ws-text-secondary); font-size: 0.8rem; gap: 1rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--ws-border); margin-bottom: 2rem !important; }
.ws-single__content { font-size: 1.0625rem; line-height: 1.85; }
.ws-single__tags a { display: inline-block; border: 1px solid var(--ws-border); padding: 0.2rem 0.6rem; font-size: 0.75rem; margin: 0.2rem; border-radius: 2px; }
.ws-single__tags a:hover { border-color: var(--ws-primary); color: var(--ws-primary); }
.ws-share { padding: 2rem 0; margin-top: 2rem !important; border-top: 1px solid var(--ws-border); gap: 1rem; }
.ws-related { padding: 4rem 0; margin-top: 3rem !important; border-top: 1px solid var(--ws-border); }
.ws-archive__title { font-family: var(--ws-font-heading); font-size: 2rem; font-weight: 700; margin-bottom: 2rem !important; }
.ws-404 { text-align: center; padding: 8rem 2rem; }
.ws-404__title { color: var(--ws-primary) !important; font-family: var(--ws-font-heading); }
.ws-footer { background: var(--ws-surface); border-top: 1px solid var(--ws-border); padding: 3rem 2rem 2rem; margin-top: 4rem; }
.ws-footer__inner { gap: 2rem; } .ws-footer__desc { color: var(--ws-text-secondary); }
.ws-footer__nav a { font-size: 0.8rem; color: var(--ws-text-secondary); } .ws-footer__nav a:hover { color: var(--ws-primary); }
.ws-footer__social-links .wp-social-link { background: transparent !important; border: 1px solid var(--ws-border); border-radius: var(--ws-radius); }
.ws-footer__social-links .wp-social-link:hover { border-color: var(--ws-primary); background: var(--ws-primary) !important; }
.ws-footer__divider { border-color: var(--ws-border) !important; margin: 2rem 0 !important; }
.ws-footer__copyright { color: var(--ws-text-secondary); font-size: 0.8rem; }
.wp-block-query-pagination { margin-top: 2rem; gap: 0.4rem; }
.wp-block-query-pagination-numbers .page-numbers, .wp-block-query-pagination-previous, .wp-block-query-pagination-next { padding: 0.4rem 0.9rem; border: 1px solid var(--ws-border); border-radius: var(--ws-radius); font-size: 0.8rem; }
.wp-block-query-pagination-numbers .page-numbers.current, .wp-block-query-pagination-numbers .page-numbers:hover { background: var(--ws-primary); color: #fff; border-color: var(--ws-primary); }
.ws-post-grid { gap: 1.25rem; }
.ws-main { padding: 2.5rem 2rem; }
@media (max-width: 768px) { .ws-header { padding: 0.625rem 1rem; } .ws-main { padding: 1.25rem 1rem; } .ws-hero__title { font-size: 1.4rem; } .ws-featured__grid, .ws-post-grid { grid-template-columns: 1fr !important; } .ws-latest__item { flex-direction: column; gap: 0.75rem; } .ws-latest__image { width: 100%; } .ws-footer__inner { flex-direction: column; } }

/* Fallback for missing featured images */
.ws-card__image:empty,
.ws-wf-card__image:empty,
.ws-hero__image:empty,
.ws-latest__image:empty {
  background: linear-gradient(135deg, var(--ws-primary) 0%, #1a1a1a 100%);
  min-height: 200px;
  border-radius: var(--ws-radius) var(--ws-radius) 0 0;
}
.ws-hero__image:empty { min-height: 300px; border-radius: var(--ws-radius); }

/* Fix WP block image figure when no image */
.wp-block-post-featured-image:empty {
  background: linear-gradient(135deg, var(--ws-primary) 0%, #2a2a2a 100%);
  min-height: 180px;
  border-radius: var(--ws-radius) var(--ws-radius) 0 0;
  display: block;
}
