/*
 * Global Styles for The Watch Index v2
 * A dark, modern look with red highlights. Fully responsive.
 */

html {
  box-sizing: border-box;
}
*, *::before, *::after {
  box-sizing: inherit;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  line-height: 1.6;
  background-color: #0b0c10;
  color: #e5e7eb;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: #d21313;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* Navigation bar */
.nav {
  background-color: #16171b;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #222328;
}
.nav .brand {
  font-weight: 700;
  font-size: 1.5rem;
  color: #d21313;
}
.nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1rem;
}
.nav ul li {
  margin: 0;
}
.nav ul li a {
  color: #e5e7eb;
  font-weight: 500;
  padding: 0.5rem 0.75rem;
  border-radius: 0.375rem;
  transition: background-color 0.2s;
}
.nav ul li a:hover {
  background-color: #2a2b31;
}

/* Hero section */
.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 1rem 2rem 1rem;
  text-align: center;
}
.hero h1 {
  font-size: 3rem;
  margin: 0 0 1rem 0;
  color: #d21313;
  line-height: 1.2;
}
.hero p {
  max-width: 600px;
  margin: 0 auto 2rem auto;
  color: #cbd5e1;
}
.buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.2s;
  background-color: #d21313;
  color: white;
}
.btn:hover {
  background-color: #b11111;
  transform: translateY(-2px);
}
.btn.secondary {
  background-color: transparent;
  color: #d21313;
  border: 2px solid #d21313;
}
.btn.secondary:hover {
  background-color: #2a2b31;
  border-color: #b11111;
}

/* Sections */
.section {
  padding: 2rem 1rem;
  max-width: 960px;
  margin: auto;
}
.section h2 {
  font-size: 2rem;
  color: #d21313;
  margin-bottom: 1rem;
}

/* Form styles */
.form {
  display: grid;
  gap: 1rem;
  max-width: 480px;
  margin: 0 auto;
  padding: 2rem;
  background-color: #16171b;
  border-radius: 0.5rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}
.form label {
  font-weight: 500;
}
.form input,
.form select {
  padding: 0.5rem 0.75rem;
  border: 1px solid #2a2b31;
  border-radius: 0.375rem;
  background-color: #0f1014;
  color: #e5e7eb;
}
.form input::placeholder {
  color: #7c7e8a;
}
.form button {
  margin-top: 1rem;
  padding: 0.75rem;
  border: none;
  border-radius: 0.5rem;
  background-color: #d21313;
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s;
}
.form button:hover {
  background-color: #b11111;
}
.form .note {
  font-size: 0.8rem;
  color: #7c7e8a;
  margin-top: 0.5rem;
  text-align: left;
}

/* Cards for dashboard */
.cards {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}
.card {
  background-color: #16171b;
  padding: 1.5rem;
  border-radius: 0.5rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  text-align: center;
}
.card-title {
  font-size: 0.9rem;
  color: #9ca3af;
  margin-bottom: 0.5rem;
}
.card-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: #d21313;
}

/* Footer */
.footer {
  text-align: center;
  padding: 1.5rem 1rem;
  background-color: #16171b;
  color: #7c7e8a;
  font-size: 0.8rem;
}