/* Base Styles & Variables */
:root {
  --primary: #F44336;
  --secondary: #FF9800;
  --accent: #FF5722;
  --text: #212121;
  --text-light: #757575;
  --background: #FFF;
  --background-alt: #FAFAFA;
  --shadow: 0 4px 10px rgba(244, 67, 54, 0.15);
  --gradient: linear-gradient(135deg, var(--primary), var(--secondary));
  --border-radius: 12px;
  --transition: all 0.3s ease;
}

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

body {
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  line-height: 1.6;
  background-color: var(--background);
  overflow-x: hidden;
}

.page-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.3;
}

a {
  text-decoration: none;
  color: var(--primary);
  transition: var(--transition);
}

ul {
  list-style: none;
}

/* Header Styles */
header {
  background-color: var(--background);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 1rem 0;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 5%;
  max-width: 1400px;
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand h1 {
  font-size: 1.5rem;
  color: var(--primary);
}

.brand span {
  color: var(--secondary);
  font-weight: 400;
}

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

nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

nav a {
  color: var(--text);
  font-weight: 500;
}

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

.nav-button {
  background: var(--gradient);
  color: white;
  padding: 0.6rem 1.2rem;
  border-radius: 50px;
  font-weight: 600;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.nav-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(244, 67, 54, 0.25);
  color: white;
}

/* Hero Section */
#hero {
  background: var(--gradient);
  padding: 6rem 5% 8rem;
  color: white;
  position: relative;
}

.search-container {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

#hero h2 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  font-weight: 800;
}

#hero span {
  position: relative;
}

#hero span::after {
  content: "";
  position: absolute;
  left: -5%;
  bottom: 8px;
  width: 110%;
  height: 30%;
  background-color: rgba(255, 255, 255, 0.2);
  z-index: 0;
  border-radius: 4px;
}

#hero p {
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
  opacity: 0.9;
}

.search-box {
  background-color: white;
  border-radius: 50px;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  margin: 0 auto;
  max-width: 600px;
}

.search-icon {
  margin: 0 0.75rem;
  color: var(--text-light);
}

.search-box input {
  flex: 1;
  border: none;
  font-size: 1rem;
  padding: 0.75rem 0;
  outline: none;
  color: var(--text);
}

.search-button {
  background: var(--gradient);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.search-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  color: white;
}

.shape-divider {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

.shape-divider svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 80px;
}

.shape-divider .shape-fill {
  fill: var(--background);
}

/* Discover Section */
#discover {
  padding: 5rem 5%;
  max-width: 1400px;
  margin: 0 auto;
  text-align: center;
}

#discover h2 {
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: var(--primary);
}

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

.card {
  background-color: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 25px rgba(244, 67, 54, 0.2);
}

.card-image {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
}

.card-image svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-content {
  padding: 1.5rem;
}

.card-content h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--primary);
}

.card-content p {
  color: var(--text-light);
}

.action-button {
  margin-top: 2rem;
}

.primary-button {
  display: inline-block;
  padding: 1rem 2rem;
  background: var(--gradient);
  color: white;
  border-radius: 50px;
  font-weight: 600;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.primary-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(244, 67, 54, 0.25);
  color: white;
}

/* Categories Section */
#categories {
  padding: 4rem 5%;
  background-color: var(--background-alt);
}

.categories-container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

#categories h2 {
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: var(--primary);
}

.category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.pill {
  background: white;
  color: var(--primary);
  padding: 0.75rem 2rem;
  border-radius: 50px;
  font-weight: 500;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 2px solid transparent;
}

.pill:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-3px);
}

/* Trending Section */
#trending {
  padding: 5rem 5%;
  max-width: 1400px;
  margin: 0 auto;
  text-align: center;
}

#trending h2 {
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: var(--primary);
}

.trending-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.trending-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  transition: var(--transition);
}

.trending-item:hover {
  transform: translateY(-5px);
}

.trending-svg {
  width: 100%;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

.trending-label {
  font-weight: 500;
  color: var(--text);
}

/* CTA Section */
#cta {
  background: var(--gradient);
  color: white;
  text-align: center;
  padding: 5rem 5%;
}

.cta-container {
  max-width: 800px;
  margin: 0 auto;
}

#cta h2 {
  font-size: 2.75rem;
  margin-bottom: 1rem;
}

#cta p {
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
  opacity: 0.9;
}

.cta-button {
  display: inline-block;
  padding: 1.25rem 2.5rem;
  background: white;
  color: var(--primary);
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.1rem;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
}

.cta-button:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  color: var(--primary);
}

/* Footer */
footer {
  background-color: #212121;
  color: white;
  padding: 4rem 5% 2rem;
  margin-top: auto;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-branding {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.footer-logo {
  flex-shrink: 0;
}

.footer-info h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.footer-info p {
  opacity: 0.7;
}

.footer-keywords {
  text-align: center;
  font-size: 0.9rem;
  color: #999;
  margin-bottom: 2rem;
}

.copyright {
  text-align: center;
  font-size: 0.85rem;
  color: #777;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive Design */
@media (max-width: 992px) {
  #hero h2 {
    font-size: 2.5rem;
  }
  
  .card-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem 5%;
  }
  
  nav {
    width: 100%;
    justify-content: space-between;
  }
  
  .nav-links {
    gap: 1rem;
  }
  
  #hero {
    padding: 4rem 5% 6rem;
  }
  
  #hero h2 {
    font-size: 2rem;
  }
  
  .search-box {
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem;
  }
  
  .search-button {
    width: 100%;
  }
}

@media (max-width: 576px) {
  .brand h1 {
    font-size: 1.2rem;
  }
  
  .nav-links {
    gap: 0.75rem;
  }
  
  #hero h2 {
    font-size: 1.75rem;
  }
  
  #discover h2,
  #categories h2,
  #trending h2,
  #cta h2 {
    font-size: 2rem;
  }
  
  .trending-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-branding {
    flex-direction: column;
    text-align: center;
  }
}
