/* ------------------------------------------------------------
   tasarım-34.4.2 – "Stacked Deck" Expanded & Animated
   Based on 34.4 with user updates.
   - Added Blog/Library to Navbar
   - Added Kütüphane Buttons
   - Added magical expanding YAZVEB footer animation
   ------------------------------------------------------------ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;500;700;900&display=swap');

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Outfit', sans-serif;
  background: #000;
  color: #fff;
  overflow-x: hidden;
}

/* ======== CUSTOM SCROLLBAR (tüm sayfalarda) ======== */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #0a0a0a; }
::-webkit-scrollbar-thumb { background: #E63946; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #ff5a65; }
* { scrollbar-width: thin; scrollbar-color: #E63946 #0a0a0a; }

/* ======== BLOG MAKALE TİPOGRAFYASI ======== */
.article-body { color: rgba(255,255,255,0.82); line-height: 1.85; font-size: 1.1rem; }
.article-body h1, .article-body h2, .article-body h3, .article-body h4 {
  color: #fff; font-weight: 800; margin: 2.5rem 0 1rem; line-height: 1.2;
}
.article-body h1 { font-size: 2.2rem; }
.article-body h2 { font-size: 1.7rem; border-bottom: 1px solid rgba(255,255,255,0.08); padding-bottom: 0.5rem; }
.article-body h3 { font-size: 1.3rem; color: rgba(255,255,255,0.9); }
.article-body p { margin-bottom: 1.5rem; }
.article-body a { color: #E63946; text-decoration: underline; text-underline-offset: 3px; }
.article-body a:hover { color: #ff5a65; }
.article-body ul, .article-body ol { padding-left: 1.5rem; margin-bottom: 1.5rem; }
.article-body li { margin-bottom: 0.5rem; }
.article-body blockquote {
  border-left: 4px solid #E63946; padding: 1rem 1.5rem;
  background: rgba(230,57,70,0.06); border-radius: 0 8px 8px 0;
  margin: 2rem 0; color: rgba(255,255,255,0.7); font-style: italic;
}
.article-body img { max-width: 100%; border-radius: 8px; margin: 1.5rem 0; }
.article-body figure { margin: 2rem 0; }
.article-body figcaption { text-align: center; color: rgba(255,255,255,0.4); font-size: 0.85rem; margin-top: 0.5rem; }

/* Tablo stili */
.article-body table {
  width: 100%; border-collapse: collapse; margin: 2rem 0;
  font-size: 0.95rem; border-radius: 8px; overflow: hidden;
}
.article-body table thead { background: rgba(230,57,70,0.15); }
.article-body table th {
  padding: 0.75rem 1rem; text-align: left; font-weight: 800;
  color: #fff; border-bottom: 2px solid rgba(230,57,70,0.4);
}
.article-body table td { padding: 0.7rem 1rem; border-bottom: 1px solid rgba(255,255,255,0.06); }
.article-body table tr:hover { background: rgba(255,255,255,0.02); }

/* Kod bloğu stili */
.article-body pre {
  background: #010409; border: 1px solid #30363d; border-radius: 10px;
  padding: 1.5rem; margin: 1.5rem 0; overflow-x: auto;
  position: relative;
}
.article-body pre code {
  color: #79c0ff; font-family: 'Fira Code', 'Cascadia Code', 'Courier New', monospace;
  font-size: 0.95rem; line-height: 1.7;
}
.article-body code:not(pre code) {
  background: rgba(110,118,129,0.15); color: #ff7b72;
  padding: 0.15em 0.4em; border-radius: 4px; font-family: monospace; font-size: 0.9em;
}

/* Odak Modu */
.focus-mode-btn {
  position: fixed; bottom: 2rem; right: 2rem;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.6); border-radius: 100px; padding: 0.6rem 1.2rem;
  font-size: 0.85rem; font-weight: 700; cursor: pointer; z-index: 999;
  backdrop-filter: blur(10px); transition: all 0.3s; display: flex; align-items: center; gap: 0.5rem;
}
.focus-mode-btn:hover { background: rgba(230,57,70,0.15); border-color: #E63946; color: #fff; }
body.focus-mode .fixed-nav { opacity: 0; pointer-events: none; transition: opacity 0.5s; }
body.focus-mode .article-body { max-width: 680px; margin: 0 auto; font-size: 1.2rem; line-height: 2; }


/* --- FIXED NAVIGATION (Minimal) --- */
.fixed-nav {
  position: fixed;
  top: 2rem; left: 2rem; right: 2rem;
  display: flex; justify-content: space-between;
  align-items: center;
  z-index: 1000;
  mix-blend-mode: difference;
  pointer-events: none;
}
.fixed-nav > * { pointer-events: auto; }
.logo { font-size: 1.5rem; font-weight: 900; letter-spacing: -1px; color: #fff; text-decoration: none; }
.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}
.nav-item {
  color: #fff;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: opacity 0.3s;
}
.nav-item:hover { opacity: 0.6; }
.menu-btn { font-size: 1rem; font-weight: 700; color: #fff; text-decoration: none; text-transform: uppercase; border-bottom: 2px solid #fff; padding-bottom: 2px; }

/* --- STACKED DECK CONTAINER --- */
.stack-container {
  position: relative;
}

.stack-card {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform-origin: top center;
  box-shadow: 0 -20px 50px rgba(0,0,0,0.5);
}

/* =======================================================
   CARD 1: HERO (Pure Typography) 
   ======================================================= */
.card-hero {
  background: #111;
  color: #fff;
  justify-content: center;
  align-items: center;
}
.hero-giant-text {
  font-size: 12vw;
  font-weight: 900;
  line-height: 0.85;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: -0.05em;
  margin: 0;
}
.hero-giant-text span {
  display: block;
  color: rgba(255,255,255,0.05); 
  -webkit-text-stroke: 2px rgba(255,255,255,0.45); 
  text-shadow: 0 0 30px rgba(255,255,255,0.05);
  transition: all 0.4s ease;
}
.hero-giant-text span:hover {
  -webkit-text-stroke: 2px #fff;
  color: #fff;
  text-shadow: 0 0 40px rgba(255,255,255,0.4);
}
.hero-sub {
  position: absolute;
  bottom: 3rem;
  font-size: 1.25rem;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.5);
}

/* =======================================================
   CARD 2: METRICS 
   ======================================================= */
.card-metrics {
  background: #1D3557; /* Deep Navy */
  color: #fff;
  justify-content: center;
  align-items: center;
}
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6rem;
  padding: 4rem;
}
.metric-box {
  display: flex;
  flex-direction: column;
  text-align: center;
}
.m-num {
  font-size: 8rem;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 1rem;
  color: #E63946; /* Warm Red */
}
.m-text {
  font-size: 1.5rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: rgba(255,255,255,0.8);
}

/* =======================================================
   CARD 3: ACTIVITIES (Horizontal Accordion)
   ======================================================= */
.card-activities {
  background: #E63946;
  flex-direction: row;
}
.accordion-wrapper {
  display: flex;
  width: 100%;
  height: 100%;
}
.accordion-item {
  flex: 1;
  height: 100%;
  border-right: 1px solid rgba(255,255,255,0.2);
  display: flex;
  align-items: flex-end;
  padding: 3rem;
  cursor: pointer;
  transition: flex 0.6s cubic-bezier(0.25, 1, 0.5, 1), background 0.4s;
  position: relative;
  overflow: hidden;
}
.accordion-item:last-child { border-right: none; }
.accordion-item:hover {
  flex: 4;
  background: #D90429;
}
.acc-title-vert {
  position: absolute;
  top: 3rem; left: 50%;
  transform: translateX(-50%) rotate(90deg);
  transform-origin: left top;
  font-size: 2rem;
  font-weight: 900;
  text-transform: uppercase;
  white-space: nowrap;
  color: rgba(255,255,255,0.5);
  transition: opacity 0.3s;
}
.accordion-item:hover .acc-title-vert { opacity: 0; }

.acc-content {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  width: 100%;
  max-width: 500px;
}
.accordion-item:hover .acc-content {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.2s;
}
.acc-title {
  font-size: 3rem;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1rem;
}
.acc-desc {
  font-size: 1.25rem;
  font-weight: 300;
  line-height: 1.6;
}

/* Accordion Buttons for Kütüphane */
.acc-actions {
  margin-top: 1.5rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.acc-btn {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  border: 2px solid #fff;
  border-radius: 100px;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  transition: all 0.3s;
}
.acc-btn:hover {
  background: #fff;
  color: #C1121F;
}

/* =======================================================
   CARD 4: AUDIENCE (Infinite Marquees)
   ======================================================= */
.card-audience {
  background: #F4A261;
  color: #000;
  justify-content: center;
}
.marquee-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  transform: rotate(-5deg) scale(1.2);
}
.marquee-row {
  display: flex;
  white-space: nowrap;
  font-size: 6vw;
  font-weight: 900;
  text-transform: uppercase;
  color: transparent;
  -webkit-text-stroke: 2px rgba(0,0,0,0.15);
}
.marquee-row.solid {
  color: #000;
  -webkit-text-stroke: 0;
}
.marquee-content {
  display: flex;
  animation: scrollLeft 20s linear infinite;
}
.marquee-row:nth-child(even) .marquee-content {
  animation: scrollRight 25s linear infinite;
}
@keyframes scrollLeft { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
@keyframes scrollRight { 0% { transform: translateX(-50%); } 100% { transform: translateX(0); } }

.audience-overlay {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255,255,255,0.9);
  padding: 3rem 4rem;
  border-radius: 2rem;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
  z-index: 10;
}
.audience-overlay h2 {
  font-size: 2.5rem;
  font-weight: 900;
  margin-bottom: 1rem;
}
.audience-overlay p {
  font-size: 1.25rem;
  font-weight: 500;
}

/* =======================================================
   CARD 5: TECH STACK 
   ======================================================= */
.card-tech {
  background: #E9C46A; /* Warm Yellow */
  color: #000;
  justify-content: center;
  align-items: center;
  padding: 4rem;
}
.tech-title {
  font-size: 4rem;
  font-weight: 900;
  margin-bottom: 4rem;
  text-align: center;
  letter-spacing: -1px;
}
.tech-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  max-width: 900px;
}
.tech-badge {
  font-size: 2rem;
  font-weight: 700;
  padding: 1rem 2.5rem;
  border: 4px solid #000;
  border-radius: 100px;
  background: transparent;
  transition: all 0.3s;
  cursor: default;
}
.tech-badge:hover {
  background: #000;
  color: #E9C46A;
  transform: translateY(-5px);
}

/* =======================================================
   CARD 6: JOIN (Split Screen 50/50)
   ======================================================= */
.card-join {
  flex-direction: row;
}
.split-half {
  flex: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6rem;
  transition: flex 0.5s;
}
.split-left { background: #2A9D8F; color: #fff; }
.split-right { background: #264653; color: #fff; }

.split-title {
  font-size: 4rem;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 1.5rem;
}
.split-desc {
  font-size: 1.25rem;
  font-weight: 300;
  margin-bottom: 3rem;
  max-width: 400px;
}
.split-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 400px;
}
.split-input {
  background: transparent;
  border: none;
  border-bottom: 2px solid rgba(255,255,255,0.3);
  padding: 1rem 0;
  font-size: 1.25rem;
  font-family: 'Outfit', sans-serif;
  color: #fff;
  outline: none;
  transition: 0.3s;
}
.split-input:focus { border-bottom-color: #fff; }
.split-input::placeholder { color: rgba(255,255,255,0.5); font-weight: 300; }

.split-btn {
  margin-top: 1.5rem;
  background: #fff;
  color: #000;
  border: none;
  padding: 1.25rem;
  font-size: 1.25rem;
  font-weight: 900;
  border-radius: 100px;
  cursor: pointer;
  text-transform: uppercase;
  transition: transform 0.2s;
}
.split-btn:hover { transform: scale(1.05); }
.split-right .split-btn { background: #E9C46A; }

/* =======================================================
   CARD 7: FOOTER
   ======================================================= */
.card-footer {
  background: #000;
  color: #fff;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 4rem 2rem;
}
.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  width: 100%;
}

/* Magic Expanding YAZVEB Logo */
.f-logo-container {
  font-size: clamp(3.5rem, 8vw, 7rem);
  font-weight: 900;
  letter-spacing: -3px;
  margin-bottom: 1rem;
  cursor: pointer;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
  transition: gap 0.8s cubic-bezier(0.25, 1, 0.5, 1);
  line-height: 1;
}
.f-logo-container:hover {
  gap: 0.3em; /* Adds space between words when expanded */
}
.l-word {
  display: flex;
  overflow: hidden;
}
.l-word span {
  display: inline-block;
  white-space: nowrap; /* keep letters together */
}
.hidden-part {
  max-width: 0;
  opacity: 0;
  transition: max-width 1s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.8s ease;
}
/* For the entirely new words like "ve" and "kulübü" */
.hidden-word {
  max-width: 0;
  opacity: 0;
  transition: max-width 1s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.8s ease;
  overflow: hidden;
}

.f-logo-container:hover .hidden-part,
.f-logo-container:hover .hidden-word {
  max-width: 400px; /* Big enough to fit the word segment */
  opacity: 1;
}

/* Footer text */
.f-desc {
  font-size: 1.25rem;
  font-weight: 300;
  color: rgba(255,255,255,0.6);
  line-height: 1.6;
}
.f-links {
  display: flex;
  gap: 3rem;
  margin: 3rem 0;
  flex-wrap: wrap;
  justify-content: center;
}
.f-links a {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.25rem;
  text-transform: uppercase;
  transition: color 0.3s;
}
/* FOOTER NAV COLUMNS REMOVED - Using original minimal style */
.f-links {
  display: flex;
  gap: 3rem;
  margin: 3rem 0 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}
.f-links a {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.25rem;
  text-transform: uppercase;
  transition: color 0.3s;
}
.f-links a:hover { color: #E63946; }

/* Destek Butonunu f-links ile aynı stilden göster */
.f-links-btn {
  color: #fff;
  background: none;
  border: none;
  font-family: inherit;
  font-weight: 700;
  font-size: 1.25rem;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.3s;
  padding: 0;
}
.f-links-btn:hover { color: #E63946; }

/* Sosyal medya satırı - daha küçük, soluk */
.f-socials {
  display: flex;
  gap: 2rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
  justify-content: center;
}
.f-socials a {
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: color 0.3s;
}
.f-socials a:hover { color: rgba(255,255,255,0.8); }


/* MODAL OVERLAY */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}
.modal-box {
  background: #0d1117;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 3rem;
  width: 100%;
  max-width: 540px;
  position: relative;
  transform: translateY(30px);
  transition: transform 0.35s cubic-bezier(.16,1,.3,1);
  max-height: 90vh;
  overflow-y: auto;
}
.modal-overlay.active .modal-box {
  transform: translateY(0);
}

/* Modal Scrollbar Styling */
.modal-box::-webkit-scrollbar {
  width: 8px;
}
.modal-box::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.02);
  border-radius: 4px;
}
.modal-box::-webkit-scrollbar-thumb {
  background: #E63946;
  border-radius: 4px;
}
.modal-box::-webkit-scrollbar-thumb:hover {
  background: #ff4d5a;
}
.modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.6);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s;
}
.modal-close:hover { background: #E63946; color: #fff; border-color: #E63946; }
.modal-header {
  margin-bottom: 2rem;
}
.modal-header h2 {
  font-size: 1.8rem;
  font-weight: 900;
  margin-bottom: 0.5rem;
}
.modal-header p {
  color: rgba(255,255,255,0.45);
  font-size: 0.95rem;
}
.modal-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .accordion-wrapper { flex-direction: column; }
  .accordion-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.2); align-items: center; padding: 2rem; }
  .acc-title-vert { transform: none; position: static; font-size: 1.5rem; }
  .accordion-item:hover { flex: 3; }
  .acc-content { max-width: 100%; text-align: center; }
  .acc-actions { justify-content: center; }
  
  .card-join { flex-direction: column; }
  .split-half { padding: 3rem 2rem; }
  .split-title { font-size: 2.5rem; }
  .split-form { max-width: 100%; }

  .metrics-grid { gap: 3rem; padding: 2rem; }
  .m-num { font-size: 5rem; }
  
  .tech-badge { font-size: 1.5rem; padding: 0.75rem 1.5rem; }
}

