/* ==========================================================================
   SIYAHPULSAR - NEW PORTFOY (SLOT & TIMELINE UI)
   Sade, temiz, envanter slotu ve zaman çizelgesi odaklı mimari.
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;500;600;700&family=Roboto+Mono:wght@400;500&display=swap');

:root {
  --bg-main: #1e2124;
  --panel-bg: #282b30;
  --panel-light: #36393e;
  --panel-border: rgba(255, 255, 255, 0.05);
  
  --accent: #43b581;
  --accent-hover: #3ca374;
  --accent-faint: rgba(67, 181, 129, 0.15);
  
  --accent-yellow: #f59e0b;
  --accent-yellow-faint: rgba(245, 158, 11, 0.15);
  
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --text-darker: #6b7280;
  
  --font-main: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'Roboto Mono', monospace;
  
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
}

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

body {
  font-family: var(--font-main);
  background-color: var(--bg-main);
  color: var(--text-main);
  min-height: 100vh;
  line-height: 1.6;
  padding-bottom: 60px;
  -webkit-font-smoothing: antialiased;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
  background: var(--panel-light);
  border-radius: var(--radius-sm);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-darker);
}

.pixelated {
  image-rendering: pixelated;
}

/* ==================== CONTAINER & TOP NAV ==================== */
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid var(--panel-border);
  margin-bottom: 30px;
}

.nav-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  background: var(--panel-bg);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--panel-border);
  transition: all 0.2s ease;
}
.nav-link-btn:hover {
  color: var(--text-main);
  border-color: var(--accent);
  background: var(--panel-light);
}

.lang-switcher {
  display: flex;
  gap: 6px;
}
.lang-btn {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  color: var(--text-muted);
  padding: 6px 12px;
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
}
.lang-btn.active, .lang-btn:hover {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
}

/* ==================== HERO PROFILE SECTION ==================== */
.profile-card {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-lg);
  padding: 30px;
  display: flex;
  gap: 25px;
  align-items: center;
  margin-bottom: 35px;
}

.profile-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}
.profile-avatar {
  width: 90px;
  height: 90px;
  border-radius: var(--radius-md);
  background: var(--panel-light);
  object-fit: cover;
  border: 2px solid var(--panel-border);
}

.profile-info {
  flex-grow: 1;
}
.profile-name {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}
.profile-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 12px;
}
.profile-bio {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 15px;
}
.profile-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  font-size: 0.85rem;
  font-family: var(--font-mono);
  color: var(--text-darker);
}
.social-tag {
  background: var(--panel-light);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
}
.social-tag strong {
  color: var(--accent);
}

/* ==================== INTERACTIVE TIMELINE (2020-2026) ==================== */
.timeline-section {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-lg);
  padding: 35px 30px 30px 30px;
  margin-bottom: 40px;
  overflow: visible;
}

