/**
 * Public styles for WP Banner Plugin
 */

.wp-banner-container {
    position: relative;
    padding: 15px 20px;
    text-align: center;
    font-size: 16px;
    line-height: 1.4;
    z-index: 9999;
    box-sizing: border-box;
}

.wp-banner-container a.wp-banner-link {
    text-decoration: none;
    display: block;
    width: 100%;
}

.wp-banner-container a.wp-banner-link:hover {
    text-decoration: underline;
}

.wp-banner-content {
    margin: 0;
    padding: 0;
    max-width: 1200px;
    margin: 0 auto;
}

.wp-banner-content p {
    margin: 0;
    padding: 0;
}

.wp-banner-close {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    color: inherit;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.wp-banner-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.wp-banner-close:focus {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

/* Responsive styles */
@media (max-width: 768px) {
    .wp-banner-container {
        padding: 12px 50px 12px 15px;
        font-size: 14px;
    }
    
    .wp-banner-close {
        right: 10px;
        width: 25px;
        height: 25px;
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .wp-banner-container {
        padding: 10px 40px 10px 10px;
        font-size: 13px;
    }
    
    .wp-banner-close {
        right: 8px;
        width: 22px;
        height: 22px;
        font-size: 18px;
    }
}

/* Animation for banner appearance */
.wp-banner-container {
    animation: wpBannerSlideDown 0.3s ease-out;
}

@keyframes wpBannerSlideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Hidden state */
.wp-banner-container.wp-banner-hidden {
    display: none;
}

