* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #1f1f1f, #000000);
  color: white;
  min-height: 100vh;
  text-align: center;
}

.container {
  max-width: 500px;
  margin: auto;
  width: 100%;
  padding: 20px;   /* 🔥 padding body yerine buraya taşındı */
}

h1, h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

p {
  color: #bbb;
  margin-bottom: 2rem;
  font-size: 1rem;
}

.btn {
  display: block;
  width: 100%;
  max-width: 100%;
  padding: 15px;
  margin-bottom: 15px;
  font-size: 1.1rem;
  font-weight: bold;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.3s;
  text-decoration: none;
  color: white;
  box-sizing: border-box; /* 🔥 taşmayı engeller */
}

.btn-primary {
  background-color: #6366f1;
}
.btn-primary:hover { background-color: #4f46e5; }

.btn-outline {
  background-color: transparent;
  border: 2px solid #666;
}
.btn-outline:hover { border-color: #fff; }

.link-text {
  margin-top: 10px;
  font-size: 0.95rem;
  color: #555;
}
.link-text a {
  color: #6366f1;
  text-decoration: none;
  font-weight: 500;
}
.link-text a:hover { text-decoration: underline; }

.profile-pic {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #6366f1;
  margin: 0 auto 15px auto;
}

.profile-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 20px;
}

.post {
  background: #2a2a2a;
  padding: 15px;
  border-radius: 12px;
  margin-bottom: 20px;
  text-align: left;
  word-wrap: break-word;
}
.post .content {
  white-space: pre-wrap;
  margin-bottom: 10px;
}
.post .meta {
  font-size: 0.9rem;
  color: #bbb;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.btn-like, .edit-profile-pic-btn {
  background: #6366f1;
  border: none;
  padding: 8px 14px;
  border-radius: 10px;
  color: white;
  cursor: pointer;
  transition: background 0.3s;
  font-size: 0.9rem;
}
.btn-like:hover, .edit-profile-pic-btn:hover { background: #4f46e5; }

.new-post-form {
  margin-bottom: 25px;
}
.new-post-form textarea {
  width: 100%;
  max-width: 100%;
  min-height: 120px;
  resize: vertical;
  margin-bottom: 15px;
  border-radius: 10px;
  border: none;
  padding: 12px;
  background: #1f1f1f;
  color: white;
  font-size: 1rem;
  box-sizing: border-box; /* 🔥 taşmayı engeller */
}
.new-post-form button {
  background: #6366f1;
  border: none;
  padding: 12px 20px;
  border-radius: 12px;
  color: white;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s;
}
.new-post-form button:hover { background: #4f46e5; }

.footer {
  margin-top: 40px;
  font-size: 0.9rem;
  color: #666;
}

.date-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.date-list li {
  margin-bottom: 12px;
}

.date-list a {
  display: block;
  padding: 12px 16px;
  background: #2a2a2a;
  border-radius: 10px;
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.3s, transform 0.2s;
  text-align: center;
}

.date-list a:hover {
  background: #6366f1;   /* 🔥 hover’da renk değişir */
  transform: scale(1.03); /* 🔥 hafif büyür */
}


/* 🔥 Mobil uyum için */
@media (max-width: 600px) {
  .container {
    padding: 10px;   /* mobilde daha dar padding */
  }

  h1, h2 { font-size: 1.5rem; }
  p { font-size: 0.95rem; }

  .btn {
    font-size: 1rem;
    padding: 12px;
  }

  .new-post-form textarea {
    min-height: 150px;   /* mobilde daha yüksek */
    font-size: 0.95rem;
  }

  .post {
    font-size: 0.95rem;
    padding: 12px;
  }

  .post .meta {
    flex-direction: column;
    align-items: flex-start;
  }
}
