/* ==========================================================================
   SIYAHPULSAR PORTFOLYO - 2015 FLAT / SOĞUK ESTETİK
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600;700&family=Roboto:wght@400;500;700&display=swap');

:root {
  /* Soğuklaştılmış mat koyu renkler (2015 dönemi Discord/Flat UI havası) */
  --bg-color: #1e2124;       
  --panel-bg: #282b30;       
  --panel-light: #36393e;    
  
  /* Daha mat/pastel bir yeşil (neon veya parlak olmayan) */
  --accent: #43b581;         
  --accent-hover: #3ca374;
  --accent-faint: rgba(67, 181, 129, 0.15);
  
  --text-main: #f3f4f6;      
  --text-muted: #9ca3af;     
  --text-darker: #6b7280;    
  
  /* Çizgileri ekstra saydam yaptık */
  --border-color: rgba(255, 255, 255, 0.02);
  
  --font-main: 'Open Sans', 'Roboto', sans-serif; /* 2015 popüler fontu */
  --font-mono: 'Consolas', monospace; 
}

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

body {
  font-family: var(--font-main);
  background-color: var(--bg-color);
  color: var(--text-main);
  display: flex;
  height: 100vh;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ==================== SIDEBAR ==================== */
#sidebar {
  width: 260px;
  background-color: var(--panel-bg);
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  z-index: 100;
  
  /* Y boyutunu küçültme ve yumuşak köşeler */
  height: 94vh;
  margin: 3vh 0 3vh 3vh;
  border-radius: 16px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

#sidebar::-webkit-scrollbar { width: 4px; }
#sidebar::-webkit-scrollbar-track { background: transparent; }
#sidebar::-webkit-scrollbar-thumb { background: var(--text-darker); border-radius: 4px; }

.profile-section {
  padding: 30px 20px 20px 20px;
  text-align: center;
}

.profile-img {
  width: 80px;
  height: 80px;
  border-radius: 16px; /* Daha yumuşak */
  margin-bottom: 15px;
  object-fit: cover;
}

.pixelated { image-rendering: pixelated; }

.lang-switcher {
  display: flex; justify-content: center; gap: 5px; margin-bottom: 15px;
}
.lang-btn {
  background: var(--panel-light);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 4px 10px;
  font-family: var(--font-main);
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 6px; /* Daha yumuşak */
  cursor: pointer;
  transition: all 0.2s;
}
.lang-btn.active, .lang-btn:hover { 
  background: var(--accent); 
  color: #fff; 
  border-color: var(--accent); 
}

.profile-section h1 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 5px;
}

#sidebar-nav {
  padding: 10px 0 30px 0;
}
#sidebar-nav ul { list-style: none; }
#sidebar-nav > ul > li { margin-bottom: 2px; }

.nav-btn, .accordion-toggle {
  display: flex;
  align-items: center;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  border-left: 3px solid transparent;
  color: var(--text-muted);
  padding: 10px 20px 10px 17px; 
  font-family: var(--font-main);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.1s ease;
}

.nav-btn:hover, .accordion-toggle:hover {
  color: var(--text-main);
}

.nav-btn.active, .accordion-toggle.active {
  color: var(--text-main);
  border-left-color: var(--accent);
  background: linear-gradient(90deg, var(--accent-faint) 0%, transparent 100%);
}

.accordion-content {
  display: none;
  padding: 5px 0;
}
.accordion-content.show {
  display: block;
}

.project-link {
  display: block;
  padding: 6px 20px 6px 40px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  transition: color 0.1s;
}
.project-link:hover, .project-link.active {
  color: var(--text-main);
}

.sub-group-title {
  padding: 10px 20px 4px 30px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-darker);
  letter-spacing: 0.5px;
}

/* ==================== MAIN AREA ==================== */
#main-area {
  flex-grow: 1;
  position: relative;
  background: var(--bg-color);
}

.view-state {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.view-state.active {
  opacity: 1;
  pointer-events: all;
  z-index: 10;
}

/* --- STATE 1: DIAGONAL STRIPES --- */
#stripe-container {
  width: 150%;
  height: 150%;
  position: absolute;
  top: -25%;
  left: -25%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 30px;
}

