/*
Theme Name: FRhurt MaxiBlocks Child
Theme URI: https://frhurt.com
Description: Custom child theme for FRhurt.com - Fantasy Authors website, built on MaxiBlocks Pro. Features custom book showcase blocks, author sections, and newsletter integration.
Author: Frank & RaeLea Hurt
Author URI: https://frhurt.com
Template: maxiblocks-go
Version: 1.0.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: frhurt-maxiblocks
*/

/* ========================================
   FRHURT CUSTOM THEME STYLES
   ======================================== */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;600;700&family=Source+Sans+Pro:wght@300;400;600;700&display=swap');

/* CSS Variables - FRhurt Brand Colors */
:root {
  --frhurt-dark: #1a1510;
  --frhurt-charcoal: #231c16;
  --frhurt-amber: #d97706;
  --frhurt-amber-light: #f59e0b;
  --frhurt-gold: #fbbf24;
  --frhurt-red: #dc2626;
  --frhurt-cream: #fef3c7;
  --frhurt-text: #fef3c7;
  --frhurt-text-muted: rgba(254, 243, 199, 0.7);
}

/* Base Typography */
body {
  font-family: 'Source Sans Pro', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--frhurt-dark);
  color: var(--frhurt-text);
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

/* ========================================
   HERO SECTION STYLES
   ======================================== */

.frhurt-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.frhurt-hero__background {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.frhurt-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(26, 21, 16, 0.3) 0%,
    rgba(26, 21, 16, 0.6) 50%,
    rgba(26, 21, 16, 0.95) 100%
  );
}

.frhurt-hero__content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 2rem;
  max-width: 900px;
}

.frhurt-hero__tagline {
  color: var(--frhurt-amber);
  font-size: 0.875rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.frhurt-hero__title {
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 700;
  color: white;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.8);
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.frhurt-hero__title-accent {
  color: var(--frhurt-amber);
  display: block;
}

.frhurt-hero__description {
  font-size: 1.25rem;
  color: var(--frhurt-text-muted);
  max-width: 600px;
  margin: 0 auto 2rem;
  line-height: 1.6;
}

.frhurt-hero__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* ========================================
   BOOK CARD STYLES
   ======================================== */

.frhurt-book-card {
  background: var(--frhurt-charcoal);
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.frhurt-book-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.frhurt-book-card__image-wrapper {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
}

.frhurt-book-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.frhurt-book-card:hover .frhurt-book-card__image {
  transform: scale(1.08);
}

.frhurt-book-card__price {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.375rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 700;
}

.frhurt-book-card__price--free {
  background: #16a34a;
  color: white;
}

.frhurt-book-card__price--paid {
  background: var(--frhurt-amber);
  color: white;
}

.frhurt-book-card__button {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
}

.frhurt-book-card:hover .frhurt-book-card__button {
  opacity: 1;
  transform: translateY(0);
}

.frhurt-book-card__content {
  padding: 1.25rem;
}

.frhurt-book-card__subtitle {
  color: var(--frhurt-amber);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.frhurt-book-card__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--frhurt-text);
  margin-bottom: 0.5rem;
}

.frhurt-book-card__description {
  color: var(--frhurt-text-muted);
  font-size: 0.875rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ========================================
   POLAROID GALLERY STYLES
   ======================================== */

.frhurt-polaroid-gallery {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  padding: 1rem 0.5rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.frhurt-polaroid-gallery::-webkit-scrollbar {
  display: none;
}

.frhurt-polaroid {
  flex-shrink: 0;
  width: 280px;
  background: white;
  padding: 12px 12px 32px 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.frhurt-polaroid:hover {
  transform: rotate(-2deg) scale(1.02);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.frhurt-polaroid__image {
  aspect-ratio: 1;
  overflow: hidden;
  margin-bottom: 12px;
}

.frhurt-polaroid__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.frhurt-polaroid__title {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  color: #1a1510;
  text-align: center;
  font-size: 1.125rem;
}

.frhurt-polaroid__caption {
  color: #6b7280;
  text-align: center;
  font-size: 0.875rem;
}

/* ========================================
   BUTTON STYLES
   ======================================== */

.frhurt-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  border-radius: 0.5rem;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
}

.frhurt-button--primary {
  background: var(--frhurt-amber);
  color: white;
}

.frhurt-button--primary:hover {
  background: var(--frhurt-amber-light);
}

.frhurt-button--outline {
  background: transparent;
  color: var(--frhurt-text);
  border: 2px solid rgba(217, 119, 6, 0.5);
}

.frhurt-button--outline:hover {
  background: rgba(217, 119, 6, 0.1);
}

/* ========================================
   SECTION STYLES
   ======================================== */

.frhurt-section {
  padding: 5rem 1rem;
}

.frhurt-section--dark {
  background: var(--frhurt-dark);
}

.frhurt-section--charcoal {
  background: var(--frhurt-charcoal);
}

.frhurt-section__header {
  text-align: center;
  margin-bottom: 4rem;
}

.frhurt-section__label {
  color: var(--frhurt-amber);
  font-size: 0.875rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.frhurt-section__title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--frhurt-text);
  margin-bottom: 1rem;
}

.frhurt-section__description {
  color: var(--frhurt-text-muted);
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.125rem;
}

/* ========================================
   NAVIGATION STYLES
   ======================================== */

.frhurt-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: all 0.3s ease;
  padding: 1rem 0;
}

.frhurt-nav--scrolled {
  background: rgba(26, 21, 16, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.frhurt-nav__logo {
  height: 48px;
  width: auto;
  filter: brightness(0) invert(1);
}

/* ========================================
   NEWSLETTER SECTION
   ======================================== */

.frhurt-newsletter {
  background: linear-gradient(135deg, rgba(217, 119, 6, 0.2) 0%, var(--frhurt-dark) 100%);
  padding: 5rem 1rem;
  text-align: center;
}

.frhurt-newsletter__input {
  padding: 1rem 1.5rem;
  background: var(--frhurt-charcoal);
  border: 1px solid rgba(217, 119, 6, 0.3);
  border-radius: 0.5rem;
  color: var(--frhurt-text);
  font-size: 1rem;
  width: 100%;
  max-width: 400px;
}

.frhurt-newsletter__input::placeholder {
  color: rgba(254, 243, 199, 0.4);
}

.frhurt-newsletter__input:focus {
  outline: none;
  border-color: var(--frhurt-amber);
}

/* ========================================
   FOOTER STYLES
   ======================================== */

.frhurt-footer {
  background: #0f0c09;
  border-top: 1px solid rgba(217, 119, 6, 0.1);
  padding: 3rem 1rem;
}

.frhurt-footer__logo {
  height: 64px;
  width: auto;
  filter: brightness(0) invert(1);
  margin-bottom: 1rem;
}

/* ========================================
   RESPONSIVE UTILITIES
   ======================================== */

@media (max-width: 768px) {
  .frhurt-hero__buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .frhurt-button {
    width: 100%;
    max-width: 300px;
  }
  
  .frhurt-section {
    padding: 3rem 1rem;
  }
}

/* ========================================
   ANIMATIONS
   ======================================== */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.frhurt-animate-fade-in-up {
  animation: fadeInUp 0.6s ease forwards;
}

/* Scroll indicator animation */
@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

.frhurt-scroll-indicator {
  animation: bounce 2s infinite;
}
