/**
 * Subscription Buttons Animation Styles
 * Màu chủ đạo: #fe0078
 */

/* Base button styles */
.btn-subscribe,
.btn-subscribe-yearly,
#yearly-subscribe-btn {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #fe0078 0%, #ff4da6 100%) !important;
    color: white !important;
    border: none !important;
    box-shadow: 0 4px 15px rgba(254, 0, 120, 0.4);
    transition: all 0.3s ease;
    cursor: pointer;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Hover effect */
.btn-subscribe:hover,
.btn-subscribe-yearly:hover,
#yearly-subscribe-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(254, 0, 120, 0.6);
    background: linear-gradient(135deg, #ff1a8c 0%, #ff66b3 100%) !important;
}

/* Active/Pressed effect */
.btn-subscribe:active,
.btn-subscribe-yearly:active,
#yearly-subscribe-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(254, 0, 120, 0.5);
}

/* Pulsing animation - nhấp nháy liên tục */
@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(254, 0, 120, 0.4),
                    0 0 0 0 rgba(254, 0, 120, 0.7);
    }
    50% {
        box-shadow: 0 4px 20px rgba(254, 0, 120, 0.6),
                    0 0 0 10px rgba(254, 0, 120, 0);
    }
}

.btn-subscribe,
.btn-subscribe-yearly,
#yearly-subscribe-btn {
    animation: pulse-glow 2s ease-in-out infinite;
}

/* Shimmer effect - hiệu ứng ánh sáng chạy qua */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.btn-subscribe::before,
.btn-subscribe-yearly::before,
#yearly-subscribe-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    animation: shimmer 3s infinite;
}

/* Bounce animation - nhảy nhẹ */
@keyframes bounce-subtle {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-3px);
    }
}

/* Apply bounce on hover */
.btn-subscribe:hover,
.btn-subscribe-yearly:hover,
#yearly-subscribe-btn:hover {
    animation: pulse-glow 2s ease-in-out infinite,
               bounce-subtle 1s ease-in-out infinite;
}

/* Gradient border effect */
.btn-subscribe::after,
.btn-subscribe-yearly::after,
#yearly-subscribe-btn::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, #fe0078, #ff4da6, #fe0078);
    border-radius: inherit;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-subscribe:hover::after,
.btn-subscribe-yearly:hover::after,
#yearly-subscribe-btn:hover::after {
    opacity: 1;
    animation: pulse-glow 2s ease-in-out infinite;
}

/* Disabled state */
.btn-subscribe:disabled,
.btn-subscribe-yearly:disabled,
#yearly-subscribe-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    animation: none;
    box-shadow: none;
}

.btn-subscribe:disabled::before,
.btn-subscribe-yearly:disabled::before,
#yearly-subscribe-btn:disabled::before {
    display: none;
}

/* Focus state for accessibility */
.btn-subscribe:focus,
.btn-subscribe-yearly:focus,
#yearly-subscribe-btn:focus {
    outline: 3px solid rgba(254, 0, 120, 0.5);
    outline-offset: 2px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .btn-subscribe,
    .btn-subscribe-yearly,
    #yearly-subscribe-btn {
        font-size: 12px;
        padding: 10px 16px;
    }
}

/* Special attention-grabbing animation for featured buttons */
.btn-subscribe.featured,
.btn-subscribe-yearly.featured {
    animation: pulse-glow 1.5s ease-in-out infinite,
               bounce-subtle 2s ease-in-out infinite;
}

/* Text glow effect */
.btn-subscribe,
.btn-subscribe-yearly,
#yearly-subscribe-btn {
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

