/*
Theme Name: yohoo! Portal & Official Merch Edition
Theme URI: https://opencollective.com/blankslate
Author: Custom Portal & Merch Theme
Description: Gotowy motyw portalu informacyjnego w stylu yohoo! w ciepłej, beżowej kolorystyce z pełną obsługą sklepu Merch (czapki, kubki, torby, akcesoria).
Version: 2026.4-YOHOO-BEIGE
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v3 or Later
Text Domain: blankslate
*/

:root {
  --yh-brand: #7A5C3E;
  --yh-brand-dark: #5B432C;
  --yh-brand-soft: #F3ECE2;
  --yh-sand: #E8DEC8;
  --yh-bg: #FAF7F2;
  --yh-surface: #FFFFFF;
  --yh-text: #2B2623;
  --yh-muted: #6E655F;
  --yh-border: #E2D7C7;
  --yh-green: #2D6A4F;
  --yh-red: #B5473A;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--yh-bg);
  color: var(--yh-text);
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--yh-text);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--yh-brand);
}

/* GÓRNY PASEK NARZĘDZIOWY */
.yh-top-utility {
  background-color: #3A312A;
  color: #EDE6DC;
  font-size: 12px;
  padding: 6px 0;
}

.yh-top-utility a {
  color: #EDE6DC;
  text-decoration: none;
  font-weight: 500;
}

.yh-top-utility a:hover {
  color: #FFFFFF;
  text-decoration: underline;
}

/* GŁÓWNY HEADER Z LOGO YOHOO! I WYSZUKIWARKĄ */
.yh-main-header {
  background-color: var(--yh-surface);
  border-bottom: 1px solid var(--yh-border);
  padding: 16px 0;
}

.yh-logo {
  display: inline-flex;
  align-items: baseline;
  font-weight: 900;
  font-size: 36px;
  letter-spacing: -1.5px;
  color: var(--yh-brand) !important;
  line-height: 1;
  text-decoration: none;
}

.yh-logo span.yh-bang {
  font-style: italic;
  margin-left: 1px;
  color: #9C7853;
}

.yh-logo-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--yh-muted);
  margin-left: 10px;
  background: var(--yh-brand-soft);
  padding: 3px 9px;
  border-radius: 12px;
  border: 1px solid var(--yh-border);
}

/* WYSZUKIWARKA PORTALU */
.yh-search-form {
  display: flex;
  align-items: stretch;
  max-width: 560px;
  width: 100%;
  border: 2px solid var(--yh-brand);
  border-radius: 24px;
  overflow: hidden;
  background: #FFFFFF;
  box-shadow: 0 2px 6px rgba(122, 92, 62, 0.08);
}

.yh-search-input {
  flex: 1;
  border: none;
  padding: 9px 18px;
  font-size: 14px;
  color: var(--yh-text);
  outline: none;
  background: transparent;
}

.yh-search-btn {
  background-color: var(--yh-brand);
  color: #FFFFFF;
  border: none;
  padding: 0 22px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.yh-search-btn:hover {
  background-color: var(--yh-brand-dark);
}

/* PRZYCISKI AKCJI W NAGŁÓWKU */
.yh-header-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid var(--yh-border);
  background: var(--yh-surface);
  color: var(--yh-text);
}

.yh-header-action:hover {
  border-color: var(--yh-brand);
  color: var(--yh-brand);
  background: var(--yh-brand-soft);
}

.yh-header-action.yh-merch-pill {
  background: var(--yh-brand);
  color: #FFFFFF !important;
  border-color: var(--yh-brand);
}

.yh-header-action.yh-merch-pill:hover {
  background: var(--yh-brand-dark);
}

/* PASEK KATEGORII */
.yh-nav-bar {
  background-color: var(--yh-surface);
  border-bottom: 1px solid var(--yh-border);
  box-shadow: 0 1px 2px rgba(43, 38, 35, 0.03);
}

.yh-nav-link {
  display: inline-block;
  padding: 11px 14px;
  font-size: 14px;
  font-weight: 700;
  color: var(--yh-text);
  border-bottom: 3px solid transparent;
}

.yh-nav-link:hover,
.yh-nav-link.active {
  color: var(--yh-brand);
  border-bottom-color: var(--yh-brand);
}

/* KARTY I KONTENERY PORTALU */
.yh-card {
  background: var(--yh-surface);
  border: 1px solid var(--yh-border);
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(43, 38, 35, 0.04);
  overflow: hidden;
}

.yh-section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--yh-border);
}

.yh-section-heading h2,
.yh-section-heading h3 {
  font-size: 18px;
  font-weight: 800;
  margin: 0;
  color: var(--yh-text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.yh-section-accent {
  width: 4px;
  height: 18px;
  background: var(--yh-brand);
  border-radius: 2px;
  display: inline-block;
}

.yh-cat-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--yh-brand);
  margin-bottom: 4px;
}

