/*
 Theme Name:   Astra Child – Astromantie
 Theme URI:    https://astromantie.com
 Description:  Child Theme für Astromantie.com – Cosmic Dark V4 Design
 Author:       Astromantie
 Author URI:   https://astromantie.com
 Template:     astra
 Version:      1.0.0
 Text Domain:  astra-child
*/

/* ============================
   CSS VARIABLES
   ============================ */
:root {
  --astro-bg: #0a0a1a;
  --astro-surface: rgba(255,255,255,0.03);
  --astro-card: rgba(255,255,255,0.03);
  --astro-card-border: rgba(255,255,255,0.07);
  --astro-accent: #a78bfa;
  --astro-accent-dark: #7c3aed;
  --astro-accent-glow: rgba(124,58,237,0.3);
  --astro-gold: #e8c96a;
  --astro-gold-dim: rgba(232,201,106,0.3);
  --astro-text: #ffffff;
  --astro-text-mid: rgba(255,255,255,0.6);
  --astro-text-dim: rgba(255,255,255,0.35);
  --astro-nav-bg: rgba(10,10,26,0.8);
  --astro-btn-grad: linear-gradient(135deg, #7c3aed, #a78bfa);
  --astro-title-grad: linear-gradient(135deg, #a78bfa, #e8c96a);
  --astro-hero-title: #e8e0f0;
  --astro-input-bg: rgba(255,255,255,0.04);
  --astro-input-border: rgba(255,255,255,0.1);
  --astro-footer-border: rgba(255,255,255,0.04);
  --astro-section-alt: rgba(255,255,255,0.01);
  --astro-form-card-bg: rgba(15,12,35,0.85);
  --astro-form-glow: linear-gradient(90deg, transparent, #7c3aed, #a78bfa, #7c3aed, transparent);
  --astro-font-heading: 'Cinzel', serif;
  --astro-font-body: 'Inter', sans-serif;
  --astro-radius: 16px;
  --astro-radius-sm: 10px;
  --astro-radius-lg: 24px;
}

/* ============================
   GLOBAL RESET & BASE
   ============================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body, .ast-separate-container,
.ast-separate-container .ast-article-single,
.ast-separate-container .ast-article-post {
  background: var(--astro-bg) !important;
  color: var(--astro-text);
  font-family: var(--astro-font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Remove Astra default container styles */
.ast-container, .site-content .ast-container {
  max-width: 100% !important;
  padding: 0 !important;
}
.ast-separate-container .ast-article-single,
.ast-separate-container .ast-article-post,
.ast-separate-container .comments-area {
  background: transparent !important;
  padding: 0 !important;
}
#primary, #secondary, .site-main, .entry-content {
  padding: 0 !important;
  margin: 0 !important;
  max-width: 100% !important;
}
.entry-header, .entry-title, .ast-archive-description {
  display: none !important;
}

/* Hide Astra default header & footer — we use custom */
.ast-above-header-wrap, .ast-below-header-wrap,
#ast-desktop-header, #ast-mobile-header,
.main-header-bar-wrap, .ast-mobile-header-wrap,
.site-header, header.site-header,
.ast-above-header, .ast-below-header,
footer.site-footer, .site-footer,
.ast-small-footer, .ast-footer-overlay {
  display: none !important;
}

/* ============================
   TYPOGRAPHY
   ============================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--astro-font-heading);
  font-weight: 600;
  line-height: 1.3;
  color: var(--astro-text);
}

.astro-grad-text {
  background: var(--astro-title-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

a { color: var(--astro-accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--astro-gold); }

/* ============================
   KEYFRAME ANIMATIONS
   ============================ */
@keyframes starTwinkle {
  0%, 100% { opacity: 0.1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.5); }
}
@keyframes nebulaFloat {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.5; }
  50% { transform: translate(10px, -10px) scale(1.1); opacity: 0.8; }
}
@keyframes formGlowPulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}
@keyframes ctaShimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}
@keyframes auraRotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
@keyframes goldDust {
  0% { transform: translateY(-10px) translateX(0); opacity: 0; }
  20% { opacity: 0.8; }
  80% { opacity: 0.4; }
  100% { transform: translateY(calc(100vh * 0.4)) translateX(20px); opacity: 0; }
}
@keyframes goldPulse {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.05); }
}
@keyframes flowerBreathe {
  0%, 100% { opacity: 0.85; filter: blur(0px); }
  50% { opacity: 1; filter: blur(0.3px); }
}
@keyframes borderGlowPulse {
  0%, 100% { box-shadow: 0 0 8px rgba(124,58,237,0.15), inset 0 0 8px rgba(124,58,237,0.05), 0 25px 80px rgba(0,0,0,0.5); border-color: rgba(124,58,237,0.15); }
  50% { box-shadow: 0 0 18px rgba(124,58,237,0.3), inset 0 0 12px rgba(124,58,237,0.08), 0 25px 80px rgba(0,0,0,0.5); border-color: rgba(167,139,250,0.35); }
}
@keyframes borderGlowGold {
  0%, 100% { box-shadow: 0 0 10px rgba(201,168,76,0.1), inset 0 0 8px rgba(201,168,76,0.03), 0 15px 60px rgba(160,124,42,0.08); border-color: rgba(201,168,76,0.2); }
  50% { box-shadow: 0 0 22px rgba(201,168,76,0.2), inset 0 0 14px rgba(232,201,106,0.06), 0 15px 60px rgba(160,124,42,0.08); border-color: rgba(232,201,106,0.4); }
}
@keyframes skyDrift {
  0% { transform: translateX(0); }
  100% { transform: translateX(120px); }
}
@keyframes starPulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.9; }
}
@keyframes fadeUp {
  0% { opacity: 0; transform: translateY(24px); }
  100% { opacity: 1; transform: translateY(0); }
}
@keyframes orbFloat {
  0%, 100% { transform: translate(-20px, -30px); opacity: 0.08; }
  50% { transform: translate(20px, 30px); opacity: 0.12; }
}
@keyframes rotateIcon {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(180deg); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
@keyframes glowPulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.05); }
}

