@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;700;800&family=DM+Mono:wght@400;500&display=swap');

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

:root {
  --bg:       #0d0d0f;
  --surface:  #16171a;
  --border:   #2a2b30;
  --accent:   #f5c842;
  --text:     #e8e8e8;
  --muted:    #6b6d75;
  --link-bg:  #1c1d21;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Mono', monospace;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

/* subtle grid background */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(245,200,66,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245,200,66,.04) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

.card, .searchcard {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 3rem 2.5rem;
  width: 100%;
  position: relative;
  box-shadow: 0 0 60px rgba(0,0,0,.6);
  animation: fadeUp .5s ease both;
}

.card {
	max-width: 480px;
}

.searchcard {
	max-width: 800px;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* accent stripe */
.card::before, .searchcard::before {
  content: '';
  position: absolute;
  top: 0; left: 2rem; right: 2rem;
  height: 2px;
  background: var(--accent);
  border-radius: 0 0 4px 4px;
}

.label {
  font-family: 'DM Mono', monospace;
  font-size: .65rem;
  letter-spacing: .15em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: .75rem;
}

h1 {
  font-family: 'Syne', sans-serif;
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: .5rem;
}

.sub {
  color: var(--muted);
  font-size: .8rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}

/* ── Turnstile (verify.php only) ── */
.turnstile-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.submit-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: .5rem;
}

.submit-btn {
  background: var(--accent);
  color: #0d0d0f;
  border: none;
  border-radius: 8px;
  padding: .65rem 1.75rem;
  font-family: 'Syne', sans-serif;
  font-size: .9rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity .2s;
}

.submit-btn:hover { opacity: .85; }

.error-msg {
  font-size: .8rem;
  color: #f87171;
  margin-bottom: 1.25rem;
  text-align: center;
}

/* ── Link cards (index.php only) ── */
#links-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Each link is wrapped in its own <form> — reset form styles */
#links-section form {
  margin: 0;
  padding: 0;
}

.link-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  background: var(--link-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  text-align: left;
  color: var(--text);
  cursor: pointer;
  transition: border-color .2s, background .2s;
}

.link-card:hover {
  border-color: var(--accent);
  background: #202126;
}

.link-icon {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  background: rgba(245,200,66,.12);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1rem;
}

.link-text strong {
  display: block;
  font-family: 'Syne', sans-serif;
  font-size: .95rem;
  font-weight: 700;
  margin-bottom: .15rem;
  text-align: left;
}

.link-text span {
  display: block;
  font-size: .72rem;
  color: var(--muted);
  text-align: left;
}

.arrow {
  margin-left: auto;
  color: var(--muted);
  font-size: 1.1rem;
  transition: transform .2s, color .2s;
}

.link-card:hover .arrow {
  transform: translateX(4px);
  color: var(--accent);
}

footer {
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  font-size: .68rem;
  color: var(--muted);
  text-align: center;
}

/* ── Search page (search.html) ── */
.search-row {
  display: flex;
  gap: .6rem;
  margin-bottom: 1rem;
 }

.search-input {
  flex: 1;
  background: var(--link-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: .65rem 1rem;
  font-family: 'DM Mono', monospace;
  font-size: .85rem;
  color: var(--text);
  outline: none;
  transition: border-color .2s;
 }

.search-input:focus {
  border-color: var(--accent);
 }

.search-input::placeholder {
  color: var(--muted);
 }

.hint {
  font-size: .72rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 1.75rem;
 }

.also-try {
  font-size: .75rem;
  color: var(--muted);
  margin-bottom: .5rem;
  letter-spacing: .05em;
  text-transform: uppercase;
 }

.also-link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  color: var(--accent);
  font-size: .8rem;
  text-decoration: none;
  transition: opacity .2s;
 }

.also-link:hover { opacity: .75; }

