/* ============================================================================
   PETS PAGE STYLES
   ============================================================================ */


/* ============================================================================
   Pet Grid Layout
   ============================================================================ */

.pet-details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 1.5rem;
  padding: 1rem;
}

/* ============================================================================
   Pet Cards
   ============================================================================ */

.pet-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--card-radius);
  padding: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(var(--frost-blur));
}

.pet-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--section-shadow);
  border-color: var(--accent);
}

/* ============================================================================
   Pet Header
   ============================================================================ */

.pet-header-row {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.pet-image-card {
  position: relative;
  flex-shrink: 0;
}

.pet-image {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--glass-border);
  background: var(--bg-secondary);
}

.pet-header-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.pet-name-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.pet-name-big {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.pet-status-badge {
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pet-status-badge.active {
  background: #10b981;
  color: white;
}

.pet-status-badge.stored {
  background: #f59e0b;
  color: white;
}

.pet-status-badge.retired {
  background: #6b7280;
  color: white;
}

.pet-status-badge.for_sale {
  background: #ef4444;
  color: white;
}

.pet-type-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, #1f5d50, #2d7a4d);
  border-radius: 0.5rem;
  color: white;
  font-size: 0.9rem;
  font-weight: 600;
}

.pet-type-bar i {
  font-size: 1rem;
}

.pet-owner-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pet-owner-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* ============================================================================
   Pet Sections
   ============================================================================ */

.pet-section {
  margin-bottom: 1.5rem;
}

.pet-section-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.pet-section-label i {
  color: var(--accent);
  font-size: 1rem;
}

.pet-detail-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.pet-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--glass-divider);
}

.pet-detail-row:last-child {
  border-bottom: none;
}

.pet-detail-row strong {
  color: var(--text-secondary);
  font-weight: 600;
}

.pet-detail-row span {
  color: var(--text-primary);
  font-weight: 500;
}

/* ============================================================================
   Pet Storage
   ============================================================================ */

.pet-storage-details {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.pet-storage-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem;
  background: var(--bg-secondary);
  border-radius: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.pet-storage-info i {
  color: var(--accent);
}

/* ============================================================================
   Pet Rolls
   ============================================================================ */

.pet-rolls-details {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.pet-rolls-section {
  margin-bottom: 1rem;
}

.pet-rolls-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.pet-roll-tag {
  padding: 0.25rem 0.75rem;
  background: var(--accent);
  color: white;
  border-radius: 1rem;
  font-size: 0.8rem;
  font-weight: 600;
}

.pet-last-roll {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem;
  background: var(--bg-secondary);
  border-radius: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.pet-last-roll i {
  color: var(--accent);
}



/* ============================================================================
   Pet Tags
   ============================================================================ */

.pet-tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: var(--accent);
  color: white;
  border-radius: 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  margin: 0.125rem;
}

/* ============================================================================
   Results Info
   ============================================================================ */

.pet-results-info {
  text-align: center;
  margin-bottom: 1rem;
  padding: 1rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--card-radius);
  backdrop-filter: blur(var(--frost-blur));
}

.pet-results-info p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* ============================================================================
   Loading States
   ============================================================================ */

.pet-loading {
  text-align: center;
  padding: 3rem;
  color: var(--text-secondary);
  font-size: 1.1rem;
}

/* ============================================================================
   Modern Card Styles (Consistent with Items/Monsters)
   ============================================================================ */

.modern-pet-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  position: relative;
}

.modern-pet-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
  border-color: var(--accent);
}

