/* ==============================================
   FEATURED ADS PROMOTION STYLES
   ============================================== */

.featured-ads-promotion {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.featured-ads-promotion:hover {
    box-shadow: 0 4px 25px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

.promote-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    border-radius: 8px !important;
    position: relative;
    overflow: hidden;
}

.promote-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 100px;
    height: 100px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.promote-banner::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 80px;
    height: 80px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.promote-banner .btn-light {
    background: rgba(255,255,255,0.95) !important;
    border: none !important;
    color: #667eea !important;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 6px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.promote-banner .btn-light:hover {
    background: #fff !important;
    transform: scale(1.05);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.featured-stats {
    background: #f8f9fa;
    border: 1px solid #e9ecef !important;
    border-radius: 8px !important;
    height: 100%;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stat-number {
    font-size: 1.25rem;
    font-weight: 600;
}

.stat-label {
    font-size: 0.875rem;
    color: #6c757d;
}

/* Responsive design */
@media (max-width: 768px) {
    .promote-banner {
        text-align: center !important;
    }
    
    .promote-banner .col-md-8,
    .promote-banner .col-md-4 {
        margin-bottom: 1rem;
    }
    
    .featured-stats {
        margin-top: 1rem;
    }
}

/* ==============================================
   IMPROVED FEATURED BUTTONS IN ADS LIST
   ============================================== */

.btn-featured {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    border: none;
    color: white;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(240, 147, 251, 0.3);
}

.btn-featured:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(240, 147, 251, 0.5);
    color: white;
}

.btn-featured i {
    margin-right: 5px;
}

/* Badge para anuncios destacados */
.featured-badge {
    background: linear-gradient(135deg, #ffd700 0%, #ffb347 100%);
    color: #333;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.75rem;
    box-shadow: 0 2px 5px rgba(255, 215, 0, 0.3);
    animation: pulse 2s infinite;
}

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

/* Mejoras para el listado de anuncios destacados */
.dashboard-box-list li.featured-item {
    background: linear-gradient(135deg, #fff5cd 0%, #fff8dc 100%);
    border: 1px solid #ffd700;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
    position: relative;
    overflow: hidden;
}

.dashboard-box-list li.featured-item::before {
    content: '★';
    position: absolute;
    top: 10px;
    right: 15px;
    color: #ffd700;
    font-size: 1.2rem;
    animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
}

/* ==============================================
   FEATURED ADS BORDER - GOLD HIGHLIGHT (HIGH PRIORITY)
   ============================================== */

/* Borde dorado para anuncios destacados en la lista - MÁS ESPECÍFICO */
.card-ospl.ads-list-view.featured,
.card-ospl.ads-list-view.featured:hover,
.card-ospl.ads-list-view.featured:focus,
.card-ospl.ads-list-view.featured:active {
    border: 3px solid #D4AF37 !important;
    border-color: #D4AF37 !important;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.15) !important;
    transition: all 0.3s ease !important;
}

.card-ospl.ads-list-view.featured:hover {
    border-color: #B8941F !important;
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.25) !important;
    transform: translateY(-2px);
}

/* También aplicar a vista de miniaturas si existe */
.card-ospl.ads-thumb-view.featured,
.card-ospl.ads-thumb-view.featured:hover,
.card-ospl.ads-thumb-view.featured:focus,
.card-ospl.ads-thumb-view.featured:active {
    border: 3px solid #D4AF37 !important;
    border-color: #D4AF37 !important;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.15) !important;
    transition: all 0.3s ease !important;
}

.card-ospl.ads-thumb-view.featured:hover {
    border-color: #B8941F !important;
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.25) !important;
    transform: translateY(-2px);
}

/* Borde dorado para anuncios destacados en vista de lista con búsqueda superior */
.task-listing.featured,
.task-listing.featured:hover,
.task-listing.featured:focus,
.task-listing.featured:active {
    border: 3px solid #D4AF37 !important;
    border-color: #D4AF37 !important;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.15) !important;
    transition: all 0.3s ease !important;
}

.task-listing.featured:hover {
    border-color: #B8941F !important;
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.25) !important;
    transform: translateY(-2px);
}

/* SOBRESCRIBIR CUALQUIER BORDE VERDE ESPECÍFICAMENTE */
.card-ospl.featured[style*="border"],
.card-ospl.featured .border-primary,
.featured .border-primary,
.card.featured,
div.featured,
li.featured {
    border-color: #D4AF37 !important;
}

/* Sobrescribir Bootstrap borders */
.border-primary.featured,
.featured.border-primary {
    border-color: #D4AF37 !important;
}

/* ==============================================
   MÁXIMA PRIORIDAD PARA BORDES DORADOS - SOBRESCRIBIR TODO
   ============================================== */

/* Sobrescribir CUALQUIER borde verde con especificidad máxima */
html body .card-ospl.ads-list-view.featured,
html body .card-ospl.ads-list-view.featured:hover,
html body .card-ospl.ads-list-view.featured:focus,
html body .card-ospl.ads-list-view.featured:active,
html body .card-ospl.ads-list-view.featured:visited,
html body .card.ads-list-view.featured,
html body .card.featured,
html body div.card-ospl.featured,
html body article.featured .card-ospl,
html body .featured.card-ospl {
    border: 3px solid #D4AF37 !important;
    border-color: #D4AF37 !important;
    border-top-color: #D4AF37 !important;
    border-right-color: #D4AF37 !important;
    border-bottom-color: #D4AF37 !important;
    border-left-color: #D4AF37 !important;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.15) !important;
}

/* Sobrescribir hover states */
html body .card-ospl.ads-list-view.featured:hover,
html body .card.featured:hover,
html body div.card-ospl.featured:hover {
    border-color: #B8941F !important;
    border-top-color: #B8941F !important;
    border-right-color: #B8941F !important;
    border-bottom-color: #B8941F !important;
    border-left-color: #B8941F !important;
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.25) !important;
}

