/* YouTube Subscribe Button Container Styles */
.youtube-subscribe-container {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-top: 15px;
    margin-bottom: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.youtube-subscribe-container:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.subscribe-wrapper {
    display: inline-block;
    position: relative;
    cursor: pointer;
}

/* Add subtle animation to the wrapper */
.subscribe-wrapper::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;    background: linear-gradient(45deg, #ff0000, #cc0000);
    border-radius: 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.subscribe-wrapper:hover::before {
    opacity: 0.2;
}

/* Click counter styles */
.click-counter {
    font-size: 14px;
    color: #6c757d;
    margin-top: 10px;
    font-style: italic;
}

.click-counter #clickCount {
    font-weight: bold;
    color: #cc0000;
    font-size: 16px;
}

/* Add pulse animation for new clicks */
@keyframes pulseCount {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); color: #ff0000; }
    100% { transform: scale(1); }}

.click-counter.pulse #clickCount {
    animation: pulseCount 0.5s ease;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .youtube-subscribe-container {
        padding: 15px;
        margin-top: 10px;
        margin-bottom: 10px;
    }
    
    .click-counter {
        font-size: 12px;
    }
    
    .click-counter #clickCount {
        font-size: 14px;
    }
}

/* Loading state */
.subscribe-wrapper.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Custom styling for the YouTube button area */
.g-ytsubscribe {
    display: inline-block;
    vertical-align: middle;
}