/* ══════════════════════════════════════════════════
   STYLE.CSS — Ana stiller, layout, hero, desktop
══════════════════════════════════════════════════ */

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

:root {
  --amber: #eba04e;
  --amber-bright: #ffc478;
  --amber-dim: #b88248;
  --amber-glow: rgba(235, 160, 78, 0.25);
  --bg-dark: #1e1914;
  --bg-card: rgba(36, 29, 22, 0.94);
  --bg-card-hover: rgba(48, 39, 29, 0.97);
  --border: rgba(235, 160, 78, 0.45);
  --border-bright: rgba(255, 196, 120, 0.78);
  --text-primary: #f5e2c4;
  --text-secondary: #e2caa5;
  --text-dim: #ab8f6a;
  --font-mono: 'Share Tech Mono', 'Courier New', monospace;
  --font-vt: 'VT323', monospace;
  --font-courier: 'Courier Prime', 'Courier New', monospace;
  --nav-height: 44px;
  --taskbar-height: 36px;
  --win-radius: 0px;
  --transition: 0.15s ease;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--bg-dark);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 14px;
  cursor: default;
  user-select: none;
  -webkit-font-smoothing: antialiased;
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #1a1510; }
::-webkit-scrollbar-thumb { background: var(--amber-dim); border-radius: 0; }
::-webkit-scrollbar-thumb:hover { background: var(--amber); }

/* ── Background GIF ── */
.bg-gif {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.bg-gif img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.28;
  filter: grayscale(20%) sepia(25%) brightness(1.1);
}

/* ══════════════════════════════════════════════════
   NAVBAR
══════════════════════════════════════════════════ */
.retro-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  background: rgba(26, 21, 15, 0.95);
  border-bottom: 1px solid var(--border-bright);
  backdrop-filter: blur(4px);
  font-family: var(--font-mono);
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 200px;
}

.nav-prompt {
  color: var(--amber);
  font-size: 13px;
  opacity: 0.9;
}

.nav-title {
  color: var(--amber-bright);
  font-size: 15px;
  font-weight: bold;
  letter-spacing: 0.05em;
}

.nav-links {
  display: flex;
  gap: 4px;
}

.nav-link {
  color: var(--text-primary);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 13.5px;
  padding: 4px 12px;
  border: 1px solid transparent;
  transition: all var(--transition);
}
.nav-link:hover {
  color: var(--amber-bright);
  border-color: var(--border);
  background: var(--amber-glow);
}
.nav-link.active {
  color: var(--amber-bright);
  border-bottom: 2px solid var(--amber);
}

.nav-clock {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-secondary);
  min-width: 50px;
  text-align: right;
}

.nav-winbtn {
  width: 24px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 12px;
  cursor: pointer;
  margin-left: 8px;
  transition: all var(--transition);
}
.nav-winbtn:hover {
  background: var(--amber-glow);
  border-color: var(--amber);
  color: var(--amber-bright);
}

/* ══════════════════════════════════════════════════
   DESKTOP
══════════════════════════════════════════════════ */
.desktop {
  position: fixed;
  top: var(--nav-height);
  bottom: var(--taskbar-height);
  left: 0;
  right: 0;
  z-index: 10;
  overflow: hidden;
}

/* ── Desktop Icons ── */
.desktop-icons {
  position: absolute;
  top: 20px;
  left: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 20;
}

.desktop-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 72px;
  padding: 6px 4px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--transition);
  border-radius: 2px;
}
.desktop-icon:hover {
  background: rgba(212, 129, 58, 0.12);
  border-color: rgba(212, 129, 58, 0.4);
}
.desktop-icon:active,
.desktop-icon.selected {
  background: rgba(212, 129, 58, 0.25);
  border-color: var(--amber);
}

.icon-img {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
  filter: drop-shadow(0 0 4px rgba(212,129,58,0.3));
}
.icon-img svg {
  filter: drop-shadow(0 0 3px rgba(212,129,58,0.4));
}