/* Sobrescribir vista de miniaturas */
html body .card-ospl.ads-thumb-view.featured,
html body .card-ospl.ads-thumb-view.featured:hover,
html body .card-ospl.ads-thumb-view.featured:focus,
html body .card-ospl.ads-thumb-view.featured:active {
    border: 3px solid #D4AF37 !important;
    border-color: #D4AF37 !important;
    border-top-color: #D4AF37 !important;
    border-right-color: #D4AF37 !important;
    border-bottom-color: #D4AF37 !important;
    border-left-color: #D4AF37 !important;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.15) !important;
}

/* Sobrescribir task-listing */
html body .task-listing.featured,
html body .task-listing.featured:hover,
html body .task-listing.featured:focus,
html body .task-listing.featured:active {
    border: 3px solid #D4AF37 !important;
    border-color: #D4AF37 !important;
    border-top-color: #D4AF37 !important;
    border-right-color: #D4AF37 !important;
    border-bottom-color: #D4AF37 !important;
    border-left-color: #D4AF37 !important;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.15) !important;
}

/* Sobrescribir CUALQUIER elemento con borde verde que tenga clase featured */
html body *[class*="featured"] {
    border-color: #D4AF37 !important;
}

/* Regla nuclear - aplicar a cualquier elemento que contenga 'featured' en su clase */
html body [class*="featured"][style*="border"] {
    border-color: #D4AF37 !important;
}

/* Sobrescribir variables CSS de Bootstrap si están siendo usadas */
.card.featured {
    --pet-card-border-color: #D4AF37 !important;
    --bs-card-border-color: #D4AF37 !important;
    --bs-primary: #D4AF37 !important;
    --bs-primary-rgb: 212, 175, 55 !important;
}

/* ==============================================
   ETIQUETA "DESTACADO" PARA ANUNCIOS DESTACADOS
   ============================================== */

/* Etiqueta DESTACADO para anuncios destacados */
.featured-label {
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #D4AF37 0%, #B8941F 100%);
    color: #fff;
    padding: 6px 20px;
    border-radius: 0 0 12px 12px;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.4);
    border: 2px solid #D4AF37;
    border-top: none;
}

.featured-label::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    height: 2px;
    background: #D4AF37;
}

/* Añadir etiqueta automáticamente a anuncios destacados */
.card-ospl.ads-list-view.featured::after,
.card-ospl.ads-thumb-view.featured::after,
.task-listing.featured::after {
    content: "DESTACADO";
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #D4AF37 0%, #B8941F 100%);
    color: #fff;
    padding: 6px 20px;
    border-radius: 0 0 12px 12px;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.4);
    border: 2px solid #D4AF37;
    border-top: none;
}

