/*
Theme Name: Astra Child - Magical Ebooks
Theme URI: https://magicalebooks.com
Description: Child theme for Magical Ebooks
Author: Magical Ebooks
Author URI: https://magicalebooks.com
Template: astra
Version: 1.0.0
*/

/* Import parent theme styles */
@import url("../astra/style.css");

/* ============================================
   MAGICAL EBOOKS GLOBAL STYLES
   ============================================ */
@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;0,800;1,400;1,700&family=Inter:wght@400;500;600;700&family=Cormorant+Garamond:ital,wght@0,400;0,600;1,400;1,600&display=swap");

:root {
  --me-deep: #2D1B5E;
  --me-mid: #6247AA;
  --me-dark: #1E1040;
  --me-gold: #D4AF37;
  --me-gold-soft: #EDD98A;
  --me-lavender: #A78BDA;
  --me-white: #FFFFFF;
}

body {
  background: var(--me-dark) !important;
  font-family: "Inter", sans-serif !important;
  margin: 0;
  padding-top: 72px !important;
}

@media (max-width: 768px) {
  body { padding-top: 60px !important; }
}

/* Hide default Astra header */
#masthead, .ast-desktop-header, .site-header {
  display: none !important;
}

/* Hide default Astra footer */
#colophon, .site-footer {
  display: none !important;
}

/* Our custom header */
.me-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  height: 72px;
  background: #1E1040;
  border-bottom: 1px solid rgba(212,175,55,0.4);
  display: flex;
  align-items: center;
  transition: height 0.3s, box-shadow 0.3s;
}
.me-header.scrolled {
  height: 60px;
  box-shadow: 0 2px 24px rgba(212,175,55,0.14);
}
.me-header__inner {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  padding: 0 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.me-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  flex-shrink: 0;
}
.me-logo__icon {
  color: #D4AF37;
}
.me-logo__text {
  font-family: "Playfair Display", serif;
  font-size: 20px;
  font-weight: 700;
  color: #D4AF37;
  line-height: 1;
}
.me-logo__text em {
  font-style: italic;
  color: #A78BDA;
  font-size: 14px;
  display: block;
  font-weight: 400;
  letter-spacing: 0.04em;
  margin-top: 2px;
}
.me-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.me-nav a {
  font-family: "Playfair Display", serif;
  font-size: 15px;
  font-weight: 500;
  color: #A78BDA;
  text-decoration: none;
  position: relative;
  transition: color 0.2s;
  padding-bottom: 4px;
}
.me-nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: #D4AF37;
  transition: width 0.25s;
}
.me-nav a:hover,
.me-nav a.active {
  color: #D4AF37;
}
.me-nav a:hover::after,
.me-nav a.active::after {
  width: 100%;
}
.me-header__cta {
  font-family: "Playfair Display", serif;
  font-size: 13px;
  font-weight: 700;
  color: #D4AF37;
  border: 1px solid #D4AF37;
  padding: 10px 22px;
  border-radius: 4px;
  text-decoration: none;
  background: transparent;
  transition: all 0.3s;
  white-space: nowrap;
  flex-shrink: 0;
}
.me-header__cta:hover {
  background: #D4AF37;
  color: #1E1040;
}
.me-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.me-hamburger svg { display: block; }

/* Mobile nav */
.me-mobile-nav {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  background: #1E1040;
  border-bottom: 1px solid rgba(212,175,55,0.3);
  padding: 16px 24px 24px;
  z-index: 9998;
  flex-direction: column;
  gap: 0;
}
.me-mobile-nav.open { display: flex; }
.me-mobile-nav a {
  font-family: "Playfair Display", serif;
  font-size: 18px;
  color: #A78BDA;
  text-decoration: none;
  padding: 14px 0;
  border-bottom: 1px solid rgba(212,175,55,0.1);
  transition: color 0.2s;
}
.me-mobile-nav a:hover { color: #D4AF37; }
.me-mobile-nav a:last-child { border-bottom: none; }

@media (max-width: 768px) {
  .me-nav, .me-header__cta { display: none; }
  .me-hamburger { display: block; }
}

/* Our custom footer */
.me-footer {
  background: #1E1040;
  border-top: 2px solid #D4AF37;
  padding-top: 64px;
}
.me-footer__grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 30px 48px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
}
.me-footer__brand-name {
  font-family: "Playfair Display", serif;
  font-size: 20px;
  font-weight: 700;
  color: #D4AF37;
}
.me-footer__brand-name em {
  font-style: italic;
  color: #A78BDA;
  font-size: 14px;
  display: block;
  font-weight: 400;
  margin-top: 2px;
}
.me-footer__tagline {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: 14px;
  color: #A78BDA;
  line-height: 1.6;
  margin: 12px 0 16px;
}
.me-footer__socials {
  display: flex;
  gap: 12px;
}
.me-footer__socials a {
  color: #A78BDA;
  transition: color 0.2s;
  display: flex;
  align-items: center;
}
.me-footer__socials a:hover { color: #D4AF37; }
.me-footer__col h4 {
  font-family: "Inter", sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #D4AF37;
  margin: 0 0 16px;
}
.me-footer__col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.me-footer__col ul a {
  font-family: "Inter", sans-serif;
  font-size: 13px;
  color: #A78BDA;
  text-decoration: none;
  transition: color 0.2s;
}
.me-footer__col ul a:hover { color: #D4AF37; }
.me-footer__bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 30px;
  border-top: 1px solid rgba(212,175,55,0.12);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.me-footer__bottom p,
.me-footer__bottom a {
  font-family: "Inter", sans-serif;
  font-size: 12px;
  color: #A78BDA;
  margin: 0;
  text-decoration: none;
}
.me-footer__bottom a:hover { color: #D4AF37; }

@media (max-width: 900px) {
  .me-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .me-footer__grid { grid-template-columns: 1fr; }
  .me-footer__bottom { flex-direction: column; text-align: center; }
}