.icon-label {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-primary);
  text-align: center;
  text-shadow: 0 1px 3px rgba(0,0,0,0.95);
  word-break: break-all;
  line-height: 1.25;
  padding: 2px 5px;
  background: rgba(24, 19, 13, 0.82);
  border-radius: 2px;
}

/* ── Hero Text ── */
.hero-text {
  position: absolute;
  top: 50%;
  left: 25vw; /* Biraz daha ortaya ama solda */
  transform: translateY(-50%);
  z-index: 20;
  max-width: 440px;
}

.hero-greeting {
  font-family: var(--font-mono);
  font-size: 19px;
  color: var(--text-primary);
  margin-bottom: 8px;
  opacity: 0.95;
}

.hero-name {
  font-family: var(--font-vt);
  font-size: 76px;
  line-height: 1.0;
  color: var(--amber-bright);
  text-shadow:
    0 0 20px var(--amber-glow),
    0 2px 10px rgba(0, 0, 0, 0.7);
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}

.hero-title {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--amber);
  margin-bottom: 16px;
  letter-spacing: 0.08em;
}

.hero-desc {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text-primary);
  line-height: 1.75;
  margin-bottom: 24px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.85);
}

.retro-btn {
  font-family: var(--font-mono);
  font-size: 13.5px;
  color: var(--amber-bright);
  background: rgba(36, 29, 22, 0.75);
  border: 1px solid var(--amber);
  padding: 10px 22px;
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.05em;
  text-transform: none;
}
.retro-btn:hover {
  background: var(--amber-glow);
  border-color: var(--amber-bright);
  color: #fff;
  box-shadow: 0 0 14px var(--amber-glow);
}

/* ── Hero Photo (Polaroid) — kaldırıldı ── */
.hero-photo {
  display: none;
}

/* ── Corner Note — kaldırıldı ── */
.corner-note {
  display: none;
}

/* ── Sol alt köşe hint notu ── */
.desktop-hint {
  position: absolute;
  bottom: 14px;
  left: 20px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-secondary);
  opacity: 0.85;
  letter-spacing: 0.06em;
  pointer-events: none;
  user-select: none;
  line-height: 1.6;
}
.desktop-hint i {
  margin-right: 4px;
  font-size: 11px;
  color: var(--amber);
}

/* ── Sağ Taraftaki İkonlar (CV) ── */
.desktop-icons-right {
  position: absolute;
  top: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 20;
}

/* ── Navbar Dil Seçici ── */
.nav-lang {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: 15px;
  font-family: var(--font-mono);
  font-size: 13px;
}
.nav-lang a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition);
  cursor: pointer;
}
.nav-lang a:hover {
  color: var(--amber-bright);
}
.nav-lang a.active {
  color: var(--amber-bright);
  font-weight: bold;
  border-bottom: 1px solid var(--amber-bright);
}
.nav-lang-sep {
  color: var(--text-dim);
}

/* ══════════════════════════════════════════════════
   TASKBAR
══════════════════════════════════════════════════ */
.taskbar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: var(--taskbar-height);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  background: rgba(26, 21, 15, 0.96);
  border-top: 1px solid var(--border-bright);
  font-family: var(--font-mono);
}

.taskbar-left {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
}

.tb-prompt { color: var(--amber); opacity: 0.9; }
.tb-name   { color: var(--text-primary); }
.tb-sep    { color: var(--amber-dim); opacity: 0.6; }
.tb-year   { color: var(--text-secondary); }

.taskbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tb-social {
  color: var(--text-primary);
  text-decoration: none;
  font-size: 20px; /* Büyütüldü */
  transition: all var(--transition);
  padding: 4px 8px;
  border: 1px solid transparent;
  border-radius: 4px;
  line-height: 1;
}
.tb-social:hover {
  color: var(--amber-bright);
  border-color: var(--border);
  background: var(--amber-glow);
}

