/* ========================================
   CELESTIAL WHISPERS - ASTROLOGY BLOG
   styles.css
======================================== */

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --primary: #8b5cf6;
  --secondary: #fbbf24;
  --accent: #ec4899;
  --dark: #030014;
  --light: #faf8ff;
  --glass: rgba(255,255,255,0.03);
}

body {
  font-family: 'Space Grotesk', sans-serif;
  background: var(--dark);
  color: var(--light);
  overflow-x: hidden;
  line-height: 1.6;
}

h1, h2, h3, h4 { font-family: 'Playfair Display', serif; }

a { color: inherit; text-decoration: none; }

img { max-width: 100%; height: auto; }

/* Animated Gradient Background */
.gradient-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.gradient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  animation: orbit 20s ease-in-out infinite;
}

.orb1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(139,92,246,0.4) 0%, transparent 70%);
  top: -20%;
  left: -10%;
}

.orb2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(236,72,153,0.3) 0%, transparent 70%);
  bottom: -20%;
  right: -10%;
  animation-delay: -7s;
}

.orb3 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(251,191,36,0.2) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: -14s;
}

@keyframes orbit {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(50px, -30px) scale(1.1); }
  50% { transform: translate(-30px, 50px) scale(0.9); }
  75% { transform: translate(-50px, -20px) scale(1.05); }
}

/* Grid Pattern */
.grid-pattern {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(139,92,246,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139,92,246,0.03) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
  z-index: 1;
}

.content { position: relative; z-index: 2; }

/* Navigation */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1.5rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  background: rgba(3, 0, 20, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(139,92,246,0.1);
}

.logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.logo img {
  width:60px;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  color: rgba(255,255,255,0.7);
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.3s;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.nav-links a:hover { color: var(--primary); }

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 8rem 5% 4rem;
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.6rem 1.5rem;
  background: linear-gradient(135deg, rgba(139,92,246,0.2), rgba(236,72,153,0.2));
  border: 1px solid rgba(139,92,246,0.3);
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 2.5rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.5); }
}

.hero h1 {
  font-size: clamp(3rem, 10vw, 7rem);
  line-height: 1;
  margin-bottom: 2rem;
  font-weight: 700;
}

