/* =========================================================================
   DEMO 1 — Classic News (green / yellow)
   -------------------------------------------------------------------------
   Loaded when functions.php has:  define( 'CWS_ACTIVE_DEMO', 'style1' );

   SKIN ONLY. Structure lives in style.css §13 (news content blocks) so the
   same patterns restyle per demo. This file carries colour, type, radius,
   shadow and hover treatment — nothing that affects layout.

   Every rule is scoped to body.cws-demo-style1, which WordPress adds
   automatically, so 20 demos can coexist without collisions.

   Load order: style.css → gp-overrides.css → demo/style1.css → custom.css
   ========================================================================= */

/* =========================================================================
   FOOTER
   ========================================================================= */
body.cws-demo-style1 .cws-footer {
  background-color: var(--cws-color-primary);
  color: #ffffff;
}

body.cws-demo-style1 .cws-footer__top {
  background-color: transparent;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

body.cws-demo-style1 .cws-footer__bottom {
  background-color: rgba(0, 0, 0, 0.2);
  font-size: var(--cws-font-size-sm);
}

body.cws-demo-style1 .cws-footer h3,
body.cws-demo-style1 .cws-footer h4 {
  color: #ffffff;
}

body.cws-demo-style1 .cws-footer a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.2s ease;
}

body.cws-demo-style1 .cws-footer a:hover {
  color: var(--cws-color-accent);
}

body.cws-demo-style1 .cws-footer__bottom .copyright-bar {
  color: inherit;
}

body.cws-demo-style1 .cws-footer__bottom .cws-copyright {
  color: rgba(255, 255, 255, 0.7);
}

body.cws-demo-style1 .cws-footer__bottom .cws-credit {
  color: var(--cws-color-accent);
}

/* =========================================================================
   SECTION BANDS
   ========================================================================= */
body.cws-demo-style1 .cws-section-block.is-alt-bg {
  background-color: var(--cws-color-alt-bg);
}

/* =========================================================================
   SECTION HEADING — gradient pill with shimmer
   ========================================================================= */
body.cws-demo-style1 .cws-section-heading .heading {
  border-radius: var(--cws-radius-rounded);
  background: linear-gradient(90deg, var(--cws-color-primary), var(--cws-color-secondary));
  color: var(--cws-color-bg);
  border: none;
  font-size: var(--cws-font-size-h5);
  font-weight: 700;
  line-height: 24px;
}

body.cws-demo-style1 .cws-section-heading .heading::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  animation: cws-demo-style1-shimmer 2s infinite;
}