/* ============================
   CUSTOM HEADER
   ============================ */
.astro-header {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 48px;
  background: var(--astro-nav-bg);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: all 0.5s;
}
.astro-logo {
  font-family: var(--astro-font-heading);
  font-weight: 500; font-size: 18px; letter-spacing: 3px;
  color: var(--astro-text); cursor: pointer; text-decoration: none;
}
.astro-nav { display: flex; gap: 24px; align-items: center; font-size: 13px; color: #ffffff; letter-spacing: 0.3px; }
.astro-nav a, .astro-nav span {
  color: #ffffff; cursor: pointer; opacity: 0.8; transition: opacity 0.2s; text-decoration: none;
  font-family: var(--astro-font-body);
}
.astro-nav a:hover, .astro-nav span:hover { opacity: 1; color: var(--astro-accent); }
.astro-theme-toggle {
  width: 34px; height: 34px; border-radius: 50%; cursor: pointer;
  display: none; /* Hidden — dark-only for now */
  align-items: center; justify-content: center;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
  font-size: 16px; transition: all 0.3s;
}
.astro-cta-btn {
  padding: 9px 22px; border-radius: var(--astro-radius-sm); border: none;
  background: var(--astro-btn-grad); color: #fff;
  font-size: 12px; font-weight: 500; cursor: pointer; letter-spacing: 0.3px;
  box-shadow: 0 0 20px var(--astro-accent-glow); transition: all 0.3s;
  font-family: var(--astro-font-body); text-decoration: none; display: inline-block;
}
.astro-cta-btn:hover { transform: translateY(-2px); box-shadow: 0 0 30px var(--astro-accent-glow); color: #fff; }

/* Hamburger (mobile only) */
.astro-hamburger { display: none; flex-direction: column; align-items: center; justify-content: center; gap: 5px; width: 34px; height: 34px; cursor: pointer; }
.astro-hamburger span { display: block; width: 20px; height: 2px; background: var(--astro-text); border-radius: 1px; transition: all 0.3s; }
.astro-hamburger.open span:first-child { transform: rotate(45deg) translateY(5px); }
.astro-hamburger.open span:nth-child(2) { opacity: 0; }
.astro-hamburger.open span:last-child { transform: rotate(-45deg) translateY(-5px); }

/* Mobile menu overlay */
.astro-mobile-menu {
  display: none; position: fixed; top: 50px; left: 0; right: 0; bottom: 0; z-index: 99;
  background: rgba(10,10,26,0.97); backdrop-filter: blur(20px);
  flex-direction: column; align-items: center; justify-content: center; gap: 28px;
  animation: fadeUp 0.3s ease-out;
}
.astro-mobile-menu.open { display: flex; }
.astro-mobile-menu a {
  font-family: var(--astro-font-heading); font-size: 18px;
  color: var(--astro-text); letter-spacing: 1.5px; opacity: 0.8;
  text-decoration: none; transition: opacity 0.2s;
}
.astro-mobile-menu a:hover { opacity: 1; }
.astro-mobile-menu .astro-cta-btn { margin-top: 12px; padding: 14px 40px; font-size: 14px; font-weight: 600; }

/* ============================
   CUSTOM FOOTER
   ============================ */
.astro-footer {
  position: relative; overflow: hidden;
  color: var(--astro-text-dim);
  background: linear-gradient(180deg, #08051a 0%, #060318 40%, #050214 100%);
}
.astro-footer-glow-line {
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent 5%, rgba(232,201,106,0.7) 25%, rgba(167,139,250,0.6) 50%, rgba(232,201,106,0.7) 75%, transparent 95%);
}
.astro-footer-glow-blur {
  position: absolute; top: 0; left: 0; right: 0; height: 12px;
  background: linear-gradient(90deg, transparent 10%, rgba(232,201,106,0.12) 30%, rgba(167,139,250,0.08) 50%, rgba(232,201,106,0.12) 70%, transparent 90%);
  filter: blur(8px);
}
.astro-footer-inner { padding: 60px 48px 36px; max-width: 900px; margin: 0 auto; }
.astro-footer-brand { text-align: center; margin-bottom: 44px; }
.astro-footer-brand-name {
  font-family: var(--astro-font-heading); font-size: 22px; letter-spacing: 4px;
  color: var(--astro-text); font-weight: 500; margin-bottom: 14px;
}
.astro-footer-brand-tagline {
  font-size: 14px; line-height: 1.7; max-width: 420px; margin: 0 auto 20px; color: #e8e0f0;
}
.astro-footer-divider { display: flex; align-items: center; justify-content: center; gap: 12px; }
.astro-footer-divider-line { width: 40px; height: 1px; background: var(--astro-gold-dim); }
.astro-footer-divider-star { color: var(--astro-gold); font-size: 14px; }
.astro-footer-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  margin-bottom: 40px; position: relative;
}
.astro-footer-col { text-align: center; }
.astro-footer-col-icon {
  font-size: 18px; margin-bottom: 10px; color: var(--astro-gold);
  text-shadow: 0 0 10px rgba(232,201,106,0.4); font-weight: 300;
}
.astro-footer-col-title {
  font-size: 10px; letter-spacing: 2.5px; color: var(--astro-gold);
  text-transform: uppercase; margin-bottom: 16px; font-weight: 600;
}
.astro-footer-col a {
  display: block; font-size: 13px; margin-bottom: 11px; cursor: pointer;
  color: #ffffff; transition: color 0.2s; text-decoration: none;
}
.astro-footer-col a:hover { color: var(--astro-accent); }
.astro-footer-bottom {
  border-top: 1px solid rgba(232,201,106,0.1); padding-top: 24px;
  text-align: center; font-size: 12px; color: #ffffff;
}
.astro-footer-bottom a {
  color: var(--astro-gold); text-decoration: none;
  border-bottom: 1px solid var(--astro-gold-dim); transition: border-color 0.2s;
}
.astro-footer-socials { display: flex; justify-content: center; gap: 20px; margin-top: 20px; }
.astro-footer-socials a {
  display: flex; align-items: center; justify-content: center; width: 36px; height: 36px;
  border-radius: 50%; background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08); transition: all 0.3s;
}
.astro-footer-socials a:hover { background: rgba(255,255,255,0.1); transform: translateY(-2px); }

