/* ==========================================
   GOJO HUB - Simple Dark Theme
   Not fancy, not AI. Just clean.
========================================== */

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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #0a0a0f;
  color: #ccc;
  min-height: 100vh;
  line-height: 1.5;
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 16px;
}

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

/* ---- Header ---- */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  border-bottom: 1px solid #1a1a2e;
  margin-bottom: 20px;
}
.header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.gojo-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid #4a9eff;
  object-fit: cover;
}
.site-title {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 2px;
}
.site-tagline {
  font-size: 11px;
  color: #666;
  margin-top: 2px;
}
.header-nav {
  display: flex;
  gap: 8px;
}
.nav-link {
  padding: 6px 14px;
  border: 1px solid #222;
  border-radius: 4px;
  color: #999;
  font-size: 13px;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
}
.nav-link:hover, .nav-link.active {
  color: #fff;
  border-color: #4a9eff;
  text-decoration: none;
}
.logout-btn {
  border-color: #ff4444;
  color: #ff4444;
}
.logout-btn:hover {
  background: #ff4444;
  color: #fff;
}

/* ---- Stats Bar ---- */
.stats-bar {
  display: flex;
  gap: 20px;
  padding: 12px 16px;
  background: #111;
  border: 1px solid #1a1a2e;
  border-radius: 6px;
  margin-bottom: 20px;
}
.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.stat-num {
  font-size: 20px;
  font-weight: 700;
  color: #4a9eff;
}
.stat-label {
  font-size: 11px;
  color: #666;
}

/* ---- Gojo Section ---- */
.gojo-section {
  text-align: center;
  margin: 24px 0;
  padding: 20px;
  background: #111;
  border: 1px solid #1a1a2e;
  border-radius: 6px;
}
.gojo-hero {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 3px solid #4a9eff;
  object-fit: cover;
  display: block;
  margin: 0 auto 12px;
}
.gojo-quote {
  font-style: italic;
  color: #666;
  font-size: 13px;
}

/* ---- Scripts Table ---- */
.scripts-section {
  margin-bottom: 30px;
}
.section-title {
  font-size: 16px;
  color: #fff;
  margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid #1a1a2e;
}
.table-wrap {
  overflow-x: auto;
}
.scripts-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.scripts-table th {
  text-align: left;
  padding: 8px 10px;
  background: #111;
  color: #888;
  font-weight: 600;
  border-bottom: 1px solid #1a1a2e;
  font-size: 11px;
  text-transform: uppercase;
}
.scripts-table td {
  padding: 8px 10px;
  border-bottom: 1px solid #111;
}
.scripts-table tr:hover {
  background: #111;
}
.script-link {
  color: #4a9eff;
  font-weight: 500;
}
.empty-msg {
  color: #555;
  padding: 30px;
  text-align: center;
  font-style: italic;
}

/* ---- Script Detail Page ---- */
.script-detail {
  margin-bottom: 30px;
}
.script-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.script-name {
  font-size: 20px;
  color: #fff;
}
.script-badge {
  padding: 2px 8px;
  background: #1a1a2e;
  color: #4a9eff;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}
.script-desc {
  color: #888;
  margin-bottom: 12px;
  font-size: 14px;
}
.script-meta {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: #666;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.script-meta code {
  background: #111;
  padding: 1px 5px;
  border-radius: 3px;
}

/* ---- Copy Sections ---- */
.copy-section {
  margin-bottom: 14px;
}
.copy-label {
  display: block;
  font-size: 12px;
  color: #888;
  margin-bottom: 4px;
  font-weight: 600;
}
.copy-box {
  display: flex;
  align-items: center;
  background: #111;
  border: 1px solid #1a1a2e;
  border-radius: 4px;
  overflow: hidden;
}
.copy-box code {
  flex: 1;
  padding: 10px 12px;
  font-size: 12px;
  color: #4aff4a;
  word-break: break-all;
  font-family: 'Courier New', monospace;
}
.copy-btn {
  padding: 10px 16px;
  background: #1a1a2e;
  color: #4a9eff;
  border: none;
  border-left: 1px solid #1a1a2e;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  font-family: inherit;
  transition: background 0.2s;
}
.copy-btn:hover {
  background: #4a9eff;
  color: #000;
}
.copy-btn.copied {
  background: #22cc22;
  color: #000;
}

/* ---- Code Block ---- */
.code-section {
  margin-top: 20px;
}
.code-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: #151520;
  border: 1px solid #1a1a2e;
  border-bottom: none;
  border-radius: 4px 4px 0 0;
  font-size: 12px;
  color: #888;
}
.code-block {
  background: #0d0d15;
  border: 1px solid #1a1a2e;
  border-radius: 0 0 4px 4px;
  padding: 14px;
  overflow-x: auto;
  font-size: 13px;
  line-height: 1.6;
  color: #ddd;
  font-family: 'Courier New', monospace;
  max-height: 400px;
  overflow-y: auto;
}
.back-link {
  margin-top: 20px;
}
.back-link a {
  color: #666;
  font-size: 13px;
}
.back-link a:hover {
  color: #4a9eff;
}

