@font-face {
  font-family: 'PTSans';
  src: url('/fonts/PTSans-Regular.eot');
  src: url('/fonts/PTSans-Regular.eot?#iefix') format('embedded-opentype'),
       url('/fonts/PTSans-Regular.woff') format('woff'),
       url('/fonts/PTSans-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

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

html, body {
  height: 100%;
}

body {
  font-family: 'PTSans', Arial, sans-serif;
  background-color: #f5f5f5;
  color: #333;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#root {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Header */
.header {
  background-color: #ffffff;
  border-bottom: 1px solid #e0e0e0;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #2c3e50;
  font-weight: bold;
  font-size: 1.25rem;
  gap: 0.5rem;
}

.brand img {
  height: 32px;
  width: auto;
}

.nav {
  display: flex;
  gap: 1.5rem;
}

.nav a {
  text-decoration: none;
  color: #555;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav a:hover,
.nav a:focus {
  color: #007bff;
  outline: none;
}

/* Main Content */
.main {
  flex: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
  width: 100%;
}

/* Jumbotron */
.jumbotron {
  background-color: #007bff;
  color: #ffffff;
  padding: 3rem 2rem;
  border-radius: 0;
  text-align: center;
}

.jumbotron h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.jumbotron p {
  font-size: 1.125rem;
  margin-bottom: 0.75rem;
}

.jumbotron .description {
  opacity: 0.9;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  font-weight: 600;
}

.status span {
  display: inline-block;
  width: 12px;
  height: 12px;
  background-color: #28a745;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(40, 167, 69, 0); }
  100% { box-shadow: 0 0 0 0 rgba(40, 167, 69, 0); }
}

/* Extension Card */
.extension-card {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 2rem;
  max-width: 600px;
  margin: 2rem auto;
  text-align: center;
}

.extension-card h1 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
  color: #2c3e50;
}

.extension-card p {
  color: #666;
  margin-bottom: 1.5rem;
}

.extension-card button {
  background-color: #007bff;
  color: #ffffff;
  border: none;
  padding: 0.75rem 2rem;
  font-size: 1rem;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.1s ease;
}

.extension-card button:hover:not(:disabled) {
  background-color: #0056b3;
}

.extension-card button:active:not(:disabled) {
  transform: scale(0.98);
}

.extension-card button:disabled {
  background-color: #6c757d;
  cursor: not-allowed;
  opacity: 0.8;
}

#download-status {
  margin-top: 1rem;
  min-height: 1.5rem;
  color: #28a745;
  font-weight: 500;
  font-size: 0.95rem;
}

/* About Card */
.about-card {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 2rem;
  max-width: 600px;
  margin: 2rem auto;
}

.about-card h1 {
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
  color: #2c3e50;
  text-align: center;
}

.about-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  background-color: #f8f9fa;
  border-radius: 6px;
}

.info-title {
  font-weight: 600;
  color: #555;
  flex-shrink: 0;
  margin-right: 1rem;
}

.info-row a {
  color: #007bff;
  text-decoration: none;
  word-break: break-all;
}

.info-row a:hover,
.info-row a:focus {
  text-decoration: underline;
  outline: none;
}

.discord-link {
  display: inline-flex;
  align-items: center;
}

.discord-icon {
  background-color: #5865F2;
  color: #ffffff;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-size: 0.875rem;
}

/* Footer */
.footer {
  background-color: #2c3e50;
  color: #ffffff;
  text-align: center;
  padding: 1.5rem 1rem;
  margin-top: auto;
}

/* Responsive */
@media (max-width: 768px) {
  .header .container {
    flex-direction: column;
    gap: 1rem;
  }

  .nav {
    gap: 1rem;
  }

  .jumbotron h1 {
    font-size: 1.75rem;
  }

  .info-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }
}
