/*
Theme Name:   Joerg Sauer Coach
Description:  Child theme of Twenty Twenty-Five — joergsauer.coach brand
Template:     twentytwentyfive
Version:      1.1.0
Author:       Joerg Sauer
Author URI:   https://joergsauer.coach
*/

/* Custom Sticky Rainbow Bar */
.site-rainbow-bar {
  position: fixed;
  top: var(--wp-admin--admin-bar--height, 0px);
  left: 0;
  right: 0;
  height: 6px; /* Brand guideline spec: 6-8px */
  background: var(--wp--preset--gradient--brand-rainbow);
  z-index: 99999;
}

/* Offsets site header content so top edge is not obscured */
body {
  padding-top: 6px;
}

/* ==========================================
   WP Show Posts — Modern Card Design
   ========================================== */

/* Card Container */
.wp-show-posts-single {
  margin-bottom: 2rem;
}

.wp-show-posts-inner {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(26, 31, 60, 0.06);
  border: 1px solid rgba(232, 230, 240, 0.8);
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* Hover Accent Bar & Card Lift */
.wp-show-posts-inner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--wp--preset--gradient--brand-rainbow, linear-gradient(to right, #d62c11, #f6a623, #2a3b80, #5c2574));
  opacity: 0;
  transition: opacity 0.25s ease;
  z-index: 2;
}

.wp-show-posts-inner:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(26, 31, 60, 0.12);
}

.wp-show-posts-inner:hover::before {
  opacity: 1;
}

/* Image Styling & Zoom Effect */
.wp-show-posts-image {
  overflow: hidden;
  margin-bottom: 0 !important;
  background: #1A1F3C;
}

.wp-show-posts-image a {
  display: block;
}

.wp-show-posts-image img {
  width: 100% !important;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.wp-show-posts-inner:hover .wp-show-posts-image img {
  transform: scale(1.03);
}

/* Content Area Spacing */
.wp-show-posts-entry-header {
  padding: 1.25rem 1.25rem 0.5rem 1.25rem;
}

.wp-show-posts-entry-title {
  font-family: var(--wp--preset--font-family--poppins, "Poppins", sans-serif);
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.4;
  margin: 0 0 0.5rem 0 !important;
}

.wp-show-posts-entry-title a {
  color: var(--wp--preset--color--contrast, #1A1F3C);
  text-decoration: none;
  transition: color 0.2s ease;
}

.wp-show-posts-entry-title a:hover {
  color: var(--wp--preset--color--red, #d62c11);
}

/* Metadata (Date) Badge */
.wp-show-posts-entry-meta {
  font-size: 0.8125rem;
  color: var(--wp--preset--color--mid-gray, #6B7280);
  margin-bottom: 0.5rem;
}

.wp-show-posts-posted-on a {
  color: var(--wp--preset--color--navy, #2a3b80);
  text-decoration: none;
  font-weight: 500;
}

/* Excerpt Summary */
.wp-show-posts-entry-summary {
  padding: 0 1.25rem 1.5rem 1.25rem;
  font-size: 0.9375rem;
  color: var(--wp--preset--color--body-mist, #3D3756);
  line-height: 1.6;
  flex-grow: 1;
}

.wp-show-posts-entry-summary p {
  margin: 0;
}

/* Quick polish tweaks */
.wp-show-posts-single {
  display: flex;
  align-self: stretch;
}

.wp-show-posts-entry-header,
.wp-show-posts-entry-summary {
  padding-left: 1.5rem !important;
  padding-right: 1.5rem !important;
}

.wp-show-posts-posted-on a {
  color: #2a3b80 !important;
  font-weight: 600;
}