.modern-pet-header {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.modern-pet-image {
  width: 80px;
  height: 80px;
  border-radius: 12px;
  object-fit: cover;
  border: 3px solid var(--glass-border);
  background: var(--bg-secondary);
  transition: transform 0.3s ease;
}

.modern-pet-card:hover .modern-pet-image {
  transform: scale(1.05);
}

.modern-pet-header-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.modern-pet-section {
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.modern-pet-section-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.modern-pet-section-label i {
  color: var(--accent);
  font-size: 1.1rem;
}

.modern-pet-detail-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.modern-pet-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.modern-pet-detail-row strong {
  color: var(--text-secondary);
  font-weight: 600;
}

.modern-pet-detail-row span {
  color: var(--text-primary);
  font-weight: 500;
}

/* ============================================================================
   Animation Enhancements
   ============================================================================ */

@keyframes petCardFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.pet-card {
  animation: petCardFadeIn 0.6s ease-out;
}

.pet-card:nth-child(1) { animation-delay: 0.1s; }
.pet-card:nth-child(2) { animation-delay: 0.2s; }
.pet-card:nth-child(3) { animation-delay: 0.3s; }
.pet-card:nth-child(4) { animation-delay: 0.4s; }
.pet-card:nth-child(5) { animation-delay: 0.5s; }
.pet-card:nth-child(6) { animation-delay: 0.6s; }

/* ============================================================================
   Status Badge Enhancements
   ============================================================================ */

.pet-status-badge {
  position: relative;
  overflow: hidden;
}

.pet-status-badge::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;
}

.pet-status-badge:hover::before {
  left: 100%;
}

/* ============================================================================
   Type Bar Enhancements
   ============================================================================ */

.pet-type-bar {
  position: relative;
  overflow: hidden;
}

.pet-type-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.pet-card:hover .pet-type-bar::after {
  transform: translateX(100%);
} 

/* ==========================================================================
   MOBILE RESPONSIVE STYLES
   ========================================================================== */

@media (max-width: 1024px) {
  .pet-details-grid {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.25rem;
    padding: 0.75rem;
  }
  
  .pet-card,
  .modern-pet-card {
    padding: 1.25rem;
  }
  
  .pet-image,
  .modern-pet-image {
    width: 75px;
    height: 75px;
  }
  
  .pet-name-big {
    font-size: 1.3rem;
  }
  
  .pet-type-bar {
    font-size: 0.9rem;
    padding: 0.4rem 0.8rem;
  }
  
  .pet-type-bar i {
    font-size: 0.9rem;
  }
  
  .pet-owner-label {
    font-size: 0.85rem;
  }
}

@media (max-width: 768px) {
  /* Pet Grid Mobile */
  .pet-details-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 0.5rem;
    margin-bottom: 1rem;
  }
  
  /* Pet Card Mobile */
  .pet-card,
  .modern-pet-card {
    padding: 1rem;
  }
  
  /* Pet Header Row Mobile */
  .pet-header-row,
  .modern-pet-header {
    gap: 0.75rem;
    margin-bottom: 1rem;
  }
  
  /* Pet Image Mobile */
  .pet-image,
  .modern-pet-image {
    width: 65px;
    height: 65px;
  }
  
  /* Pet Header Info Mobile */
  .pet-header-info,
  .modern-pet-header-info {
    gap: 0.5rem;
  }
  
  /* Pet Name Row Mobile */
  .pet-name-row {
    gap: 0.5rem;
    flex-wrap: wrap;
  }
  
  .pet-name-big {
    font-size: 1.1rem;
  }
  
  /* Pet Status Badge Mobile */
  .pet-status-badge {
    font-size: 0.7rem;
    padding: 0.15rem 0.5rem;
  }
  
  /* Pet Type Bar Mobile */
  .pet-type-bar {
    font-size: 0.8rem;
    padding: 0.3rem 0.7rem;
    gap: 0.4rem;
  }
  
  .pet-type-bar i {
    font-size: 0.8rem;
  }
  
  /* Pet Owner Row Mobile */
  .pet-owner-row {
    gap: 0.4rem;
  }
  
  .pet-owner-label {
    font-size: 0.75rem;
  }
  
  /* Pet Section Mobile */
  .pet-section,
  .modern-pet-section {
    margin-bottom: 1rem;
  }
  
  .pet-section-label,
  .modern-pet-section-label {
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
  }
  
  .pet-section-label i,
  .modern-pet-section-label i {
    font-size: 0.9rem;
  }
  
  /* Pet Detail List Mobile */
  .pet-detail-list,
  .modern-pet-detail-list {
    gap: 0.5rem;
  }
  
  /* Pet Detail Row Mobile */
  .pet-detail-row,
  .modern-pet-detail-row {
    padding: 0.5rem 0.75rem;
  }
  
  .pet-detail-row strong,
  .modern-pet-detail-row strong {
    font-size: 0.8rem;
  }
  
  .pet-detail-row span,
  .modern-pet-detail-row span {
    font-size: 0.85rem;
  }
  
  /* Pet Storage Details Mobile */
  .pet-storage-details {
    gap: 0.5rem;
  }
  
  .pet-storage-info {
    font-size: 0.8rem;
    padding: 0.5rem 0.75rem;
  }
  
  .pet-storage-info i {
    font-size: 0.75rem;
  }
  
  /* Pet Rolls Details Mobile */
  .pet-rolls-details {
    gap: 0.75rem;
  }
  
  .pet-rolls-section {
    margin-bottom: 0.75rem;
  }
  
  .pet-rolls-list {
    gap: 0.4rem;
  }
  
  .pet-roll-tag {
    font-size: 0.75rem;
    padding: 0.2rem 0.5rem;
  }
  
  .pet-last-roll {
    font-size: 0.8rem;
    padding: 0.5rem 0.75rem;
  }
  
  .pet-last-roll i {
    font-size: 0.75rem;
  }
  
  /* Pet Tag Mobile */
  .pet-tag {
    font-size: 0.75rem;
    padding: 0.2rem 0.5rem;
  }
  
  /* Pet Results Info Mobile */
  .pet-results-info {
    margin: 0.75rem 0.5rem;
    padding: 0.75rem 1rem;
  }
  
  .pet-results-info p {
    font-size: 0.85rem;
  }
  
  /* Pet Loading Mobile */
  .pet-loading {
    padding: 2rem 1rem;
    font-size: 1rem;
  }
}

