/**
 * DeMV Platform - Featured Vehicles Styling
 * Specific styling for the featured vehicles section on the home page
 * All animations and transitions have been removed to prevent conflicts
 */

/* Featured cars section styles */
.featured-cars {
    padding: 80px 0;
    background-color: var(--dark);
    position: relative;
}

.featured-cars::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(0, 255, 204, 0.05) 0%, transparent 20%),
        radial-gradient(circle at 90% 50%, rgba(108, 99, 255, 0.05) 0%, transparent 25%),
        linear-gradient(to right, rgba(0, 255, 204, 0.03) 0%, transparent 100%);
    z-index: 0;
}

.featured-cars .car-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
    position: relative;
    z-index: 1;
}

/* Car Card Link - Makes entire card clickable */
#featured-vehicles-container .car-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  height: 100%;
  width: 100%;

  position: relative;
  overflow: hidden;
}

#featured-vehicles-container .car-card-link:hover {
  transform: translateY(-5px);
  text-decoration: none;
}

#featured-vehicles-container .car-card-link:focus {
  outline: none;
  text-decoration: none;
}

#featured-vehicles-container .car-card-link .car-card {
  height: 100%;
  border: 1px solid rgba(108, 99, 255, 0.2);

}

#featured-vehicles-container .car-card-link:hover .car-card {
  border-color: var(--primary);
  box-shadow: 0 8px 30px rgba(0, 255, 204, 0.15), 0 0 15px rgba(108, 99, 255, 0.2);
}

/* Cyberpunk glow effect on hover */
#featured-vehicles-container .car-card-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, rgba(0, 255, 204, 0), rgba(0, 255, 204, 0.1), rgba(0, 255, 204, 0));
  background-size: 200% 200%;
  z-index: 1;
  opacity: 0;

  pointer-events: none;
}

#featured-vehicles-container .car-card-link:hover::before {
  opacity: 1;

}

/* Glow pulse animation removed to reduce CPU usage */

/* Enhanced Car Card Styling */
#featured-vehicles-container .car-card {
    position: relative;
    background: rgba(18, 18, 24, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(108, 99, 255, 0.2);
    cursor: pointer;

    display: flex;
    flex-direction: column;
    min-height: 400px;
}

#featured-vehicles-container .car-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
    opacity: 0.6;
}

#featured-vehicles-container .car-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 30%;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--primary) 100%);
    opacity: 0.4;
}

#featured-vehicles-container .car-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5), 0 0 15px rgba(0, 255, 204, 0.2);
    border-color: rgba(0, 255, 204, 0.4);
}

#featured-vehicles-container .car-card:hover::before {
    opacity: 1;
}

#featured-vehicles-container .car-card:hover::after {
    width: 70%;
    opacity: 0.8;
}

#featured-vehicles-container .car-card .car-image {
    height: 220px;
    overflow: hidden;
}

#featured-vehicles-container .car-card .car-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;

}

#featured-vehicles-container .car-card-link:hover .car-image img {
    transform: scale(1.05);
}

#featured-vehicles-container .car-card .car-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 20px;
}

#featured-vehicles-container .car-card .car-features {
    margin-top: auto;
    padding-top: 15px;
}

/* Enhanced Image Container - adjusted for removal of overlay */
#featured-vehicles-container .car-image-container {
    position: relative;
    height: 200px;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
    border-bottom: 1px solid rgba(0, 255, 204, 0.2);
}

#featured-vehicles-container .car-image {
    width: 100%;
    height: 100%;
    object-fit: cover;

}

#featured-vehicles-container .car-card:hover .car-image {
    transform: scale(1.05);
}

/* Remove the overlay styles since they're no longer needed */
#featured-vehicles-container .car-overlay,
#featured-vehicles-container .car-price,
#featured-vehicles-container .car-status {
    display: none;
}

/* Enhanced Details Section - adjusted to compensate for removed elements */
#featured-vehicles-container .car-details {
    padding: 20px;
    position: relative;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    background: linear-gradient(to bottom, rgba(18, 18, 24, 0.9), rgba(13, 13, 22, 0.95));
}

#featured-vehicles-container .car-title {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 20px;
    margin: 0 0 12px 0; /* Increased margin to compensate for removed price */
    color: #ffffff;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

#featured-vehicles-container .car-description {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0 0 20px 0; /* Increased margin for better spacing */
    display: flex;
    align-items: center;
    gap: 8px;
}

#featured-vehicles-container .car-description::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 4px;
    background: var(--primary);
    border-radius: 50%;
}

/* Enhanced Features Section */
#featured-vehicles-container .car-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
}

#featured-vehicles-container .car-feature {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    background: rgba(0, 0, 0, 0.3);
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid rgba(0, 255, 204, 0.1);
}

#featured-vehicles-container .car-feature i {
    color: var(--primary);
    font-size: 10px;
}

