/* ==========================================================================
   lembrik.eu
   ========================================================================== */

:root {
  --bg: #f9f7f2;
  --bg-card: #ffffff;
  --bg-code: #f0ede6;
  --text: #22201e;
  --text-muted: #6e6b66;
  --border: #dfdad1;
  --border-focus: #b8b1a5;
  --accent: #b45309;
  --accent-subtle: #fef3c7;
  --pine: #1b6348;
  --link: #0969da;
  --link-visited: #8c3bb3;
  --code: #1f2328;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", "Fira Code", "Menlo", monospace;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
}

[data-theme="dark"] {
  --bg: #141517;
  --bg-card: #1c1d21;
  --bg-code: #24262b;
  --text: #e6e5e3;
  --text-muted: #959491;
  --border: #2e3037;
  --border-focus: #4b4e58;
  --accent: #f59e0b;
  --accent-subtle: #3a2e16;
  --pine: #34d399;
  --link: #58a6ff;
  --link-visited: #bc8cff;
  --code: #f0f6fc;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.2);
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.65;
  transition: background-color 0.2s ease, color 0.2s ease;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 680px;
  margin: 0 auto;
  padding: 40px 20px 80px;
}

/* Header & Top Bar */
.top-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 18px;
  margin-bottom: 28px;
  border-bottom: 1px dashed var(--border);
}

.terminal-prompt {
  font-family: var(--font-mono);
  font-size: 13.5px;
  color: var(--text-muted);
}

.terminal-prompt .user {
  color: var(--pine);
  font-weight: 600;
}

.terminal-prompt .domain {
  color: var(--accent);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-link {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  text-decoration: none;
  padding: 4px 8px;
  border-radius: 4px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  transition: all 0.15s ease;
}

.nav-link:hover {
  color: var(--text);
  border-color: var(--border-focus);
}

.theme-btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 4px 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  cursor: pointer;
  color: var(--text-muted);
  background: var(--bg-card);
}

.theme-btn:hover {
  color: var(--text);
  border-color: var(--border-focus);
}


/* Hero & Language Breakdown - Left-aligned */
.hero {
  margin-bottom: 24px;
  text-align: left;
}

.hero p {
  text-align: left;
  font-size: 13.5px;
  line-height: 1.55;
  margin-bottom: 7px;
}

.call-me-text {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 8px;
  text-align: left;
}

.languages-banner {
  display: flex;
  flex-wrap: nowrap;
  white-space: nowrap;
  align-items: baseline;
  justify-content: flex-start;
  gap: 14px 18px;
  margin-bottom: 12px;
  font-family: var(--font-mono);
  text-align: left;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
}

.languages-banner::-webkit-scrollbar {
  display: none;
}

.lang-item {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  flex-shrink: 0;
}

