/**
 * SMART ADS DEDICATED STYLES
 * 
 * Clase INDEPENDENTE pentru reclame și carousel
 * Nu depinde de classList sau CSS-ul paginilor
 * 
 * Prefixe:
 * - .smart-ad-* pentru carduri reclame
 * - .smart-carousel-* pentru carousel
 * - .smart-recommendations-* pentru recomandări (existing)
 */

/* ========================================
   SMART AD CARDS - CLASE DEDICATE
   ======================================== */

.smart-ad-card {
    background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%) !important;
    border: 2px solid #667eea !important;
    border-radius: 12px !important;
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15) !important;
    height: 100% !important;
    min-height: 340px !important;
}

.smart-ad-card:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 12px 24px rgba(102, 126, 234, 0.3) !important;
    border-color: #764ba2 !important;
}

.smart-ad-card::after {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 4px !important;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%) !important;
    z-index: 10 !important;
}

/* Badge Sponsorizat */
.smart-ad-badge {
    position: absolute !important;
    top: 12px !important;
    right: 12px !important;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
    padding: 6px 14px !important;
    border-radius: 20px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px !important;
    text-transform: uppercase !important;
    z-index: 20 !important;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4) !important;
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    animation: smart-pulse-badge 2s infinite !important;
}

.smart-ad-badge i {
    font-size: 12px !important;
}

@keyframes smart-pulse-badge {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 6px 16px rgba(102, 126, 234, 0.6);
    }
}

/* Link și imagine */
.smart-ad-link {
    text-decoration: none !important;
    color: inherit !important;
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
}

.smart-ad-image {
    position: relative !important;
    overflow: hidden !important;
    width: 100% !important;
    height: 200px !important;
    background: linear-gradient(135deg, #f0f1ff 0%, #e8e9ff 100%) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
}

.smart-ad-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    transition: transform 0.3s ease !important;
}

.smart-ad-card:hover .smart-ad-image img {
    transform: scale(1.05) !important;
}

.smart-ad-image::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%) !important;
    z-index: 5 !important;
    opacity: 0 !important;
    transition: opacity 0.3s ease !important;
}

.smart-ad-card:hover .smart-ad-image::before {
    opacity: 1 !important;
}

/* Conținut card */
.smart-ad-content {
    padding: 1rem !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0.75rem !important;
    flex-grow: 1 !important;
}

.smart-ad-title {
    margin: 0 !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    color: #1a202c !important;
    line-height: 1.4 !important;
}

.smart-ad-description {
    margin: 0 !important;
    font-size: 0.875rem !important;
    color: #4a5568 !important;
    line-height: 1.4 !important;
}

.smart-ad-footer {
    display: flex !important;
    gap: 0.5rem !important;
    margin-top: auto !important;
}

/* Button */
.smart-ad-btn,
.smart-ad-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    border: none !important;
    border-radius: 6px !important;
    color: white !important;
    font-weight: 600 !important;
    padding: 0.6rem 1rem !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.5rem !important;
    font-size: 0.875rem !important;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3) !important;
    transition: all 0.3s ease !important;
    flex-grow: 1 !important;
}

.smart-ad-btn:hover,
.smart-ad-btn-primary:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5) !important;
}

.smart-ad-btn:active,
.smart-ad-btn-primary:active {
    transform: translateY(0) !important;
}

/* ========================================
   SMART CAROUSEL - CLASE DEDICATE
   ======================================== */

.smart-carousel {
    width: 100% !important;
    padding: 2rem 0 !important;
    margin: 2rem 0 !important;
    background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%) !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.1) !important;
    overflow: hidden !important;
}

.smart-carousel-header {
    padding: 0 2rem !important;
    margin-bottom: 1.5rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
}

.smart-carousel-header h3 {
    margin: 0 !important;
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    color: #1a202c !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
}

.smart-carousel-header i {
    color: #ffd700 !important;
    font-size: 1.75rem !important;
    animation: smart-carousel-sparkle 2s ease-in-out infinite !important;
}

@keyframes smart-carousel-sparkle {
    0%, 100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
    25% {
        opacity: 0.7;
        transform: scale(1.2) rotate(10deg);
    }
    50% {
        opacity: 1;
        transform: scale(1) rotate(-10deg);
    }
    75% {
        opacity: 0.7;
        transform: scale(1.2) rotate(5deg);
    }
}

.smart-carousel-nav {
    display: flex !important;
    gap: 12px !important;
}

.smart-carousel-nav-btn {
    background: rgba(255, 255, 255, 0.2) !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    color: #667eea !important;
    width: 48px !important;
    height: 48px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    backdrop-filter: blur(10px) !important;
    font-size: 1.2rem !important;
    font-weight: bold !important;
}

.smart-carousel-nav-btn:hover {
    background: rgba(102, 126, 234, 0.2) !important;
    border-color: #667eea !important;
    transform: scale(1.1) !important;
}

.smart-carousel-container {
    position: relative !important;
    overflow: hidden !important;
    z-index: 2 !important;
    padding: 0 2rem !important;
}

.smart-carousel-track {
    display: flex !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-behavior: smooth !important;
    gap: 2rem !important;
    padding-bottom: 1rem !important;
    min-width: 0 !important;
    flex-wrap: nowrap !important;
}

/* Scrollbar styling */
.smart-carousel-track::-webkit-scrollbar {
    height: 8px !important;
}

.smart-carousel-track::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1) !important;
    border-radius: 4px !important;
}

.smart-carousel-track::-webkit-scrollbar-thumb {
    background: rgba(102, 126, 234, 0.5) !important;
    border-radius: 4px !important;
}

.smart-carousel-track::-webkit-scrollbar-thumb:hover {
    background: rgba(102, 126, 234, 0.8) !important;
}

/* Carousel item cards */
.smart-carousel-item {
    background: white !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
    transition: all 0.3s ease !important;
    min-width: 280px !important;
    flex-shrink: 0 !important;
    border: 1px solid #e2e8f0 !important;
}

.smart-carousel-item:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.2) !important;
}

.smart-carousel-item img {
    width: 100% !important;
    height: 200px !important;
    object-fit: cover !important;
    display: block !important;
}

.smart-carousel-item-content {
    padding: 1rem !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0.5rem !important;
}

.smart-carousel-item-title {
    margin: 0 !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    color: #1a202c !important;
}

.smart-carousel-item-price {
    margin: 0 !important;
    font-size: 0.875rem !important;
    color: #667eea !important;
    font-weight: 600 !important;
}

/* ========================================
   RESPONSIV
   ======================================== */

@media (max-width: 768px) {
    .smart-ad-card {
        min-height: 320px !important;
    }
    
    .smart-ad-image {
        height: 180px !important;
    }
    
    .smart-carousel {
        padding: 1.5rem 0 !important;
        margin: 1.5rem 0 !important;
    }
    
    .smart-carousel-header {
        padding: 0 1rem !important;
        margin-bottom: 1rem !important;
    }
    
    .smart-carousel-header h3 {
        font-size: 1.25rem !important;
    }
    
    .smart-carousel-container {
        padding: 0 1rem !important;
    }
    
    .smart-carousel-track {
        gap: 1rem !important;
        padding-bottom: 0.5rem !important;
    }
    
    .smart-carousel-item {
        min-width: 240px !important;
    }
}

@media (max-width: 480px) {
    .smart-ad-card {
        min-height: 300px !important;
    }
    
    .smart-ad-image {
        height: 160px !important;
    }
    
    .smart-carousel-item {
        min-width: 200px !important;
    }
}
