* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Search Page Styles */
.searchPage {
  min-height: 100vh;
  background: linear-gradient(135deg, #fafafa 0%, #f1f5f9 100%);
  margin-left: 16rem;
  width: calc(100% - 16rem);
}

.searchContainer {
  padding: 1rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

/* Header Styles */
.header {
  text-align: center;
  margin-bottom: 1rem;
}

.headerTitle {
  margin-top: 1rem;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.8rem;
  font-style: italic;
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: #e986ac; /* dark rose */
  background-clip: text;
  text-shadow: 0 0 1px #b0306099, 0 0 18px #ff38b399;
}

.leaked {
  margin: 0;
  margin-bottom: 5px;
  font-style: italic;
  font-weight: 500;
  color: #e986ac; /* dark rose */
  background-clip: text;
  text-shadow: 0 0 1px #b0306099, 0 0 18px #ff38b399;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shine 3s linear infinite;
  letter-spacing: 1px;
  transition: transform 0.3s ease;
}

@keyframes shine {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 200% 50%;
  }
}

.headerSubtitle {
  color: #64748b;
  font-size: 1.125rem;
  font-family: Arial, Helvetica, sans-serif;
  margin-top: 18px;
}

/* Search Section Styles */
.searchSection {
  margin-bottom: 2rem;
}

.searchWrapper {
  display: flex;
  align-items: center;
  gap: 0;
  background: white;
  border: 2px solid #e2e8f0;
  border-radius: 1.5rem;
  padding: 0.375rem;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.searchWrapper:focus-within {
  border-color: #3b82f6;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15), 0 20px 40px -10px rgba(59, 130, 246, 0.2);
  transform: translateY(-1px);
}

.searchInputWrapper {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
}

.searchIcon {
  position: absolute;
  left: 1.25rem;
  width: 1.25rem;
  height: 1.25rem;
  color: #9ca3af;
  pointer-events: none;
  z-index: 1;
  transition: color 0.3s ease;
}

.searchWrapper:focus-within .searchIcon {
  color: #3b82f6;
}

.searchInput {
  width: 100%;
  padding: 1rem 1rem 1rem 3.5rem;
  border: none;
  border-radius: 1.25rem;
  font-size: 1rem;
  background: transparent;
  outline: none;
  color: #1e293b;
  font-weight: 500;
}

.searchInput::placeholder {
  color: #9ca3af;
  font-weight: 400;
}

.clearButton {
  position: absolute;
  right: 0.75rem;
  padding: 0.5rem;
  background: none;
  border: none;
  border-radius: 0.75rem;
  cursor: pointer;
  color: #6b7280;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.clearButton:hover {
  background: #f1f5f9;
  color: #374151;
  transform: scale(1.1);
}

.clearIcon {
  width: 1rem;
  height: 1rem;
}

.searchButton {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  color: white;
  border: none;
  border-radius: 1.125rem;
  cursor: pointer;
  font-size: 0.925rem;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  min-width: 120px;
  justify-content: center;
  box-shadow: 0 4px 14px 0 rgba(59, 130, 246, 0.3);
}

.searchButton::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.searchButton:hover:not(:disabled) {
  background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px 0 rgba(59, 130, 246, 0.4);
}

.searchButton:hover:not(:disabled)::before {
  left: 100%;
}

.searchButton:active:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px 0 rgba(59, 130, 246, 0.3);
}

.searchButton:disabled {
  background: linear-gradient(135deg, #94a3b8 0%, #64748b 100%);
  cursor: not-allowed;
  transform: none;
  box-shadow: 0 2px 8px 0 rgba(148, 163, 184, 0.2);
}

.searchButtonIcon {
  width: 1.125rem;
  height: 1.125rem;
  transition: transform 0.3s ease;
}

.searchButton:hover:not(:disabled) .searchButtonIcon {
  transform: scale(1.1);
}

.searchButtonSpinner {
  width: 1.125rem;
  height: 1.125rem;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top: 2px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Results Section */
.resultsSection {
  min-height: 400px;
}

.resultsContainer {
  background: white;
  border-radius: 1rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

.resultsHeader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid #e5e7eb;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.resultsTitle {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1e293b;
  margin: 0;
}

.resultsCount {
  color: #6b7280;
  font-size: 0.875rem;
  font-weight: 500;
}

.resultsList {
  max-height: 70vh;
  overflow-y: auto;
}

/* Search Result Item */
.searchResultItem {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid #f3f4f6;
  cursor: pointer;
  transition: all 0.2s ease;
  background: white;
  text-decoration: none;
  color: inherit;
}

.searchResultItem:hover {
  background: #f8fafc;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.searchResultItem:last-child {
  border-bottom: none;
}

.resultImageContainer {
  position: relative;
  flex-shrink: 0;
  width: 4rem;
  height: 4rem;
  border-radius: 0.75rem;
  overflow: hidden;
  background: #f1f5f9;
}

.resultImage {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.searchResultItem:hover .resultImage {
  transform: scale(1.05);
}

.imagePlaceholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
}

.resultContent {
  flex: 1;
  min-width: 0;
}

.resultHeader {
  display: flex;
  flex-direction: column;
  margin-bottom: 0.5rem;
}

.resultName {
  font-size: 1.125rem;
  font-weight: 600;
  color: #1e293b;
  margin: 0;
}

.photoCount {
  align-self: flex-start;
  background: linear-gradient(135deg, #8b5cf6 0%, #a855f7 100%);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.75rem;
  font-weight: 500;
  margin-top: 10px;
}

.resultDetails {
  display: flex;
  gap: 1rem;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}

.detailItem {
  color: #6b7280;
  font-size: 0.875rem;
  font-weight: 500;
}

.resultBio {
  color: #4b5563;
  font-size: 0.875rem;
  line-height: 1.5;
  margin: 0;
}

.resultAction {
  flex-shrink: 0;
  color: #9ca3af;
  transition: all 0.2s ease;
}

.searchResultItem:hover .resultAction {
  color: #3b82f6;
  transform: translateX(0.25rem);
}

.chevronIcon {
  width: 1.25rem;
  height: 1.25rem;
}

/* Loading States */
.loadingSearchItem {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid #f3f4f6;
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.loadingImageContainer {
  flex-shrink: 0;
  width: 4rem;
  height: 4rem;
  border-radius: 0.75rem;
  overflow: hidden;
}

.loadingImage {
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #f1f5f9 0%, #e2e8f0 50%, #f1f5f9 100%);
  background-size: 200% 100%;
  animation: shimmer 2s ease-in-out infinite;
}

.loadingContent {
  flex: 1;
  min-width: 0;
}

.loadingName {
  height: 1.5rem;
  width: 60%;
  background: linear-gradient(90deg, #f1f5f9 0%, #e2e8f0 50%, #f1f5f9 100%);
  background-size: 200% 100%;
  border-radius: 0.375rem;
  margin-bottom: 0.75rem;
  animation: shimmer 2s ease-in-out infinite;
}

.loadingDetails {
  display: flex;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.loadingDetail {
  height: 1rem;
  width: 4rem;
  background: linear-gradient(90deg, #f1f5f9 0%, #e2e8f0 50%, #f1f5f9 100%);
  background-size: 200% 100%;
  border-radius: 0.25rem;
  animation: shimmer 2s ease-in-out infinite;
}

.loadingBio {
  height: 1rem;
  width: 80%;
  background: linear-gradient(90deg, #f1f5f9 0%, #e2e8f0 50%, #f1f5f9 100%);
  background-size: 200% 100%;
  border-radius: 0.25rem;
  animation: shimmer 2s ease-in-out infinite;
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.8;
  }
}

/* State Components */
.emptyState, .errorState, .initialState {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 2rem;
  background: white;
  border-radius: 1rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.emptyIcon, .errorIcon, .initialIcon {
  color: #d1d5db;
  margin-bottom: 1rem;
}

.emptyState h3, .errorState h3, .initialState h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #374151;
  margin: 0 0 0.5rem 0;
}

.emptyState p, .errorState p, .initialState p {
  color: #6b7280;
  margin: 0 0 0.5rem 0;
  font-size: 1rem;
}

.emptySubtext {
  font-size: 0.875rem !important;
  margin-bottom: 1.5rem !important;
}

.searchTips {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0 0;
  color: #6b7280;
  font-size: 0.875rem;
  text-align: left;
}

.searchTips li {
  padding: 0.25rem 0;
  position: relative;
  padding-left: 1.5rem;
}

.searchTips li::before {
  content: "•";
  color: #3b82f6;
  font-weight: bold;
  position: absolute;
  left: 0;
}

/* Buttons */
.retryButton, .clearSearchButton {
  background: #3b82f6;
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 600;
  margin-top: 1.5rem;
  transition: all 0.2s ease;
  box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.25);
}

.retryButton:hover, .clearSearchButton:hover {
  background: #2563eb;
  transform: translateY(-1px);
  box-shadow: 0 8px 15px -3px rgba(59, 130, 246, 0.3);
}

.retryButton:focus, .clearSearchButton:focus {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}

.clearSearchButton {
  background: #6b7280;
  box-shadow: 0 4px 6px -1px rgba(107, 114, 128, 0.25);
}

.clearSearchButton:hover {
  background: #4b5563;
  box-shadow: 0 8px 15px -3px rgba(107, 114, 128, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
  .searchPage {
    margin-left: 0;
    width: 100%;
  }

  .searchContainer {
    padding: 1rem;
  }

  .header {
    margin-bottom: 2rem;
  }

  .headerTitle {
    font-size: 1.5rem;
  }

  .searchWrapper {
    padding: 0.25rem;
    flex-direction: column;
    gap: 0.5rem;
    border-radius: 1rem;
  }

  .searchInputWrapper {
    width: 100%;
  }

  .searchButton {
    width: 100%;
    justify-content: center;
    padding: 0.75rem 1rem;
    min-width: auto;
    font-size: 0.875rem;
    border-radius: 0.75rem;
  }

  .searchInput {
    padding: 0.875rem 0.875rem 0.875rem 3rem;
  }

  .resultsHeader {
    padding: 1rem 1.5rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .searchResultItem {
    padding: 1rem 1.5rem;
    gap: 0.75rem;
  }

  .resultImageContainer {
    width: 3rem;
    height: 3rem;
  }

  .resultHeader {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .resultDetails {
    gap: 0.75rem;
  }

  .emptyState, .errorState, .initialState {
    padding: 2rem 1rem;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .searchContainer {
    padding: 1.5rem;
  }
}
