/*
Theme Name: AZ Hive Bee Shed
Theme URI: https://kbreisch.net/
Author: Keith Breisch
Author URI: https://kbreisch.net/
Description: A personal blog and documentation site for the AZ Hive Bee Shed — a walk-in beekeeping shed housing Slovenian AZ-style hives. Scooby-Doo themed.
Requires at least: 6.8
Tested up to: 6.8
Requires PHP: 7.4
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: starter-block-theme-v4
Tags: Block editor patterns, Block editor styles, Block themes, Template editing
*/

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Source+Sans+3:wght@300;400;600&family=Special+Elite&display=swap');

/*  Smooth Scroll */
html {
  scroll-behavior: smooth;
}

/*  Reduced motion prefs  */
@media screen and (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/*  Navigation Block Breakpoint. Credit: https://wpdocs.io/ */
body .wp-block-navigation__responsive-container-open:not(.always-shown) {
  display: block !important;
}

body
  .wp-block-navigation__responsive-container:not(.hidden-by-default):not(
    .is-menu-open
  ) {
  display: none !important;
}

@media (min-width: 782px) {
  body .wp-block-navigation__responsive-container-open:not(.always-shown) {
    display: none !important;
  }

  body
    .wp-block-navigation__responsive-container:not(.hidden-by-default):not(
      .is-menu-open
    ) {
    display: block !important;
  }
}

/* Nicely wrapped headlines */
h1,
h2,
h3,
h4 {
  text-wrap: balance;
}

:where(.wp-block-columns.has-background) {
  padding: initial;
}

/* Pull Quote */
.wp-block-pullquote blockquote {
  display: grid;
  gap: 20px;
}

.wp-block-pullquote cite {
  font-size: 80%;
  font-weight: 600;
}

/* Search Block */
.wp-block-search__input {
  border: 1px solid;
}

.wp-block-search__button {
  box-shadow: none;
  border: 1px solid var(--wp--preset--color--hive-dark);
  border-radius: 4px;
  background: var(--wp--preset--color--honey-gold);
  color: var(--wp--preset--color--hive-dark);
  padding: 0.4rem 1rem 0.5rem 1rem;
  font-weight: 600;
}

/* Comments */
.comment-form-cookies-consent {
  font-size: 14px;
  line-height: 2;
}

/* Post title links */
.wp-block-post-title :where(a) {
  color: var(--wp--preset--color--hive-dark);
  text-decoration: none;
}

.wp-block-post-title :where(a):hover {
  color: var(--wp--preset--color--amber);
}

/* Button hover state */
.wp-block-button__link,
a {
  transition: 0.3s;
}

.wp-block-button.is-style-fill .wp-block-button__link:hover,
#commentform .form-submit.wp-block-button input:hover {
  background: var(--wp--preset--color--amber);
  color: var(--wp--preset--color--hive-dark);
}

.wp-block-button .wp-block-button__link:hover {
  background: var(--wp--preset--color--amber);
  color: var(--wp--preset--color--hive-dark);
  border-color: var(--wp--preset--color--amber);
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
  background: var(--wp--preset--color--honey-gold);
  color: var(--wp--preset--color--hive-dark);
  border-color: var(--wp--preset--color--honey-gold);
}

a:hover:not(.wp-block-site-title a, .wp-block-button__link.wp-element-button) {
  text-decoration: underline !important;
}

/* Hive cards */
.card-hive {
	background: #1e1e1e;
	border-radius: 12px;
	padding: 20px;
	box-shadow: 0 4px 15px rgba(0,0,0,0.5);
	cursor: pointer;
	border: 2px solid transparent;
	transition: border-color 0.2s, background 0.2s;
}

/* Hive logo in cards */
.hive-logo {
	display: block;
	width: 48px;
	height: 48px;
	object-fit: contain;
	margin: 0 auto 8px;
	border-radius: 12px;
	box-shadow: 0 2px 8px rgba(44, 26, 14, 0.18);
	background-color: var(--wp--preset--color--beeswax);
	padding: 4px;
}

/* Hero cover — fills viewport naturally */
.hero-cover {
	min-height: 520px !important;
}

/* Hero cover image — force fill height */
.wp-block-cover__image-background {
	object-fit: cover !important;
	object-position: center center !important;
	width: 100% !important;
	height: 100% !important;
	position: absolute !important;
	inset: 0 !important;
}

/* Header logo */
.site-logo-img {
	width: 180px;
	height: 150px;
	object-fit: contain;
}

.site-logo-group {
	gap: 0 !important;
}

/* Sticky header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--wp--preset--color--chalk-white);
  border-bottom: 3px solid var(--wp--preset--color--honey-gold);
  box-shadow: 0 2px 8px rgba(44, 26, 14, 0.08);
}

/* ---------------------------------------------------------------
   Dark mode — must remain at bottom to override light mode rules
--------------------------------------------------------------- */
@media (prefers-color-scheme: dark) {

	:root {
		--wp--preset--color--chalk-white: #1C1410;
		--wp--preset--color--hive-dark:   #F0E8D8;
		--wp--preset--color--beeswax:     #2A1F14;
		--wp--preset--color--shed-gray:   #C8BFB5;
	}

	body {
		background-color: #1C1410;
		color: #F0E8D8;
	}

	.site-header {
		background: #1C1410;
	}

	.card-hive {
		background: #2a2a2a;
		box-shadow: 0 4px 15px rgba(0,0,0,0.7);
	}

	.hive-logo {
		background-color: transparent;
		box-shadow: 0 4px 16px rgba(255, 255, 255, 0.2);
		filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.25));
	}

	.wp-block-post-title :where(a) {
		color: #F0E8D8;
	}

	.wp-block-post-title :where(a):hover {
		color: var(--wp--preset--color--honey-gold);
	}

	.wp-block-query-pagination a {
		color: var(--wp--preset--color--honey-gold);
	}

	.wp-block-search__input {
		background: #2A1F14;
		color: #F0E8D8;
		border-color: #C8BFB5;
	}

	.wp-block-search__button {
		background: var(--wp--preset--color--honey-gold);
		color: #1C1410;
		border-color: var(--wp--preset--color--amber);
	}

	hr.wp-block-separator {
		border-color: #2A1F14;
	}

}