@media (max-width: 640px) {
  /* Pet Grid Extra Small */
  .pet-details-grid {
    gap: 0.75rem;
    padding: 0.25rem;
  }
  
  /* Pet Card Extra Small */
  .pet-card,
  .modern-pet-card {
    padding: 0.75rem;
  }
  
  /* Pet Header Row Extra Small */
  .pet-header-row,
  .modern-pet-header {
    gap: 0.6rem;
    margin-bottom: 0.75rem;
  }
  
  /* Pet Image Extra Small */
  .pet-image,
  .modern-pet-image {
    width: 55px;
    height: 55px;
  }
  
  /* Pet Header Info Extra Small */
  .pet-header-info,
  .modern-pet-header-info {
    gap: 0.4rem;
  }
  
  /* Pet Name Row Extra Small */
  .pet-name-row {
    gap: 0.4rem;
  }
  
  .pet-name-big {
    font-size: 1rem;
  }
  
  /* Pet Status Badge Extra Small */
  .pet-status-badge {
    font-size: 0.65rem;
    padding: 0.1rem 0.4rem;
  }
  
  /* Pet Type Bar Extra Small */
  .pet-type-bar {
    font-size: 0.75rem;
    padding: 0.25rem 0.6rem;
    gap: 0.3rem;
  }
  
  .pet-type-bar i {
    font-size: 0.75rem;
  }
  
  /* Pet Owner Row Extra Small */
  .pet-owner-row {
    gap: 0.3rem;
  }
  
  .pet-owner-label {
    font-size: 0.7rem;
  }
  
  /* Pet Section Extra Small */
  .pet-section,
  .modern-pet-section {
    margin-bottom: 0.75rem;
  }
  
  .pet-section-label,
  .modern-pet-section-label {
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
  }
  
  .pet-section-label i,
  .modern-pet-section-label i {
    font-size: 0.8rem;
  }
  
  /* Pet Detail List Extra Small */
  .pet-detail-list,
  .modern-pet-detail-list {
    gap: 0.4rem;
  }
  
  /* Pet Detail Row Extra Small */
  .pet-detail-row,
  .modern-pet-detail-row {
    padding: 0.4rem 0.6rem;
  }
  
  .pet-detail-row strong,
  .modern-pet-detail-row strong {
    font-size: 0.75rem;
  }
  
  .pet-detail-row span,
  .modern-pet-detail-row span {
    font-size: 0.8rem;
  }
  
  /* Pet Storage Details Extra Small */
  .pet-storage-details {
    gap: 0.4rem;
  }
  
  .pet-storage-info {
    font-size: 0.75rem;
    padding: 0.4rem 0.6rem;
  }
  
  .pet-storage-info i {
    font-size: 0.7rem;
  }
  
  /* Pet Rolls Details Extra Small */
  .pet-rolls-details {
    gap: 0.6rem;
  }
  
  .pet-rolls-section {
    margin-bottom: 0.6rem;
  }
  
  .pet-rolls-list {
    gap: 0.3rem;
  }
  
  .pet-roll-tag {
    font-size: 0.7rem;
    padding: 0.15rem 0.4rem;
  }
  
  .pet-last-roll {
    font-size: 0.75rem;
    padding: 0.4rem 0.6rem;
  }
  
  .pet-last-roll i {
    font-size: 0.7rem;
  }
  
  /* Pet Tag Extra Small */
  .pet-tag {
    font-size: 0.7rem;
    padding: 0.15rem 0.4rem;
  }
  
  /* Pet Results Info Extra Small */
  .pet-results-info {
    margin: 0.5rem 0.25rem;
    padding: 0.6rem 0.75rem;
  }
  
  .pet-results-info p {
    font-size: 0.8rem;
  }
  
  /* Pet Loading Extra Small */
  .pet-loading {
    padding: 1.5rem 0.75rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  /* Pet Grid Small */
  .pet-details-grid {
    gap: 0.5rem;
    padding: 0.25rem;
  }
  
  /* Pet Card Small */
  .pet-card,
  .modern-pet-card {
    padding: 0.5rem;
  }
  
  /* Pet Header Row Small */
  .pet-header-row,
  .modern-pet-header {
    gap: 0.5rem;
    margin-bottom: 0.5rem;
  }
  
  /* Pet Image Small */
  .pet-image,
  .modern-pet-image {
    width: 45px;
    height: 45px;
  }
  
  /* Pet Header Info Small */
  .pet-header-info,
  .modern-pet-header-info {
    gap: 0.3rem;
  }
  
  /* Pet Name Row Small */
  .pet-name-row {
    gap: 0.3rem;
  }
  
  .pet-name-big {
    font-size: 0.9rem;
  }
  
  /* Pet Status Badge Small */
  .pet-status-badge {
    font-size: 0.6rem;
    padding: 0.08rem 0.3rem;
  }
  
  /* Pet Type Bar Small */
  .pet-type-bar {
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    gap: 0.25rem;
  }
  
  .pet-type-bar i {
    font-size: 0.7rem;
  }
  
  /* Pet Owner Row Small */
  .pet-owner-row {
    gap: 0.25rem;
  }
  
  .pet-owner-label {
    font-size: 0.65rem;
  }
  
  /* Pet Section Small */
  .pet-section,
  .modern-pet-section {
    margin-bottom: 0.5rem;
  }
  
  .pet-section-label,
  .modern-pet-section-label {
    font-size: 0.75rem;
    margin-bottom: 0.4rem;
  }
  
  .pet-section-label i,
  .modern-pet-section-label i {
    font-size: 0.75rem;
  }
  
  /* Pet Detail List Small */
  .pet-detail-list,
  .modern-pet-detail-list {
    gap: 0.3rem;
  }
  
  /* Pet Detail Row Small */
  .pet-detail-row,
  .modern-pet-detail-row {
    padding: 0.3rem 0.5rem;
  }
  
  .pet-detail-row strong,
  .modern-pet-detail-row strong {
    font-size: 0.7rem;
  }
  
  .pet-detail-row span,
  .modern-pet-detail-row span {
    font-size: 0.75rem;
  }
  
  /* Pet Storage Details Small */
  .pet-storage-details {
    gap: 0.3rem;
  }
  
  .pet-storage-info {
    font-size: 0.7rem;
    padding: 0.3rem 0.5rem;
  }
  
  .pet-storage-info i {
    font-size: 0.65rem;
  }
  
  /* Pet Rolls Details Small */
  .pet-rolls-details {
    gap: 0.5rem;
  }
  
  .pet-rolls-section {
    margin-bottom: 0.5rem;
  }
  
  .pet-rolls-list {
    gap: 0.25rem;
  }
  
  .pet-roll-tag {
    font-size: 0.65rem;
    padding: 0.1rem 0.3rem;
  }
  
  .pet-last-roll {
    font-size: 0.7rem;
    padding: 0.3rem 0.5rem;
  }
  
  .pet-last-roll i {
    font-size: 0.65rem;
  }
  
  /* Pet Tag Small */
  .pet-tag {
    font-size: 0.65rem;
    padding: 0.1rem 0.3rem;
  }
  
  /* Pet Results Info Small */
  .pet-results-info {
    margin: 0.4rem 0.25rem;
    padding: 0.5rem 0.6rem;
  }
  
  .pet-results-info p {
    font-size: 0.75rem;
  }
  
  /* Pet Loading Small */
  .pet-loading {
    padding: 1.25rem 0.5rem;
    font-size: 0.8rem;
  }
}

/* Touch-friendly interactions */
@media (hover: none) and (pointer: coarse) {
  .pet-card,
  .modern-pet-card {
    min-height: 60px;
  }
  
  .pet-card:active,
  .modern-pet-card:active {
    transform: scale(0.98);
    transition: transform 0.1s ease;
  }
  
  .pet-status-badge:active {
    transform: scale(0.95);
  }
  
  .pet-type-bar:active {
    background: rgba(45, 122, 77, 0.8);
    transform: scale(0.95);
  }
  
  .pet-tag:active,
  .pet-roll-tag:active {
    transform: scale(0.95);
  }
}

/* Landscape mobile optimizations */
@media (max-width: 768px) and (orientation: landscape) {
  .pet-details-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 0.75rem;
  }
  
  .pet-card,
  .modern-pet-card {
    padding: 0.75rem;
  }
  
  .pet-name-big {
    font-size: 1rem;
  }
  
  .pet-image,
  .modern-pet-image {
    width: 60px;
    height: 60px;
  }
  
  .pet-type-bar {
    font-size: 0.75rem;
    padding: 0.25rem 0.6rem;
  }
  
  .pet-type-bar i {
    font-size: 0.75rem;
  }
} 