:root {
  --primary-color: #8a2be2;
  --primary-color-rgb: 138, 43, 226;
  --secondary-color: #cf9fff;
  --background-color: #f8f9fa;
  --text-color: #333333;
  --light-color: #ffffff;
  --accent-color: #7a1dd2;
  --text-muted: #6c757d;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--background-color);
  color: var(--text-color);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../images/paw.png');
  background-size: 100px 100px;
  background-repeat: repeat;
  background-attachment: fixed;
  background-position: center;
  opacity: 0.05;
  filter: grayscale(100%);
  z-index: -1;
}

.navbar {
  background-color: var(--primary-color);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
  font-weight: bold;
  font-size: 1.5rem;
  color: var(--light-color) !important;
}

.nav-link {
  color: var(--light-color) !important;
  font-weight: 500;
}

.card {
  border-radius: 15px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  height: 100%;
}

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

.card-img-top {
  height: 200px;
  object-fit: cover;
}

/* Video container in cards */
.card-img-top.video-container {
  height: 200px;
  overflow: hidden;
  position: relative;
  background-color: #000;
}

.card-img-top.video-container video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-title {
  color: var(--primary-color);
  font-weight: bold;
}

.price-badge {
  background-color: var(--secondary-color);
  color: var(--text-color);
  font-weight: bold;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.9rem;
}

.rating-stars {
  color: var(--accent-color);
  margin-bottom: 0.5rem;
}

.detail-section {
  background-color: var(--light-color);
  border-radius: 15px;
  padding: 2rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.detail-header {
  margin-bottom: 1.5rem;
  border-bottom: 1px solid #eee;
  padding-bottom: 1rem;
}

.gallery-img {
  border-radius: 10px;
  transition: transform 0.3s ease;
  cursor: pointer;
  height: 200px;
  object-fit: cover;
}

.gallery-img:hover {
  transform: scale(1.03);
}

.info-icon {
  color: var(--secondary-color);
  margin-right: 0.5rem;
  font-size: 1.2rem;
}

.city-tag {
  background-color: var(--secondary-color);
  color: var(--text-color);
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.75rem;
  margin-left: 0.5rem;
}

.index-label {
  font-weight: 500;
  margin-right: 0.5rem;
}

.main-content {
  padding: 2rem 0;
  flex: 1;
}

footer {
  background-color: var(--primary-color);
  color: var(--light-color);
  padding: 1.5rem 0;
  width: 100%;
  margin-bottom: 0;
}

.footer-text {
  opacity: 0.8;
}

/* Media queries for responsive design */
@media (max-width: 767px) {
  .main-content {
    padding: 1rem 0;
  }

  .footer-text {
    font-size: 0.5rem;
  }

  footer {
    padding-bottom: 0;
    margin-bottom: 0;
  }

  footer .container {
    padding-bottom: 0;
    margin-bottom: 0;
  }
}

@media (max-width: 575px) {
  .main-content {
    padding: 0.5rem 0;
  }
}

/* Authentication styles */
.auth-container {
  max-width: 500px;
  margin: 50px auto;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(5px);
}

/* Responsive authentication styles */
@media (max-width: 767px) {
  .auth-container {
    max-width: 95%;
    margin: 10px auto;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }

  /* Reduce spacing for mobile */
  .auth-container .card {
    margin-bottom: 1rem !important;
  }

  .auth-container .card-body {
    padding: 1.5rem !important;
  }

  /* Make form elements more mobile-friendly */
  .auth-container .form-control {
    font-size: 16px; /* Prevents zoom on iOS */
    padding: 0.75rem;
  }

  .auth-container .btn {
    padding: 0.75rem 1rem;
    font-size: 1rem;
  }

  /* Adjust title spacing */
  .auth-container .text-center.mb-4 {
    margin-bottom: 1.5rem !important;
  }

  .auth-container .text-center.mb-4 h2 {
    font-size: 1.5rem;
  }

  .auth-container .text-center.mb-4 p {
    font-size: 0.9rem;
  }
}

@media (max-width: 575px) {
  .auth-container {
    max-width: 98%;
    margin: 5px auto;
    padding: 10px;
    border-radius: 6px;
  }

  .auth-container .card-body {
    padding: 1rem !important;
  }

  .auth-container .text-center.mb-4 h2 {
    font-size: 1.3rem;
  }

  .auth-container .fs-4 {
    font-size: 1.1rem !important;
  }

  /* Improve touch targets for mobile */
  .auth-container .btn,
  .auth-container .form-control,
  .auth-container .input-group-text {
    min-height: 44px; /* Apple's recommended minimum touch target size */
  }

  /* Better spacing for small screens */
  .auth-container .input-group-text {
    padding: 0.75rem 0.5rem;
  }

  /* Mobile-friendly social login buttons */
  .auth-container .btn-outline-dark {
    padding: 0.75rem 1rem;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
  }

  /* Improve alert spacing on mobile */
  .auth-container .alert {
    margin-bottom: 1rem;
    padding: 0.75rem;
    font-size: 0.9rem;
  }
}

/* Landscape mobile optimization */
@media (max-width: 767px) and (orientation: landscape) {
  .auth-container {
    margin: 5px auto;
    padding: 10px;
  }

  .auth-container .text-center.mb-4 {
    margin-bottom: 1rem !important;
  }

  .auth-container .card-body {
    padding: 1rem !important;
  }
}

.messages {
  list-style: none;
  padding: 0;
}

.messages .success {
  color: #28a745;
}

.messages .error {
  color: #dc3545;
}

.messages .info {
  color: #17a2b8;
}

.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  transition: all 0.3s ease;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(138, 43, 226, 0.3);
}

a {
  color: var(--primary-color);
  transition: all 0.3s ease;
}

a:hover {
  color: var(--accent-color);
  text-decoration: none;
}

.form-control:focus {
  box-shadow: 0 0 0 0.25rem rgba(138, 43, 226, 0.25);
  border-color: var(--secondary-color);
}

.text-primary {
  color: var(--primary-color) !important;
}

.hover-lift {
  transition: all 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-3px);
}
