@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

body {
  margin: 0;
  font-family: Poppins, "Courier New", monospace;
  background-color: #0B0C10;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  color: #c5c6c7;
}

header {
  background-color: #0B0C10;
  padding: 15px;
  height: 104px;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 50px;
}

.logo {
  position: relative;
  top: -30px;
  margin-left: 30px;
  height: auto;
}

.logo img {
  width: 300px;
  height: auto;
  transition: all 0.3s ease;
  filter: drop-shadow(0 0 10px #66fcf1);
  animation: glowing 2s infinite;
}

.logo img:hover {
  filter: drop-shadow(0 0 20px #66fcf1);
  transform: scale(1.1);
}

/* YENİ LAYOUT SİSTEMİ */
.page-wrapper {
  display: grid;
  grid-template-columns: auto 1fr; /* Sidebar (otomatik) ve Ana İçerik (kalan alan) */
  flex-grow: 1; /* Footer'ı aşağı itmek için bu alanın büyümesini sağlar */
  overflow: hidden; /* Sayfa taşmasını önler */
}

/* Sidebar Styles */
.sidebar {
  width: 65px; /* Başlangıç genişliği */
  background-color: transparent;
  padding: 0 15px;
  transition: width 0.3s ease;
  overflow-y: auto; /* Gerektiğinde kaydırma çubuğu */
  height: calc(100vh - 134px - 75px); /* Header ve Footer yüksekliğini çıkar */
}

.sidebar:hover {
  width: 220px;
}

.sidebar ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

.sidebar ul li {
  margin-bottom: 20px;
}

.sidebar ul li a {
  display: flex;
  align-items: center;
  color: white;
  text-decoration: none;
  font-size: 18px;
  padding: 5px;
  border-radius: 5px;
  transition: background-color 0.3s ease;
  white-space: nowrap; /* Metnin alt satıra kaymasını engelle */
}

.sidebar ul li a:hover {
  background-color: #1f1e1e;
}

.sidebar ul li a.active {
  border: 2px solid #45a29e;
  border-radius: 10px;
  background-color: #1f2833;
}

.list-logo {
  width: 33px;
  height: 33px;
  margin-right: 10px;
  flex-shrink: 0; /* Küçülmesini engelle */
}

.list-text {
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.sidebar:hover .list-text {
  display: inline-block;
  opacity: 1;
}

.sidebar::-webkit-scrollbar {
  width: 5px;
}

.sidebar::-webkit-scrollbar-thumb {
  background-color: #292929;
  border-radius: 10px;
}

/* Main Content Styles */
.main-content {
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Typing Test Styles */
#typing-speed-test {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  width: 100%;
}

#wordDisplay {
  font-size: 1.5rem;
  margin-bottom: 35px;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 800px; /* Kelimelerin çok yayılmasını engeller */
}

.row {
  display: flex;
  justify-content: center;
  margin-bottom: 15px;
  flex-wrap: wrap;
}

.word {
  margin: 0 10px;
  padding: 8px 12px;
  font-size: 1.5rem;
  color: #c5c6c7;
}

.char {
  font-family: "Courier New", monospace;
}

.correct {
  color: #27ae60;
}

.incorrect {
  color: #e74c3c;
  background-color: rgba(231, 76, 60, 0.1);
  border-radius: 3px;
}

.cursor {
  border-left: 2px solid #66fcf1;
  animation: blink 1s infinite;
}

@keyframes blink {
  50% { border-color: transparent; }
}

/* YENİ MODERN MODAL STİLLERİ */
.modal {
  display: none;
  position: fixed;
  z-index: 1050;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(11, 12, 16, 0.9); /* Arka planı biraz daha koyu yapalım */
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(5px); /* Arka plana blur efekti */
}

.modal-content {
  background: #1F2833;
  border-radius: 20px;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.6);
  padding: 40px;
  width: 90%;
  max-width: 650px;
  text-align: center;
  position: relative;
  border: 2px solid #45A29E;
  transform: scale(0.9);
  opacity: 0;
  animation: modal-pop-in 0.5s 0.2s forwards cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes modal-pop-in {
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.modal-content h2 {
  font-size: 2.8em;
  font-weight: 700;
  color: #66FCF1;
  margin-bottom: 30px;
  text-shadow: 0 0 15px rgba(102, 252, 241, 0.5);
}

/* Sonuçları gösterecek yeni grid yapısı */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.stat-item {
  background-color: rgba(11, 12, 16, 0.6);
  padding: 20px;
  border-radius: 12px;
  border: 1px solid #2c5364;
  transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    border-color: #66FCF1;
}

.stat-title {
  font-size: 0.9em;
  color: #c5c6c7;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.stat-value {
  font-size: 2em;
  font-weight: 700;
  color: white;
}

/* WPM ve Accuracy için özel stiller */
#modalWPM .stat-value, #modalAccuracy .stat-value {
    color: #66FCF1;
    font-size: 2.5em;
}

.close-btn {
  background-color: #66FCF1;
  color: #1F2833;
  border: none;
  border-radius: 10px;
  padding: 15px 40px;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 10px;
}

.close-btn:hover {
  background-color: white;
  transform: scale(1.05);
  box-shadow: 0 5px 20px rgba(102, 252, 241, 0.4);
}

/* Contact & Linkedin Page Styles */
#contact-info, #linkedin-profiles {
  text-align: center;
  color: #66FCF1;
  margin: 20px;
  max-width: 800px;
  width: 100%;
  padding: 30px;
  background: linear-gradient(135deg, rgba(11, 12, 16, 0.8), rgba(31, 40, 51, 0.8));
  border-radius: 15px;
  border: 2px solid #45A29E;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

.profile-container {
  display: flex;
  justify-content: space-around;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.profile {
  text-align: center;
  max-width: 150px;
  margin: 10px;
  transition: transform 0.3s ease;
}

.profile:hover {
  transform: translateY(-5px);
}

.profile-img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin-bottom: 10px;
  border: 2px solid #66FCF1;
}

.linkedin-icon {
  width: 30px;
  height: 30px;
  transition: transform 0.3s ease;
}

.linkedin-icon:hover {
  transform: scale(1.2);
}

#contact-info p {
    color: white;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes glowing {
  0% { filter: drop-shadow(0 0 5px #66fcf1); }
  50% { filter: drop-shadow(0 0 15px #66fcf1); }
  100% { filter: drop-shadow(0 0 5px #66fcf1); }
}

/* Responsive Styles */
@media (max-width: 768px) {
  .page-wrapper {
    grid-template-columns: 1fr; /* Mobilde tek sütun */
  }
  .sidebar {
    position: static;
    width: 100%;
    height: auto;
    display: flex;
    overflow-x: auto; /* Yatayda kaydırma */
    padding: 10px 0;
  }
  .sidebar ul {
      display: flex;
      flex-direction: row;
      width: 100%;
  }
  .sidebar ul li {
      margin: 0 10px;
  }
  .sidebar:hover .list-text, .list-text {
      display: none; /* Mobilde metinleri her zaman gizle */
  }
  .sidebar:hover {
      width: 100%;
  }
  .navbar {
      flex-direction: column;
      padding: 0 10px;
  }
  .logo {
      margin-left: 0;
      top: 0;
  }
}