.diagonal-frame {
  background: var(--panel-bg);
  /* Borderlineları ekstra saydamlaştırdık */
  border-top: 1px solid rgba(255,255,255,0.01);
  border-bottom: 1px solid rgba(255,255,255,0.01);
  width: 100%;
  height: 22vh;
  transform: skewX(-25deg);
  overflow: hidden;
  position: relative;
  /* Tüm iç gölgeler kaldırıldı */
  box-shadow: none;
}

.marquee-track {
  display: flex;
  position: absolute;
  top: 0; left: 0; height: 100%;
  transform: skewX(25deg);
  align-items: center;
}

.marquee-track img {
  height: 80%;
  width: auto;
  flex-shrink: 0;
  object-fit: contain;
  margin-right: 30px;
  border-radius: 12px; /* Daha yumuşak */
  
  /* Görsellerin altındaki gölge ve border tamamen kaldırıldı */
  box-shadow: none; 
  border: none; 
  
  image-rendering: pixelated;
  transition: transform 0.2s ease, opacity 0.25s ease;
  opacity: 0; /* Görünmez yer tutucu: yüklenene kadar yerini rezerve eder, diğerlerini ittirmez */
  background: rgba(255, 255, 255, 0.015);
}

.marquee-track img.is-loaded {
  opacity: 1;
}

.marquee-track img:hover {
  transform: scale(1.02);
}

/* --- STATE 2: PROJECT DETAIL --- */
.project-detail-layout {
  display: flex;
  height: 100%;
}

.pd-text-panel {
  width: 420px;
  background: var(--panel-bg);
  border-right: 1px solid var(--border-color);
  padding: 40px;
  display: flex;
  flex-direction: column;
  /* Daha yumuşak */
  border-top-right-radius: 16px;
  border-bottom-right-radius: 16px;
  box-shadow: 4px 0 15px rgba(0,0,0,0.1);
  overflow-y: auto;
  z-index: 2;
  margin: 3vh 0 3vh 0; /* Sidebar ile aynı hizada ortala */
  height: 94vh;
}

.pd-text-panel::-webkit-scrollbar { width: 4px; }
.pd-text-panel::-webkit-scrollbar-thumb { background: var(--text-darker); border-radius: 4px; }

.btn-close, .static-content-box .btn-primary {
  background: var(--panel-light);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 8px 16px;
  border-radius: 8px; /* Daha yumuşak */
  font-family: var(--font-main);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  align-self: flex-start;
  margin-bottom: 30px;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-close:hover, .static-content-box .btn-primary:hover {
  background: var(--text-darker);
  color: #fff;
  border-color: var(--text-darker);
}

.pd-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 12px;
}

.pd-badges {
  display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 25px;
}
.badge {
  padding: 4px 8px; 
  font-size: 0.7rem;
  font-weight: 600;
  border-radius: 6px; /* Daha yumuşak */
  letter-spacing: 0.5px;
}
.badge-green { background: var(--accent-faint); color: var(--accent); }
.badge-gray { background: rgba(255,255,255,0.02); color: var(--text-muted); }

.pd-desc {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 30px;
}

.pd-tools {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
  font-size: 0.85rem;
  color: var(--text-darker);
}
.pd-tools span { 
  color: var(--text-main); 
  font-weight: 600;
}

.pd-visual-panel {
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  background: var(--bg-color);
}

.big-frame {
  width: 150%;
  height: 60vh;
  transform: skewX(-25deg);
  background: var(--panel-light);
  border-top: 1px solid rgba(255,255,255,0.01);
  border-bottom: 1px solid rgba(255,255,255,0.01);
  box-shadow: none;
}
.big-frame img {
  height: 90%; 
  width: auto;
  flex-shrink: 0;
  object-fit: contain;
  border-radius: 16px; /* Çok daha yumuşak büyük görseller */
  image-rendering: pixelated;
  transition: opacity 0.25s ease;
  opacity: 0;
  background: rgba(255, 255, 255, 0.015);
}

.big-frame img.is-loaded {
  opacity: 1;
}

/* --- STATE 3: STATIC (Hakkımda, Müzik) --- */
.static-content-box {
  width: 100%;
  max-width: 800px;
  margin: 60px auto;
  background: var(--panel-bg);
  border: 1px solid var(--border-color);
  border-radius: 16px; /* Daha yumuşak köşeler */
  padding: 40px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.2);
  max-height: 85vh;
  overflow-y: auto;
}

.static-content-box h2 {
  color: var(--text-main);
  font-size: 1.5rem;
  margin-bottom: 20px;
  font-weight: 700;
}

.static-content-box p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 15px;
}
