/* Base styles */
body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  background-color: #000;
  color: #fff;
}

header {
  background-color: #1a1a1a;
  padding: 1rem;
  text-align: center;
}

nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
  gap: 2rem;
}

nav a {
  color: #fff;
  text-decoration: none;
  padding: 0.5rem 1rem;
  transition: color 0.3s ease;
}

nav a:hover, nav a.active {
  color: #ffd700;
}

/* Hero section */
.hero {
  text-align: center;
  padding: 4rem 2rem;
  background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('https://via.placeholder.com/1920x1080');
  background-size: cover;
  background-position: center;
}

/* Interactive button styles */
.interactive-btn {
  background-color: #ffd700;
  color: #000;
  border: none;
  padding: 1rem 2rem;
  font-size: 1.2rem;
  cursor: pointer;
  border-radius: 5px;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.interactive-btn:hover {
  transform: scale(1.05);
  background-color: #ffed4a;
}

/* Lightsaber animation */
.lightsaber {
  width: 4px;
  height: 0;
  background-color: #ff0000;
  margin: 2rem auto;
  transition: height 0.5s ease;
}

.lightsaber.active {
  height: 200px;
  box-shadow: 0 0 10px #ff0000;
}

/* Content cards */
.content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  padding: 2rem;
}

.content-card {
  background-color: #1a1a1a;
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.content-card.hover-effect:hover {
  transform: translateY(-10px);
}

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

.content-card h3, .content-card p {
  padding: 1rem;
  margin: 0;
}

/* Force meter */
.force-meter {
  text-align: center;
  padding: 2rem;
}

.meter-bar {
  width: 100%;
  height: 20px;
  background-color: #333;
  border-radius: 10px;
  overflow: hidden;
  margin: 1rem 0;
}

.meter-fill {
  width: 0%;
  height: 100%;
  background-color: #ffd700;
  transition: width 0.3s ease;
}

/* Quiz section */
.quiz-section {
  text-align: center;
  padding: 2rem;
}

.quiz-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}

.quiz-option {
  background-color: #333;
  color: #fff;
  border: none;
  padding: 1rem;
  cursor: pointer;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.quiz-option:hover {
  background-color: #444;
}

/* Fade-in animation */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive design */
@media (max-width: 768px) {
  nav ul {
    flex-direction: column;
    gap: 1rem;
  }

  .content-grid {
    grid-template-columns: 1fr;
  }

  .quiz-options {
    grid-template-columns: 1fr;
  }
}

/* Character and Movie Cards */
.character-card, .movie-card {
  background-color: #1a1a1a;
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.character-card:hover, .movie-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 5px 15px rgba(255, 215, 0, 0.2);
}

.character-card img, .movie-card img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.character-card h3, .movie-card h4 {
  padding: 1rem;
  margin: 0;
  color: #ffd700;
}

.character-card p, .movie-card p {
  padding: 0 1rem;
  margin: 0;
}

/* Character Stats */
.stats-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  padding: 2rem;
}

.stat-card {
  background-color: #1a1a1a;
  padding: 1.5rem;
  border-radius: 10px;
  text-align: center;
}

.stat-bar {
  width: 100%;
  height: 20px;
  background-color: #333;
  border-radius: 10px;
  overflow: hidden;
  margin: 1rem 0;
}

.stat-fill {
  width: 0%;
  height: 100%;
  background-color: #ffd700;
  transition: width 0.3s ease;
}

/* Movie Timeline */
.timeline-container {
  padding: 2rem;
}

.timeline-item {
  position: relative;
  padding: 2rem 0;
}

.timeline-content {
  background-color: #1a1a1a;
  padding: 2rem;
  border-radius: 10px;
  margin-bottom: 2rem;
}

.movie-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 1rem;
}

/* Star Rating */
.rating-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 2rem;
}

.rating-card {
  background-color: #1a1a1a;
  padding: 2rem;
  border-radius: 10px;
  text-align: center;
}

.star-rating {
  font-size: 2rem;
  margin: 1rem 0;
}

.star {
  cursor: pointer;
  color: #ccc;
  transition: color 0.3s ease;
}

.star:hover, .star.active {
  color: #ffd700;
}

/* Spotlight Sections */
.spotlight-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
}

.spotlight-card {
  background-color: #1a1a1a;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem;
}

.spotlight-content {
  text-align: center;
  margin-top: 1rem;
}

/* Responsive Design Updates */
@media (max-width: 768px) {
  .movie-grid {
    grid-template-columns: 1fr;
  }

  .stats-container {
    grid-template-columns: 1fr;
  }

  .spotlight-card {
    padding: 1rem;
  }
}

/* Animation Classes */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Interactive Button Styles */
.character-details-btn, .movie-details-btn {
  background-color: #ffd700;
  color: #000;
  border: none;
  padding: 0.5rem 1rem;
  margin: 1rem;
  border-radius: 5px;
  cursor: pointer;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.character-details-btn:hover, .movie-details-btn:hover {
  transform: scale(1.05);
  background-color: #ffed4a;
}

/* Update existing styles */
.content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  padding: 2rem;
}

.interactive-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  padding: 2rem;
} 