/*
Theme Name: Astra Child
Theme URI: https://wpastra.com/
Description: Minimal child theme for Astra, based on custom site design.
Author: Your Name
Template: astra
Version: 1.2.0
*/

/* Google fonts */
@import url('href="https://fonts.googleapis.com/css2?family=Libre+Franklin:ital,wght@0,100..900;1,100..900&family=New+Rocker&family=Philosopher:ital,wght@0,400;0,700;1,400;1,700&family=Pirata+One&family=Space+Mono:ital,wght@0,400;0,700;1,400;1,700&display=swap');

/* WP admin bar support on mobile */
@media screen and (max-width: 600px) {
    #wpadminbar {
        top: -46px;
    }
}

/* General styles */
body {
  font-family: 'Libre Franklin', sans-serif;
  letter-spacing: .1px;
  color: #e0e6ed;
  margin: 0;
  min-height: 100vh;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
/*   background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(1, 54, 122) 65%, rgba(1, 54, 122) 100%); */
  background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(10, 24, 56, 0.92) 70%, rgba(10, 24, 56, 1) 100%);
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'New Rocker', serif;
  font-weight: 400 !important;
  letter-spacing: 1px !important;
  color: #b3d1ff !important;
}

/* Header */
.site-header {
  position: relative;
  padding: 1.5rem 1rem 1.5rem 1rem;
  background: linear-gradient(to bottom, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
  text-align: center;
  z-index: 2;
}

.site-header .site-logo-wrapper {
  color: #fff;
  font-size: 3rem;
  font-family: 'New Rocker', serif;
  letter-spacing: 0.1em;
  line-height: 1;
  margin-bottom: .5rem;
  text-shadow: 0 2px 12px rgba(20,40,80,0.45), 0 1px 2px rgba(0,0,0,0.25);
}

.site-title-link {
  color: inherit;
  text-decoration: none;
  transition: text-shadow 0.3s, color 0.3s;
}
.site-title-link:hover, 
.site-title-link:focus {
  color: #fff;
  text-shadow: 0 0 12px #bfc9d1, 0 0 24px #3a6ea8, 0 2px 12px rgba(20,40,80,0.45);
}

.tagline {
  font-family: 'Libre Franklin', sans-serif;
  font-size: 1.15rem;
  color: #bfc9d1;
  margin-bottom: .5rem;
  text-shadow: 0 2px 12px rgba(20,40,80,0.45), 0 1px 2px rgba(0,0,0,0.25);
}

/* Primary navigation */
#primary {
	margin: 0 !important;
}

.main-nav ul {
  list-style: none;
  padding: 0 0 1.5rem;
  margin: 0;
  display: flex;
  justify-content: center;
  gap: 2.5rem;
}

.main-nav li {
  font-size: 1.1rem;
  position: relative;
}

.main-nav li a {
	color: #4fc3f7;
}

.main-nav li.active a,
.main-nav li a:hover {
  color: #e0e6ed;
}

.main-nav li.active::after {
  content: '';
  display: block;
  margin: 0.25rem auto 0 auto;
  width: 60%;
  height: 2px;
  background: #e0e6ed;
}

.main-nav a {
  color: #bfc9d1;
  text-decoration: none;
  transition: color 0.2s;
}

/* WP blocks */
.wp-block-quote {
	border-left-color: #b3d1ff !important;
	color: #e0e6ed;
	font-family: 'Philosopher', serif;
	font-size: 18px;
}
.wp-element-caption {
	margin: 0;
	font-family: 'Philosopher', serif;
	font-style: italic;	
}

/* Single post pages and other tempalte overrides (Astra theme) */
.ast-separate-container .ast-article-single:not(.ast-related-post), .woocommerce.ast-separate-container .ast-woocommerce-container, .ast-separate-container .error-404, .ast-separate-container .no-results, .single.ast-separate-container .site-main .ast-author-meta, .ast-separate-container .related-posts-title-wrapper, .ast-separate-container .comments-count-wrapper, .ast-box-layout.ast-plain-container .site-content, .ast-padded-layout.ast-plain-container .site-content, .ast-separate-container .ast-archive-description, .ast-separate-container .comments-area .comment-respond, .ast-separate-container .comments-area .ast-comment-list li, .ast-separate-container .comments-area .comments-title {
	padding: 0;
	background-color: #232b3a;
	color: #e0e6ed;
}

@media (max-width: 900px) {
	body.single .content-area {
		padding: 0 !important;
	}
}

/* Main container */
main {
  max-width: 700px;
  margin: 0 auto;
  padding: 0 1rem 3rem 1rem;
}

.site-main {
  background: #232b3a;
  max-width: 700px;
  margin: 0 auto 0 auto;
  box-shadow: 0 4px 32px 0 rgba(0,0,0,0.18);
  padding: 2.5rem 2rem 2rem 2rem;
  position: relative;
  z-index: 1;
}

