body {
  margin: 0;
  padding: 0;
  font-family: 'Rubik', sans-serif;
  background-color: hsl(226, 43%, 10%);
  color: white;
}

.container {
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 80px; /* Sağa ve sola boşluk verir */
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

/* Sol Panel */
.profile-card {
  grid-row: span 2;
  background-color: hsl(235, 46%, 20%);
  border-radius: 15px;
  padding: 0px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  justify-content: space-between;
  height: calc(2 * 200px + 30px); /* 2 kart + aradaki gap */
}

/* Açık mor üst kısım */
.profile-info {
  background-color: hsl(246, 80%, 60%);
  border-radius: 15px;
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  min-height: 250px; /* Daha büyük görünmesi için */
}

.profile-info img {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  border: 2px solid white;
}

.report-for {
  color: hsl(236, 100%, 87%);
  font-size: 14px;
}

.profile-info h2 {
  display: flex;
  flex-direction: column; /* Desktopta alt alta */
  gap: 5px;
  font-size: 30px;
  color: white;
  font-weight: 300;
  margin: 0;
  flex-wrap: wrap;
}

.menu {
  margin-top: 10px;
  padding: 0px 10px 0px; /* Soldan boşluk */
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.menu p {
  background: none;
  border: none;
  color: hsl(236, 100%, 87%);
  cursor: pointer;
  font-size: 16px;
  text-align: left;
  padding: 0;
  margin: 6px 0;  /* Satır arası boşluk */
  line-height: 1.5;
}

.menu p.active {
  color: white;
}

.menu p:hover {
  color: white;
}

/* Kartlar */
.card {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  height: 200px;
  cursor: pointer; /* Ortaktır: Tüm kartlarda imleç parmak olsun */
}

.card-bg {
  height: 70px;
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  padding: 0px;
}

.card-bg img {
  width: 60px;
  opacity: 0.9;
}

/* Her kartın rengi */
.card.work .card-bg {
  background-color: hsl(15, 100%, 70%);
}
.card.play .card-bg {
  background-color: hsl(195, 74%, 62%);
}
.card.study .card-bg {
  background-color: hsl(348, 100%, 68%);
}
.card.exercise .card-bg {
  background-color: hsl(145, 58%, 55%);
}
.card.social .card-bg {
  background-color: hsl(264, 64%, 52%);
}
.card.selfcare .card-bg {
  background-color: hsl(43, 84%, 65%);
}

.card-content {
  background-color: hsl(235, 46%, 20%);
  border-radius: 15px;
  padding: 20px;
  margin-top: -30px;
  position: relative;
  z-index: 2;
  height: 140px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: background-color 0.3s ease; /* Hover: Renk geçişi yumuşak olsun */
}

/* Sadece kart içeriğine gelince arka plan rengi değişsin */
.card-content:hover {
  background-color: hsl(235, 40%, 35%);
}

.ellipsis {
  cursor: pointer;
  transition: filter 0.3s ease;
}

.ellipsis:hover {
  filter: brightness(0) invert(1); /* Beyaz olur */
}

.card-content:hover:has(.ellipsis:hover) {
  background-color: hsl(235, 46%, 20%);
}

.card-content .top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-content .top p {
  font-weight: 500;
}

/* Saat ve geçen hafta bilgisi */
.hours-info {
  display: flex;
  flex-direction: column;  /* Desktopta alt alta */
  justify-content: space-between;
  align-items: flex-start;
}

.hours-info h2 {
  font-size: 30px;
  font-weight: 300;
  margin: 0;
}

.last-week {
  font-size: 14px;
  color: hsl(236, 100%, 87%);
}

@media (max-width: 768px) {
  .container {
    grid-template-columns: 1fr;
    padding: 20px;
    gap: 20px;
  }

  .profile-card {
    height: auto;
  }

  .profile-info {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    min-height: auto;
    padding: 15px;
    gap: 15px;
  }

  .profile-info img {
    width: 60px;
    height: 60px;
  }

  .profile-info h2 {
    font-size: 20px;
    flex-direction: row; /* Mobilde yan yana */
    align-items: flex-start;
  }

  .report-for {
    font-size: 13px;
  }

  .menu {
    flex-direction: row;
    justify-content: space-around;
    padding: 10px 0;
  }

  .menu p {
    font-size: 14px;
    margin: 0;
  }

  .card {
    height: auto;
  }

  .card-bg {
    height: 50px;
  }

  .card-bg img {
    width: 40px;
  }

  .card-content {
    height: auto;
    padding: 15px;
    margin-top: -20px;
  }

  .card-content .top p {
    font-size: 14px;
  }

  .hours-info {
    flex-direction: row; /* Yatay hizalama */
    align-items: center;
    justify-content: space-between;
    gap: 10px; /* Saat ve Last Week arası boşluk */
  }

  .hours-info h2 {
    font-size: 24px;
  }

  .last-week {
    font-size: 13px;
    white-space: nowrap; /* Tek satırda tut */
  }
}
