/*
Theme Name: Star Wars Cosmic Theme
Description: A cosmic WordPress theme inspired by Star Wars with blinking stars background and legendary glowing typography effects.
Author: Galactic Developer
Version: 1.0
License: GPL v2 or later
Tags: space, star-wars, cosmic, animation, dark
*/

/* Star Wars Space Theme - WordPress CSS */

:root {
  /* Deep Space Background */
  --background: hsl(220, 30%, 5%);
  --foreground: hsl(45, 100%, 85%);

  /* Cosmic Cards */
  --card: hsl(220, 25%, 8%);
  --card-foreground: hsl(45, 95%, 80%);

  /* Star Wars Gold Primary */
  --primary: hsl(45, 100%, 55%);
  --primary-foreground: hsl(220, 30%, 5%);

  /* Space Blue Secondary */
  --secondary: hsl(220, 40%, 15%);
  --secondary-foreground: hsl(45, 95%, 80%);

  /* Electric Blue Accent */
  --accent: hsl(200, 100%, 50%);
  --accent-foreground: hsl(220, 30%, 5%);

  /* Gradients */
  --gradient-space: linear-gradient(135deg, hsl(220, 30%, 5%), hsl(280, 60%, 8%), hsl(220, 30%, 5%));
  --gradient-lightsaber: linear-gradient(90deg, hsl(200, 100%, 50%), hsl(45, 100%, 55%));

  /* Effects */
  --text-glow: 0 0 10px hsl(45, 100%, 55%);
  --shadow-glow: 0 0 20px hsla(45, 100%, 55%, 0.3);
}

/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Arial', sans-serif;
  background: var(--gradient-space);
  color: var(--foreground);
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Starfield Background */
.starfield {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-space);
  pointer-events: none;
  z-index: -1;
}

.star {
  position: absolute;
  background: white;
  border-radius: 50%;
  animation: twinkle 3s infinite ease-in-out;
}

@keyframes twinkle {
  0%, 100% { 
    opacity: 0.3;
    transform: scale(1);
  }
  50% { 
    opacity: 1;
    transform: scale(1.2);
  }
}

/* Star Wars Typography */
.star-wars-title,
h1, h2, h3, h4, h5, h6 {
  font-family: 'Arial Black', sans-serif;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  text-shadow: var(--text-glow);
  animation: glow-pulse 2s infinite alternate;
}

@keyframes glow-pulse {
  0% {
    text-shadow: 
      0 0 5px hsla(45, 100%, 55%, 0.8),
      0 0 10px hsla(45, 100%, 55%, 0.6),
      0 0 15px hsla(45, 100%, 55%, 0.4);
  }
  100% {
    text-shadow: 
      0 0 10px hsl(45, 100%, 55%),
      0 0 20px hsla(45, 100%, 55%, 0.8),
      0 0 30px hsla(45, 100%, 55%, 0.6);
  }
}

/* Content Areas */
.site-header {
  padding: 2rem 1rem;
  text-align: center;
  position: relative;
  z-index: 10;
}

.site-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
  position: relative;
  z-index: 10;
}

.content-area {
  background: var(--card);
  border: 1px solid hsla(45, 100%, 55%, 0.2);
  border-radius: 0.75rem;
  padding: 2rem;
  margin-bottom: 2rem;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px hsla(45, 100%, 55%, 0.1);
}

/* Posts */
.post {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid hsla(45, 100%, 55%, 0.2);
}

.post:last-child {
  border-bottom: none;
}

.post-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.post-meta {
  color: var(--secondary-foreground);
  margin-bottom: 1.5rem;
  font-style: italic;
}

.post-content {
  font-size: 1.1rem;
  line-height: 1.8;
}

.post-content p {
  margin-bottom: 1.5rem;
}

/* Lightsaber Buttons */
.btn, .lightsaber-btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  background: var(--gradient-lightsaber);
  border: 2px solid var(--primary);
  color: var(--primary-foreground);
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
  border-radius: 0.5rem;
  box-shadow: var(--shadow-glow);
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn:hover, .lightsaber-btn:hover {
  box-shadow: 0 0 25px hsla(200, 100%, 50%, 0.4);
  transform: scale(1.05);
  color: var(--primary-foreground);
  text-decoration: none;
}

/* Navigation */
.main-navigation {
  text-align: center;
  margin: 2rem 0;
}

.main-navigation ul {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.main-navigation a {
  color: var(--foreground);
  text-decoration: none;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all 0.3s ease;
  position: relative;
}

.main-navigation a:hover {
  color: var(--primary);
  text-shadow: var(--text-glow);
}

.main-navigation a::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 2px;
  bottom: -5px;
  left: 0;
  background: var(--primary);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.main-navigation a:hover::after {
  transform: scaleX(1);
}

/* Footer */
.site-footer {
  text-align: center;
  padding: 3rem 1rem;
  border-top: 1px solid hsla(45, 100%, 55%, 0.2);
  margin-top: 4rem;
}

/* Responsive */
@media (max-width: 768px) {
  .post-title {
    font-size: 2rem;
  }
  
  .site-main {
    padding: 1rem;
  }
  
  .content-area {
    padding: 1.5rem;
  }
  
  .main-navigation ul {
    flex-direction: column;
    gap: 1rem;
  }
}

/* WordPress specific classes */
.wp-block-group {
  margin-bottom: 2rem;
}

.wp-block-image {
  margin-bottom: 1.5rem;
}

.wp-block-quote {
  border-left: 4px solid var(--primary);
  padding-left: 1.5rem;
  font-style: italic;
  color: var(--secondary-foreground);
}

.aligncenter {
  text-align: center;
}

.alignleft {
  float: left;
  margin-right: 1.5rem;
}

.alignright {
  float: right;
  margin-left: 1.5rem;
}