/*
Theme Name: CORETURC Theme 2
Theme URI: https://coreturc.com
Author: CORETURC
Author URI: https://coreturc.com
Description: CORETURC Terminal Hacker Teması — Siyah zemin, beyaz ASCII logo, GSAP animasyonlu interaktif landing page.
Version: 2.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: coreturc-theme-2
Tags: one-page, dark, portfolio, minimal
*/

/* ============================================================
   CORETURC THEME 2 — MONOCHROME WHITE & BLACK HACKER / TERMINAL
   ============================================================ */


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

:root {
  --white: #ffffff;
  --white-dim: #cfcfcf;
  --white-glow: rgba(255, 255, 255, 0.35);
  --white-dark: rgba(255, 255, 255, 0.06);
  --amber: #f59e0b;
  --red: #ef4444;
  --dim: #666666;
  --bg: #000000;
  --font: 'Share Tech Mono', 'Courier New', monospace;
  --font-big: 'VT323', monospace;
}

html, body {
  width: 100%; height: 100%;
  background: var(--bg);
  color: var(--white);
  font-family: var(--font);
  overflow-x: hidden;
  overflow-y: auto;
}

/* ---- CRT EFFECTS ---- */
.scanlines {
  position: fixed; inset: 0; z-index: 9998; pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 3px,
    rgba(0,0,0,0.2) 3px,
    rgba(0,0,0,0.2) 4px
  );
}
.crt-flicker {
  position: fixed; inset: 0; z-index: 9997; pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 60%, rgba(0,0,0,0.6) 100%);
  animation: flicker 0.15s infinite;
}
@keyframes flicker {
  0%  { opacity: 1; }
  92% { opacity: 1; }
  93% { opacity: 0.94; }
  94% { opacity: 1; }
  96% { opacity: 0.97; }
  97% { opacity: 1; }
}

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

/* ---- TERMINAL ---- */
.terminal {
  position: relative; z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px 60px;
  gap: 0;
  text-align: left;
}

/* ---- ASCII LOGO (WHITE & SILVER GLOW) ---- */
.logo-ascii {
  width: 100%;
  max-width: 900px;
  overflow: hidden;
  margin-bottom: 32px;
}
.ascii-art {
  font-family: var(--font);
  font-size: clamp(5.5px, 0.95vw, 10.5px);
  line-height: 1.2;
  color: #ffffff;
  text-shadow:
    0 0 6px rgba(255, 255, 255, 0.8),
    0 0 16px rgba(255, 255, 255, 0.4),
    0 0 32px rgba(255, 255, 255, 0.2);
  white-space: pre;
  letter-spacing: 0;
  opacity: 0;
  display: block;
  width: fit-content;
  margin: 0 auto;
}

/* ---- TERM BODY ---- */
.term-body {
  width: 100%;
  max-width: 680px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}
.term-line {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: clamp(14px, 1.8vw, 17px);
  line-height: 1.6;
}
.term-line.hidden { display: none; }

.prompt {
  color: var(--white);
  font-weight: bold;
  flex-shrink: 0;
  letter-spacing: 0.05em;
  font-size: 1.1em;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
}
.ok-prompt { color: var(--white); text-shadow: 0 0 10px #ffffff; }
.dim-prompt { color: var(--dim); }

.term-text {
  color: #e0e0e0;
  letter-spacing: 0.04em;
  word-break: break-word;
  white-space: pre-wrap;
}
.ok-text { color: #ffffff; text-shadow: 0 0 8px rgba(255, 255, 255, 0.5); }
.dim-text { color: var(--dim); font-size: 12px; letter-spacing: 0.06em; }

/* ---- TYPEWRITER CURSOR (::after — her zaman satır sonunu takip eder) ---- */
#txt-intro::after {
  content: '';
  display: inline-block;
  width: 2px;
  height: 0.85em;
  background: #ffffff;
  margin-left: 3px;
  vertical-align: middle;
  box-shadow: 0 0 6px rgba(255,255,255,0.8);
  /* başlangıçta solid blink — JS bunu değiştirir */
  animation: cursor-blink 0.75s step-end infinite;
}
#txt-intro.is-typing::after {
  animation: none;
  opacity: 1;
}
#txt-intro.is-done::after {
  animation: cursor-blink 0.75s step-end infinite;
}
@keyframes cursor-blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* ---- NAV BUTTONS ---- */
.nav-btns {
  width: 100%;
  max-width: 680px;
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 20px;
  flex-wrap: wrap;
}
.nav-btns.hidden { display: none; }