/* ============================
   COMPONENTS
   ============================ */
.astro-card {
  background: var(--astro-card); border: 1px solid var(--astro-card-border);
  border-radius: var(--astro-radius); padding: 32px; transition: all 0.3s;
}
.astro-card:hover { border-color: rgba(167,139,250,0.2); }
.astro-section { padding: 80px 48px; position: relative; overflow: hidden; }
.astro-section-alt { background: var(--astro-section-alt); }
.astro-container { max-width: 1100px; margin: 0 auto; }
.astro-container-narrow { max-width: 800px; margin: 0 auto; }
.astro-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 20px; border-radius: 100px;
  background: rgba(124,58,237,0.08); border: 1px solid rgba(167,139,250,0.15);
  font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--astro-accent); font-weight: 500;
}
.astro-input {
  width: 100%; padding: 14px 18px; border-radius: var(--astro-radius-sm);
  background: var(--astro-input-bg); border: 1px solid var(--astro-input-border);
  color: var(--astro-text); font-size: 14px; font-family: var(--astro-font-body);
  transition: border-color 0.3s; outline: none;
}
.astro-input:focus { border-color: var(--astro-accent); }
.astro-input::placeholder { color: var(--astro-text-dim); }

/* Form card glow */
.astro-form-card {
  background: var(--astro-form-card-bg);
  border: 1px solid rgba(124,58,237,0.15); border-radius: var(--astro-radius-lg);
  padding: 40px; position: relative; overflow: hidden;
  animation: borderGlowPulse 4s ease-in-out infinite;
}

/* ============================
   RESPONSIVE — MOBILE < 768px
   ============================ */
@media (max-width: 767px) {
  .astro-header { padding: 12px 20px; }
  .astro-logo { font-size: 14px; }
  .astro-nav { display: none; }
  .astro-hamburger { display: flex; }
  .astro-section { padding: 48px 20px; }
  .astro-footer-inner { padding: 40px 20px 28px; }
  .astro-footer-brand-name { font-size: 16px; }
  .astro-footer-brand-tagline { font-size: 12px; }
  .astro-footer-grid { grid-template-columns: 1fr 1fr; }
  .astro-form-card { padding: 24px 16px; }
  .astro-card { padding: 20px; }
}

/* Tablet 768-1024 */
@media (min-width: 768px) and (max-width: 1024px) {
  .astro-header { padding: 14px 32px; }
  .astro-section { padding: 64px 32px; }
  .astro-footer-inner { padding: 48px 32px 32px; }
}