/* ══════════════════════════════════════════════════
   ABOUT WINDOW SPECIFIC
══════════════════════════════════════════════════ */
.about-content {
  display: flex;
  gap: 18px;
  margin-bottom: 14px;
}

.about-photo {
  flex-shrink: 0;
  width: 110px;
}
.about-photo img {
  width: 110px;
  height: 125px;
  object-fit: cover;
  filter: grayscale(15%) contrast(1.05);
  border: 1px solid var(--border);
}

.about-text {
  flex: 1;
  min-width: 0;
}

.about-text h2 {
  font-family: var(--font-vt);
  font-size: 26px;
  color: var(--amber-bright);
  margin-bottom: 10px;
  letter-spacing: 0.05em;
}

.about-text p {
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.about-tags {
  font-size: 12px !important;
  color: var(--amber-bright) !important;
  line-height: 1.8 !important;
}

/* ══════════════════════════════════════════════════
   PROJECTS GRID
══════════════════════════════════════════════════ */

/* ── Sekme başlıkları ── */
.project-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.project-tab-btn {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-secondary);
  background: transparent;
  border: 1px solid transparent;
  border-bottom: none;
  padding: 6px 16px;
  cursor: pointer;
  transition: all var(--transition);
  letter-spacing: 0.04em;
  position: relative;
  bottom: -1px;
}
.project-tab-btn:hover {
  color: var(--text-primary);
  background: rgba(235, 160, 78, 0.1);
}
.project-tab-btn.active {
  color: var(--amber-bright);
  border-color: var(--border);
  border-bottom-color: #221c15;
  background: #221c15;
}

/* ── Sekme içerikleri ── */
.project-tab-pane {
  display: none;
}
.project-tab-pane.active {
  display: block;
}

.projects-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
  max-height: 340px;
  overflow-y: auto;
  padding-right: 4px;
}

.projects-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 32px 16px;
  color: var(--text-secondary);
  font-size: 13px;
  opacity: 0.85;
  border: 1px dashed var(--border);
}

.project-card {
  background: rgba(38, 31, 22, 0.92);
  border: 1px solid var(--border);
  padding: 0;
  transition: all 0.2s;
  cursor: pointer;
  overflow: hidden;
}
.project-card:hover {
  border-color: var(--amber-bright);
  box-shadow: 0 0 12px var(--amber-glow);
}

.project-thumb {
  width: 100%;
  height: 85px;
  object-fit: cover;
  display: block;
  filter: grayscale(25%) brightness(0.9);
  transition: filter 0.2s;
}
.project-card:hover .project-thumb {
  filter: grayscale(5%) brightness(1);
}
.project-thumb-placeholder {
  width: 100%;
  height: 85px;
  background: linear-gradient(135deg, #281f15, #3a2b1c);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: var(--amber);
  border-bottom: 1px solid var(--border);
}

.project-info {
  padding: 10px 12px;
}

.project-name {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--amber-bright);
  margin-bottom: 5px;
}

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

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.tag {
  font-size: 10.5px;
  font-family: var(--font-mono);
  color: var(--amber-bright);
  border: 1px solid var(--border);
  background: rgba(235, 160, 78, 0.1);
  padding: 1px 6px;
}

/* ══════════════════════════════════════════════════
   SKILLS
══════════════════════════════════════════════════ */
.skills-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 380px;
  overflow-y: auto;
  margin-bottom: 12px;
}

.skill-category {
  margin-bottom: 4px;
}

.skill-category-title {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--amber-bright);
  margin-bottom: 8px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.skill-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.skill-name {
  font-size: 13px;
  color: var(--text-primary);
  width: 110px;
  flex-shrink: 0;
}

