/* Profile Page CSS - Replicating test site design */

/* Profile Hero Section */
.profile-hero {
  position: relative;
  height: 28rem;
  overflow: hidden;
}

.profile-hero img {
  width: 100%;
  height: 150%; /* Extra height for more visible parallax effect */
  object-fit: cover;
  object-position: center;
  transform: translateY(0) scale(1.1); /* Slight zoom for more visible effect */
  transition: transform 0.1s ease-out;
  will-change: transform;
}

.profile-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.1));
}

/* Profile Card */
.profile-card {
  position: relative;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border-radius: 1rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  margin-top: -5rem;
  z-index: 10;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Profile Card transparency states */
.profile-card.transparent {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-color: rgba(255, 255, 255, 0.2);
}

.profile-card.over-dark {
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-color: rgba(255, 255, 255, 0.2);
  color: white;
}

.profile-card.over-dark .profile-name,
.profile-card.over-dark .profile-meta,
.profile-card.over-dark .profile-description,
.profile-card.over-dark .profile-stats,
.profile-card.over-dark .profile-tags {
  color: white;
}

.profile-card.over-dark .profile-role {
  background-color: rgba(255, 255, 255, 0.2);
  color: white;
}

.profile-card.over-dark .profile-location {
  color: rgba(255, 255, 255, 0.8);
}

.profile-card-content {
  padding: 2rem;
}

.profile-header {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .profile-header {
    flex-direction: row;
    align-items: flex-start;
    gap: 2rem;
  }
}

/* Profile Avatar */
.profile-avatar {
  width: 8rem;
  height: 8rem;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid white;
  flex-shrink: 0;
}

/* Mobile Avatar - Center and increase size by 30% */
@media (max-width: 767.98px) {
  .profile-header {
    align-items: center;
    text-align: center;
  }
  
  .profile-avatar {
    width: 10.4rem;  /* 8rem * 1.3 = 10.4rem (30% increase) */
    height: 10.4rem; /* 8rem * 1.3 = 10.4rem (30% increase) */
    margin: 0 auto;  /* Center the avatar */
  }
}

@media (min-width: 768px) {
  .profile-avatar {
    width: 8rem;
    height: 8rem;
  }
}

/* Profile Info */
.profile-info {
  flex: 1;
  min-width: 0;
}

.profile-name {
  font-size: 1.875rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
  .profile-name {
    font-size: 2.25rem;
  }
}

.profile-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.profile-role {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
  background-color: #f3f4f6;
  color: #374151;
}

.profile-location {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  color: #6b7280;
  font-size: 0.875rem;
}

.profile-location svg {
  width: 1rem;
  height: 1rem;
}

.profile-details {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: #6b7280;
  font-size: 0.875rem;
}

/* Profile Actions */
.profile-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1rem;
}

@media (min-width: 768px) {
  .profile-actions {
    flex-direction: row;
    align-items: flex-start;
    margin-top: 0;
  }
}

.profile-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  white-space: nowrap;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.15s ease;
  cursor: pointer;
  border: none;
  text-decoration: none;
  height: 2.5rem;
  padding: 0.5rem 1rem;
}

.profile-button-primary {
  background-color: #d4af37;
  color: white;
}

.profile-button-primary:hover {
  background-color: #b8941f;
  transform: translateY(-1px);
}

.profile-button-secondary {
  border: 1px solid #d1d5db;
  background-color: white;
  color: #374151;
}

.profile-button-secondary:hover {
  background-color: #f9fafb;
  border-color: #9ca3af;
}

/* Profile Description */
.profile-description {
  color: #6b7280;
  margin-bottom: 1.5rem;
  max-width: 42rem;
  line-height: 1.6;
}

/* Profile Stats */
.profile-stats {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.profile-stat {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.875rem;
}

.profile-stat svg {
  width: 1rem;
  height: 1rem;
}

.profile-stat strong {
  font-weight: 600;
  color: #1a1a1a;
}

/* Profile Tags */
.profile-tags {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.profile-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
  border: 1px solid #e5e7eb;
  color: #374151;
}

/* Role Tags */
.profile-tag-user {
  background-color: #f3f4f6;
  border-color: #d1d5db;
  color: #374151;
}

.profile-tag-photographer {
  background-color: #dbeafe;
  border-color: #3b82f6;
  color: #1e40af;
  font-weight: 600;
}

.profile-tag-model {
  background-color: #fce7f3;
  border-color: #ec4899;
  color: #be185d;
  font-weight: 600;
}

.profile-tag-premium {
  background-color: #fef3c7;
  border-color: #f59e0b;
  color: #d97706;
  font-weight: 600;
}

.profile-tag-admin {
  background-color: #fef2f2;
  border-color: #ef4444;
  color: #dc2626;
  font-weight: 600;
}

.profile-tag-super-admin {
  background-color: #f3e8ff;
  border-color: #8b5cf6;
  color: #7c3aed;
  font-weight: 700;
  box-shadow: 0 2px 4px rgba(139, 92, 246, 0.2);
}

/* Profile Social */
.profile-social {
  display: flex;
  gap: 0.75rem;
}

.profile-social a {
  color: #6b7280;
  transition: color 0.15s ease;
}

.profile-social a:hover {
  color: #d4af37;
}

.profile-social svg {
  width: 1.25rem;
  height: 1.25rem;
}

/* Photo Gallery */
.photo-gallery {
  padding: 3rem 0;
}

.photo-gallery h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: #1a1a1a;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 1rem;
}

