/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu,
    Cantarell, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f5f5f5;
}

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

/* Header styles */
header {
  text-align: center;
  margin-bottom: 40px;
  padding: 40px 0;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

header h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
  font-weight: 700;
}

.subtitle {
  font-size: 1.2rem;
  opacity: 0.9;
  font-weight: 300;
}

/* Main content sections */
main {
  background: white;
  border-radius: 10px;
  padding: 40px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

section {
  margin-bottom: 40px;
}

section:last-child {
  margin-bottom: 0;
}

h2 {
  color: #2c3e50;
  margin-bottom: 15px;
  font-size: 1.8rem;
  border-bottom: 2px solid #e74c3c;
  padding-bottom: 5px;
}

p {
  margin-bottom: 15px;
  color: #555;
}

/* Lists */
ul {
  list-style-type: none;
  padding-left: 0;
}

ul li {
  padding: 8px 0;
  padding-left: 25px;
  position: relative;
}

ul li:before {
  content: "⚡";
  position: absolute;
  left: 0;
  color: #f39c12;
}

/* Code blocks */
code {
  background-color: #f8f9fa;
  padding: 2px 6px;
  border-radius: 3px;
  font-family: "Monaco", "Menlo", "Ubuntu Mono", monospace;
  font-size: 0.9em;
  color: #e83e8c;
}

.endpoint {
  background-color: #f8f9fa;
  padding: 15px;
  margin-bottom: 15px;
  border-radius: 5px;
  border-left: 4px solid #3498db;
}

.endpoint code {
  background: none;
  padding: 0;
  color: #2c3e50;
  font-weight: 600;
}

.endpoint p {
  margin: 5px 0 0 0;
  color: #666;
  font-size: 0.9rem;
}

.example {
  display: block;
  background-color: #2c3e50;
  color: #ecf0f1;
  padding: 15px;
  border-radius: 5px;
  margin: 10px 0;
  font-family: "Monaco", "Menlo", "Ubuntu Mono", monospace;
  word-break: break-all;
}

/* Footer */
footer {
  text-align: center;
  margin-top: 40px;
  padding: 20px;
  color: #666;
  font-size: 0.9rem;
}

footer a {
  color: #667eea;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* Responsive design */
@media (max-width: 768px) {
  .container {
    padding: 10px;
  }

  header {
    padding: 30px 20px;
  }

  header h1 {
    font-size: 2rem;
  }

  .subtitle {
    font-size: 1rem;
  }

  main {
    padding: 20px;
  }

  h2 {
    font-size: 1.5rem;
  }
}

/* User profile page styles */
.user-profile {
  text-align: center;
  padding: 60px 20px;
}

.user-profile h1 {
  font-size: 3rem;
  color: #2c3e50;
  margin-bottom: 20px;
}

.user-profile .username {
  color: #e74c3c;
  font-weight: 700;
}

.user-profile p {
  font-size: 1.2rem;
  color: #666;
  margin-bottom: 30px;
}

.back-link {
  display: inline-block;
  padding: 10px 20px;
  background-color: #3498db;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.back-link:hover {
  background-color: #2980b9;
}