@media (max-width: 768px) {
  .hero-giant-text { font-size: 15vw; }
  .nav-links { display: none; } /* Hide extra nav links on very small screens to keep it minimal */
  .audience-overlay { width: 90%; padding: 2rem; }
  .metrics-grid { grid-template-columns: 1fr; }
  .f-links { flex-direction: column; gap: 1.5rem; }
  
}

/* =======================================================
   BLOG / FEED PAGE STYLES (YETKİLİ AKIŞI)
   ======================================================= */

.card-blog-header {
  background: #0a0a0a;
  color: #fff;
  justify-content: center;
  align-items: center;
  height: 40vh; /* Daha dar bir başlık alanı, içerik hemen görünsün */
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.card-blog-header .hero-giant-text {
  font-size: 6vw; /* Font daha küçültüldü */
}

.card-blog-feed {
  background: #050505; /* Çok koyu gri */
  min-height: 60vh;
  padding: 4rem 2rem;
}

.blog-masonry {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

/* Düzenli ve kompakt kartlar */
.blog-card {
  height: 350px; /* Sabit ve daha zarif bir yükseklik */
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  background: #000;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,0.05);
  transition: border-color 0.4s;
}

.blog-card:hover {
  border-color: rgba(255,255,255,0.15);
}

/* Tall class'ını iptal ettik ama HTML'de kalırsa diye etkisiz kılıyoruz */
.blog-card.tall {
  height: 350px; 
}

.bc-img-wrapper {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  overflow: hidden;
  z-index: 1;
}

.bc-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.bc-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.85) 100%);
  transition: background 0.5s ease;
}