@media (min-width: 768px) {
  .photo-grid {
    grid-template-columns: repeat(4, 1fr) !important;
  }
}

@media (min-width: 1024px) {
  .photo-grid {
    grid-template-columns: repeat(4, 1fr) !important;
  }
}

.photo-item {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 0.5rem;
  overflow: hidden;
  background: white;
  border: 1px solid #e5e7eb;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  transition: none;
  cursor: pointer;
}

.photo-item:hover {
  transform: none;
  box-shadow: none;
}

.photo-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background-color: #f8f9fa;
  transition: none;
}

.photo-item:hover img {
  transform: none;
}

.photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent 50%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.photo-item:hover .photo-overlay {
  opacity: 1;
}

.photo-info {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  color: white;
  z-index: 2;
}

.photo-title {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.photo-stats {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
}

.photo-stat {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.photo-stat svg {
  width: 0.75rem;
  height: 0.75rem;
}

/* Load More Button */
.load-more {
  text-align: center;
  margin-top: 2rem;
}

.load-more button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.15s ease;
  cursor: pointer;
  height: 2.75rem;
  padding: 0.75rem 2rem;
  border: 1px solid #d1d5db;
  background-color: white;
  color: #374151;
}

.load-more button:hover {
  background-color: #f9fafb;
  border-color: #9ca3af;
}

.load-more button:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

/* Container */
.container {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .container {
    max-width: 640px;
  }
}

@media (min-width: 768px) {
  .container {
    max-width: 768px;
  }
}

@media (min-width: 1024px) {
  .container {
    max-width: 1024px;
  }
}

@media (min-width: 1280px) {
  .container {
    max-width: 1280px;
  }
}

/* Utility Classes */
.min-h-screen {
  min-height: 100vh;
}

.bg-background {
  background-color: black !important;
}

.relative {
  position: relative;
}

.absolute {
  position: absolute;
}

.inset-0 {
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

.w-full {
  width: 100%;
}

.h-full {
  height: 100%;
}

.object-cover {
  object-fit: contain;
  background-color: #f8f9fa;
}

.object-center {
  object-position: center;
}

.rounded-lg {
  border-radius: 0.5rem;
}

.shadow-lg {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.p-6 {
  padding: 1.5rem;
}

.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.items-start {
  align-items: flex-start;
}

.gap-6 {
  gap: 1.5rem;
}

.flex-1 {
  flex: 1 1 0%;
}

.text-2xl {
  font-size: 1.5rem;
  line-height: 2rem;
}

.text-3xl {
  font-size: 1.875rem;
  line-height: 2.25rem;
}

.font-bold {
  font-weight: 700;
}

.mb-2 {
  margin-bottom: 0.5rem;
}

.mb-4 {
  margin-bottom: 1rem;
}

.mb-6 {
  margin-bottom: 1.5rem;
}

.mt-8 {
  margin-top: 2rem;
}

.text-gray-600 {
  color: #6b7280;
}

.text-sm {
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.text-lg {
  font-size: 1.125rem;
  line-height: 1.75rem;
}

.font-semibold {
  font-weight: 600;
}

.font-medium {
  font-weight: 500;
}

.inline-flex {
  display: inline-flex;
}

.items-center {
  align-items: center;
}

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

.gap-1 {
  gap: 0.25rem;
}

.gap-2 {
  gap: 0.5rem;
}

.gap-4 {
  gap: 1rem;
}

.px-2 {
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

.py-1 {
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
}

.rounded-full {
  border-radius: 9999px;
}

.text-xs {
  font-size: 0.75rem;
  line-height: 1rem;
}

.bg-secondary {
  background-color: #f3f4f6;
}

.text-secondary-foreground {
  color: #374151;
}

.border {
  border-width: 1px;
}

.border-border {
  border-color: #e5e7eb;
}

.h-4 {
  height: 1rem;
}

.w-4 {
  width: 1rem;
}

.h-32 {
  height: 8rem;
}

.w-32 {
  width: 8rem;
}

.rounded-full {
  border-radius: 9999px;
}

.border-4 {
  border-width: 4px;
}

.border-background {
  border-color: #ffffff;
}

.flex-wrap {
  flex-wrap: wrap;
}

.h-11 {
  height: 2.75rem;
}

.px-8 {
  padding-left: 2rem;
  padding-right: 2rem;
}

.bg-black\/20 {
  background-color: rgba(0, 0, 0, 0.2);
}

.h-96 {
  height: 24rem;
}

.h-\[28rem\] {
  height: 28rem;
}

.-mt-20 {
  margin-top: -5rem;
}

.pb-8 {
  padding-bottom: 2rem;
}

/* Responsive Design */
@media (min-width: 768px) {
  .md\:flex-row {
    flex-direction: row;
  }
  
  .md\:items-start {
    align-items: flex-start;
  }
  
  .md\:justify-between {
    justify-content: space-between;
  }
  
  .md\:text-3xl {
    font-size: 1.875rem;
    line-height: 2.25rem;
  }
}
