/* ============================================================================
   contact-email.css - terminal-styled email contact page
   ----------------------------------------------------------------------------
   Used by: contact/email/ only
   Requires fonts.css (Share Tech Mono / Orbitron / Rajdhani).
   ========================================================================== */

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

body {
  background: #0a0010;
  color: #e0c3fc;
  font-family: 'Rajdhani', sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

.grid-bg {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(180, 0, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(180, 0, 255, 0.07) 1px, transparent 1px);
  background-size: 40px 40px;
  z-index: 0;
  pointer-events: none;
}

.scanline {
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0,0,0,0.15) 2px,
    rgba(0,0,0,0.15) 4px
  );
  z-index: 1;
  pointer-events: none;
}

.container {
  position: relative;
  z-index: 2;
  max-width: 720px;
  margin: 0 auto;
  padding: 60px 24px 80px;
}

.header {
  text-align: center;
  margin-bottom: 60px;
}

.circuit-line {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
  margin-bottom: 32px;
}

.circuit-line::before,
.circuit-line::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, #b400ff, #ff007a, transparent);
}

.circuit-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff007a;
  box-shadow: 0 0 10px #ff007a, 0 0 20px #ff007a;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 10px #ff007a, 0 0 20px #ff007a; }
  50% { opacity: 0.5; box-shadow: 0 0 4px #ff007a; }
}

.title {
  font-family: 'Orbitron', monospace;
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1.1;
  color: #ffffff;
  text-shadow: 0 0 40px rgba(180, 0, 255, 0.8), 0 0 80px rgba(180, 0, 255, 0.4);
  margin-bottom: 8px;
}

.title span {
  color: #ff007a;
  text-shadow: 0 0 40px rgba(255, 0, 122, 0.8), 0 0 80px rgba(255, 0, 122, 0.4);
}

.subtitle {
  font-family: 'Share Tech Mono', monospace;
  font-size: 13px;
  color: rgba(180, 0, 255, 0.7);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-top: 12px;
}

.card {
  background: rgba(20, 0, 40, 0.85);
  border: 1px solid rgba(180, 0, 255, 0.35);
  border-radius: 2px;
  padding: 28px 32px;
  margin-bottom: 20px;
  position: relative;
  backdrop-filter: blur(8px);
}

