/* WPiko Chatbot Plugin Header Styles */

.wpiko-chatbot-plugin-header {
    background: linear-gradient(135deg, #0968fe 0%, #0756d6 100%);
    margin: 20px 20px 0 0;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(255, 107, 53, 0.15);
    overflow: hidden;
}

.wpiko-chatbot-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    color: #ffffff;
}

.wpiko-chatbot-header-branding {
    display: flex;
    align-items: center;
    gap: 12px;
}

.wpiko-chatbot-header-icon {
    font-size: 24px;
    width: 24px;
    height: 24px;
    color: #ffffff;
}

.wpiko-chatbot-header-title {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #ffffff;
}

.wpiko-chatbot-header-version {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wpiko-chatbot-header-pro-badge {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #333333;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.wpiko-chatbot-header-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.wpiko-chatbot-header-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    color: #ffffff;
    text-decoration: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease-in-out;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.wpiko-chatbot-header-link:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.wpiko-chatbot-header-link:focus {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
    color: #ffffff;
    text-decoration: none;
}

.wpiko-chatbot-header-link.wpiko-chatbot-header-upgrade {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #333333;
    border: 1px solid #ffd700;
    font-weight: 600;
}

.wpiko-chatbot-header-link.wpiko-chatbot-header-upgrade:hover {
    background: linear-gradient(135deg, #ffed4e 0%, #ffd700 100%);
    color: #333333;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
}

.wpiko-chatbot-header-link .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
}

/* Responsive design */
@media screen and (max-width: 782px) {
    .wpiko-chatbot-plugin-header {
        margin: 10px 20px 0 10px;
    }
    
    .wpiko-chatbot-header-content {
        flex-direction: column;
        gap: 16px;
        padding: 16px 20px;
        text-align: center;
    }
    
    .wpiko-chatbot-header-branding {
        justify-content: center;
    }
    
    .wpiko-chatbot-header-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 6px;
    }
    
    .wpiko-chatbot-header-link {
        padding: 6px 10px;
        font-size: 12px;
    }
    
    .wpiko-chatbot-header-title {
        font-size: 18px;
    }
}

@media screen and (max-width: 480px) {
    .wpiko-chatbot-header-branding {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .wpiko-chatbot-header-version,
    .wpiko-chatbot-header-pro-badge {
        order: 3;
        width: 100%;
        text-align: center;
        margin-top: 4px;
    }
}

/* Adjust margin for the wrapper when header is present */
.wpiko-chatbot-plugin-header + .wpiko-chatbot-admin-container {
    margin-top: 16px;
}
