/* Reset and base */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: #ffffff;
  color: #6b7280;
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */
header {
  position: sticky;
  top: 0;
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  z-index: 1000;
  user-select: none;
}

header .logo {
  font-weight: 800;
  font-size: 30px;
  letter-spacing: -0.02em;
  color: #111111;
}

nav {
  display: flex;
  gap: 2rem;
  align-items: center;
}

nav a {
  font-weight: 600;
  font-size: 1rem;
  padding: 0.25rem 0.5rem;
  border-radius: 0.75rem;
  transition: background-color 0.3s ease, color 0.3s ease;
  color: #111111;
  text-decoration: none;
}

nav a:hover,
nav a:focus {
  background-color: #000000;
  color: #ffffff;
  outline: none;
}

nav .nav-current {
  background-color: #000000;
  color: #ffffff;
  cursor: default;
  pointer-events: none;
}

/* Theme toggle button */
.theme-toggle-btn {
  background: none;
  border: 2px solid #111111;
  border-radius: 0.75rem;
  padding: 0.25rem 0.75rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: #111111;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.theme-toggle-btn:hover,
.theme-toggle-btn:focus {
  background-color: #000000;
  color: #ffffff;
  outline: none;
}

/* Container */
main.container {
  max-width: 1200px;
  margin: 4rem auto 5rem;
  padding-left: 1rem;
  padding-right: 1rem;
  flex-grow: 1;
}

/* Heading */
h1 {
  font-weight: 800;
  font-size: 48px;
  margin-bottom: 3rem;
  color: #111111;
  user-select: none;
  text-align: center;
}

/* Executors Grid */
.executors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
}

/* Executor Card */
.executor-card {
  background-color: #f9f9f9;
  border-radius: 0.75rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.executor-card:hover,
.executor-card:focus-within {
  transform: translateY(-6px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
  outline: none;
}

.executor-image {
  flex-shrink: 0;
  width: 100%;
  height: 180px;
  background-color: #ddd;
  position: relative;
  overflow: hidden;
}

.executor-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.executor-content {
  padding: 1.5rem 2rem 2rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.executor-content h2 {
  margin: 0 0 0.75rem 0;
  font-weight: 700;
  font-size: 1.5rem;
  color: #111111;
  user-select: none;
}

.executor-content p {
  color: #6b7280;
  font-size: 1rem;
  line-height: 1.5;
  margin: 0 0 1.5rem 0;
  flex-grow: 1;
  user-select: text;
}

/* Download Button */
.download-btn {
  display: inline-block;
  background-color: #000000;
  color: #ffffff;
  padding: 0.75rem 1.75rem;
  font-weight: 700;
  font-size: 1.1rem;
  border-radius: 0.75rem;
  text-align: center;
  cursor: pointer;
  user-select: none;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.download-btn:hover,
.download-btn:focus {
  background-color: #333333;
  transform: scale(1.05);
  outline: none;
}

/* Footer */
footer {
  text-align: center;
  padding: 2rem 1rem;
  color: #6b7280;
  font-size: 14px;
  border-top: 1px solid #e5e7eb;
  user-select: none;
  flex-shrink: 0;
}

/* Dark Mode Styles */
body.dark {
  background-color: #121212; /* Dark background */
  color: #ffffff; /* Light text */
}

.executor-card.dark {
  background-color: #1e1e1e; /* Dark card background */
  color: #ffffff; /* Light text */
}

.executor-card {
  background-color: #ffffff; /* Light card background */
  color: #000000; /* Dark text */
}

/* Responsive adjustments */
@media (max-width: 640px) {
  header {
    padding: 1rem;
  }
  
  nav {
    gap: 1rem;
  }

  h1 {
    font-size: 36px;
    margin-bottom: 2rem;
  }

  .executor-image {
    height: 160px;
  }

  .executor-content h2 {
    font-size: 1.25rem;
  }

  .download-btn {
    font-size: 1rem;
    padding: 0.5rem 1.25rem;
  }
}
