/* this is profiles.css file */
/* Profiles page specific styles */
.profiles-header {
  text-align: center;
  margin: 40px 0 20px;
}

.profiles-header h1 {
  color: #ff69b4;
  font-size: 32px;
  margin-bottom: 10px;
}

.profiles-header p {
  color: #666;
  font-size: 16px;
}

/* Layout switcher */
.layout-switcher {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 1px solid #eee;
}

.layout-switcher span {
  color: #666;
  margin-right: 15px;
  font-size: 14px;
}

.layout-options {
  display: flex;
  gap: 10px;
}

.layout-btn {
  background: none;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 14px;
  color: #666;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.layout-btn i {
  font-size: 12px;
}

.layout-btn:hover {
  border-color: #ff69b4;
  color: #ff69b4;
}

.layout-btn.active {
  background-color: #ff69b4;
  border-color: #ff69b4;
  color: white;
}

/* Grid layout for profiles */
.profiles-grid {
  display: grid;
  gap: 25px;
  margin-bottom: 50px;
}

/* 3 columns layout (default) */
.profiles-grid[data-current-layout="3"] {
  grid-template-columns: repeat(3, 1fr);
}

/* 4 columns layout */
.profiles-grid[data-current-layout="4"] {
  grid-template-columns: repeat(4, 1fr);
}

/* Layout transition animation */
.profiles-grid.layout-transition {
  transition: grid-template-columns 0.5s ease;
}

/* Profile card styling */
.profile-card {
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.5s ease;
  animation: fadeIn 0.5s ease forwards;
  opacity: 0;
  transform: translateY(20px);
  position: relative;
}

.profile-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(255, 105, 180, 0.15);
}

.profile-card:hover .profile-avatar {
  background-color: #f67fba;
}

.profile-avatar {
  background-color: #ff69b4;
  color: white;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
}

.profile-avatar i {
  font-size: 40px;
}

.profile-info {
  padding: 20px;
}

.profile-info h3 {
  color: #333;
  margin-bottom: 15px;
  font-size: 18px;
  display: flex;
  flex-direction: column;
}

.username {
  color: #888;
  font-size: 14px;
  font-weight: normal;
  margin-top: 5px;
}

.profile-details {
  margin-bottom: 20px;
}

.profile-details p {
  margin: 8px 0;
  color: #555;
  display: flex;
  align-items: center;
}

.profile-details i {
  color: #ff69b4;
  margin-right: 10px;
  width: 20px;
  text-align: center;
}

.profile-link {
  display: inline-block;
  color: #ff69b4;
  text-decoration: none;
  font-weight: bold;
  padding: 8px 0;
  transition: color 0.3s ease;
  position: relative;
}

.profile-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #ff69b4;
  transition: width 0.3s ease;
}

.profile-link:hover {
  color: #ff5ba7;
}

.profile-link:hover::after {
  width: 100%;
}

.profile-link i {
  margin-left: 5px;
  transition: transform 0.3s ease;
}

.profile-link:hover i {
  transform: translateX(5px);
}

/* No profiles message */
.no-profiles {
  text-align: center;
  padding: 50px 0;
  color: #888;
}

