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

body, html {
  font-family: 'Inter', sans-serif;
  background: #ffffff;
  color: #111;
  height: 100%;
}

/* Top Bar */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
  background: rgba(255, 255, 255, 0.95);
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.logo {
  font-family: 'Merriweather', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #111;
}

.logo a {
  color: inherit;
  text-decoration: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-links a,
.dropbtn {
  color: #2563eb;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  background: none;
  border: none;
  font-family: inherit;
  cursor: pointer;
  transition: color 0.2s ease;
}

.nav-links a:hover,
.dropbtn:hover {
  color: #1d4ed8;
}

/* Dropdown */
.dropdown {
  position: relative;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background: white;
  min-width: 220px;
  max-width: 280px;
  box-shadow: 0px 8px 16px rgba(0,0,0,0.1);
  border: 1px solid #eee;
  z-index: 1001;
  white-space: normal;
}

.dropdown-content a {
  display: block;
  padding: 0.75rem 1rem;
  text-decoration: none;
  color: #2563eb;
  font-weight: 500;
}

.dropdown-content a:hover {
  background-color: #f3f4f6;
  color: #1d4ed8;
}

.dropdown:hover .dropdown-content {
  display: block;
}

/* Main */
main {
  max-width: 700px;
  margin: 4rem auto;
  padding: 0 1rem;
  text-align: left;
}

/* Section Titles */
.section-title {
  font-family: 'Merriweather', serif;
  font-size: 2rem;
  color: #111;
  margin-bottom: 1rem;
}

.description p {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  text-align: left;
}

.description ul {
  padding-left: 1.5rem;
  text-align: left;
  font-size: 1rem;
  line-height: 1.6;
}

.description ul li {
  margin-bottom: 0.5rem;
}

/* Buttons */
.buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  margin-bottom: 3rem;
}

.btn {
  background-color: #2563eb;
  color: white;
  padding: 0.75rem 1.5rem;
  border: none;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 6px;
  transition: background-color 0.2s ease;
}

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

.btn.disabled {
  background-color: #ccc;
  color: #666;
  cursor: not-allowed;
  pointer-events: none;
  border: none;
}

.btn.disabled i {
  color: #888;
}

.template-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.template-actions .btn i {
  margin-right: 0.5rem;
}

/* Template Cards */
.template-block {
  max-width: 700px;
  margin: 2rem auto;
  padding: 1rem 1rem 2rem;
  border-bottom: 1px solid #eee;
  text-align: left;
}

.template-block h3 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  color: #111;
}

.template-block p {
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

/* Callout Boxes */
.setup-warning {
  background-color: #eef2ff;
  border-left: 4px solid #2563eb;
  padding: 1rem;
  margin-bottom: 2rem;
  color: #1e3a8a;
}

.setup-tip {
  background-color: #eff6ff;
  border-left: 4px solid #3b82f6;
  padding: 1rem;
  margin-top: 2rem;
  color: #1e40af;
}

/* Citation Section */
.citation {
  max-width: 700px;
  margin: 3rem auto;
  padding: 1rem;
  text-align: left;
  font-size: 0.95rem;
  color: #444;
}

.citation a,
.github-link {
  color: #2563eb;
  text-decoration: none;
  font-weight: 600;
}

.citation a:hover,
.github-link:hover {
  text-decoration: underline;
  color: #1d4ed8;
}

/* Footer */
footer {
  text-align: center;
  padding: 2rem 1rem;
  font-size: 0.9rem;
  color: #888;
}

/* Screenshot details */
details summary {
  font-weight: 600;
  cursor: pointer;
  margin: 1rem 0;
}

details img {
  margin-top: 1rem;
  max-width: 100%;
  border: 1px solid #ccc;
  border-radius: 4px;
}

/* Fix extra spacing before UL lists */
.description ul,
.template-block ul {
  margin-top: 0.5rem;
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.description ul li,
.template-block ul li {
  margin-bottom: 0.5rem;
}