.section-header-compact {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}
.section-title-sm {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
}
.timeline-legends {
  display: flex;
  gap: 15px;
  font-size: 0.75rem;
  font-weight: 600;
}
.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
}
.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.dot-start { background: var(--accent); }
.dot-end { background: var(--accent-yellow); }
.legend-gradient-bar {
  width: 28px;
  height: 8px;
  border-radius: 4px;
  background: linear-gradient(90deg, #22c55e, #84cc16, #eab308, #f97316, #ef4444);
  display: inline-block;
  box-shadow: 0 0 6px rgba(0,0,0,0.3);
}

.timeline-wrapper {
  position: relative;
  width: 100%;
  min-height: 310px;
  padding: 105px 35px;
  overflow-x: auto;
  overflow-y: visible;
  user-select: none;
}

/* The Main Axis Line with Arrow & Heatmap Gradient */
.timeline-axis-line {
  position: absolute;
  top: 50%;
  left: 35px;
  right: 35px;
  height: 4px;
  background: linear-gradient(90deg, #22c55e 0%, #ef4444 100%);
  transform: translateY(-50%);
  border-radius: 3px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
  transition: background 0.3s ease;
}
.timeline-axis-line::after {
  content: '';
  position: absolute;
  right: -11px;
  top: -5px;
  width: 0; 
  height: 0; 
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 12px solid var(--axis-arrow-color, #ef4444);
  transition: border-left-color 0.3s ease;
}

/* Year Markers */
.timeline-years-bar {
  position: absolute;
  top: 50%;
  left: 35px;
  right: 35px;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  pointer-events: none;
}
.year-marker {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.year-point {
  width: 9px;
  height: 9px;
  background: var(--bg-main);
  border: 2px solid var(--text-muted);
  border-radius: 50%;
  margin-top: -3px;
}
.year-label {
  position: absolute;
  top: 18px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
}

/* Timeline Pins (Top & Bottom) */
.timeline-pin {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: translateX(-50%);
  text-decoration: none;
  cursor: pointer;
  z-index: 10;
  transition: transform 0.2s ease, z-index 0.2s;
}
.timeline-pin:hover {
  transform: translateX(-50%) scale(1.15);
  z-index: 50;
}

/* Top Pins (Starts) */
.timeline-pin.pin-top {
  bottom: 50%;
  margin-bottom: 12px;
}
.timeline-pin.pin-top .pin-stem {
  width: 2px;
  height: 32px;
  background: var(--accent);
  order: 2;
}
.timeline-pin.pin-top .pin-body {
  order: 1;
}

/* Bottom Pins (Ends/On-Hold) */
.timeline-pin.pin-bottom {
  top: 50%;
  margin-top: 12px;
}
.timeline-pin.pin-bottom .pin-stem {
  width: 2px;
  height: 32px;
  background: var(--accent-yellow);
  order: 1;
}
.timeline-pin.pin-bottom .pin-body {
  order: 2;
}

.pin-body {
  width: 44px;
  height: 44px;
  background: var(--panel-light);
  border: 2px solid var(--panel-border);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: all 0.2s ease;
  position: relative;
}
.timeline-pin.pin-top:hover .pin-body {
  border-color: var(--accent);
  box-shadow: 0 0 15px var(--accent-faint);
}
.timeline-pin.pin-bottom:hover .pin-body {
  border-color: var(--accent-yellow);
  box-shadow: 0 0 15px var(--accent-yellow-faint);
}

.pin-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.pin-fallback {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-main);
}

/* Tooltip on Hover */
.pin-tooltip {
  position: absolute;
  white-space: nowrap;
  background: #18191c;
  color: var(--text-main);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid var(--panel-border);
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,0.5);
  z-index: 100;
}
.pin-top .pin-tooltip {
  bottom: 100%;
  margin-bottom: 8px;
}
.pin-bottom .pin-tooltip {
  top: 100%;
  margin-top: 8px;
}
.timeline-pin:hover .pin-tooltip {
  opacity: 1;
  visibility: visible;
}

/* ==================== GENERAL SECTIONS & SLOTS ==================== */
.section-block {
  margin-bottom: 45px;
}
.section-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-title::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 18px;
  background: var(--accent);
  border-radius: 2px;
}

/* Tab Filters */
.tab-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.tab-btn {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  color: var(--text-muted);
  padding: 7px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
}
.tab-btn:hover {
  background: var(--panel-light);
  color: var(--text-main);
}
.tab-btn.active {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
}

/* Scrollable Slot Box Container */
.slot-scroll-container {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-lg);
  padding: 20px;
  max-height: 480px;
  overflow-y: auto;
}

/* Slot Grid */
.slot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 15px;
}

/* Individual Slot Box */
.slot-box {
  background: var(--panel-light);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-md);
  aspect-ratio: 1 / 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px;
  position: relative;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden;
}
.slot-box:hover {
  transform: scale(1.1);
  border-color: var(--accent);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  z-index: 20;
  background: #3e4249;
}

.slot-img-wrap {
  width: 100%;
  height: 75%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.slot-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.2s ease;
}

