/* =========================
   PROFILES PAGE
========================= */

/* PAGE */
/* =========================
   PAGE
   ========================= */

/* =========================
   PAGE
========================= */

.profiles-page {
  padding: 120px 20px 80px;
  background: linear-gradient(180deg, #0e0505 0%, #1a0707 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

/* =========================
   HEADER
========================= */

.profiles-header {
  max-width: 800px;
  margin: 0 auto 50px;
  text-align: center;
}

.profiles-header h1 {
  font-size: 38px;
  color: #ffffff;
  margin-bottom: 14px;
}

.profiles-header p {
  font-size: 16px;
  color: rgba(255,255,255,0.75);
  line-height: 1.6;
}

/* =========================
   GRID
========================= */

.profiles-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 26px;
}

/* =========================
   CARD
========================= */

.profile-card {
  position: relative;
  height: 240px;
  border-radius: 14px;
  overflow: hidden;

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  box-shadow: 0 14px 35px rgba(0,0,0,0.45);
  text-decoration: none;

  transform: scale(1);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  z-index: 1;
}

/* Hover ONLY for real desktops */
@media (hover: hover) and (pointer: fine) {
  .profile-card {
    will-change: transform;
  }

  .profile-card:hover {
    transform: scale(1.15);
    z-index: 10;
    box-shadow: 0 30px 70px rgba(0,0,0,0.7);
  }
}

/* =========================
   OVERLAY
========================= */

.profile-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.45),
    rgba(0,0,0,0.1) 45%,
    rgba(0,0,0,0.8)
  );
  z-index: 1;
}

/* =========================
   TEXT
========================= */

.profile-city {
  position: absolute;
  top: 12px;
  left: 18px;
  font-size: 20px;
  color: #fff;
  z-index: 2;
}

.profile-age {
  position: absolute;
  top: 12px;
  right: 14px;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  z-index: 2;
}

.profile-name {
  position: absolute;
  bottom: 14px;
  left: 14px;
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  z-index: 2;
}

.profile-status {
  position: absolute;
  bottom: 14px;
  right: 14px;
  font-size: 20px;
  font-weight: 600;
  z-index: 2;
  text-transform: lowercase;
}

/* STATUS COLORS */
.profile-card.online .profile-status {
  color: #2dff63;
}

.profile-card.offline .profile-status {
  color: #ff3b3b;
}

/* =========================
   REGISTER HINT
========================= */

.register-hint {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  color: #fff;

  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;

  font-size: 16px;
  padding: 15px;

  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 3;
}

.profile-card.show-hint .register-hint {
  opacity: 1;
}

/* =========================
   TEXT BLOCK
========================= */

.profiles-text-block {
  grid-column: 1 / -1;
  padding: 34px 40px;
  border-radius: 14px;

  background: linear-gradient(
    180deg,
    rgba(255,255,255,0.06),
    rgba(255,255,255,0.02)
  );

  border: 1px dashed rgba(255,255,255,0.3);
  color: rgba(255,255,255,0.85);
  font-size: 15px;
  line-height: 1.6;
  text-align: center;
}

/* =========================
   FOOTER NOTE
========================= */

.profiles-footer-note {
  margin-top: 60px;
  text-align: center;
  font-size: 14px;
  color: rgba(255,255,255,0.65);
}

/* =========================
   MOBILE
========================= */

@media (max-width: 768px) {

  .profiles-page {
    padding: 90px 15px 60px;
  }

  .profiles-header {
    margin-bottom: 35px;
  }

  .profiles-header h1 {
    font-size: 28px;
  }

  .profiles-header p {
    font-size: 15px;
  }

  .profiles-grid {
    gap: 18px;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  }

  .profile-card {
    height: 210px;
  }

  .profile-city {
    font-size: 16px;
    left: 12px;
    top: 10px;
  }

  .profile-age {
    font-size: 15px;
    right: 12px;
    top: 10px;
  }

  .profile-name {
    font-size: 16px;
    left: 12px;
    bottom: 12px;
  }

  .profile-status {
    font-size: 16px;
    right: 12px;
    bottom: 12px;
  }

  .profiles-text-block {
    padding: 24px 20px;
    font-size: 14px;
  }

  .profiles-footer-note {
    font-size: 13px;
    margin-top: 40px;
  }
}

/* =========================
   EXTRA SMALL
========================= */

@media (max-width: 480px) {

  .profiles-grid {
    grid-template-columns: 1fr;
  }

  .profile-card {
    height: 230px;
  }

  .profiles-header h1 {
    font-size: 24px;
  }
}

@media (max-width: 360px) {
  .profile-city,
  .profile-age,
  .profile-name,
  .profile-status {
    font-size: 14px;
  }
}