.skill-bar-container {
  flex: 1;
  height: 10px;
  background: rgba(235, 160, 78, 0.15);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.skill-bar {
  height: 100%;
  background: var(--amber);
  transition: width 1s ease;
  box-shadow: 0 0 6px var(--amber-glow);
  position: relative;
}
.skill-bar::after {
  content: '';
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 2px;
  background: var(--amber-bright);
  box-shadow: 0 0 4px var(--amber-bright);
}

.skill-pct {
  font-size: 12px;
  color: var(--text-secondary);
  width: 40px;
  text-align: right;
  flex-shrink: 0;
}

/* ══════════════════════════════════════════════════
   CONTACT
══════════════════════════════════════════════════ */
.contact-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-primary);
  text-decoration: none;
  padding: 6px 8px;
  border: 1px solid transparent;
  transition: all var(--transition);
}
.contact-link i {
  color: var(--amber-bright);
  width: 16px;
  flex-shrink: 0;
}
.contact-link:hover {
  color: var(--amber-bright);
  border-color: var(--border);
  background: var(--amber-glow);
}

.contact-form label {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--amber-bright);
  display: block;
  margin-bottom: 4px;
  margin-top: 10px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  background: rgba(20, 16, 11, 0.95);
  border: 1px solid var(--border);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 13px;
  padding: 7px 10px;
  outline: none;
  transition: border-color var(--transition);
  resize: vertical;
}
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--amber-bright);
  box-shadow: 0 0 6px var(--amber-glow);
}
.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--text-dim);
  opacity: 0.8;
}

.form-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.form-status {
  font-size: 12px;
  margin-top: 8px;
  min-height: 16px;
}
.form-status.success { color: #7cd488; }
.form-status.error   { color: #f07575; }

/* ══════════════════════════════════════════════════
   RECYCLE BIN
══════════════════════════════════════════════════ */
.recycle-body .recycle-items {
  max-height: 220px;
  overflow-y: auto;
  margin-bottom: 12px;
}

.recycle-item {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-primary);
  padding: 5px 8px;
  border-bottom: 1px solid rgba(235, 160, 78, 0.12);
  cursor: default;
  transition: all var(--transition);
}
.recycle-item:hover {
  background: var(--amber-glow);
  color: var(--amber-bright);
}

.recycle-note {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 12px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  background: rgba(20, 16, 11, 0.75);
}

/* ══════════════════════════════════════════════════
   SHARED COMPONENTS
══════════════════════════════════════════════════ */
.retro-hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 12px 0;
}

