/* ============================================
   PUSHY PANEL - Custom Styles
   Diseño elegante y profesional para ApureSports
   ============================================ */

/* Panel Base */
.pushy-panel {
    position: fixed;
    top: 0;
    right: -420px;
    width: 400px;
    height: 100vh;
    background: linear-gradient(135deg, #0c1d34 0%, #133259 100%);
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.4);
    z-index: 9999;
    transition: right 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    overflow-y: auto;
    overflow-x: hidden;
}

.pushy-panel.active {
    right: 0;
}

.pushy-panel__inner {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Header del Panel */
.pushy-panel__header {
    position: sticky;
    top: 0;
    background: linear-gradient(135deg, #0c1d34 0%, #1a3a5c 100%);
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 2px solid #fe3f00;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    z-index: 10;
}

.pushy-panel__logo {
    flex-shrink: 0;
}

.pushy-panel__logo img {
    max-width: 180px;
    height: auto;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.pushy-panel__close-btn {
    background: transparent;
    border: 2px solid rgba(254, 63, 0, 0.3);
    color: #fe3f00;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 18px;
}

.pushy-panel__close-btn:hover {
    background: #fe3f00;
    color: #fff;
    border-color: #fe3f00;
    transform: rotate(90deg);
}

/* Contenido del Panel */
.pushy-panel__content {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

.pushy-panel__content::-webkit-scrollbar {
    width: 6px;
}

.pushy-panel__content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.pushy-panel__content::-webkit-scrollbar-thumb {
    background: #fe3f00;
    border-radius: 3px;
}

/* Widgets */
.widget--side-panel {
    margin-bottom: 30px;
    animation: fadeInUp 0.5s ease;
}

.widget__title {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(254, 63, 0, 0.3);
}

.widget__title h4 {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.widget__title h4 i {
    color: #fe3f00;
    font-size: 18px;
}

/* Widget: Búsqueda */
.pushy-search-form .input-group {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 25px;
    overflow: hidden;
    border: 2px solid rgba(254, 63, 0, 0.2);
    transition: all 0.3s ease;
}

.pushy-search-form .input-group:focus-within {
    border-color: #fe3f00;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 3px rgba(254, 63, 0, 0.1);
}

.pushy-search-form .form-control {
    background: transparent;
    border: none;
    color: #fff;
    padding: 12px 20px;
    font-size: 14px;
}

.pushy-search-form .form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.pushy-search-form .form-control:focus {
    outline: none;
    box-shadow: none;
}

.pushy-search-form .btn-primary {
    background: linear-gradient(135deg, #fe3f00 0%, #ff6b3d 100%);
    border: none;
    padding: 12px 20px;
    border-radius: 0 25px 25px 0;
    transition: all 0.3s ease;
}

.pushy-search-form .btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(254, 63, 0, 0.4);
}

/* Widget: Noticias Recientes */
.pushy-posts-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pushy-post-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    margin-bottom: 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.pushy-post-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-left-color: #fe3f00;
    transform: translateX(5px);
}

.pushy-post-thumb {
    flex-shrink: 0;
    width: 70px;
    height: 70px;
    border-radius: 6px;
    overflow: hidden;
}

.pushy-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.pushy-post-item:hover .pushy-post-thumb img {
    transform: scale(1.1);
}

.pushy-post-content {
    flex: 1;
    min-width: 0;
}

.pushy-post-category {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 3px;
    margin-bottom: 6px;
    background: #fe3f00;
    color: #fff;
}

.pushy-post-title {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    margin: 0 0 6px 0;
    line-height: 1.4;
}

.pushy-post-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.pushy-post-title a:hover {
    color: #fe3f00;
}

.pushy-post-date {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Widget: Categorías */
.pushy-categories-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pushy-category-item {
    margin-bottom: 8px;
}

.pushy-category-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.pushy-category-link:hover {
    background: rgba(255, 255, 255, 0.08);
    border-left-color: #fe3f00;
    transform: translateX(5px);
    color: #fff;
}

.pushy-category-icon {
    width: 35px;
    height: 35px;
    background: linear-gradient(135deg, #fe3f00 0%, #ff6b3d 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.pushy-category-link:hover .pushy-category-icon {
    transform: rotate(360deg) scale(1.1);
}

.pushy-category-name {
    flex: 1;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    text-transform: capitalize;
}

.pushy-category-count {
    background: rgba(254, 63, 0, 0.2);
    color: #fe3f00;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 12px;
    min-width: 25px;
    text-align: center;
}

/* Widget: Redes Sociales */
.pushy-social-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pushy-social-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    border-radius: 8px;
    text-decoration: none;
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.pushy-social-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 0;
    height: 100%;
    transition: width 0.3s ease;
    z-index: 0;
}

.pushy-social-link:hover::before {
    width: 100%;
}

.pushy-social-link > * {
    position: relative;
    z-index: 1;
}

.pushy-social-link i {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    border-radius: 50%;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.pushy-social-link:hover i {
    transform: scale(1.2) rotate(10deg);
}

.pushy-social-link.facebook {
    background: rgba(59, 89, 152, 0.2);
    border: 2px solid rgba(59, 89, 152, 0.3);
}

.pushy-social-link.facebook::before {
    background: #3b5998;
}

.pushy-social-link.twitter {
    background: rgba(0, 0, 0, 0.2);
    border: 2px solid rgba(0, 0, 0, 0.3);
}

.pushy-social-link.twitter::before {
    background: #000;
}

.pushy-social-link.instagram {
    background: rgba(225, 48, 108, 0.2);
    border: 2px solid rgba(225, 48, 108, 0.3);
}

.pushy-social-link.instagram::before {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.pushy-social-link.youtube {
    background: rgba(255, 0, 0, 0.2);
    border: 2px solid rgba(255, 0, 0, 0.3);
}

.pushy-social-link.youtube::before {
    background: #ff0000;
}

.pushy-social-link.tiktok {
    background: rgba(0, 0, 0, 0.2);
    border: 2px solid rgba(0, 0, 0, 0.3);
}

.pushy-social-link.tiktok::before {
    background: linear-gradient(135deg, #000000 0%, #25f4ee 50%, #fe2c55 100%);
}

/* Widget: Banner Promocional */
.pushy-promo-banner {
    background: linear-gradient(135deg, #fe3f00 0%, #ff6b3d 100%);
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.pushy-promo-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: pulse 3s ease-in-out infinite;
}

.pushy-promo-content {
    position: relative;
    z-index: 1;
}

.pushy-promo-icon {
    font-size: 48px;
    color: #fff;
    margin-bottom: 15px;
    animation: bounce 2s infinite;
}

.pushy-promo-banner h5 {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 10px 0;
    text-transform: uppercase;
}

.pushy-promo-banner p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 20px 0;
    line-height: 1.5;
}

.pushy-promo-banner .btn-primary {
    background: #fff;
    color: #fe3f00;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 700;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.pushy-promo-banner .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Botón de Regreso */
.pushy-panel__back-btn {
    position: sticky;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #0c1d34 0%, #1a3a5c 100%);
    border-top: 2px solid #fe3f00;
    color: #fe3f00;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.pushy-panel__back-btn:hover {
    background: #fe3f00;
    color: #fff;
}

.pushy-panel__back-btn i {
    margin-right: 8px;
}

/* Animaciones */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

/* Responsive */
@media (max-width: 768px) {
    .pushy-panel {
        width: 100%;
        right: -100%;
    }
    
    .pushy-panel__header {
        padding: 15px;
    }
    
    .pushy-panel__logo img {
        max-width: 150px;
    }
    
    .pushy-panel__content {
        padding: 15px;
    }
}

/* Overlay cuando el panel está activo */
.site-wrapper--has-overlay-pushy .site-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(3px);
    z-index: 9998;
    opacity: 1;
    visibility: visible;
    transition: all 0.3s ease;
}

/* Efecto Ripple */
@keyframes ripple {
    to {
        transform: scale(1);
        opacity: 0;
    }
}

.ripple-effect {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}
