/* Components */

/* Glassmorphism Navigation */
.glass-nav {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
}

/* Logo */
.logo {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--accent-gold);
  letter-spacing: 1px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  border-radius: 50px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-smooth);
  border: none;
  font-size: 1rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-gold), #b89628);
  color: #000;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-glass {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-primary);
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Movie Card */
.movie-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 2/3;
  cursor: pointer;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.movie-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.movie-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 30px rgba(0, 0, 0, 0.5);
}

.movie-card:hover img {
  transform: scale(1.05);
}

.movie-info {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: var(--spacing-md);
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
  /* Made always visible to match screenshot */
  transform: translateY(0);
  transition: var(--transition-smooth);
}

/* Support for both class-based and generic tag based structure */
.movie-info h3,
.movie-title {
  font-size: 1.2rem;
  margin-bottom: 0.3rem;
  color: var(--text-primary);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.movie-info p,
.movie-info span,
.movie-meta {
  font-size: 0.9rem;
  color: var(
    --text-secondary
  ); /* Updated to match screenshot "gray/gold" mix if needed, keeping readable */
  margin-bottom: 0.2rem;
}

.movie-info .rating {
  color: var(--accent-gold);
  font-weight: 600;
}

/* Search Bar */
.search-container {
  position: relative;
  width: 300px;
}

.search-input {
  width: 100%;
  padding: 0.8rem 1.2rem;
  border-radius: 30px;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  font-family: var(--font-body);
}

.search-input:focus {
  outline: none;
  border-color: var(--accent-purple);
  background: rgba(255, 255, 255, 0.1);
}

/* Hero Section */
.hero {
  height: 80vh;
  width: 100%;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.hero-background::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to right,
    rgba(10, 10, 10, 0.9),
    rgba(10, 10, 10, 0.4)
  );
}

.hero-background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-content {
  max-width: 600px;
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: 4rem;
  line-height: 1.1;
  margin-bottom: var(--spacing-md);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-description {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: var(--spacing-lg);
}

.badge {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  background: var(--accent-purple);
  color: #fff;
  border-radius: 4px;
  font-size: 0.8rem;
  margin-bottom: var(--spacing-sm);
  text-transform: uppercase;
  letter-spacing: 1px;
}