.hero h1 span {
  display: block;
  background: linear-gradient(135deg, #fff 0%, var(--primary) 50%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero h1 .outline {
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 2px rgba(255,255,255,0.3);
}

.hero p {
  font-size: 1.2rem;
  max-width: 550px;
  opacity: 0.6;
  line-height: 1.8;
  margin-bottom: 3rem;
  font-weight: 300;
}

/* Newsletter Form */
.newsletter-form {
  background: var(--glass);
  backdrop-filter: blur(30px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 30px;
  padding: 3rem;
  max-width: 450px;
  width: 100%;
  position: relative;
}

.newsletter-form::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 30px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(139,92,246,0.5), transparent, rgba(236,72,153,0.5));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.newsletter-form h3 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.newsletter-form > p {
  font-size: 0.9rem;
  opacity: 0.5;
  margin-bottom: 2rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group input {
  width: 100%;
  padding: 1rem 1.5rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  color: white;
  font-size: 0.95rem;
  font-family: inherit;
  transition: all 0.3s;
}

.form-group input:focus {
  outline: none;
  border-color: var(--primary);
  background: rgba(139,92,246,0.1);
}

.form-group input::placeholder { color: rgba(255,255,255,0.4); }

.subscribe-btn {
  width: 100%;
  padding: 1.1rem;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border: none;
  border-radius: 16px;
  color: white;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.3s;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.subscribe-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 40px rgba(139,92,246,0.4);
}

.form-note {
  font-size: 0.75rem;
  opacity: 0.4;
  margin-top: 1.5rem;
  text-align: center;
}

/* Sections */
section { padding: 6rem 5%; position: relative; }

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.2rem;
  background: rgba(251,191,36,0.1);
  border: 1px solid rgba(251,191,36,0.2);
  border-radius: 100px;
  font-size: 0.75rem;
  color: var(--secondary);
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
}

.section-header h2 {
  font-size: clamp(2rem, 6vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
}

.section-header p {
  max-width: 500px;
  margin: 1.5rem auto 0;
  opacity: 0.5;
  font-size: 1.1rem;
}

/* Posts Grid */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.post-card {
  background: var(--glass);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 24px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.post-card:hover {
  transform: translateY(-8px);
  border-color: rgba(139,92,246,0.3);
  box-shadow: 0 30px 60px rgba(0,0,0,0.4);
}

.post-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.post-card-content {
  padding: 1.5rem;
}

.post-card-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.8rem;
  opacity: 0.5;
  margin-bottom: 0.8rem;
}

.post-card-content h3 {
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 0.8rem;
}

.post-card-content p {
  font-size: 0.9rem;
  opacity: 0.6;
  line-height: 1.6;
}

/* Quote Section */
.quote-section {
  padding: 8rem 5%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.quote-card {
  max-width: 900px;
  text-align: center;
  position: relative;
}

.quote-mark {
  font-size: 12rem;
  line-height: 0;
  opacity: 0.1;
  position: absolute;
  top: -2rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: serif;
}

.quote-card blockquote {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 500;
  line-height: 1.4;
  margin-bottom: 2rem;
  font-style: italic;
}

.quote-author {
  font-size: 1rem;
  opacity: 0.5;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.quote-author::before, .quote-author::after {
  content: '';
  width: 30px;
  height: 1px;
  background: rgba(255,255,255,0.3);
}

/* Planets Grid */
.planets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.planet-card {
  background: var(--glass);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 24px;
  padding: 2rem;
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  transition: all 0.3s;
}

.planet-card:hover {
  background: rgba(255,255,255,0.05);
  transform: translateX(10px);
  border-color: rgba(139,92,246,0.3);
}

.planet-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  flex-shrink: 0;
}

.planet-info h4 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.planet-info p {
  font-size: 0.9rem;
  opacity: 0.6;
  line-height: 1.6;
}

/* Moon Phases */
.moon-track {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  max-width: 1100px;
  margin: 0 auto;
  padding: 2.5rem;
  background: var(--glass);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 30px;
}

.moon-item {
  text-align: center;
  padding: 1.5rem 1rem;
  border-radius: 20px;
  transition: all 0.3s;
  flex: 1;
  min-width: 90px;
}

.moon-item:hover {
  background: rgba(255,255,255,0.05);
  transform: scale(1.1);
}

.moon-icon {
  font-size: 2.5rem;
  margin-bottom: 0.8rem;
  display: block;
}

.moon-item h4 {
  font-size: 0.8rem;
  margin-bottom: 0.3rem;
  font-weight: 600;
}

.moon-item span {
  font-size: 0.65rem;
  opacity: 0.4;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.testimonial-card {
  background: var(--glass);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 24px;
  padding: 2rem;
  position: relative;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-size: 5rem;
  opacity: 0.05;
  font-family: serif;
  line-height: 1;
}

.testimonial-rating {
  color: var(--secondary);
  font-size: 1rem;
  margin-bottom: 1.5rem;
  letter-spacing: 2px;
}

.testimonial-card > p {
  font-size: 1rem;
  line-height: 1.7;
  opacity: 0.8;
  margin-bottom: 1.5rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.author-avatar {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
}

.author-info h5 { font-size: 0.95rem; margin-bottom: 0.2rem; }
.author-info span { font-size: 0.75rem; opacity: 0.5; }

/* FAQ Section */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--glass);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 20px;
  margin-bottom: 1rem;
  overflow: hidden;
  transition: all 0.3s;
}

.faq-item:hover { border-color: rgba(139,92,246,0.3); }

.faq-question {
  padding: 1.5rem 1.8rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
}

.faq-icon {
  width: 36px;
  height: 36px;
  background: rgba(139,92,246,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  transition: all 0.3s;
  flex-shrink: 0;
}

.faq-item.active .faq-icon {
  background: var(--primary);
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.faq-item.active .faq-answer { max-height: 300px; }

.faq-answer p {
  padding: 0 1.8rem 1.8rem;
  opacity: 0.7;
  line-height: 1.8;
}

/* CTA Section */
.cta-section { padding: 8rem 5%; text-align: center; }

.cta-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 4rem;
  background: linear-gradient(135deg, rgba(139,92,246,0.15), rgba(236,72,153,0.15));
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 40px;
  position: relative;
  overflow: hidden;
}

.cta-container::before {
  content: '✦';
  position: absolute;
  font-size: 15rem;
  opacity: 0.03;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.cta-container h2 {
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 700;
  margin-bottom: 1rem;
}

.cta-container p {
  opacity: 0.6;
  font-size: 1rem;
  margin-bottom: 2rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem 2.5rem;
  background: white;
  color: var(--dark);
  border: none;
  border-radius: 100px;
  font-size: 1rem;
  font-weight: 700;
  transition: all 0.3s;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.cta-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 20px 50px rgba(255,255,255,0.2);
}

/* Footer */
footer {
  padding: 3rem 5%;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-brand { display: flex; align-items: center; gap: 1rem; }
.footer-brand .logo { font-size: 1.3rem; }
.footer-text { opacity: 0.4; font-size: 0.85rem; }

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  font-size: 0.9rem;
  opacity: 0.6;
  transition: all 0.3s;
}

.footer-links a:hover { opacity: 1; color: var(--primary); }

/* Single Post Page */
.post-hero {
  padding: 10rem 5% 4rem;
  text-align: center;
}

.post-hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  max-width: 900px;
  margin: 0 auto 1.5rem;
  line-height: 1.2;
}

.post-meta {
  font-size: 0.9rem;
  opacity: 0.5;
}

.post-featured-image {
  max-width: 1000px;
  margin: 0 auto 3rem;
  padding: 0 5%;
}

.post-featured-image img {
  width: 100%;
  border-radius: 24px;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.post-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 5% 6rem;
}

.post-content h2 {
  font-size: 1.8rem;
  margin: 2.5rem 0 1rem;
}

.post-content h3 {
  font-size: 1.4rem;
  margin: 2rem 0 0.8rem;
}

.post-content p {
  font-size: 1.1rem;
  line-height: 1.9;
  opacity: 0.85;
  margin-bottom: 1.5rem;
}

.post-content ul, .post-content ol {
  margin: 1.5rem 0;
  padding-left: 1.5rem;
}

.post-content li {
  margin-bottom: 0.8rem;
  opacity: 0.85;
  line-height: 1.7;
}

.post-content blockquote {
  border-left: 3px solid var(--primary);
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  opacity: 0.8;
}

/* Category Page */
.category-hero {
  padding: 10rem 5% 3rem;
  text-align: center;
}

.category-hero h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  margin-bottom: 1rem;
}

.category-hero p {
  opacity: 0.6;
  max-width: 600px;
  margin: 0 auto;
}

/* Page Content (Privacy, Terms) */
.page-hero {
  padding: 10rem 5% 3rem;
  text-align: center;
}

.page-hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
}

.page-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 5% 6rem;
}

.page-content h2 {
  font-size: 1.5rem;
  margin: 2.5rem 0 1rem;
  color: var(--primary);
}

.page-content p {
  font-size: 1rem;
  line-height: 1.8;
  opacity: 0.8;
  margin-bottom: 1rem;
}

.page-content ul {
  margin: 1rem 0;
  padding-left: 1.5rem;
}

.page-content li {
  margin-bottom: 0.5rem;
  opacity: 0.8;
}

.page-content a {
  color: var(--primary);
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 968px) {
  nav { padding: 1rem 5%; }
  .nav-links { gap: 1.5rem; }
  .nav-links a { font-size: 0.8rem; }
  section { padding: 4rem 5%; }
  .hero { padding: 7rem 5% 3rem; }
  .newsletter-form { padding: 2rem; }
  .posts-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .hero h1 { font-size: clamp(2.5rem, 12vw, 4rem); }
  .section-header h2 { font-size: clamp(1.8rem, 8vw, 3rem); }
  .moon-track { padding: 1.5rem; gap: 0.5rem; }
  .moon-item { min-width: 70px; padding: 1rem 0.5rem; }
  .moon-icon { font-size: 2rem; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .footer-content { flex-direction: column; text-align: center; }
  .cta-container { padding: 3rem 2rem; }
  .post-hero { padding: 8rem 5% 3rem; }
  .category-hero { padding: 8rem 5% 2rem; }
  .page-hero { padding: 8rem 5% 2rem; }
}

@media (max-width: 480px) {
  .logo { font-size: 1.3rem; }
  .logo-icon { width: 35px; height: 35px; }
  .hero p { font-size: 1rem; }
  .newsletter-form h3 { font-size: 1.5rem; }
  .planet-card { flex-direction: column; text-align: center; }
  .planet-icon { margin: 0 auto; }
  .faq-question { font-size: 0.9rem; padding: 1.2rem; }
  .footer-links { flex-direction: column; gap: 1rem; }
}