/* Post title */
header.entry-header:not(.related-entry-header) > *:not(:last-child) {
	margin-bottom: 10px;
}

/* Post meta */
.entry-meta .posted-on .published {
	color: #bfc9d1;
	font-family: 'Philosopher', serif;
	font-style: italic;
}

/* image utility class */
.custom-image-wrapper {
  position: relative;
  width: 320px;
  height: 320px;
  flex: 0 0 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.custom-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 2px solid #2e3a4d;
  border-radius: 8px;
  display: block;
  z-index: 1;
}

.custom-image-overlay {
  position: absolute;
  inset: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(60,120,200,0.18) 0%, rgba(10,25,47,0.45) 100%);
  box-shadow: 0 4px 32px 0 rgba(10,20,40,0.18);
  z-index: 2;
  pointer-events: none;
}

/* MailerLite Forms ----------------- */

/* Reader magnet form */
#mlb2-27665313.ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody .ml-form-embedContent h4 {
	font-family: 'New Rocker', serif !important;
} 

/* Subscribe form */
#mlb2-16763253.ml-form-embedContainer .ml-form-embedWrapper.embedForm {
	background: #232b3a;
	border: 1px solid #bfc9d1;
}

#mlb2-16763253.ml-form-embedContainer .ml-form-embedWrapper.embedForm h4 {
	font-family: 'New Rocker', serif !important;
}

#mlb2-16763253.ml-form-embedContainer .ml-form-embedWrapper.embedForm p {
	color: #bfc9d1 !important;
	font-family: 'Libre Franklin', sans-serif !important;
}

#mlb2-16763253.ml-form-embedContainer .ml-form-embedWrapper.embedForm button {
	background: #6000cd !important;
}

#mlb2-16763253.ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody .ml-form-checkboxRow label p {
	color: #bfc9d1 !important;
}
/* ----------------------- */

/* Footer */
.site-footer {
  position: relative;
  background: #232b3a;
  color: #bfc9d1;
  text-align: center;
  padding: 1rem;
  max-width: 700px;
  margin: 0 auto 4rem;
  font-size: 1rem;
  border-top: 1px solid #b3d1ff;
  z-index: 1;
}

.footer-nav {
  margin-bottom: 0.5rem;
	padding-top: 1rem;
}

.footer-nav ul {
	display: flex;
    justify-content: center;
	margin: 0;
	list-style: none;
}

.footer-nav a {
  color: #4fc3f7;
  text-decoration: none;
  margin: 0 0.5rem;
  transition: color 0.2s;
}

.footer-nav a:hover {
  color: #e0e6ed;
}

@media (max-width: 900px) {
  /* image utility class */	
  .custom-image-wrapper {
    width: 100%;
    max-width: 320px;
    margin: 2rem auto 0 auto;
  }
} 

@media (max-width: 785px) {
	.site-main {
		padding: 2.5rem 1rem 2rem 1rem;
	}
	.site-footer {
		margin-bottom: 0;
	}
}

@media (max-width: 600px) {
  .site-header .site-logo-wrapper {
    font-size: 2.25rem;
  }
}

/* Hide hamburger on desktop by default */
.hamburger-btn {
  display: none;
}

/* --- MOBILE NAVIGATION --- */
@media (max-width: 785px) {
  .site-header {
    padding: 2rem 1rem 1.5rem 1rem;
    text-align: center;
  }
  .site-header h1 {
    font-size: 2.1rem;
    margin-bottom: 0.3rem;
  }
  .tagline {
    font-size: 1rem;
    margin-bottom: 1.2rem;
  }
  .hamburger-btn {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin: 0 auto 0.5rem auto;
    border: none;
    cursor: pointer;
    z-index: 5;
    position: relative;
  }
  .hamburger-bar {
    display: block;
    width: 28px;
    height: 4px;
    margin: 3px 0;
	padding: 2px;
    background: #e0e6ed;
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(.4,2,.6,1);
  }
  .main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(20, 28, 38, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transform: translateY(-100%);
    transition: transform .3s ease-out;
    z-index: 1200;
    opacity: 0;
    pointer-events: none;
  }
  .main-nav ul {
    flex-direction: column;
    gap: 2.2rem;
    font-size: 1.5rem;
    align-items: center;
  }
  .main-nav li {
    font-size: 1.3rem;
  }
  .main-nav.menu-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .close-menu-btn {
    display: block !important;
    position: absolute;
    top: 1.2rem;
    right: 1.2rem;
    background: none;
    border: none;
    color: #e0e6ed;
    font-size: 2.5rem;
    line-height: 1;
    z-index: 1300;
    cursor: pointer;
    padding: 0.2em 0.5em;
    transition: color 0.2s;
  }
  .close-menu-btn:hover,
  .close-menu-btn:focus {
    color: #bfc9d1;
    outline: none;
  }
}
/* Hide close button on desktop */
.close-menu-btn {
  display: none;
}

