/*
Theme Name: Reci Media Hub
Theme URI: https://example.com/reci-media-hub
Author: Reci Team
Author URI: https://example.com
Description: Block theme foundation for implementing Figma designs in WordPress.
Requires at least: 6.4
Tested up to: 6.6
Requires PHP: 8.1
Version: 0.1.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: reci-media-hub
Tags: full-site-editing, block-patterns, custom-colors, custom-logo
*/

:root {
  --reci-blue: #003594;
  --reci-yellow: #ffb81c;
  --reci-bg: #f3f5f9;
  --reci-dark: #212529;
  --reci-ink: #2b2b2b;
  --reci-muted: #717171;
  --reci-border: #bdbdbd;
  --reci-white: #ffffff;
  --reci-radius-sm: 4px;
  --reci-radius-md: 8px;
}

body {
  background: var(--reci-bg);
  color: var(--reci-ink);
}

.reci-home-shell {
  padding: 0;
}

.reci-wrap {
  margin: 0 auto;
  max-width: 1320px;
  width: calc(100% - 120px);
}

.reci-utility-bar {
  background: var(--reci-blue);
  color: var(--reci-white);
  padding: 10px 0;
}

.reci-utility-inner {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

.reci-inline-nav,
.reci-utility-actions {
  align-items: center;
  display: flex;
  gap: 20px;
}

.reci-inline-nav a,
.reci-utility-actions a {
  color: var(--reci-white);
  font-size: 16px;
  text-decoration: none;
}

.reci-main-nav {
  border-bottom: 1px solid var(--reci-border);
  background: var(--reci-bg);
}

.reci-main-nav-inner {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 40px;
  min-height: 100px;
}

.reci-brand {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.reci-brand-title {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.reci-brand-sub {
  font-size: 14px;
  margin-top: 10px;
  text-transform: uppercase;
}

.reci-search-row {
  align-items: center;
  display: flex;
  flex: 1;
  gap: 22px;
  justify-content: flex-end;
}

.reci-search-pill {
  background: var(--reci-white);
  border-radius: 999px;
  color: #9d9d9d;
  font-size: 16px;
  min-width: 380px;
  padding: 20px 24px;
}

.reci-nav-link {
  color: var(--reci-ink);
  font-size: 16px;
  text-decoration: none;
}

.reci-menu-btn {
  align-items: center;
  background: transparent;
  border: 0;
  cursor: pointer;
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  height: 32px;
  justify-content: center;
  padding: 0;
  width: 32px;
}

.reci-menu-btn span {
  background: var(--reci-ink);
  border-radius: 2px;
  display: block;
  height: 2px;
  width: 18px;
}

.reci-hero-section {
  padding: 40px 0 100px;
}

.reci-hero-grid {
  display: grid;
  gap: 40px;
  grid-template-columns: minmax(0, 800px) minmax(0, 1fr);
}

.reci-hero-feature h1 {
  font-size: clamp(2rem, 4.2vw, 3.85rem);
  line-height: 1.1;
  margin: 16px 0;
}

.reci-hero-feature p,
.reci-feature-copy p,
.reci-cta-card p,
.reci-highlight-card p,
.reci-rail-card p {
  color: var(--reci-muted);
  font-size: 14px;
  line-height: 1.6;
}

.reci-meta-row,
.reci-tag-row {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.reci-meta-row {
  gap: 12px;
}

.reci-meta-row > * {
  margin: 0;
}

.reci-chip {
  border-radius: var(--reci-radius-sm);
  display: inline-block;
  font-size: 14px;
  line-height: 1.1;
  padding: 4px 8px;
}

.reci-chip-yellow {
  background: var(--reci-yellow);
  color: var(--reci-ink);
}

.reci-chip-dark {
  background: var(--reci-ink);
  color: var(--reci-white);
}

.reci-chip-blue {
  background: var(--reci-blue);
  color: var(--reci-white);
}

.reci-chip-muted {
  background: #eaeaea;
  color: var(--reci-ink);
}

.reci-meta-dot {
  background: var(--reci-yellow);
  border-radius: 999px;
  display: inline-block;
  height: 8px;
  width: 8px;
}

.reci-date {
  font-size: 16px;
  margin: 0;
}

.reci-hero-query,
.reci-rail-query {
  margin: 0;
}

.reci-hero-feature-wrap,
.reci-rail-query .wp-block-post-template {
  list-style: none;
  margin: 0;
  padding: 0;
}

.reci-hero-feature .wp-block-post-title {
  font-size: clamp(2rem, 4.2vw, 3.85rem);
  line-height: 1.1;
  margin: 16px 0;
}

.reci-hero-feature .wp-block-post-title a {
  color: var(--reci-ink);
  text-decoration: none;
}

.reci-hero-feature .wp-block-post-title a:hover {
  text-decoration: underline;
}

.reci-hero-feature .wp-block-post-excerpt {
  margin: 0 0 16px;
}

.reci-hero-feature .wp-block-post-excerpt p {
  margin: 0;
}

.reci-hero-feature .wp-block-post-terms {
  margin: 0 0 16px;
}

.reci-hero-feature .wp-block-post-featured-image {
  margin-top: 40px;
}

.reci-hero-feature .wp-block-post-featured-image img {
  aspect-ratio: 800 / 408;
  border-radius: var(--reci-radius-md);
  display: block;
  object-fit: cover;
  width: 100%;
}

.reci-hero-rail {
  border-left: 1px solid var(--reci-border);
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-height: 700px;
  overflow: auto;
  padding-left: 20px;
}

.reci-rail-card {
  border-bottom: 1px solid var(--reci-border);
  display: grid;
  gap: 20px;
  grid-template-columns: 180px minmax(0, 1fr);
  padding-bottom: 20px;
}

.reci-rail-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-content: space-between;
}

.reci-rail-card .wp-block-post-featured-image {
  margin: 0;
}

.reci-rail-card .wp-block-post-featured-image img {
  border-radius: var(--reci-radius-md);
  display: block;
  height: 180px;
  object-fit: cover;
  width: 180px;
}

.reci-rail-content .wp-block-post-title {
  font-size: 20px;
  line-height: 1.2;
  margin: 0;
}

.reci-rail-content .wp-block-post-title a {
  color: var(--reci-ink);
  text-decoration: none;
}

.reci-rail-content .wp-block-post-title a:hover {
  text-decoration: underline;
}

.reci-rail-content .wp-block-post-terms {
  margin: 0;
}

.reci-rail-card h3,
.reci-feed-card h3 {
  font-size: 20px;
  line-height: 1.2;
  margin: 0;
}

.reci-terms-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.reci-terms-row a {
  background: #eaeaea;
  border-radius: var(--reci-radius-sm);
  color: var(--reci-ink);
  display: inline-block;
  font-size: 14px;
  line-height: 1.1;
  padding: 4px 8px;
  text-decoration: none;
}

.reci-terms-row a:hover {
  text-decoration: underline;
}

.reci-media {
  background-color: #d7dbe4;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  border-radius: var(--reci-radius-md);
}

.reci-media-map {
  aspect-ratio: 800 / 408;
  background-image: url("https://images.unsplash.com/photo-1451187580459-43490279c0fa?auto=format&fit=crop&w=1600&q=80");
}

.reci-media-thumb,
.reci-media-thumb-alt {
  height: 180px;
  width: 180px;
}

.reci-media-thumb {
  background-image: url("https://images.unsplash.com/photo-1529156069898-49953e39b3ac?auto=format&fit=crop&w=800&q=80");
}

.reci-media-thumb-alt {
  background-image: url("https://images.unsplash.com/photo-1516450360452-9312f5e86fc7?auto=format&fit=crop&w=800&q=80");
}

.reci-highlight-band {
  background-image: linear-gradient(rgba(243, 245, 249, 0.78), rgba(243, 245, 249, 0.78)), url("https://images.unsplash.com/photo-1521572267360-ee0c2909d518?auto=format&fit=crop&w=1600&q=80");
  background-position: center;
  background-size: cover;
  padding: 60px 0;
}

.reci-highlight-card {
  background: var(--reci-white);
  border-radius: var(--reci-radius-md);
  max-width: 520px;
  padding: 28px;
}

.reci-highlight-kicker {
  color: var(--reci-blue);
  font-size: 18px;
  font-weight: 500;
  margin: 0 0 12px;
}

.reci-highlight-card h2,
.reci-section-head h2,
.reci-feature-copy h2,
.reci-cta-card h2 {
  font-size: 28px;
  line-height: 1.2;
  margin: 0 0 16px;
}

.reci-feed-section,
.reci-feature-split {
  padding: 80px 0 20px;
}

.reci-feature-split {
  padding-bottom: 70px;
}

.reci-section-head {
  align-items: center;
  border-bottom: 1px solid var(--reci-border);
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 20px;
}

.reci-card-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
}

.reci-feed-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.reci-query-loop {
  margin: 0;
}

.reci-feed-card .wp-block-post-featured-image {
  margin: 0;
}

.reci-feed-card .wp-block-post-featured-image a {
  display: block;
}

.reci-feed-card .wp-block-post-featured-image img {
  aspect-ratio: 413 / 300;
  border-radius: var(--reci-radius-md);
  display: block;
  object-fit: cover;
  width: 100%;
}

.reci-feed-card .wp-block-post-title {
  font-size: 20px;
  line-height: 1.2;
  margin: 0;
}

.reci-feed-card .wp-block-post-title a {
  color: var(--reci-ink);
  text-decoration: none;
}

.reci-feed-card .wp-block-post-title a:hover {
  text-decoration: underline;
}

.reci-media-card {
  aspect-ratio: 413 / 300;
  background-image: url("https://images.unsplash.com/photo-1529156069898-49953e39b3ac?auto=format&fit=crop&w=900&q=80");
}

.reci-feature-grid {
  align-items: stretch;
  border-bottom: 1px solid var(--reci-border);
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(0, 1fr) 550px;
  padding-bottom: 24px;
}

.reci-feature-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.reci-cta-band {
  background-image: linear-gradient(rgba(0, 53, 148, 0.45), rgba(0, 53, 148, 0.45)), url("https://images.unsplash.com/photo-1521572267360-ee0c2909d518?auto=format&fit=crop&w=1800&q=80");
  background-position: center;
  background-size: cover;
  padding: 90px 0;
}

.reci-cta-card {
  align-items: stretch;
  background: var(--reci-white);
  border-radius: var(--reci-radius-md);
  display: grid;
  gap: 0;
  grid-template-columns: minmax(0, 1fr) 280px;
  margin-left: auto;
  margin-right: auto;
  max-width: 800px;
  padding: 40px;
}

.reci-btn {
  border-radius: var(--reci-radius-md);
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  padding: 14px 20px;
  text-decoration: none;
}

.reci-btn-yellow {
  background: var(--reci-yellow);
  color: var(--reci-dark);
}

.reci-btn-ghost {
  border: 1px solid var(--reci-dark);
  color: var(--reci-dark);
}

.wp-block-button.reci-btn-ghost .wp-block-button__link {
  background: transparent;
  border: 1px solid var(--reci-dark);
  border-radius: var(--reci-radius-md);
  color: var(--reci-dark);
  font-size: 14px;
  padding: 10px 16px;
}

@media (max-width: 1200px) {
  .reci-wrap {
    width: calc(100% - 48px);
  }

  .reci-hero-grid,
  .reci-feature-grid {
    grid-template-columns: 1fr;
  }

  .reci-hero-rail {
    border-left: 0;
    border-top: 1px solid var(--reci-border);
    max-height: none;
    padding-left: 0;
    padding-top: 20px;
  }

  .reci-rail-card {
    grid-template-columns: 150px minmax(0, 1fr);
  }

  .reci-rail-card .wp-block-post-featured-image img {
    height: 150px;
    width: 150px;
  }

  .reci-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 782px) {
  .reci-wrap {
    width: calc(100% - 28px);
  }

  .reci-utility-inner,
  .reci-main-nav-inner,
  .reci-search-row,
  .reci-section-head,
  .reci-cta-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .reci-search-pill {
    min-width: 0;
    width: 100%;
  }

  .reci-hero-section {
    padding-bottom: 48px;
  }

  .reci-card-grid {
    grid-template-columns: 1fr;
  }

  .reci-rail-card {
    grid-template-columns: 1fr;
  }

  .reci-media-thumb,
  .reci-media-thumb-alt {
    width: 100%;
  }

  .reci-rail-card .wp-block-post-featured-image img {
    height: auto;
    width: 100%;
  }

  .reci-cta-card {
    grid-template-columns: 1fr;
    padding: 24px;
  }

  .reci-brand-title {
    font-size: 22px;
  }

  .reci-highlight-card h2,
  .reci-section-head h2,
  .reci-feature-copy h2,
  .reci-cta-card h2 {
    font-size: 24px;
  }
}