.no-profiles i {
  font-size: 50px;
  color: #ddd;
  margin-bottom: 15px;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive styles */
@media (max-width: 1200px) {
  .profiles-grid[data-current-layout="4"] {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 992px) {
  .profiles-grid[data-current-layout="3"],
  .profiles-grid[data-current-layout="4"] {
    grid-template-columns: repeat(2, 1fr);
  }

  .layout-switcher {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .profiles-header h1 {
    font-size: 28px;
  }

  .profiles-grid {
    gap: 20px;
  }

  .layout-options {
    gap: 5px;
  }

  .layout-btn {
    padding: 6px 10px;
    font-size: 13px;
  }
}

@media (max-width: 576px) {
  .profiles-grid[data-current-layout="3"],
  .profiles-grid[data-current-layout="4"] {
    grid-template-columns: 1fr;
  }

  .profile-avatar {
    height: 80px;
  }

  .profile-avatar i {
    font-size: 30px;
  }

  .profiles-header {
    margin: 30px 0 15px;
  }

  .profiles-header h1 {
    font-size: 24px;
  }

  .layout-switcher {
    flex-direction: column;
    gap: 10px;
  }

  .layout-switcher span {
    margin-right: 0;
  }
}
/* Add this to your profiles.css file */
/* Profiles container layout */
.profiles-container {
  display: flex;
  gap: 30px;
  margin-top: 30px;
  width: 100%;
}

.profiles-content {
  flex: 1;
  min-width: 0; /* Prevent flex item from overflowing */
}

/* Profiles grid */
.profiles-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.profiles-grid[data-current-layout="4"] {
  grid-template-columns: repeat(4, 1fr);
}

/* Layout transition */
.layout-transition {
  transition: all 0.3s ease;
}

/* Responsive styles */
@media (max-width: 1200px) {
  .profiles-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .profiles-grid[data-current-layout="4"] {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 992px) {
  .profiles-container {
    flex-direction: column;
  }
  .layout-switcher {
    display: none;
  }

  .sidebar {
    width: 100%;
    position: relative;
    top: 0;
    max-height: none;
  }

  .filter-container {
    display: none;
  }

  .filter-container.active {
    display: block;
  }

  .filter-toggle {
    display: flex;
  }

  .profiles-grid[data-current-layout="4"] {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 993px) {
  .filter-toggle {
    display: none;
  }

  .filter-container {
    display: block !important;
  }
}

@media (max-width: 576px) {
  .profiles-grid,
  .profiles-grid[data-current-layout="4"] {
    grid-template-columns: 1fr;
  }
}
/* Profile Card Styles */
.profile-card {
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.profile-avatar {
  height: 200px;
  background-color: #fff0f5;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

/* Profile Image Styles */
.profile-avatar img.profile-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.3s ease;
}

.profile-card:hover .profile-avatar img.profile-image {
  transform: scale(1.05);
}

/* Fallback icon styles */
.profile-avatar i {
  font-size: 80px;
  color: #ff69b4;
}

.profile-info {
  padding: 20px;
}

.profile-info h3 {
  font-size: 18px;
  color: #333;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

/* Gender icon next to name */
.gender-icon {
  display: inline-flex;
  align-items: center;
  margin-left: 8px;
  color: #ff69b4;
}

.gender-icon i {
  font-size: 16px;
}

.username {
  font-size: 14px;
  color: #888;
  font-weight: normal;
  margin-left: auto;
}

.profile-details {
  margin-bottom: 15px;
}

.profile-details p {
  font-size: 14px;
  color: #666;
  margin-bottom: 5px;
  display: flex;
  align-items: center;
}

.profile-details p i {
  width: 20px;
  margin-right: 8px;
  color: #ff69b4;
}

.profile-link {
  display: inline-flex;
  align-items: center;
  color: #ff69b4;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
}

.profile-link i {
  margin-left: 5px;
  transition: transform 0.3s ease;
}

.profile-link:hover {
  color: #ff5ba7;
}

.profile-link:hover i {
  transform: translateX(3px);
}

/* Responsive adjustments for profile cards */
@media (max-width: 768px) {
  .profile-avatar {
    height: 180px;
  }
}

@media (max-width: 576px) {
  .profile-avatar {
    height: 220px;
  }
}
/* Login Required Message */
.login-required {
  padding: 20px;
  text-align: center;
  background-color: #fff0f5;
  border-radius: 10px;
  border: 1px dashed #ff69b4;
}

.login-icon {
  font-size: 40px;
  color: #ff69b4;
  margin-bottom: 15px;
}

.login-required h4 {
  font-size: 18px;
  color: #333;
  margin-bottom: 10px;
}

.login-required p {
  color: #666;
  margin-bottom: 20px;
  font-size: 14px;
  line-height: 1.5;
}

.login-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.btn-login-action,
.btn-register-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 15px;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-login-action {
  background-color: #ff69b4;
  color: white;
}

.btn-login-action:hover {
  background-color: #ff5ba7;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 105, 180, 0.3);
}

.btn-register-action {
  background-color: white;
  color: #ff69b4;
  border: 1px solid #ff69b4;
}

.btn-register-action:hover {
  background-color: #fff0f5;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 105, 180, 0.1);
}

.btn-login-action i,
.btn-register-action i {
  margin-right: 5px;
}

/* Responsive adjustments for login required message */
@media (max-width: 992px) {
  .login-actions {
    flex-direction: column;
    gap: 10px;
  }

  .btn-login-action,
  .btn-register-action {
    width: 100%;
  }
}
.range-inputs {
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: auto;
  position: static;
}

.range-input {
  position: static;
  width: 100%;
  height: 5px;
  background: #ffeaf2;
  border-radius: 3px;
  pointer-events: auto;
  -webkit-appearance: none;
  appearance: none;
  z-index: 1;
  margin: 0;
}
.filter-remove {
  background: none;
  border: none;
  color: #111;
  font-size: 15px;
  margin-left: 8px;
  cursor: pointer;
  padding: 0 3px;
  line-height: 1;
  vertical-align: middle;
  transition: color 0.2s;
}
.filter-remove:hover {
  color: #ff69b4;
}
.pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin: 30px 0 10px 0;
}
.pagination-btn {
  color: #222;
  background: #f7f7f7;
  border: 1px solid #eee;
  padding: 6px 14px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 15px;
  transition: background 0.2s, color 0.2s;
}
.pagination-btn.active,
.pagination-btn:hover {
  background: #ff69b4;
  color: #fff;
  border-color: #ff69b4;
}
