h1 {

}

@font-face {
  font-family: 'DancingScript';
  src: url('font/DancingScript-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #e9f4fb;
}

header {
  /*justify-self: center;*/
  justify-items: ;
  display: flex;
  gap: 50px;
  justify-content: space-around;
  align-items: center;
  padding: 20px 80px;
  flex-wrap: wrap;
  max-width: 10 0%;
}

.logo {
  font-family: 'DancingScript', cursive;
  font-size: 40px;
  font-weight: bold;
}

.logo span {
  color: #0387df;
}

@media (min-width: 768px) {
.logo-mobile {
display:none;
}

.logo-mobile span {
display:none;
}
.mobile-nav {
  display: none;
}
}

nav ul {
  display: flex;
  list-style: none;
  gap: 30px;
  padding: 0;
  margin: 0;
  align-items: center;
  flex-wrap: wrap;
  font-size: 20px;
  font-weight: 500;
}

nav ul li a, nav ul li button {
  text-decoration: none;
  color: black;
  font-weight: 500;
  background: none;
  border: none;
  cursor: pointer;
}

nav ul li a:hover {
  color: #0387df;
  text-decoration: underline;
}

nav ul li button {
  background: #4f3df4;
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
}

.section-title {
  text-align: center;
  margin: 40px 0 20px;
  font-size: 28px;
  padding-bottom: 20px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 0 40px 40px;
  box-sizing: border-box;
  margin-left: 40px;
  margin-right: 40px;
}

.card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  height: 350px;
  background: #000;
  box-shadow: 10px 10px 6px rgba(0, 0, 0, 0.1);
  margin: 0 7px 7px;
}
.card:hover {
  animation: fade-up;
  transform: scale(1.05) rotate(-2deg);

}

.card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-info {
  position: absolute;
  bottom: 0;
  width: 100%;
  padding: 15px;
  color: white;
  background: linear-gradient(to top, #0387df, transparent);
  font-size: 14px;
}

.card-info .username {
  font-weight: bold;
  margin-bottom: 5px;
}

.card-info .status {
  font-weight: bold;
  margin-bottom: 8px;
}

.card-info .dot {
  height: 10px;
  width: 10px;
  background-color: limegreen;
  border-radius: 50%;
  display: inline-block;
  margin-right: 6px;
}

.card-info .stats {
  display: flex;
  gap: 12px;
  font-size: 13px;
}
.card-info .stats > * {
  display: flex;
  align-items: center;
  gap: 6px;
}

/*------------------mobile-------------------------*/
@media (max-width: 768px) {
  header {
    flex-direction: column;
    padding: 20px 20px;
    gap: 20px;
  }
  .logo-mobile {
    font-family: 'DancingScript', cursive;
    font-size: 40px;
    font-weight: bold;
  }
  
  .logo-mobile span {
    color: #0387df;
  }
  .logo {
display:none;
  }
  .logo span {
    display: none;
  }

  nav ul {
display: none;
  }

  .section-title {
    font-size: 20px;
    padding: 0 10px;
    margin-top: -20px;
    margin-bottom: 30px;
  }

  .card-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 0 20px 30px;
    margin-left: 5px;
    margin-right: 5px;
  }

  .card {
    height: 300px;
    margin: 0;
    margin-bottom: 20px;
  }

  .card-info {
    font-size: 13px;
    padding: 12px;
  }

  .card-info .stats {
    font-size: 12px;
  }

  .card:hover {
    transform: scale(1.03) rotate(-1deg); /* трохи менше для мобіли */
  }
}

@media (max-width: 480px) {
  .card-grid {
    grid-template-columns: 1fr;
  }

  .card {
    height: 280px;
  }

  .logo {
    font-size: 28px;
  }

  .mobile-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: #e9f4fb;
    display: flex;
    justify-content: space-around;
    align-items: center;
    border-top: 1px solid #ccc;
    z-index: 999;
  }
  
  .mobile-nav .mobile-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 12px;
    color: #2b2d42;
    text-decoration: none;
    font-weight: 500;
  }
  
  .mobile-nav .mobile-link span {
    margin-top: 2px;
  }
  
  .mobile-nav .hot {
    color: #ff4500;
    font-weight: bold;
  }
  
}