/* ---- Login ---- */
.login-section {
  display: flex;
  justify-content: center;
  padding: 40px 0;
}
.login-box {
  width: 100%;
  max-width: 380px;
  background: #111;
  border: 1px solid #1a1a2e;
  border-radius: 6px;
  padding: 30px;
  text-align: center;
}
.login-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 2px solid #4a9eff;
  object-fit: cover;
  margin-bottom: 14px;
}
.login-box h2 {
  color: #fff;
  font-size: 18px;
  margin-bottom: 8px;
}
.login-hint {
  color: #555;
  font-size: 11px;
  margin-bottom: 20px;
  font-style: italic;
}
.error-msg {
  color: #ff4444;
  font-size: 13px;
  margin-top: 10px;
}
.success-msg {
  color: #22cc22;
  font-size: 14px;
  font-weight: 600;
}

/* ---- Forms ---- */
.input-field {
  width: 100%;
  padding: 10px 12px;
  background: #0a0a0f;
  border: 1px solid #222;
  border-radius: 4px;
  color: #ccc;
  font-size: 13px;
  font-family: inherit;
  margin-bottom: 10px;
}
.input-field:focus {
  outline: none;
  border-color: #4a9eff;
}
.code-input {
  font-family: 'Courier New', monospace;
  font-size: 12px;
  line-height: 1.5;
  resize: vertical;
}
select.input-field {
  cursor: pointer;
}

.btn {
  display: inline-block;
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  text-align: center;
  transition: opacity 0.2s;
}
.btn:hover {
  opacity: 0.85;
  text-decoration: none;
}
.btn-primary {
  background: #4a9eff;
  color: #000;
}
.btn-small {
  padding: 5px 10px;
  font-size: 11px;
}
.btn-edit {
  background: #333;
  color: #ccc;
}
.btn-danger {
  background: #441111;
  color: #ff4444;
}
.btn-danger:hover {
  background: #ff4444;
  color: #fff;
}

.form-row {
  display: flex;
  gap: 12px;
}
.form-row .form-group {
  flex: 1;
}
.form-group {
  margin-bottom: 12px;
}
.form-group label {
  display: block;
  font-size: 12px;
  color: #888;
  margin-bottom: 4px;
  font-weight: 600;
}

/* ---- Admin Dashboard ---- */
.admin-dashboard {
  margin-bottom: 30px;
}
.upload-section {
  background: #111;
  border: 1px solid #1a1a2e;
  border-radius: 6px;
  padding: 20px;
  margin-bottom: 20px;
}
.result-box {
  margin-top: 14px;
  padding: 14px;
  background: #0d0d15;
  border: 1px solid #1a1a2e;
  border-radius: 4px;
}
.result-box p {
  margin-bottom: 6px;
  font-size: 13px;
}
.result-box code {
  background: #111;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 12px;
  word-break: break-all;
}

.manage-section {
  margin-bottom: 20px;
}
.admin-scripts {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.admin-script-card {
  background: #111;
  border: 1px solid #1a1a2e;
  border-radius: 6px;
  padding: 14px;
}
.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}
.card-top strong {
  color: #fff;
  font-size: 14px;
}
.card-info {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #666;
  margin-bottom: 10px;
}
.card-info code {
  background: #0a0a0f;
  padding: 1px 5px;
  border-radius: 3px;
}
.card-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.edit-form {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #1a1a2e;
}

/* ---- Footer ---- */
.footer {
  text-align: center;
  padding: 20px 0;
  border-top: 1px solid #1a1a2e;
  margin-top: 20px;
  font-size: 12px;
  color: #444;
}
.footer-small {
  font-size: 10px;
  color: #333;
  margin-top: 4px;
}

/* ---- Responsive ---- */
@media (max-width: 600px) {
  .header {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
  .header-left {
    justify-content: center;
  }
  .stats-bar {
    justify-content: center;
  }
  .form-row {
    flex-direction: column;
    gap: 0;
  }
  .card-info {
    flex-direction: column;
    gap: 4px;
  }
  .script-meta {
    flex-direction: column;
    gap: 4px;
  }
}