/* Línea superior para la etiqueta */
.card-ospl.ads-list-view.featured::before,
.card-ospl.ads-thumb-view.featured::before,
.task-listing.featured::before {
    content: '';
    position: absolute;
    top: -2px;
    left: calc(50% - 50px);
    width: 100px;
    height: 2px;
    background: #D4AF37;
    z-index: 9;
}

/* ==============================================
   CAROUSEL NAVIGATION ARROWS - GOLDEN STYLE ONLY FOR FEATURED ADS SECTION
   ============================================== */

/* Contenedor base del carrusel - posición original - SOLO ANUNCIOS DESTACADOS */
.section:first-of-type .owl-ads {
    position: relative !important;
    margin: 0 !important; /* Sin margen como en la versión original */
}

/* Contenedor de navegación del carrusel - posición original - SOLO ANUNCIOS DESTACADOS */
.section:first-of-type .owl-ads .owl-nav {
    position: absolute;
    top: 40%; /* Posición original */
    transform: translateY(-60%); /* Transform original */
    width: 100%; /* Ancho original */
    z-index: 15;
    pointer-events: none; /* Permite que los clicks pasen a través del contenedor */
}

/* Botones de navegación base - SOLO ANUNCIOS DESTACADOS */
.section:first-of-type .owl-ads .owl-nav [class*="owl-"] {
    position: absolute;
    background: linear-gradient(135deg, #D4AF37 0%, #B8941F 100%) !important;
    color: #fff !important;
    border: 3px solid #D4AF37 !important;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0; /* Ocultar texto por defecto */
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
    pointer-events: auto; /* Permite clicks en los botones */
    outline: none;
    font-family: Arial, sans-serif;
}

/* Botón anterior - posición original - SOLO ANUNCIOS DESTACADOS */
.section:first-of-type .owl-ads .owl-nav .owl-prev {
    left: -3rem; /* Posición original exacta */
}

.section:first-of-type .owl-ads .owl-nav .owl-prev::before {
    content: "◀"; /* Icono de flecha izquierda triangular */
    font-size: 20px;
    line-height: 1;
    display: inline-block;
    color: #fff;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

/* Botón siguiente - posición original - SOLO ANUNCIOS DESTACADOS */
.section:first-of-type .owl-ads .owl-nav .owl-next {
    right: -3rem; /* Posición original exacta */
}

.section:first-of-type .owl-ads .owl-nav .owl-next::before {
    content: "▶"; /* Icono de flecha derecha triangular */
    font-size: 20px;
    line-height: 1;
    display: inline-block;
    color: #fff;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

/* Estados hover - SOLO ANUNCIOS DESTACADOS */
.section:first-of-type .owl-ads .owl-nav [class*="owl-"]:hover {
    background: linear-gradient(135deg, #B8941F 0%, #A67C00 100%) !important;
    border-color: #B8941F !important;
    transform: scale(1.08);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5);
}

/* Estado activo/focus */
.owl-ads .owl-nav [class*="owl-"]:active,
.owl-ads .owl-nav [class*="owl-"]:focus {
    background: #9A7A1A !important;
    transform: scale(0.95);
}

/* Botones deshabilitados */
.owl-ads .owl-nav [class*="owl-"].disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

/* Responsive - tablets */
@media (max-width: 992px) {
    .owl-ads .owl-nav .owl-prev {
        left: -2.5rem;
    }
    
    .owl-ads .owl-nav .owl-next {
        right: -2.5rem;
    }
    
    .owl-ads .owl-nav [class*="owl-"] {
        width: 40px;
        height: 40px;
        border-width: 3px;
    }
    
    .owl-ads .owl-nav .owl-prev::before,
    .owl-ads .owl-nav .owl-next::before {
        font-size: 18px;
    }
}

/* Responsive - móviles */
@media (max-width: 768px) {
    .owl-ads .owl-nav .owl-prev {
        left: -2rem;
    }
    
    .owl-ads .owl-nav .owl-next {
        right: -2rem;
    }
    
    .owl-ads .owl-nav [class*="owl-"] {
        width: 35px;
        height: 35px;
        border-width: 2px;
    }
    
    .owl-ads .owl-nav .owl-prev::before,
    .owl-ads .owl-nav .owl-next::before {
        font-size: 16px;
    }
}

/* Móviles muy pequeños */
@media (max-width: 576px) {
    .owl-ads .owl-nav .owl-prev {
        left: -1.5rem;
    }
    
    .owl-ads .owl-nav .owl-next {
        right: -1.5rem;
    }
    
    .owl-ads .owl-nav [class*="owl-"] {
        width: 30px;
        height: 30px;
        border-width: 2px;
    }
    
    .owl-ads .owl-nav .owl-prev::before,
    .owl-ads .owl-nav .owl-next::before {
        font-size: 14px;
    }
}

/* ==============================================
   SOBRESCRIBIR ESTILOS EXISTENTES DEL CARRUSEL
   ============================================== */

/* Sobrescribir estilos específicos del owl.theme.default.css */
.owl-theme .owl-nav [class*='owl-'] {
    background: #D4AF37 !important;
    color: #fff !important;
    border: 3px solid #B8941F !important;
}

.owl-theme .owl-nav [class*='owl-']:hover {
    background: #B8941F !important;
    color: #fff !important;
}

/* Sobrescribir estilos en contenedor de anuncios específicamente */
.recommended-for-you .owl-ads .owl-nav [class*="owl-"],
#recommended-carousel .owl-nav [class*="owl-"],
.home-carousel .owl-nav [class*="owl-"],
.owl-carousel.owl-ads .owl-nav [class*="owl-"] {
    background: #D4AF37 !important;
    color: #fff !important;
    border: 3px solid #B8941F !important;
    border-radius: 50% !important;
    width: 50px !important;
    height: 50px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 18px !important;
    font-weight: bold !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3) !important;
    outline: none !important;
    font-family: Arial, sans-serif !important;
}

/* Botones específicos con mayor especificidad */
.recommended-for-you .owl-ads .owl-nav .owl-prev,
#recommended-carousel .owl-nav .owl-prev,
.home-carousel .owl-nav .owl-prev,
.owl-carousel.owl-ads .owl-nav .owl-prev {
    left: -60px !important;
}

.recommended-for-you .owl-ads .owl-nav .owl-next,
#recommended-carousel .owl-nav .owl-next,
.home-carousel .owl-nav .owl-next,
.owl-carousel.owl-ads .owl-nav .owl-next {
    right: -60px !important;
}

/* Sobrescribir contenido de los botones */
.recommended-for-you .owl-ads .owl-nav .owl-prev::before,
#recommended-carousel .owl-nav .owl-prev::before,
.home-carousel .owl-nav .owl-prev::before,
.owl-carousel.owl-ads .owl-nav .owl-prev::before {
    content: "◀" !important;
    font-size: 16px !important;
    line-height: 1 !important;
    display: inline-block !important;
}

.recommended-for-you .owl-ads .owl-nav .owl-next::before,
#recommended-carousel .owl-nav .owl-next::before,
.home-carousel .owl-nav .owl-next::before,
.owl-carousel.owl-ads .owl-nav .owl-next::before {
    content: "▶" !important;
    font-size: 16px !important;
    line-height: 1 !important;
    display: inline-block !important;
}

/* Eliminar cualquier contenido anterior */
.recommended-for-you .owl-ads .owl-nav [class*="owl-"],
#recommended-carousel .owl-nav [class*="owl-"],
.home-carousel .owl-nav [class*="owl-"],
.owl-carousel.owl-ads .owl-nav [class*="owl-"] {
    text-indent: 0 !important;
    background-image: none !important;
}

/* Estados hover con mayor especificidad */
.recommended-for-you .owl-ads .owl-nav [class*="owl-"]:hover,
#recommended-carousel .owl-nav [class*="owl-"]:hover,
.home-carousel .owl-nav [class*="owl-"]:hover,
.owl-carousel.owl-ads .owl-nav [class*="owl-"]:hover {
    background: #B8941F !important;
    border-color: #9A7A1A !important;
    transform: scale(1.1) !important;
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5) !important;
}
