/* Twitch Live Banner Styles */
.twitch-live-banner {
    background-color: #6441a5; /* Twitch purple */
    color: white;
    padding: 10px 20px;
    text-align: center;
    position: relative;
    width: 100%;
    box-sizing: border-box;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: Arial, sans-serif;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.twitch-live-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    font-size: 1.1rem;
    font-weight: bold;
}

.twitch-live-pulse {
    width: 12px;
    height: 12px;
    background-color: #ff0000;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

.twitch-live-banner a {
    background-color: white;
    color: #6441a5;
    padding: 5px 15px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.twitch-live-banner a:hover {
    background-color: #f0f0f0;
    transform: translateY(-2px);
}

.twitch-close-button {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    padding: 5px;
    line-height: 1;
}

.twitch-close-button:hover {
    color: #f0f0f0;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 0, 0, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 0, 0, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 0, 0, 0);
    }
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .twitch-live-banner {
        padding: 10px 40px 10px 10px; /* Add more padding on the right for the close button */
    }
    
    .twitch-live-content {
        font-size: 0.9rem;
        gap: 10px;
        flex-wrap: wrap; /* Allow items to wrap on very small screens */
        justify-content: center;
    }
    
    .twitch-live-banner a {
        padding: 4px 10px;
        margin-top: 5px; /* Add some space above the button when it wraps */
    }
    
    .twitch-close-button {
        right: 5px; /* Position closer to the edge */
        top: 5px; /* Position at the top instead of center */
        transform: none; /* Remove the vertical centering */
        padding: 8px; /* Larger touch target */
        z-index: 10; /* Ensure it's above other elements */
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    .twitch-live-banner {
        padding: 12px 35px 12px 12px;
    }
    
    .twitch-live-content {
        display: grid;
        grid-template-columns: auto 1fr;
        grid-template-rows: auto auto;
        gap: 8px;
        align-items: center;
        justify-items: center;
        width: 100%;
    }
    
    .twitch-live-pulse {
        grid-row: 1 / 3;
        grid-column: 1;
        margin-right: 8px;
        width: 14px;
        height: 14px;
    }
    
    .twitch-live-content span {
        grid-row: 1;
        grid-column: 2;
        margin-bottom: 4px;
        text-align: center;
        width: 100%;
    }
    
    .twitch-live-content a {
        grid-row: 2;
        grid-column: 2;
        display: block;
        text-align: center;
        margin: 0 auto;
        width: fit-content;
    }
}