/* HERO ARTYKUŁ */
.yh-hero-wrap {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  background: var(--yh-surface);
  border: 1px solid var(--yh-border);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(43, 38, 35, 0.05);
}

@media (max-width: 767px) {
  .yh-hero-wrap {
    grid-template-columns: 1fr;
  }
}

.yh-hero-img {
  width: 100%;
  height: 100%;
  min-height: 270px;
  max-height: 340px;
  object-fit: cover;
  display: block;
}

.yh-hero-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* STRUMIEŃ WIADOMOŚCI (FEED) */
.yh-feed-item {
  display: flex;
  gap: 16px;
  padding: 16px;
  background: var(--yh-surface);
  border: 1px solid var(--yh-border);
  border-radius: 10px;
  margin-bottom: 12px;
  transition: box-shadow 0.15s ease;
}

.yh-feed-item:hover {
  box-shadow: 0 4px 12px rgba(43, 38, 35, 0.07);
}

.yh-feed-thumb {
  width: 210px;
  height: 135px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

@media (max-width: 575px) {
  .yh-feed-item {
    flex-direction: column;
  }
  .yh-feed-thumb {
    width: 100%;
    height: 185px;
  }
}

/* TRENDING LIST */
.yh-trending-num {
  font-weight: 800;
  color: var(--yh-brand);
  font-size: 15px;
  min-width: 22px;
}

/* SEKCJA SKLEPU: OFICJALNY MERCH YOHOO! */
.yh-merch-section {
  background: linear-gradient(180deg, #FFFFFF 0%, #F6EFE5 100%);
  border: 1px solid var(--yh-border);
  border-top: 4px solid var(--yh-brand);
  border-radius: 10px;
  padding: 24px;
  margin-top: 28px;
  box-shadow: 0 2px 8px rgba(43, 38, 35, 0.04);
}

.yh-product-card {
  background: #FFFFFF;
  border: 1px solid var(--yh-border);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.yh-product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(43, 38, 35, 0.08);
}

.yh-product-img {
  width: 100%;
  height: 215px;
  object-fit: cover;
  border-bottom: 1px solid var(--yh-border);
}

.yh-price {
  font-size: 19px;
  font-weight: 800;
  color: var(--yh-text);
}

.yh-btn-primary {
  display: inline-block;
  background-color: var(--yh-brand);
  color: #FFFFFF !important;
  font-weight: 600;
  font-size: 13.5px;
  padding: 9px 16px;
  border-radius: 6px;
  text-align: center;
  border: none;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.yh-btn-primary:hover {
  background-color: var(--yh-brand-dark);
}

.yh-btn-outline {
  display: inline-block;
  background-color: #FFFFFF;
  color: var(--yh-brand) !important;
  font-weight: 600;
  font-size: 13px;
  padding: 8px 14px;
  border-radius: 6px;
  text-align: center;
  border: 1px solid var(--yh-brand);
}

.yh-btn-outline:hover {
  background-color: var(--yh-brand-soft);
}

/* SIDEBAR WIDGETY */
.yh-widget {
  background: var(--yh-surface);
  border: 1px solid var(--yh-border);
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 18px;
}

.yh-finance-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--yh-border);
  font-size: 13.5px;
}

.yh-finance-row:last-child {
  border-bottom: none;
}

/* STYLIZACJA SKLEPU */
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
  background: #FFFFFF;
  border: 1px solid var(--yh-border);
  border-radius: 8px;
  padding: 14px;
  box-shadow: 0 1px 3px rgba(43, 38, 35, 0.04);
}

.woocommerce ul.products li.product .price,
.woocommerce div.product p.price,
.woocommerce div.product span.price {
  color: var(--yh-text);
  font-weight: 800;
}

.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce a.button.alt,
.woocommerce button.button.alt {
  background-color: var(--yh-brand) !important;
  color: #FFFFFF !important;
  border-radius: 6px !important;
  font-weight: 600 !important;
  padding: 10px 18px !important;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover {
  background-color: var(--yh-brand-dark) !important;
}

.woocommerce span.onsale {
  background-color: var(--yh-brand) !important;
  color: #FFFFFF !important;
}

/* STOPKA */
.yh-footer {
  background-color: var(--yh-surface);
  border-top: 1px solid var(--yh-border);
  margin-top: 48px;
  padding: 36px 0 24px;
  color: var(--yh-muted);
  font-size: 13.5px;
}

.yh-footer h6 {
  color: var(--yh-text);
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 12px;
}

.yh-footer a {
  color: var(--yh-muted);
}

.yh-footer a:hover {
  color: var(--yh-brand);
  text-decoration: underline;
}
