/* KejaMarket Recently Added Section Styles */

/* Recently Added Container */
.recently-added-section {
  margin: 40px 0;
  padding: 0 20px;
}

.recently-added-header {
  text-align: center;
  margin-bottom: 32px;
}

.recently-added-title {
  font-size: 2rem;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 8px;
  background: linear-gradient(135deg, #059669, #10b981);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.recently-added-subtitle {
  font-size: 1rem;
  color: #64748b;
  margin-bottom: 24px;
}

/* Category Tabs */
.category-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}

.category-tab {
  background: #f8fafc;
  border: 2px solid #e2e8f0;
  border-radius: 24px;
  padding: 12px 20px;
  font-size: 0.9rem;
  font-weight: 700;
  color: #475569;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
  overflow: hidden;
}

.category-tab::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  transition: left 0.5s;
}

.category-tab:hover::before {
  left: 100%;
}

.category-tab:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.category-tab.active {
  background: linear-gradient(135deg, #059669, #10b981);
  border-color: #059669;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(5, 150, 105, 0.3);
}

/* Category Icons */
.category-tab .tab-icon {
  font-size: 1.1rem;
  animation: bounce 2s infinite;
}

.category-tab.active .tab-icon {
  animation: pulse 1.5s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-3px); }
  60% { transform: translateY(-2px); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

/* Property Grid */
.recently-added-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  margin-bottom: 32px;
}

/* Enhanced Property Card */
.recent-property-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  position: relative;
  border: 1px solid #f1f5f9;
}

.recent-property-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.15);
  border-color: #059669;
}

/* Category Badge on Card */
.category-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 10;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  color: white;
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.category-badge.just-added {
  background: linear-gradient(135deg, #ef4444, #dc2626);
}

.category-badge.available-today {
  background: linear-gradient(135deg, #f59e0b, #d97706);
}

.category-badge.best-value {
  background: linear-gradient(135deg, #10b981, #059669);
}

.category-badge.verified-homes {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
}

/* Time Badge */
.time-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 10;
  background: rgba(0,0,0,0.7);
  color: white;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 600;
  backdrop-filter: blur(10px);
}

/* Property Image */
.recent-property-image {
  position: relative;
  height: 220px;
  background-size: cover;
  background-position: center;
  background-color: #f1f5f9;
}

.recent-property-image::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(transparent, rgba(0,0,0,0.3));
}

/* Property Info */
.recent-property-info {
  padding: 20px;
}

.recent-property-title {
  font-size: 1rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 8px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.recent-property-location {
  font-size: 0.85rem;
  color: #64748b;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.recent-property-price {
  font-size: 1.1rem;
  font-weight: 800;
  color: #059669;
  margin-bottom: 12px;
}

.recent-property-features {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
  font-size: 0.8rem;
  color: #64748b;
}

.recent-property-features span {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Property Actions */
.recent-property-actions {
  display: flex;
  gap: 8px;
}

.recent-action-btn {
  flex: 1;
  padding: 10px 16px;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  border: none;
}

.recent-action-primary {
  background: linear-gradient(135deg, #059669, #10b981);
  color: white;
}

.recent-action-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
}

.recent-action-secondary {
  background: #f8fafc;
  color: #475569;
  border: 1px solid #e2e8f0;
}

.recent-action-secondary:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

/* Load More Section */
.load-more-section {
  text-align: center;
  margin-top: 40px;
}

.load-more-btn {
  background: linear-gradient(135deg, #059669, #10b981);
  color: white;
  padding: 14px 32px;
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.load-more-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(5, 150, 105, 0.3);
}

.load-more-btn:active {
  transform: translateY(0);
}

/* Daily Return Message */
.daily-return-message {
  background: linear-gradient(135deg, #fef3c7, #fcd34d);
  border: 1px solid #f59e0b;
  border-radius: 16px;
  padding: 20px;
  margin: 32px 0;
  text-align: center;
}

.daily-return-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: #92400e;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.daily-return-text {
  font-size: 0.9rem;
  color: #78350f;
  line-height: 1.5;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: #64748b;
}

.empty-state-icon {
  font-size: 3rem;
  margin-bottom: 16px;
  opacity: 0.5;
}

.empty-state-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.empty-state-text {
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .recently-added-section {
    padding: 0 16px;
  }
  
  .recently-added-title {
    font-size: 1.6rem;
  }
  
  .category-tabs {
    gap: 8px;
  }
  
  .category-tab {
    padding: 10px 16px;
    font-size: 0.8rem;
  }
  
  .recently-added-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .recent-property-card {
    border-radius: 12px;
  }
  
  .recent-property-image {
    height: 200px;
  }
  
  .recent-property-info {
    padding: 16px;
  }
}

@media (max-width: 480px) {
  .category-tabs {
    flex-direction: column;
    align-items: center;
  }
  
  .category-tab {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }
  
  .recent-property-features {
    flex-direction: column;
    gap: 8px;
  }
  
  .recent-property-actions {
    flex-direction: column;
  }
}