.script-detail {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.script-detail-header {
  margin-bottom: 2rem;
}

.script-detail-header h1 {
  margin-bottom: 1rem;
  font-size: 2.5rem;
  color: #222;
}

.quick-download {
  background: #f8f9fa;
  border: 2px solid #0066cc;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 3rem;
}

.quick-download h2 {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.3rem;
  color: #222;
}

.quick-download pre {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 1rem;
  margin: 0.5rem 0 1rem 0;
  overflow-x: auto;
}

.quick-download code {
  font-family: 'Courier New', monospace;
  font-size: 0.95rem;
  color: #333;
}

.copy-btn {
  background: #0066cc;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 0.5rem 1.5rem;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 500;
}

.copy-btn:hover {
  background: #0052a3;
}

.copy-btn:active {
  background: #28a745;
}

.alt-link {
  margin-top: 1rem;
  margin-bottom: 0;
  font-size: 0.9rem;
}

.alt-link a {
  color: #0066cc;
  text-decoration: none;
}

.alt-link a:hover {
  text-decoration: underline;
}

.script-content {
  margin-top: 3rem;
}

/* Info Grid */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
  padding: 1.5rem;
  background: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #dee2e6;
}

.info-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.info-label {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #6c757d;
}

.info-value {
  font-size: 1rem;
  font-weight: 500;
  color: #222;
}

/* Badge additions */
.badge-skill {
  background: #6f42c1;
  color: white;
  padding: 0.35rem 0.75rem;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 500;
  display: inline-block;
}

.badge-time i {
  margin-right: 0.25rem;
}

/* Dark mode */
body.theme--dark .script-detail-header h1 {
  color: #e0e0e0;
}

body.theme--dark .quick-download {
  background: #252525;
  border-color: #0a84ff;
}

body.theme--dark .quick-download h2 {
  color: #e0e0e0;
}

body.theme--dark .quick-download pre {
  background: #1a1a1a;
  border-color: #444;
}

body.theme--dark .quick-download code {
  color: #e0e0e0;
}

body.theme--dark .alt-link a {
  color: #3d9dff;
}

body.theme--dark .info-grid {
  background: #252525;
  border-color: #444;
}

body.theme--dark .info-label {
  color: #adb5bd;
}

body.theme--dark .info-value {
  color: #e0e0e0;
}

@media (max-width: 768px) {
  .script-detail-header h1 {
    font-size: 2rem;
  }

  .quick-download {
    padding: 1rem;
  }
}