.lang-word {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.lang-level {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  margin-top: 2px;
}

/* animated gradient on first word */
@keyframes psi3-gradient-flow {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

.lang-primary .lang-word {
  background: linear-gradient(90deg, #d9f99d, #fef08a, #fed7aa, #f472b6, #c084fc, #60a5fa, #34d399, #d9f99d);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: psi3-gradient-flow 6s ease infinite;
  display: inline-block;
}

.lang-native .lang-word {
  color: var(--text);
}

.lang-a2 .lang-word {
  color: var(--text);
  opacity: 0.9;
}

.lang-faded-1 .lang-word {
  color: var(--text-muted);
  opacity: 0.8;
  font-size: 26px;
}

.lang-faded-2 .lang-word {
  color: var(--text-muted);
  opacity: 0.6;
  font-size: 23px;
}

.lang-faded-3 .lang-word {
  color: var(--text-muted);
  opacity: 0.4;
  font-size: 21px;
}

.pronunciation-box {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px dashed var(--border);
  padding: 4px 10px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 12px 0;
  text-align: left;
}

.pronunciation-box .ipa {
  color: var(--pine);
  font-weight: 500;
}

.pronunciation-box .phonetic {
  color: var(--text);
  font-style: italic;
}

/* Sections */
section {
  margin-bottom: 30px;
}

/* Terminal command header style instead of § CAPS */
h2 {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: normal;
  color: var(--text-muted);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

h2 .prompt-char {
  color: var(--pine);
  font-weight: bold;
}

p {
  margin-bottom: 10px;
}

a {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

a:hover {
  color: var(--accent);
}

/* Micro Logos & Dynamic Carousel */
.micro-logo {
  width: 14px;
  height: 14px;
  vertical-align: -2px;
  display: inline-block;
  margin-right: 2px;
}

.passion-line {
  font-size: 13.5px;
  line-height: 1.55;
}

.rotating-passion-container {
  display: inline;
}

.rotating-passion {
  display: inline-block;
  font-weight: 700;
  color: var(--text);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.rotating-passion.fade-out {
  opacity: 0;
  transform: translateY(-3px);
}

.rotating-passion.fade-in {
  opacity: 1;
  transform: translateY(0);
}

/* Project Cards - Fully Clickable */
.project-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.project-card {
  display: block;
  text-decoration: none;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 14px 16px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
  cursor: pointer;
}

.project-card:hover {
  border-color: var(--border-focus);
  background: var(--bg-code);
  transform: translateY(-1px);
}

.project-title {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.project-title::after {
  content: "↗";
  font-size: 12.5px;
  color: var(--text-muted);
  transition: transform 0.15s ease, color 0.15s ease;
}

.project-card:hover .project-title::after {
  color: var(--accent);
  transform: translate(2px, -2px);
}

.project-desc {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 0;
}

/* Contact / Identity Box */
.contact-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 13px;
}

.contact-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
}

.contact-table tr:last-child td {
  border-bottom: none;
}

.contact-label {
  color: var(--text-muted);
  width: 100px;
  text-transform: uppercase;
  font-size: 11px;
}

.contact-val code {
  color: var(--code);
  font-size: 13px;
}

/* Donate 3-Second Hover Component */
.donate-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 16px;
  position: relative;
  overflow: hidden;
  outline: none;
}

.donate-box:hover,
.donate-teaser:hover,
.teaser-main:hover {
  outline: none;
  cursor: default;
}

.donate-teaser {
  display: flex;
  align-items: center;
  cursor: default;
  user-select: none;
  outline: none;
}

.teaser-main {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text);
  font-weight: 500;
  transition: color 0.2s ease;
}

.donate-details {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.35s ease, margin-top 0.3s ease;
  margin-top: 0;
}

.donate-box.is-revealed .donate-details {
  max-height: 400px;
  opacity: 1;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--border);
}

.donate-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.donate-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  background: var(--bg-code);
  padding: 8px 12px;
  border-radius: 4px;
  border: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 12px;
}

.donate-kind {
  justify-self: start;
  color: var(--text-muted);
  font-size: 11px;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Trans flag styling for T-Bank */
.tbank-trans-badge {
  display: inline-block;
  font-weight: 700;
  letter-spacing: 0.5px;
  background: linear-gradient(90deg, #55cdfc, #f7a8b8, #ffffff, #f7a8b8, #55cdfc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 10px rgba(247, 168, 184, 0.4);
}

.donate-code {
  justify-self: center;
  text-align: center;
  color: var(--code);
  font-weight: 500;
  user-select: all;
  white-space: nowrap;
}

.copy-mini-btn {
  justify-self: end;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 3px;
  font-size: 10.5px;
  font-family: var(--font-mono);
  padding: 2px 6px;
  cursor: pointer;
  color: var(--text-muted);
  transition: all 0.1s ease;
}

.copy-mini-btn:hover {
  color: var(--text);
  border-color: var(--border-focus);
}

/* 88x31 Badges Section */
.badge-subhead {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  margin: 16px 0 8px;
}

.badges-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 8px 0;
}

.badges-grid-all {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin: 8px 0 16px;
}

.badges-grid-all a {
  display: inline-block;
  line-height: 0;
}

.badge-img {
  width: 88px;
  height: 31px;
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;
  border: 1px solid rgba(0, 0, 0, 0.15);
  display: block;
  transition: transform 0.1s ease;
}

.badge-img:hover {
  transform: scale(1.05);
}

.copy-badge-code {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 8px 12px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
}

.copy-badge-code code {
  overflow-x: auto;
  white-space: nowrap;
  max-width: 480px;
}

.copy-btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: 3px;
  font-size: 11px;
  font-family: var(--font-mono);
  padding: 2px 6px;
  cursor: pointer;
  color: var(--text);
  margin-left: 8px;
}

.copy-btn:hover {
  background: var(--border);
}

/* Clean Minimal Footer */
footer {
  margin-top: 60px;
  padding-top: 24px;
  border-top: 1px dashed var(--border);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.6;
}

@media (max-width: 640px) {
  .languages-banner {
    mask-image: linear-gradient(to right, black 65%, transparent 98%);
    -webkit-mask-image: linear-gradient(to right, black 65%, transparent 98%);
    padding-right: 24px;
  }
}