* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  padding: 20px;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  background: white;
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.1);
}

header {
  text-align: center;
  margin-bottom: 40px;
}

header h1 {
  font-size: 2.5rem;
  color: #333;
  margin-bottom: 10px;
}

header p {
  color: #666;
  font-size: 1.2rem;
}

.trends-container {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 40px;
}

.trend-card {
  display: flex;
  align-items: center;
  padding: 20px;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  transition: all 0.3s ease;
  text-decoration: none;
  color: inherit;
}

.trend-card:hover {
  border-color: #4361ee;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.trend-score {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.5rem;
  border-radius: 12px;
  margin-right: 20px;
  color: white;
}

.score-viral { background: linear-gradient(135deg, #ff6b6b, #ee5a52); }
.score-trending { background: linear-gradient(135deg, #4cc9f0, #4361ee); }
.score-emerging { background: linear-gradient(135deg, #7209b7, #3a0ca3); }

.trend-content h3 {
  margin-bottom: 5px;
  color: #333;
}

.trend-meta {
  color: #666;
  font-size: 0.9rem;
}

.cta-section {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 30px;
  border-radius: 16px;
  text-align: center;
  margin-top: 40px;
}

.cta-section h3 {
  margin-bottom: 15px;
  font-size: 1.5rem;
}

.btn-premium {
  display: inline-block;
  background: linear-gradient(135deg, #f72585, #b5179e);
  color: white;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  margin-top: 10px;
  border: none;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.btn-premium:hover {
  transform: scale(1.05);
}

.loading {
  text-align: center;
  padding: 40px;
  color: #666;
}

.error {
  background: #fee;
  color: #c33;
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  border: 1px solid #fcc;
}

.debug-btn {
  background: #666;
  color: white;
  padding: 10px 20px;
  border-radius: 8px;
  border: none;
  margin: 10px;
  cursor: pointer;
}

footer {
  text-align: center;
  margin-top: 40px;
  color: #666;
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .container {
    padding: 20px;
  }
  
  .trend-score {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
    margin-right: 15px;
  }
  
  .trend-card {
    padding: 15px;
  }
}