:root {
  --primary-blue: #2d7ff9;
  --dark-blue: #0f172a;
  --light-gray: #f8fafc;
  --border-gray: #e2e8f0;
  --text-gray: #64748b;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans",
    "Helvetica Neue", sans-serif;
}

body {
  background-color: #fff;
  color: var(--dark-blue);
  line-height: 1.6;
}

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

/* Header Styles */
header {
  padding: 20px 0;
  border-bottom: 1px solid var(--border-gray);
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo a {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--dark-blue);
  font-weight: 700;
  font-size: 1.5rem;
}

.logo img {
  height: 32px;
  margin-right: 8px;
}

nav ul {
  display: flex;
  list-style: none;
  align-items: center;
}

nav ul li {
  margin-left: 24px;
}

nav ul li a {
  text-decoration: none;
  color: var(--dark-blue);
  font-weight: 500;
}

.join-btn {
  background-color: var(--primary-blue);
  color: white !important;
  padding: 8px 24px;
  border-radius: 8px;
  transition: background-color 0.3s;
}

.join-btn:hover {
  background-color: #1a68e0;
}

/* Main Content Styles */
main {
  padding: 60px 0;
}

h1 {
  font-size: 3rem;
  margin-bottom: 40px;
  text-align: center;
  font-weight: 800;
}

.dark-text {
  color: var(--dark-blue);
}

.blue-text {
  color: var(--primary-blue);
}

/* Faucet Form Styles */
.faucet-form {
  display: flex;
  max-width: 800px;
  margin: 0 auto 40px;
  border: 1px solid var(--border-gray);
  border-radius: 50px;
  overflow: hidden;
}

#wallet-address {
  flex: 1;
  padding: 16px 24px;
  border: none;
  font-size: 1rem;
  outline: none;
}

#send-btn {
  background-color: var(--primary-blue);
  color: white;
  border: none;
  padding: 16px 24px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s;
  white-space: nowrap;
}

#send-btn:hover {
  background-color: #1a68e0;
}

/* Status Message Styles */
#status-message {
  max-width: 800px;
  margin: 0 auto 40px;
  padding: 12px 20px;
  border-radius: 8px;
  text-align: center;
  display: none;
}

.success {
  background-color: #dcf5e7;
  color: #0d6832;
}

.error {
  background-color: #fde8e8;
  color: #c81e1e;
}

.pending {
  background-color: #f0f9ff;
  color: #0369a1;
}

/* API Section Styles */
.api-section {
  max-width: 800px;
  margin: 60px auto 0;
}

.api-section h2 {
  font-size: 2rem;
  margin-bottom: 16px;
  font-weight: 700;
}

.api-section p {
  color: var(--text-gray);
  margin-bottom: 32px;
}

.step {
  margin-bottom: 32px;
}

.step h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
  font-weight: 600;
}

.code-block {
  background-color: var(--light-gray);
  border-radius: 8px;
  padding: 20px;
  position: relative;
  margin-top: 16px;
}

.code-block pre {
  overflow-x: auto;
  font-family: "Courier New", Courier, monospace;
}

.highlight {
  color: var(--primary-blue);
  font-weight: bold;
}

.copy-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  color: var(--text-gray);
  cursor: pointer;
  font-size: 1.2rem;
}

.copy-btn:hover {
  color: var(--dark-blue);
}

/* Home Page Styles */
.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 32px;
}

.primary-btn,
.secondary-btn {
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
}

.primary-btn {
  background-color: var(--primary-blue);
  color: white;
}

.primary-btn:hover {
  background-color: #1a68e0;
}

.secondary-btn {
  border: 1px solid var(--border-gray);
  color: var(--dark-blue);
}

.secondary-btn:hover {
  background-color: var(--light-gray);
}

/* Responsive Styles */
@media (max-width: 768px) {
  h1 {
    font-size: 2.5rem;
  }

  .faucet-form {
    flex-direction: column;
    border-radius: 8px;
  }

  #wallet-address {
    border-bottom: 1px solid var(--border-gray);
  }

  #send-btn {
    border-radius: 0;
  }
}

@media (max-width: 576px) {
  nav ul li {
    margin-left: 16px;
  }

  .logo span {
    display: none;
  }

  h1 {
    font-size: 2rem;
  }
}