/* HOVER EFFECTS: Zoom and Dark Red Glass Overlay */
.blog-card:hover .bc-img-wrapper img {
  transform: scale(1.08);
}
.blog-card:hover .bc-overlay {
  /* Blend dark red with black to keep it elegant and "classs" */
  background: linear-gradient(to bottom, rgba(0,0,0,0.4) 0%, rgba(164, 22, 26, 0.9) 100%);
}

.bc-meta {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 1.5rem 2rem;
}

.bc-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.bc-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  border: 2px solid rgba(255,255,255,0.2);
}

.bc-author-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
}
.bc-author-name small {
  font-size: 0.75rem;
  font-weight: 400;
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.bc-read-time {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  padding: 0.5rem 1rem;
  border-radius: 100px;
  color: #fff;
}

.bc-content {
  position: absolute;
  bottom: 0; left: 0; width: 100%;
  padding: 1.5rem;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.bc-title {
  font-size: 1.35rem; /* Daha küçük ve zarif başlık */
  font-weight: 900;
  line-height: 1.3;
  margin-bottom: 0.5rem;
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

/* The hidden summary that slides up on hover */
.bc-summary {
  font-size: 0.9rem; /* Daha okunaklı özet boyutu */
  font-weight: 300;
  color: rgba(255,255,255,0.7);
  line-height: 1.5;
  max-height: 0;
  opacity: 0;
  transform: translateY(10px);
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.blog-card:hover .bc-title {
  transform: translateY(-5px);
}
.blog-card:hover .bc-summary {
  max-height: 120px; /* Daha kompakt açılma */
  opacity: 1;
  transform: translateY(0);
  margin-top: 0.5rem;
}

@media (max-width: 1024px) {
  .blog-masonry { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
  .bc-title { font-size: 1.5rem; }
}

@media (max-width: 768px) {
  .blog-masonry { grid-template-columns: 1fr; display: flex; flex-direction: column; }
  .blog-card { height: 450px; }
  .blog-card.tall { height: 500px; }
  .card-blog-feed { padding: 4rem 1.5rem; }
}

/* =======================================================
   LIBRARY / DIGITAL VAULT PAGE STYLES (KÜTÜPHANE)
   ======================================================= */

.library-body {
  background: #030303; /* Extremely dark, almost black for premium feel */
  color: #fff;
  overflow: hidden; /* App-like layout */
}

.library-app {
  display: flex;
  height: 100vh;
  padding-top: 5rem; /* Space for the fixed-nav */
}

/* --- Left Sidebar --- */
.lib-sidebar {
  width: 300px;
  background: #080808;
  border-right: 1px solid rgba(255,255,255,0.05);
  display: flex;
  flex-direction: column;
  padding: 3rem 2rem;
}

.lib-brand {
  font-size: 1.5rem;
  font-weight: 900;
  margin-bottom: 3rem;
  color: rgba(255,255,255,0.8);
  letter-spacing: -1px;
}

.lib-nav {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.lib-nav-item {
  font-size: 1rem;
  font-weight: 500;
  color: rgba(255,255,255,0.4);
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.3s;
}

.lib-nav-item:hover {
  color: #fff;
  background: rgba(255,255,255,0.05);
}

.lib-nav-item.active {
  color: #E63946;
  background: rgba(230, 57, 70, 0.05);
  font-weight: 700;
}

.lib-footer-note {
  margin-top: auto;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.3);
  line-height: 1.5;
}
.lib-footer-note a {
  color: #E63946;
  text-decoration: none;
}

/* --- Main Content Area --- */
.lib-main {
  flex: 1;
  overflow-y: auto;
  padding: 3rem 4rem;
  background: #030303;
}

.lib-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  padding-bottom: 2rem;
}

.lh-titles h1 {
  font-size: 3rem;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

.file-count {
  font-size: 1rem;
  font-weight: 300;
  color: rgba(255,255,255,0.4);
}

.lib-search {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 1rem 1.5rem;
  border-radius: 100px;
  color: #fff;
  font-size: 0.95rem;
  width: 300px;
  transition: 0.3s;
}
.lib-search:focus {
  border-color: #E63946;
  background: rgba(255,255,255,0.05);
  outline: none;
}

/* --- File Grid & Typographic Badges --- */
.lib-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.lib-file {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 1rem;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  cursor: pointer;
  transition: all 0.3s;
}

.lib-file:hover {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.15);
  transform: translateY(-3px);
}

/* The Typographic Badge (replaces folder icon) */
.lf-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: 1px;
}

/* Specific Badge Colors (Classs aesthetic) */
.pbix { color: #E9C46A; background: rgba(233, 196, 106, 0.1); border: 1px solid rgba(233, 196, 106, 0.2); }
.xlsx { color: #2A9D8F; background: rgba(42, 157, 143, 0.1); border: 1px solid rgba(42, 157, 143, 0.2); }
.pdf  { color: #E63946; background: rgba(230, 57, 70, 0.1); border: 1px solid rgba(230, 57, 70, 0.2); }
.csv  { color: #48CAE4; background: rgba(72, 202, 228, 0.1); border: 1px solid rgba(72, 202, 228, 0.2); }
.py   { color: #FFB703; background: rgba(255, 183, 3, 0.1); border: 1px solid rgba(255, 183, 3, 0.2); }

.lf-name {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  word-break: break-all;
  line-height: 1.3;
}

.lf-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Courier New', Courier, monospace; /* Subtle terminal nod without being ugly */
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
}

.lf-dot {
  width: 4px; height: 4px;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
}

/* --- Off-Canvas Drawer --- */
.drawer-overlay {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(5px);
  z-index: 1999;
  opacity: 0;
  pointer-events: none;
  transition: 0.4s;
}
.drawer-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.lib-drawer {
  position: fixed;
  top: 0; right: -500px;
  width: 450px;
  height: 100vh;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(20px);
  border-left: 1px solid rgba(255,255,255,0.1);
  z-index: 2000;
  transition: right 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  padding: 3rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.lib-drawer.open { right: 0; }

.drawer-close {
  position: absolute;
  top: 2rem; right: 2rem;
  background: none; border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  opacity: 0.5;
  transition: 0.3s;
}
.drawer-close:hover { opacity: 1; transform: scale(1.1); }

.d-header {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.d-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 0.25rem;
  font-size: 1rem;
  font-weight: 900;
  margin-bottom: 1rem;
}

.d-title {
  font-size: 1.75rem;
  font-weight: 900;
  line-height: 1.3;
  word-break: break-all;
}

.d-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.d-meta-item { display: flex; flex-direction: column; gap: 0.25rem; }
.d-meta-label { font-size: 0.8rem; color: rgba(255,255,255,0.4); text-transform: uppercase; letter-spacing: 1px; }
.d-meta-val { font-family: 'Courier New', Courier, monospace; font-size: 1rem; color: #fff; }

.d-uploader {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(255,255,255,0.03);
  padding: 1.5rem;
  border-radius: 1rem;
  margin-bottom: 3rem;
}

.du-avatar {
  width: 50px; height: 50px;
  border-radius: 50%;
  background-size: cover;
}

.du-info { display: flex; flex-direction: column; gap: 0.25rem; }
.du-label { font-size: 0.75rem; color: rgba(255,255,255,0.5); text-transform: uppercase; }
.du-name { font-size: 1rem; font-weight: 700; color: #fff; }

.d-desc { margin-bottom: 3rem; }
.d-desc h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 1rem; color: rgba(255,255,255,0.8); }
.d-desc p { font-size: 1rem; color: rgba(255,255,255,0.5); line-height: 1.6; }

/* Tags */
.d-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}
.d-tag {
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.6);
  padding: 0.4rem 0.8rem;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 500;
  border: 1px solid rgba(255,255,255,0.1);
}

/* Accordion */
.d-accordion {
  margin-bottom: 3rem;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 0.5rem;
  overflow: hidden;
}
.d-acc-btn {
  width: 100%;
  background: rgba(255,255,255,0.02);
  color: rgba(255,255,255,0.8);
  padding: 1rem 1.5rem;
  border: none;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  text-align: left;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: 0.3s;
}
.d-acc-btn:hover { background: rgba(255,255,255,0.05); }
.d-acc-icon { font-size: 1.25rem; font-family: monospace; }
.d-acc-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out;
  background: rgba(0,0,0,0.2);
}
.d-version-list {
  list-style: none;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.d-version-list li {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.5;
}
.d-version-list strong { color: #fff; }
.d-version-list em { font-size: 0.8rem; color: rgba(255,255,255,0.4); font-style: normal; margin-left: 0.5rem; }

.d-download-btn {
  margin-top: auto;
  width: 100%;
  padding: 1.5rem;
  background: #E63946;
  color: #fff;
  border: none;
  border-radius: 100px;
  font-size: 1.1rem;
  font-weight: 900;
  cursor: pointer;
  transition: 0.3s;
}
.d-download-btn:hover { background: #fff; color: #E63946; }

@media (max-width: 1024px) {
  .library-app { flex-direction: column; }
  .lib-sidebar { width: 100%; padding: 2rem; border-right: none; border-bottom: 1px solid rgba(255,255,255,0.05); }
  .lib-nav { flex-direction: row; flex-wrap: wrap; }
  .lib-main { padding: 2rem; }
}
@media (max-width: 768px) {
  .lib-drawer { width: 100%; right: -100%; }
}

/* CARD 3: MANIFESTO STYLES */
.card-manifesto {
    background-color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10rem 2rem;
}
.manifesto-content {
    max-width: 900px;
}
.m-title {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    margin-bottom: 2rem;
    background: linear-gradient(to right, #E63946, #fff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.m-text {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    color: rgba(255,255,255,0.7);
    line-height: 1.6;
    font-weight: 400;
}

/* CARD: SUPPORT & FEEDBACK */
.card-support {
    background-color: #0d1117;
}
.support-wrapper {
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
}
.s-header {
    text-align: center;
    margin-bottom: 4rem;
}
.s-header h2 { font-size: 3rem; font-weight: 900; margin-bottom: 1rem; }
.s-header p { color: rgba(255,255,255,0.5); }

.support-form {
    display: grid;
    gap: 1.5rem;
}
.f-group { display: flex; flex-direction: column; gap: 0.5rem; }
.f-group label { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(255,255,255,0.4); }
.f-input {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 1.2rem;
    color: #fff;
    border-radius: 0.5rem;
    font-family: inherit;
    transition: 0.3s;
}
.f-input:focus { outline: none; border-color: #E63946; background: rgba(255,255,255,0.08); }

/* Select ve Option için özel stiller */
select.f-input {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;
    cursor: pointer;
}
select.f-input option {
    background-color: #0d1117;
    color: #ffffff;
    padding: 10px;
}

.s-submit-btn {
    background: #E63946;
    color: #fff;
    border: none;
    padding: 1.5rem;
    font-size: 1.1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    border-radius: 0.5rem;
    transition: 0.3s;
}
.s-submit-btn:hover { background: #fff; color: #000; }

/* =======================================================
   CARD 3: NEDIR (Interactive Rotating Texts)
   ======================================================= */
.card-nedir {
  --bg: #000;
  --surface: #12121a;
  --border: #1e1e2e;
  --text: #e8e8f0;
  --text-dim: #6b6b80;
  --accent: #E63946;
  --accent-glow: rgba(230, 57, 70, 0.25);
  --accent2: #fff;

  background: #000;
  color: var(--text);
  justify-content: center;
  align-items: center;
  position: relative;
  font-family: 'Outfit', sans-serif;
}

.nedir-container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 90vw;
  max-width: 1100px;
  height: 80vh;
  gap: 60px;
  z-index: 2;
  margin: 0 auto;
}

/* ========== SOL TARAF: Dairesel Kelime Düzeni ========== */
.card-nedir .left-side {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 420px;
}

.card-nedir .circle-wrapper {
  position: relative;
  width: 400px;
  height: 400px;
}

.card-nedir .center-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-weight: 700;
  font-size: 2.2rem;
  color: var(--text);
  z-index: 10;
  text-align: center;
  letter-spacing: 2px;
}

.card-nedir .center-text .nedir {
  display: block;
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text-dim);
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-top: 4px;
}

.card-nedir .center-text .main-word {
  transition: all 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.card-nedir .orbit-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 340px;
  height: 340px;
  margin-left: -170px;
  margin-top: -170px;
  border: 1px solid rgba(230, 57, 70, 0.2);
  border-radius: 50%;
}

.card-nedir .orbit-ring::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 50%;
  width: 6px;
  height: 6px;
  margin-left: -3px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--accent-glow);
}

.card-nedir .orbit-word {
  position: absolute;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-dim);
  opacity: 0.3;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid transparent;
  user-select: none;
}

.card-nedir .orbit-word:hover {
  opacity: 0.6;
  border-color: var(--border);
}

.card-nedir .orbit-word.active {
  opacity: 1;
  color: var(--accent2);
  font-weight: 600;
  font-size: 1rem;
  border-color: rgba(230, 57, 70, 0.5);
  background: rgba(230, 57, 70, 0.15);
  box-shadow: 0 0 20px rgba(230, 57, 70, 0.25);
}

.card-nedir .orbit-word.active::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 20px;
  border: 1px solid rgba(230, 57, 70, 0.3);
  animation: pulse-ring 2s ease-in-out infinite;
}

@keyframes pulse-ring {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 0; transform: scale(1.05); }
}

/* ========== SAĞ TARAF: Açıklama ========== */
.card-nedir .right-side {
  flex: 1;
  max-width: 420px;
  position: relative;
}

.card-nedir .desc-card {
  position: relative;
}

.card-nedir .desc-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--accent);
  margin-bottom: 16px;
  opacity: 0.7;
}

.card-nedir .desc-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--accent2);
  margin-bottom: 20px;
  min-height: 2.4rem;
  transition: opacity 0.3s;
}