.card::before {
  content: '';
  position: absolute;
  top: -1px; left: 20px;
  width: 60px; height: 2px;
  background: linear-gradient(90deg, #b400ff, #ff007a);
}

.card::after {
  content: '';
  position: absolute;
  bottom: -1px; right: 20px;
  width: 40px; height: 2px;
  background: linear-gradient(90deg, #ff007a, #b400ff);
}

.card-label {
  font-family: 'Share Tech Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(180, 0, 255, 0.6);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-label::before {
  content: '';
  display: inline-block;
  width: 6px; height: 6px;
  border: 1px solid #b400ff;
  transform: rotate(45deg);
}

.email-display {
  font-family: 'Share Tech Mono', monospace;
  font-size: clamp(18px, 3vw, 26px);
  color: #ffffff;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.email-display .at {
  color: #ff007a;
  font-weight: bold;
}

.email-at-badge {
  background: rgba(255, 0, 122, 0.12);
  border: 1px solid rgba(255, 0, 122, 0.4);
  border-radius: 2px;
  padding: 2px 10px;
  font-size: 20px;
  color: #ff007a;
}

.fingerprint-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.fingerprint-value {
  font-family: 'Share Tech Mono', monospace;
  font-size: 13px;
  color: #c084fc;
  letter-spacing: 0.12em;
  word-break: break-all;
  flex: 1;
  min-width: 0;
}

.fingerprint-value .chunk {
  display: inline-block;
  margin-right: 8px;
  opacity: 0.9;
}

.fingerprint-value .chunk:nth-child(odd) { color: #e879f9; }
.fingerprint-value .chunk:nth-child(even) { color: #a855f7; }

.status-badge {
  font-family: 'Share Tech Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  padding: 4px 12px;
  border: 1px solid rgba(0, 255, 160, 0.5);
  color: #00ffa0;
  background: rgba(0, 255, 160, 0.08);
  border-radius: 2px;
  white-space: nowrap;
  animation: blink-border 3s ease-in-out infinite;
}

@keyframes blink-border {
  0%, 100% { border-color: rgba(0, 255, 160, 0.5); }
  50% { border-color: rgba(0, 255, 160, 0.15); }
}

.pgp-wrapper {
  position: relative;
}

.pgp-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(180, 0, 255, 0.12);
  border: 1px solid rgba(180, 0, 255, 0.3);
  border-bottom: none;
  padding: 8px 16px;
  border-radius: 2px 2px 0 0;
}

.pgp-header-bar span {
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  color: rgba(180, 0, 255, 0.8);
  letter-spacing: 0.15em;
}

.copy-btn {
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  background: transparent;
  border: 1px solid rgba(255, 0, 122, 0.5);
  color: #ff007a;
  padding: 4px 14px;
  cursor: pointer;
  border-radius: 2px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
  position: relative;
  overflow: hidden;
}

.copy-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 0, 122, 0);
  transition: background 0.2s ease;
}

.copy-btn:hover {
  border-color: #ff007a;
  color: #ffffff;
  background: rgba(255, 0, 122, 0.2);
}

.copy-btn:active {
  transform: scale(0.97);
}

.copy-btn.copied {
  border-color: #00ffa0;
  color: #00ffa0;
  background: rgba(0, 255, 160, 0.1);
}

.copy-icon {
  width: 12px;
  height: 12px;
  fill: currentColor;
}

.pgp-box {
  background: rgba(10, 0, 22, 0.9);
  border: 1px solid rgba(180, 0, 255, 0.3);
  border-top: none;
  border-radius: 0 0 2px 2px;
  padding: 20px;
  font-family: 'Share Tech Mono', monospace;
  font-size: 11.5px;
  line-height: 1.65;
  color: #c084fc;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-all;
  max-height: 320px;
  overflow-y: auto;
}

.pgp-box::-webkit-scrollbar { width: 4px; }
.pgp-box::-webkit-scrollbar-track { background: transparent; }
.pgp-box::-webkit-scrollbar-thumb { background: rgba(180, 0, 255, 0.4); border-radius: 2px; }

.pgp-begin, .pgp-end {
  color: #ff007a;
  font-weight: bold;
  letter-spacing: 0.05em;
}

.pgp-body { color: #a78bfa; opacity: 0.85; }

.footer-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(180, 0, 255, 0.15);
}

.footer-line span {
  font-family: 'Share Tech Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  color: rgba(180, 0, 255, 0.35);
  text-transform: uppercase;
}

.footer-dot {
  width: 3px; height: 3px;
  border-radius: 50%;
  background: rgba(255, 0, 122, 0.4);
}

.corner-tl, .corner-br {
  position: absolute;
  width: 12px; height: 12px;
  pointer-events: none;
}

.corner-tl {
  top: -1px; left: -1px;
  border-top: 2px solid #b400ff;
  border-left: 2px solid #b400ff;
}

.corner-br {
  bottom: -1px; right: -1px;
  border-bottom: 2px solid #ff007a;
  border-right: 2px solid #ff007a;
}

@keyframes glitch {
  0%, 100% { clip-path: none; transform: none; }
  92% { clip-path: none; transform: none; }
  93% { clip-path: inset(20% 0 60% 0); transform: translate(-3px, 0); }
  94% { clip-path: inset(60% 0 10% 0); transform: translate(3px, 0); }
  95% { clip-path: none; transform: none; }
}

.title { animation: glitch 8s infinite; }

.how-to-section {
  margin-top: 4px;
}

.how-to-toggle {
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: rgba(180, 0, 255, 0.55);
  cursor: pointer;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
  border: none;
  background: none;
  padding: 0;
  transition: color 0.2s;
}

.how-to-toggle:hover { color: #e879f9; }

.how-to-toggle .arrow {
  display: inline-block;
  transition: transform 0.25s ease;
  font-size: 10px;
}

.how-to-toggle.open .arrow { transform: rotate(90deg); }

.how-to-body {
  display: none;
  margin-top: 14px;
  padding: 16px 18px;
  background: rgba(0,0,0,0.3);
  border-left: 2px solid rgba(180,0,255,0.3);
  font-size: 13px;
  color: rgba(200, 160, 255, 0.75);
  line-height: 1.8;
}

.how-to-body.open { display: block; }

.how-to-body code {
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  background: rgba(180,0,255,0.1);
  border: 1px solid rgba(180,0,255,0.2);
  padding: 1px 6px;
  border-radius: 2px;
  color: #e879f9;
}

.how-to-body ol { padding-left: 18px; }
.how-to-body li { margin-bottom: 6px; }