.win-footer-btns {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.win-action-btn {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--amber-bright);
  background: rgba(235, 160, 78, 0.08);
  border: 1px solid var(--border);
  padding: 6px 15px;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.win-action-btn:hover {
  background: var(--amber-glow);
  border-color: var(--amber-bright);
  color: #fff;
}
.win-action-btn.secondary {
  color: var(--text-secondary);
  background: transparent;
  border-color: rgba(235, 160, 78, 0.3);
}
.win-action-btn.secondary:hover {
  color: var(--text-primary);
  border-color: var(--border);
  background: rgba(235, 160, 78, 0.12);
}

/* ── Blink cursor ── */
.blink {
  animation: blink 1s step-end infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* ══════════════════════════════════════════════════
   RESPONSIVE (Mobile & Tablet Support)
══════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .retro-nav {
    padding: 0 10px;
  }
  .nav-left {
    min-width: auto;
  }
  .nav-title {
    font-size: 13px;
  }
  .nav-links .nav-link {
    display: none;
  }
  .nav-lang {
    margin-left: 0;
    font-size: 12px;
  }
  .nav-winbtn {
    display: none;
  }

  /* Hero metni üst sol/orta alana yerleşsin */
  .hero-text {
    top: 24px;
    left: 16px;
    right: 92px;
    transform: none;
    max-width: none;
  }
  .hero-greeting {
    font-size: 15px;
    margin-bottom: 4px;
  }
  .hero-name {
    font-size: 46px;
    margin-bottom: 8px;
  }
  .hero-title {
    font-size: 12px;
    margin-bottom: 12px;
  }
  .hero-desc {
    font-size: 12.5px;
    line-height: 1.55;
    margin-bottom: 14px;
  }
  .retro-btn {
    font-size: 12px;
    padding: 8px 14px;
  }

  /* Sağdaki CV ikonları sağ üstte kalsın */
  .desktop-icons-right {
    top: 16px;
    right: 10px;
    gap: 8px;
  }

  /* Soldaki klasör/dosya ikonları alt kısımda 3x2 ızgara olsun */
  .desktop-icons {
    top: auto;
    bottom: 34px;
    left: 10px;
    right: 10px;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 14px;
  }

  .desktop-icon {
    width: 76px;
    padding: 6px 4px;
  }

  .desktop-hint {
    bottom: 8px;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 11px;
  }

  .hero-photo { display: none; }
  .corner-note { display: none; }

  /* Popup pencereler mobilde ekrana tam otursun */
  .win-window {
    width: 94vw !important;
    left: 3vw !important;
    top: 54px !important;
    max-height: calc(100vh - var(--nav-height) - var(--taskbar-height) - 20px) !important;
  }

  .about-content {
    flex-direction: column;
    align-items: center;
    text-align: left;
  }
  .about-photo {
    width: 90px;
  }
  .about-photo img {
    width: 90px;
    height: 100px;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    max-height: 50vh;
  }

  .terminal-body {
    height: 240px;
    max-height: 55vh;
  }

  .win-titlebar {
    height: 36px;
  }
  .win-btn {
    width: 28px;
    height: 24px;
    font-size: 12px;
  }
}

/* ── Mobil Yatay (Landscape) Mod Desteği ── */
@media (max-height: 540px) and (orientation: landscape) {
  :root {
    --nav-height: 36px;
    --taskbar-height: 30px;
  }

  /* Soldaki 6 ikonu 2 sütunlu kompakt ızgara yap (alta taşmasını önler) */
  .desktop-icons {
    top: 8px;
    bottom: auto;
    left: 10px;
    right: auto;
    display: grid;
    grid-template-columns: repeat(2, 66px);
    gap: 4px 6px;
  }

  .desktop-icon {
    width: 66px;
    padding: 3px 2px;
  }

  .icon-img {
    width: 30px;
    height: 30px;
    margin-bottom: 2px;
  }
  .icon-img svg {
    width: 28px;
    height: 26px;
  }

  .icon-label {
    font-size: 10px;
    padding: 1px 3px;
  }

  /* Sağdaki CV ikonları da kompakt olsun */
  .desktop-icons-right {
    top: 8px;
    right: 10px;
    gap: 6px;
  }

  /* Tanıtım yazısı sol ikonların sağında ortalansın */
  .hero-text {
    top: 46%;
    left: 165px;
    right: 90px;
    transform: translateY(-50%);
    max-width: 400px;
  }

  .hero-greeting {
    font-size: 13px;
    margin-bottom: 2px;
  }
  .hero-name {
    font-size: 36px;
    margin-bottom: 4px;
  }
  .hero-title {
    font-size: 11px;
    margin-bottom: 6px;
  }
  .hero-desc {
    font-size: 11px;
    line-height: 1.35;
    margin-bottom: 8px;
  }
  .retro-btn {
    font-size: 11px;
    padding: 5px 12px;
  }

  .desktop-hint {
    bottom: 4px;
    left: 165px;
    right: auto;
    text-align: left;
    font-size: 10px;
  }

  /* Açılan pencereler yatay ekrana tam sığsın */
  .win-window {
    top: 40px !important;
    left: 6vw !important;
    width: 88vw !important;
    max-height: calc(100vh - var(--nav-height) - var(--taskbar-height) - 8px) !important;
  }

  .about-content {
    flex-direction: row;
    align-items: flex-start;
  }

  .projects-grid {
    grid-template-columns: 1fr 1fr;
    max-height: 42vh;
  }

  .terminal-body {
    height: 170px;
    max-height: 45vh;
  }
}