/* --- 404 ERROR PAGE STYLES --- */
body.error404 main {
	padding: 0;
}

.error-404 {
  text-align: center;
  padding: 2rem 0;
}

.error-number {
  font-family: 'New Rocker', serif;
  font-size: 4.5rem;
  color: #b3d1ff;
  line-height: 1;
  margin-bottom: 1rem;
  text-shadow: 0 0 20px rgba(179, 209, 255, 0.3);
}

.error-content p {
  font-size: 1.2rem;
  color: #bfc9d1;
  margin-bottom: 2rem;
  font-family: 'Libre Franklin', sans-serif;
}

.search-form-wrapper {
  margin: 2rem 0;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.search-form-wrapper .search-field {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid #2e3a4d;
  border-radius: 6px;
  background: #1a1f2a;
  color: #e0e6ed;
  font-family: 'Libre Franklin', sans-serif;
  font-size: 1rem;
}

.search-form-wrapper .search-field:focus {
  outline: none;
  border-color: #4fc3f7;
  box-shadow: 0 0 0 3px rgba(79, 195, 247, 0.1);
}

.search-form-wrapper .search-submit {
  margin-top: 1rem;
  padding: 0.75rem 2rem;
  background: #6000cd;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-family: 'Libre Franklin', sans-serif;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.2s;
}

.search-form-wrapper .search-submit:hover {
  background: #7a1fd8;
}

.error-actions {
  margin: 2rem 0;
}

.btn-primary {
  display: inline-block;
  padding: 0.75rem 2rem;
  background: #6000cd;
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  font-family: 'Libre Franklin', sans-serif;
  font-size: 1rem;
  transition: background-color 0.2s;
}

.btn-primary:hover {
  background: #7a1fd8;
  color: #fff;
}

.recent-posts {
  margin-top: 3rem;
  text-align: left;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.recent-posts h3 {
  font-family: 'New Rocker', serif;
  color: #b3d1ff;
  margin-bottom: 1rem;
  text-align: center;
}

.recent-posts ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.recent-posts li {
  margin-bottom: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #2e3a4d;
}

.recent-posts li:last-child {
  border-bottom: none;
}

.recent-posts a {
  color: #4fc3f7;
  text-decoration: none;
  font-family: 'Libre Franklin', sans-serif;
  transition: color 0.2s;
}

.recent-posts a:hover {
  color: #e0e6ed;
}

/* --- SEARCH RESULTS PAGE STYLES --- */
.search-info {
  color: #bfc9d1;
  font-family: 'Libre Franklin', sans-serif;
  margin-bottom: 2rem;
  font-style: italic;
}

.search-results {
  margin-top: 2rem;
}

.search-result-item {
  margin-bottom: 2.5rem;
  padding: 1.5rem 0 !important;
  background: #232b3a !important;
  border-bottom: 1px solid #2e3a4d;
}

.search-result-item:last-child {
  border-bottom: none;
}

.search-result-item .entry-title {
  margin-bottom: 0.75rem;
}

.search-result-item .entry-title a {
  color: #b3d1ff;
  text-decoration: none;
  transition: color 0.2s;
}

.search-result-item .entry-title a:hover {
  color: #e0e6ed;
}

.search-result-item .entry-summary {
  color: #bfc9d1;
  font-family: 'Libre Franklin', sans-serif;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.search-result-item .entry-footer {
  font-size: 0.9rem;
  color: #8a9ba8;
}

.search-result-item .entry-meta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.search-result-item .entry-meta span {
  font-family: 'Libre Franklin', sans-serif;
}

.search-result-item .categories a {
  color: #4fc3f7;
  text-decoration: none;
  transition: color 0.2s;
}

.search-result-item .categories a:hover {
  color: #e0e6ed;
}

.no-results-content {
  text-align: center;
  padding: 2rem 0;
}

.no-results-content p {
  font-size: 1.1rem;
  color: #bfc9d1;
  margin-bottom: 2rem;
  font-family: 'Libre Franklin', sans-serif;
}

.suggestions {
  margin-top: 2rem;
  text-align: left;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.suggestions h3 {
  font-family: 'New Rocker', serif;
  color: #b3d1ff;
  margin-bottom: 1rem;
  text-align: center;
}

.suggestions ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.suggestions li {
  margin-bottom: 0.5rem;
  padding-left: 1.5rem;
  position: relative;
  color: #bfc9d1;
  font-family: 'Libre Franklin', sans-serif;
}

.suggestions li::before {
  content: '•';
  color: #4fc3f7;
  position: absolute;
  left: 0;
}

/* --- RESPONSIVE STYLES FOR 404 AND SEARCH --- */
@media (max-width: 600px) {
  .error-number {
    font-size: 6rem;
  }
  
  .error-content p {
    font-size: 1rem;
  }
  
  .search-result-item .entry-meta {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .suggestions {
    max-width: 100%;
  }
}