@keyframes cws-demo-style1-shimmer {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* =========================================================================
   HERO POST CARD
   ========================================================================= */
body.cws-demo-style1 .cws-post-card {
  background-color: var(--cws-color-bg);
  border-radius: var(--cws-radius-md);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

body.cws-demo-style1 .cws-post-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

body.cws-demo-style1 .cws-card-image img {
  transition: transform 0.4s ease;
}

body.cws-demo-style1 .cws-post-card:hover .cws-card-image img {
  transform: scale(1.03);
}

body.cws-demo-style1 .cws-card-category a {
  background-color: var(--cws-color-secondary);
  color: #ffffff;
  font-family: var(--cws-font-body);
  font-size: var(--cws-font-size-sm);
  font-weight: 700;
  text-transform: capitalize;
  border-radius: var(--cws-radius-rounded);
}

body.cws-demo-style1 .cws-card-title {
  font-family: var(--cws-font-heading);
  font-size: var(--cws-font-size-h2);
  font-weight: 800;
  line-height: 1.3;
}

body.cws-demo-style1 .cws-card-title a {
  color: var(--cws-color-text);
}

body.cws-demo-style1 .cws-card-title a:hover {
  color: var(--cws-color-primary);
}

body.cws-demo-style1 .cws-card-excerpt {
  font-family: var(--cws-font-body);
  font-size: var(--cws-font-size-base);
  line-height: 1.6;
  color: var(--cws-color-muted);
}

body.cws-demo-style1 .cws-card-meta {
  font-size: var(--cws-font-size-sm);
  font-weight: 600;
  color: var(--cws-color-muted);
}

body.cws-demo-style1 .cws-meta-author a:hover {
  color: var(--cws-color-primary);
}

/* =========================================================================
   VIDEO EMBED
   ========================================================================= */
body.cws-demo-style1 .cws-yt-video iframe {
  border-radius: 8px;
}

/* =========================================================================
   HORIZONTAL POST LIST CARD
   ========================================================================= */
body.cws-demo-style1 .cws-post-list-item {
  background-color: var(--cws-color-bg);
  border: 0 solid var(--cws-color-border);
  border-radius: var(--cws-radius-sm);
  transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

body.cws-demo-style1 .cws-post-list-item:hover,
body.cws-demo-style1 .cws-post-list-item:focus,
body.cws-demo-style1 .cws-post-list-item:focus-visible {
  border-color: var(--cws-color-primary);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  transform: translateY(-2px);
  outline: none;
}

body.cws-demo-style1 .cws-post-list-image {
  border-radius: var(--cws-radius-sm);
}

body.cws-demo-style1 .cws-post-list-image img {
  transition: transform 0.3s ease;
}

body.cws-demo-style1 .cws-post-list-item:hover .cws-post-list-image img {
  transform: scale(1.05);
}

body.cws-demo-style1 .cws-post-list-title {
  font-family: var(--cws-font-heading);
  font-size: var(--cws-font-size-base);
  font-weight: 700;
  line-height: 1.4;
}

body.cws-demo-style1 .cws-post-list-title a {
  color: var(--cws-color-text);
  transition: color 0.2s ease;
}

body.cws-demo-style1 .cws-post-list-title a:hover {
  color: var(--cws-color-primary);
}

@media (max-width: 480px) {
  body.cws-demo-style1 .cws-post-list-title {
    font-size: var(--cws-font-size-sm);
  }
}

/* =========================================================================
   SIMPLE VERTICAL POST CARD
   ========================================================================= */
body.cws-demo-style1 .cws-post-card--simple {
  background-color: var(--cws-color-bg);
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

body.cws-demo-style1 .cws-post-card--simple:hover {
  border-color: var(--cws-color-primary);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

body.cws-demo-style1 .cws-post-card--simple .cws-simple-image {
  border-radius: var(--cws-radius-md);
}

body.cws-demo-style1 .cws-post-card--simple .cws-simple-image img {
  transition: transform 0.3s ease;
}

body.cws-demo-style1 .cws-post-card--simple:hover .cws-simple-image img {
  transform: scale(1.03);
}

body.cws-demo-style1 .cws-post-card--simple .cws-simple-title {
  font-family: var(--cws-font-heading);
  font-size: var(--cws-font-size-h5);
  font-weight: 800;
  line-height: 1.3;
  color: var(--cws-color-text);
}

body.cws-demo-style1 .cws-post-card--simple .cws-simple-title a:hover {
  color: var(--cws-color-primary);
}

body.cws-demo-style1 .cws-post-card--simple .cws-simple-meta {
  font-size: var(--cws-font-size-xs);
  font-weight: 700;
  color: var(--cws-color-red);
}

body.cws-demo-style1 .cws-post-card--simple .cws-simple-meta a:hover {
  color: var(--cws-color-primary);
}

/* =========================================================================
   HEADER SHELL (used by the header-classic pattern)
   ========================================================================= */
body.cws-demo-style1 .cws-header__topbar {
  background-color: var(--cws-color-primary);
  color: var(--cws-color-bg);
}

body.cws-demo-style1 .cws-header__topbar a {
  color: inherit;
}

body.cws-demo-style1 .cws-header__nav {
  border-top: 1px solid var(--cws-color-border);
  border-bottom: 1px solid var(--cws-color-border);
}
body.cws-demo-style1 .cws-section-block .muted-bg{
    width: 100%;
    background-color: var(--cws-color-muted);
}