/* Fixed Homepage CSS - Exact match to PHP original */

/* Models Grid - Fixed Design */
.models-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 25px;
  margin-bottom: 50px;
}

.model-card {
  background-color: #161616;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.model-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 40px rgba(255, 0, 110, 0.3);
}

.model-media {
  position: relative;
  width: 100%;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  height: auto;
}

.model-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 10%;
  transition: opacity 0.3s ease;
  z-index: 2 !important;
  position: relative;
}

.model-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.3s ease;
  object-position: 50% 10%;
  z-index: 5 !important;
}

.model-card:hover .model-video {
  opacity: 0.9;
}

.model-card:hover .model-image {
  opacity: 0.1;
}

.model-badges {
  position: absolute;
  top: 15px;
  left: 15px;
  display: flex;
  gap: 10px;
  flex-direction: column;
  z-index: 30 !important;
}

.model-badges .badge {
  background-color: rgba(0, 0, 0, 0.8) !important;
  backdrop-filter: blur(10px);
  padding: 6px 12px !important;
  border-radius: 15px !important;
  font-size: 11px !important;
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
  color: white !important;
  font-weight: 600 !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5) !important;
  z-index: 10 !important;
  position: relative !important;
}

.model-badges .badge-v2 {
  background: linear-gradient(135deg, #6366f1, #8b5cf6) !important;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3) !important;
}

.model-badges .badge-new {
  background: linear-gradient(135deg, #ff006e, #ff4500) !important;
  box-shadow: 0 2px 8px rgba(255, 0, 110, 0.3) !important;
}

.model-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.8) 70%, transparent 100%);
  padding: 30px 20px 20px;
  z-index: 20 !important;
  pointer-events: none;
}

.model-name {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 5px;
  color: white !important;
  display: inline-block;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8) !important;
  z-index: 25 !important;
  position: relative;
}

.model-age {

  font-size: 18px;
  margin-left: 10px;
  display: inline-block;
  font-weight: 600;

  z-index: 25 !important;
  position: relative;
}

.model-description {
  color: #ffffff !important;
  font-size: 14px;
  line-height: 1.4;
  margin-top: 8px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8) !important;
  font-weight: 500;
  z-index: 25 !important;
  position: relative;
}

/* Override any conflicting styles */
.model-card .model-image,
.model-card .model-video {
  image-rendering: auto !important;
  -webkit-image-rendering: auto !important;
  -ms-interpolation-mode: auto !important;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .models-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
  }
  
  .model-name {
    font-size: 20px;
  }
  
  .model-age {
    font-size: 16px;
  }
  
  .model-description {
    font-size: 13px;
  }
}