/* ============================================
   Saara El-Arifi - Author Website
   Custom CSS with Tailwind utilities
   ============================================ */

/* Custom properties based on brand colors */
:root {
  --color-bg-primary: #1e293b;
  --color-bg-dark: #0f172a;
  --color-bg-darker: #020617;
  --color-accent: #e91e8c;
  --color-accent-light: #f472b6;
  --color-accent-glow: rgba(233, 30, 140, 0.3);
  --color-text-primary: #f7fafc;
  --color-text-muted: #94a3b8;
  --color-text-dark: #0f172a;
}

/* Base styles */
html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  background-color: var(--color-bg-dark);
  color: var(--color-text-primary);
  min-height: 100vh;
}

/* Background pattern */
.bg-pattern {
  background-image: url('../assets/images/sitebgsmall.jpg');
  background-size: 1000px;
  background-repeat: repeat;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -2;
  opacity: 1;
}

@keyframes subtleFloat {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-20px);
  }
}

.bg-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.3) 0%, rgba(15, 23, 42, 0.9) 100%);
}

/* Typography */
.font-display {
  font-family: 'Italiana', serif;
  text-transform: uppercase;
}

/* Logo - inverted to white */
.logo-white {
  filter: invert(1);
}


/* Navigation */
.nav-link {
  position: relative;
  color: var(--color-text-primary);
  transition: color 0.3s ease;
  font-family: 'Italiana', serif;
  text-transform: uppercase;
  font-weight: 900;
  font-size: 1.25rem;
  letter-spacing: 0.05em;
  text-shadow: 2px 2px 0 rgb(2 6 23), 0 0 4px rgb(2 6 23);
}

.nav-link:hover {
  color: var(--color-accent-light);
}

.nav-link.text-white {
  color: var(--color-accent);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}


























/* Accent color utilities */
.text-accent {
  color: var(--color-accent);
}

.bg-accent {
  background-color: var(--color-accent);
}

.border-accent {
  border-color: var(--color-accent);
}

/* Glow effects */
.glow-accent {
  box-shadow: 0 0 20px var(--color-accent-glow),
    0 0 40px var(--color-accent-glow);
}

.text-glow {
  text-shadow: 0 0 20px var(--color-accent-glow);
}

/* Button styles */
.btn-primary {
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-light) 100%);
  color: white;
  padding: 0.75rem 2rem;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-block;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px var(--color-accent-glow);
}

.btn-secondary {
  background: transparent;
  border: 2px solid var(--color-accent);
  color: var(--color-accent);
  padding: 0.75rem 2rem;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-block;
}

.btn-secondary:hover {
  background: var(--color-accent);
  color: white;
}

/* Glassmorphism Cards */
.card {
  background: rgba(2, 6, 23, 0.5);
  backdrop-filter: blur(2px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-5px);
  border-color: rgba(233, 30, 140, 0.3);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

.card.no-card-hover:hover {
  transform: none;
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: none;
}

/* Book cover hover effect */
.book-cover {
  transition: box-shadow 0.3s ease, transform 0.5s ease-out;
}

.book-cover:hover {
  transform: scale(1.05) rotateY(-5deg);
  box-shadow: 20px 20px 40px rgba(0, 0, 0, 0.4);
}


/* Wisp decorations */
.wisp {
  pointer-events: none;
  opacity: 0.8;
  z-index: 1;
}

footer {
  position: relative;
  z-index: 20;
}

.wisp-fixed-top {
  pointer-events: none;
  z-index: 1;
  position: fixed !important;
  top: 280px;
  left: 0px;
  width: 350px;
  height: auto;
}

/* Responsive scaling for wisps */
@media (max-width: 1024px) {
  .wisp-fixed-top {
    width: 280px;
    top: 200px;
  }
}

@media (max-width: 768px) {
  .wisp-fixed-top {
    width: 200px;
    top: 150px;
  }
}

@media (max-width: 480px) {
  .wisp-fixed-top {
    width: 150px;
    top: 120px;
  }
}

/* Form Styles */
input[type="text"],
input[type="email"],
textarea {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
  transition: all 0.3s ease;
}

input:focus,
textarea:focus {
  border-color: var(--color-accent);
  outline: none;
  background: rgba(255, 255, 255, 0.1);
}

.wisp-fixed-bottom {
  pointer-events: none;
  z-index: 1;
  position: fixed !important;
  bottom: 10px;
  right: 10px;
  width: 400px;
  height: auto;
}

@media (max-width: 1024px) {
  .wisp-fixed-bottom {
    width: 320px;
  }
}

@media (max-width: 768px) {
  .wisp-fixed-bottom {
    width: 220px;
  }
}

@media (max-width: 480px) {
  .wisp-fixed-bottom {
    width: 160px;
  }
}

.wisp-animate {
  animation: float 6s ease-in-out infinite;
}


@keyframes float {

  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-20px) rotate(5deg);
  }
}

/* Section spacing */
section {
  padding: 5rem 0;
}

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

/* Bestseller badge */
.bestseller-badge {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  color: #0f172a;
  padding: 0.25rem 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Newsletter form */
.newsletter-input {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  padding: 0.75rem 1rem;
  transition: all 0.3s ease;
}

.newsletter-input:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-accent-glow);
}

.newsletter-input::placeholder {
  color: var(--color-text-muted);
}

/* Specific textarea styling to prevent text cutoff */
textarea.newsletter-input {
  border-radius: 0.5rem;
  padding: 0.875rem 1rem;
  line-height: 1.5;
}


/* Footer */
footer {
  background: var(--color-bg-darker);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--color-bg-darker);
  z-index: 100;
  padding: 2rem;
}

.mobile-menu.active {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Hamburger menu */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 10px;
}

.hamburger span {
  width: 25px;
  height: 2px;
  background: var(--color-text-primary);
  transition: all 0.3s ease;
}

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-desktop {
    display: none;
  }
}

/* Smooth reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Social icons */
.social-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-text-muted);
  transition: all 0.3s ease;
}

.social-icon:hover {
  background: var(--color-accent);
  color: white;
  transform: translateY(-3px);
}

.social-icon-inverse {
  background: var(--color-accent);
  color: white;
}

.social-icon-inverse:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-text-muted);
}

/* Hide scrollbar for Chrome, Safari and Opera */
.scrollbar-hide::-webkit-scrollbar {
  display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
.scrollbar-hide {
  -ms-overflow-style: none;
  /* IE and Edge */
  scrollbar-width: none;
  /* Firefox */
}

/* Book Stack Animation */
.book-stack-container:hover .book-stack-left,
.book-stack-container.stack-visible .book-stack-left {
  opacity: 1;
  transform: translateX(-2.5rem) rotate(-6deg) scale(0.95);
  box-shadow: -5px 10px 20px rgba(0, 0, 0, 0.4);
}

.book-stack-container:hover .book-stack-right,
.book-stack-container.stack-visible .book-stack-right {
  opacity: 1;
  transform: translateX(2.5rem) rotate(6deg) scale(0.95);
  box-shadow: 5px 10px 20px rgba(0, 0, 0, 0.4);
}

/* Ensure nice fan out on larger screens */
@media (min-width: 768px) {

  .book-stack-container:hover .book-stack-left,
  .book-stack-container.stack-visible .book-stack-left {
    transform: translateX(-6rem) rotate(-10deg) scale(0.95);
  }

  .book-stack-container:hover .book-stack-right,
  .book-stack-container.stack-visible .book-stack-right {
    transform: translateX(6rem) rotate(10deg) scale(0.95);
  }
}