.slot-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
  margin-top: 4px;
}
.slot-box:hover .slot-label {
  color: var(--text-main);
}

/* Big Team & Project Cards Grid */
.teams-grid, .solo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.team-card-slot {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  gap: 18px;
  align-items: center;
  text-decoration: none;
  color: var(--text-main);
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}
.team-card-slot:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  background: var(--panel-light);
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.team-logo-slot {
  width: 65px;
  height: 65px;
  border-radius: var(--radius-md);
  background: var(--panel-light);
  border: 1px solid var(--panel-border);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  flex-shrink: 0;
}
.team-logo-slot img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.team-card-details {
  flex-grow: 1;
  min-width: 0;
}
.team-card-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  margin-bottom: 4px;
  letter-spacing: 0.5px;
}
.badge-active { background: var(--accent-faint); color: var(--accent); }
.badge-past { background: rgba(255,255,255,0.06); color: var(--text-muted); }
.badge-onhold { background: var(--accent-yellow-faint); color: var(--accent-yellow); }

.team-card-name {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.team-card-role {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.team-card-desc {
  font-size: 0.8rem;
  color: var(--text-darker);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ==================== PROJECT DETAIL PAGE ==================== */
.project-hero-card {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-lg);
  padding: 35px;
  margin-bottom: 30px;
}

.project-header-top {
  display: flex;
  gap: 25px;
  align-items: center;
  margin-bottom: 25px;
}
.project-hero-logo {
  width: 85px;
  height: 85px;
  background: var(--panel-light);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-md);
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.project-hero-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.project-hero-info h1 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.project-hero-role {
  font-size: 1rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 10px;
}

.meta-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.meta-chip {
  background: var(--panel-light);
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--panel-border);
}

.project-text-box {
  background: var(--panel-light);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-md);
  padding: 25px;
  margin-bottom: 30px;
}
.project-text-box h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.project-text-body {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-main);
  white-space: pre-line;
}

.project-links-bar {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}
.ext-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}
.ext-btn:hover {
  background: var(--accent-hover);
}

/* ==================== LIGHTBOX MODAL ==================== */
.lightbox-modal {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(15, 17, 19, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  padding: 20px;
}
.lightbox-modal.active {
  opacity: 1;
  pointer-events: all;
}
.lightbox-content {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-lg);
  padding: 25px;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  box-shadow: 0 20px 50px rgba(0,0,0,0.6);
}
.lightbox-img {
  max-width: 80vw;
  max-height: 70vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  margin-bottom: 15px;
}
.lightbox-caption {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
}
.lightbox-close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--panel-light);
  border: 1px solid var(--panel-border);
  color: var(--text-main);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}
.lightbox-close-btn:hover {
  background: #e11d48;
  color: #fff;
  border-color: #e11d48;
}

/* ==================== ARCHIVE SECTION & NOTICE ==================== */
.archive-section {
  margin: 45px 0 30px 0;
  padding-top: 30px;
  border-top: 1px dashed var(--panel-border);
}
.archive-card {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
}
.archive-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #2b2f35;
  color: var(--text-main);
  border: 1px solid #3e4249;
  padding: 10px 22px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}
.archive-btn:hover {
  background: #36393f;
  border-color: var(--accent);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}
.archive-notice {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 800px;
  margin: 0;
}
.archive-notice strong {
  color: var(--accent-yellow);
}

/* ==================== RESPONSIVE RULES ==================== */
@media (max-width: 768px) {
  .profile-card {
    flex-direction: column;
    text-align: center;
    padding: 25px 20px;
  }
  .profile-socials {
    justify-content: center;
  }
  .timeline-wrapper {
    min-width: 650px;
  }
  .timeline-section {
    overflow-x: auto;
  }
  .teams-grid, .solo-grid {
    grid-template-columns: 1fr;
  }
  .project-header-top {
    flex-direction: column;
    text-align: center;
  }
}
