/* Profile-specific styles */
.profile-photo-placeholder {
  background: var(--light-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--primary);
}

.profile-location {
  color: var(--secondary-text);
  margin-bottom: 1rem;
}

.profile-bio-truncated {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.interests-container {
  margin: 1rem 0;
}

.interests-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  justify-content: center;
}

.interest-tag {
  background: var(--light-primary);
  color: var(--primary);
  padding: 0.2rem 0.5rem;
  border-radius: 8px;
  font-size: 0.8rem;
}

.interest-more {
  color: var(--secondary-text);
  font-size: 0.8rem;
}

.like-form {
  margin-top: 1rem;
}

.btn-full-width {
  width: 100%;
}

.no-profiles-card {
  text-align: center;
  padding: 2rem;
}

.no-profiles-text {
  color: var(--secondary-text);
  margin-bottom: 1.5rem;
}

.load-more-container {
  text-align: center;
  margin-top: 2rem;
}

/* Profile card link styles */
.profile-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: auto;
}

.profile-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  padding: 0;
  transition: all 0.2s ease;
  flex: 1;
  min-height: 0;
}

.profile-card-link .profile-name,
.profile-card-link .profile-age,
.profile-card-link .profile-location,
.profile-card-link .profile-bio,
.profile-card-link .interests-container {
    padding: 0 1rem;
}

.profile-card-link .profile-name {
    padding-top: 1rem;
}

.profile-card-link .interests-container {
    padding: 0 1rem 1rem 1rem;
}

.profile-card-link:hover {
  text-decoration: none;
  color: inherit;
  background: var(--light-primary);
}

.profile-card-link:focus {
  outline: 2px solid var(--primary);
  outline-offset: -2px;
}

/* Action toolbar styles */
.profile-action-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  background: var(--text-icons);
  border-top: 1px solid var(--divider);
  position: relative;
  z-index: 10;
  margin-top: auto;
}

.action-btn {
  background: none;
  border: none;
  font-size: 1.2rem;
  padding: 0.5rem;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
}

.action-btn:hover {
  background: var(--light-primary);
  transform: scale(1.1);
}

.action-btn:active {
  transform: scale(0.95);
}

.like-btn:hover {
  background: #ffe6e6;
  color: #e74c3c;
}

.favorite-btn:hover {
  background: #fff5e6;
  color: #f39c12;
}

.report-btn:hover {
  background: #ffe6e6;
  color: #e74c3c;
}

.action-btn:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Remove old browse actions styles */
.profile-browse-actions {
  display: none;
}

/* Likes page specific styles */
.page-header {
    text-align: center;
    margin-bottom: 2rem;
}

.page-subtitle {
    color: var(--secondary-text);
    margin-top: 0.5rem;
}

.like-date {
    margin-top: auto;
    padding-top: 1rem;
}

.text-muted {
    color: var(--secondary-text);
}

.match-card {
    border: 2px solid #ffc107;
    background: linear-gradient(135deg, #fff5e6, #ffffff);
}

.match-indicator {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 5;
}

.match-badge {
    background: #ffc107;
    color: #ffffff;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: bold;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.view-btn:hover {
    background: #e8f4fd;
    color: #2196f3;
}

.message-btn:hover {
    background: #e8f5e8;
    color: #4caf50;
}

.profile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

@media (min-width: 1200px) {
    .profile-grid {
        grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
        max-width: 1400px;
        margin: 0 auto 2rem auto;
    }
}

@media (max-width: 768px) {
    .profile-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin: 0 0.5rem 2rem 0.5rem;
    }
    
    .profile-card {
        width: 100%;
        margin: 0;
    }
}

/* Inline form styling */
.inline-form {
    display: inline;
}

.inline-form-block {
    display: inline-block;
    width: 100%;
    margin-bottom: 0.5rem;
}

.mt-1 {
    margin-top: 1rem;
}

.location-container {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.location-container input[type="text"] {
    flex: 1;
}

.location-container .btn {
    white-space: nowrap;
    min-width: auto;
}

.field-help-text {
    font-size: 0.75rem;
    color: #666;
    margin-top: 0.25rem;
}