/* Clickable Indicator */
#featured-vehicles-container .car-details::after {
    content: '\f054'; /* Font Awesome arrow icon */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    bottom: 15px;
    right: 15px;
    color: var(--primary);
    font-size: 14px;
    opacity: 0;

    background: rgba(0, 0, 0, 0.4);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0, 255, 204, 0.3);
}

#featured-vehicles-container .car-card:hover .car-details::after {
    opacity: 1;
    transform: translateX(5px);
}

/* Vehicle status badges */
#featured-vehicles-container .vehicle-status-badge {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
}

#featured-vehicles-container .status-available {
    background: linear-gradient(90deg, #00e676 0%, #00c853 100%);
    color: #121212;
}

#featured-vehicles-container .status-rental-available {
    background: linear-gradient(90deg, #00ccff 0%, #00b0ff 100%);
    color: #121212;
}

#featured-vehicles-container .status-rental-only {
    background: linear-gradient(90deg, #6c63ff 0%, #5c52f7 100%);
    color: #f0f0f0;
}

#featured-vehicles-container .status-for-sale-rental {
    background: linear-gradient(90deg, #00e676 0%, #6c63ff 100%);
    color: #121212;
}

#featured-vehicles-container .status-for-sale-only {
    background: linear-gradient(90deg, #00e676 0%, #00c853 100%);
    color: #121212;
}

#featured-vehicles-container .for-sale-rental {
    background: linear-gradient(90deg, #00e676 0%, #6c63ff 100%);
    color: #121212;
}

#featured-vehicles-container .for-sale-only {
    background: linear-gradient(90deg, #00e676 0%, #00c853 100%);
    color: #121212;
}

#featured-vehicles-container .rental-only {
    background: linear-gradient(90deg, #6c63ff 0%, #5c52f7 100%);
    color: #f0f0f0;
}

/* Vehicle tags container */
#featured-vehicles-container .vehicle-tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 15px;
}

#featured-vehicles-container .vehicle-tag {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    text-transform: capitalize;
    background: rgba(108, 99, 255, 0.1);
    color: rgba(240, 240, 240, 0.9);
    border: 1px solid rgba(108, 99, 255, 0.3);
}

#featured-vehicles-container .vehicle-tag:hover {
    background: rgba(108, 99, 255, 0.2);
}

#featured-vehicles-container .tag-electric {
    background: rgba(0, 255, 204, 0.1);
    border-color: rgba(0, 255, 204, 0.3);
}

#featured-vehicles-container .tag-electric:hover {
    background: rgba(0, 255, 204, 0.2);
}

#featured-vehicles-container .tag-hybrid {
    background: rgba(0, 200, 83, 0.1);
    border-color: rgba(0, 200, 83, 0.3);
}

#featured-vehicles-container .tag-hybrid:hover {
    background: rgba(0, 200, 83, 0.2);
}

#featured-vehicles-container .tag-luxury {
    background: rgba(255, 215, 0, 0.1);
    border-color: rgba(255, 215, 0, 0.3);
}

#featured-vehicles-container .tag-luxury:hover {
    background: rgba(255, 215, 0, 0.2);
}

#featured-vehicles-container .tag-sports {
    background: rgba(255, 87, 34, 0.1);
    border-color: rgba(255, 87, 34, 0.3);
}

#featured-vehicles-container .tag-sports:hover {
    background: rgba(255, 87, 34, 0.2);
}

#featured-vehicles-container .tag-verified {
    background: rgba(0, 176, 255, 0.1);
    border-color: rgba(0, 176, 255, 0.3);
}

#featured-vehicles-container .tag-verified:hover {
    background: rgba(0, 176, 255, 0.2);
}

#featured-vehicles-container .vehicle-type-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.6);
    color: var(--light);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    z-index: 2;
    border: 1px solid rgba(108, 99, 255, 0.3);
    backdrop-filter: blur(5px);
}

/* No vehicles message */
#featured-vehicles-container .no-vehicles {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    border: 1px solid rgba(108, 99, 255, 0.2);
    color: var(--light);
    font-size: 18px;
}

/* Blockchain tooltip */
#featured-vehicles-container .blockchain-tooltip {
    position: absolute;
    top: -30px;
    right: 0;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 10;
    pointer-events: none;
    border: 1px solid var(--primary);
    box-shadow: 0 0 10px rgba(0, 255, 204, 0.3);
}

#featured-vehicles-container .blockchain-tooltip::after {
    content: '';
    position: absolute;
    bottom: -5px;
    right: 10px;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid rgba(0, 0, 0, 0.8);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .featured-cars .car-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 20px;
    }
    
    #featured-vehicles-container .car-card-link {
        max-width: 100%;
    }
    
    #featured-vehicles-container .car-card {
        min-height: 350px;
    }
    
    #featured-vehicles-container .car-card .car-image img {
        height: 180px;
    }
}

@media (max-width: 480px) {
    .featured-cars .car-grid {
        grid-template-columns: 1fr;
    }
}