.term-btn {
  background: none;
  border: none;
  font-family: var(--font);
  font-size: clamp(14px, 2vw, 18px);
  color: var(--white);
  letter-spacing: 0.12em;
  cursor: pointer;
  padding: 10px 6px;
  display: inline-flex;
  align-items: center;
  gap: 0;
  position: relative;
  outline: none;
  transition: color 0.15s, text-shadow 0.15s;
}
.term-btn:hover { color: #ffffff; text-shadow: 0 0 16px rgba(255, 255, 255, 0.9); }
.term-btn:active { color: #aaaaaa; }

.term-btn.clicked .btn-label {
  animation: glitch-click 0.3s steps(1) forwards;
}
@keyframes glitch-click {
  0%   { clip-path: inset(0 0 80% 0); transform: translateX(-2px); color: var(--amber); }
  20%  { clip-path: inset(30% 0 40% 0); transform: translateX(2px); }
  40%  { clip-path: inset(60% 0 10% 0); transform: translateX(-1px); }
  60%  { clip-path: none; transform: translateX(0); color: var(--white); }
  100% { clip-path: none; transform: none; }
}

.btn-bracket {
  color: var(--dim);
  transition: color 0.2s;
}
.term-btn:hover .btn-bracket { color: var(--white-dim); }

.btn-sep {
  color: var(--dim);
  font-size: 18px;
  user-select: none;
}

/* ---- PANELS ---- */
.panel {
  width: 100%;
  max-width: 680px;
  margin-top: 32px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.02);
  padding: 24px;
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.05), inset 0 0 20px rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(4px);
}
.panel.hidden { display: none; }

.panel-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.panel-title {
  font-size: clamp(14px, 2vw, 17px);
  color: var(--white);
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.6);
  letter-spacing: 0.15em;
}
.blink-dot {
  animation: blink-block 0.8s step-end infinite;
  color: var(--white);
}
@keyframes blink-block {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* ---- PROJECT LIST ---- */
.project-list { display: flex; flex-direction: column; gap: 4px; margin-bottom: 24px; }

.proj-item {
  display: flex;
  align-items: center;
  gap: 0;
  font-size: clamp(13px, 1.8vw, 15px);
  padding: 10px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background 0.15s;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}
.proj-item:hover { background: rgba(255, 255, 255, 0.07); }
.proj-item:hover .proj-domain { color: #ffffff; text-shadow: 0 0 10px rgba(255, 255, 255, 0.8); }

.proj-num {
  color: var(--dim);
  font-size: 11px;
  min-width: 30px;
  letter-spacing: 0.05em;
}
.proj-arrow {
  color: var(--dim);
  margin-right: 12px;
  font-size: 14px;
  transition: transform 0.2s, color 0.2s;
}
.proj-item:hover .proj-arrow {
  transform: translateX(4px);
  color: var(--white);
}
.proj-domain {
  flex: 1;
  color: var(--white-dim);
  letter-spacing: 0.05em;
  transition: color 0.2s, text-shadow 0.2s;
}
.proj-tag {
  font-size: 11px;
  color: var(--dim);
  letter-spacing: 0.08em;
  margin-left: 12px;
}

/* ---- CONTACT LINES ---- */
.contact-lines { display: flex; flex-direction: column; gap: 14px; margin-bottom: 24px; }
.c-line {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: clamp(13px, 1.8vw, 15px);
}
.c-key { color: var(--dim); min-width: 90px; letter-spacing: 0.08em; }
.c-sep { color: rgba(255, 255, 255, 0.3); }
.c-val { color: var(--white); letter-spacing: 0.04em; }
.c-val.dim { color: var(--dim); }
.c-val.wa-link { color: #25d366; text-shadow: 0 0 8px rgba(37,211,102,0.4); font-weight: bold; }
a.c-val { transition: color 0.2s, text-shadow 0.2s; }
a.c-val:hover { color: #ffffff; text-shadow: 0 0 10px #ffffff; text-decoration: none; }
a.c-val.wa-link:hover { color: #4ade80; text-shadow: 0 0 12px #25d366; }

/* ---- BACK BUTTON ---- */
.back-btn {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-family: var(--font);
  font-size: 13px;
  color: var(--white-dim);
  letter-spacing: 0.12em;
  cursor: pointer;
  padding: 8px 20px;
  transition: color 0.2s, border-color 0.2s, text-shadow 0.2s;
  outline: none;
}
.back-btn:hover {
  color: #ffffff;
  border-color: #ffffff;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 600px) {
  .ascii-art { font-size: 4px; }
  .nav-btns { gap: 12px; }
  .panel { padding: 16px; }
  .proj-tag { display: none; }
}
@media (max-width: 380px) {
  .ascii-art { font-size: 3px; }
}