.card-nedir .desc-paragraph {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--text-dim);
  font-weight: 300;
  transition: opacity 0.3s;
  min-height: 120px;
}

.card-nedir .desc-divider {
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  margin-bottom: 20px;
}

/* ========== NAV OKLARI ========== */
.card-nedir .nav-arrows {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 30px;
}

.card-nedir .nav-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-dim);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.card-nedir .nav-btn:hover {
  border-color: var(--accent);
  color: var(--accent2);
  background: rgba(230, 57, 70, 0.15);
  transform: scale(1.08);
}

.card-nedir .nav-btn:active {
  transform: scale(0.95);
}

.card-nedir .nav-dots {
  display: flex;
  gap: 6px;
  margin-left: 16px;
}

.card-nedir .nav-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--border);
  transition: all 0.3s ease;
  cursor: pointer;
}

.card-nedir .nav-dot.active {
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
  transform: scale(1.3);
}

/* ========== PROGRESS BAR ========== */
.card-nedir .progress-track {
  position: absolute;
  bottom: -16px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}

.card-nedir .progress-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  width: 0%;
  transition: width 0.1s linear;
}

/* ========== ARKA PLAN DEKOR ========== */
.card-nedir .bg-gradient {
  position: absolute;
  top: -30%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(230, 57, 70, 0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.card-nedir .bg-gradient2 {
  position: absolute;
  bottom: -20%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(230, 57, 70, 0.04) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* Responsive Utilities */
.responsive-grid {
  display: grid;
  gap: 2rem;
}
.grid-cols-12 {
  grid-template-columns: repeat(12, 1fr);
}
.grid-cols-2-sidebar {
  grid-template-columns: 1fr 250px;
}

@media (max-width: 900px) {
  .responsive-grid.grid-cols-12 {
    display: flex;
    flex-direction: column;
  }
  .responsive-grid.grid-cols-2-sidebar {
    grid-template-columns: 1fr;
  }
  .responsive-grid.grid-cols-2-sidebar aside {
    order: -1; /* Sidebar comes first on mobile */
    margin-bottom: 2rem;
  }
  .blog-featured-card {
    min-height: 300px;
  }
  
  .nedir-container {
    flex-direction: column;
    gap: 40px;
    margin-top: 2rem;
  }
  .card-nedir .circle-wrapper {
    width: 250px;
    height: 250px;
    margin: 0 auto;
  }
  .card-nedir .orbit-ring {
    width: 200px;
    height: 200px;
    margin-left: -100px;
    margin-top: -100px;
  }
  .card-nedir .center-text {
    transform: translate(-50%, -50%);
    width: 100%;
    padding: 0 10px;
  }
  .card-nedir .center-text .main-word {
    font-size: 1.6rem;
    display: block;
    line-height: 1.1;
    word-break: break-word;
  }
  .card-nedir .center-text .nedir {
    font-size: 0.75rem;
  }
  .card-nedir .orbit-word {
    font-size: 0.75rem;
    padding: 6px 12px;
  }
  .card-nedir .right-side {
    text-align: center;
    max-width: 100%;
  }
  .card-nedir .desc-divider {
    margin-left: auto;
    margin-right: auto;
  }
  .card-nedir .nav-arrows {
    justify-content: center;
  }
  .card-nedir .desc-paragraph {
    min-height: auto;
  }
}

@media (max-width: 768px) {
  /* Odak modu butonu mobilde gizlenir */
  .focus-mode-btn {
    display: none !important;
  }
  
  /* Card 4 (Activities) mobile fix */
  .accordion-wrapper {
    flex-direction: column;
  }
  .accordion-item {
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    padding: 1.5rem;
    align-items: center;
    justify-content: center;
  }
  .accordion-item:last-child {
    border-bottom: none;
  }
  .acc-title-vert {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
  }
  .accordion-item:hover .acc-title-vert {
    display: none;
  }
  .acc-title {
    font-size: 1.8rem;
  }
  .acc-desc {
    font-size: 1rem;
  }
}
